Repository navigation
Description
Parents and release role
#1339 next advisory release; #812/#813 analyzer compatibility; #1066–#1068 released-bundle selection/migration/proof. This is the canonical bounded consumer-parser repair, not an upstream analyzer implementation or pin promotion.
Summary / source evidence
read_tool_gate_decision in src/tools.rs parses RIPR check --format badge-json receipts via RiprBadgeReceipt, which binds only counts.unsuppressed_exposure_gaps and deliberately ignores schema_version (the comment says the badge contract keys on counts, not version).
Re-read on 2026-10-09 at main@266260b454dbb7efd383bf1366162a204c4bdf72, src/tools.rs lines 356–405. Native ToolGateDecision { new_unsuppressed } parsing is attempted first, then RIPR badge parsing. The implementation therefore needs explicit shape/version admission, not a badge check that an ambiguous hybrid can bypass.
Why it matters
RIPR's producer compatibility policy (ripr-swarm#7169/#7180; docs/SEMVER.md) distinguishes field meaning by schema_version. A same-shaped successor can change semantics while the current consumer still evaluates an old strict-zero meaning. Current version-compatible counts working today do not justify accepting all future versions.
Minimal regression
Start with the supported passing badge fixture in tool_gate_outcome_evaluates_ripr_badge_json_receipt; replace only the schema version with 9.9. Current source accepts the count unchanged. Record actual RED before the repair rather than treating source inspection as executed reproduction.
One-PR contract
- Identify the exact badge schema(s) actually emitted by the pinned released tool and required compatibility fixtures. Allow only versions whose semantics are explicitly supported; do not infer schema from package semver or a comment.
- Validate format/schema before mapping the count. Unknown, missing, null, non-string or incompatible badge versions become
Malformed/unusable evidence with a stable actionable diagnostic. - Preserve explicitly supported native
{new_unsuppressed: N}receipts without allowing a payload that declares an unknown RIPR schema to masquerade as native. Define/reject ambiguous hybrid shapes and contradictory count fields. - Reject malformed, duplicate/conflicting, negative, fractional or overflowing mandatory counts rather than coercing them.
- Preserve Required versus advisory policy, actual enforcement compatibility and strict-zero thresholds. Do not call an unknown analyzer schema a code defect or a clean result; retain the actual non-pass evidence classification. FinalizedOutcome/mandatory enforcement remains owned by gate(outcome): define the pure finalized review delivery CI and run truth reducer #958–gate(outcome): emit and verify FinalizedOutcome in shadow from task review and delivery receipts #960/C6.1 gate(enforce): switch Action and gate-check authority to finalized ci_evidence_result #1015.
Acceptance and tests
- Real pinned-tool badge fixture and native-format control retain expected zero/nonzero behavior.
- Same bytes with only supported -> unknown schema changed fail at schema admission.
- Missing/null/wrong-type schema fails for badge format.
- Unknown-version badge plus
new_unsuppressed: 0cannot bypass the badge check through the native-first path. - Conflicting hybrid counts, duplicate mandatory fields and malformed/overflow counts fail with intended diagnostics.
- Required malformed receipt is not clean; optional/advisory handling does not silently acquire blocking authority.
- Known-compatible extra metadata is preserved/ignored only according to an explicit tested compatibility policy.
- Parser/tool-gate integration, serializer/verifier mirrors and relevant docs all agree.
- Meaningful tests-first RED/GREEN, fmt/check/test/Clippy/policy/artifact verification and exact-head required checks pass.
Ownership / non-goals
Keep edits to the consumer format-admission seam and direct tests/docs. Coordinate shared src/tools.rs or verifier writers before selection. No RIPR upgrade, local finding-ID normalization, threshold relaxation, suppression changes, workflow/protection change or release publication. #1066/#1067 must treat new schema support as an explicit consumer compatibility fact, not automatically select a newer analyzer.
Completion / rollback
Close only after the supported-version contract is implemented, independently reviewed and executed against positive/negative current fixtures. Unknown schema remains unavailable on rollback; never restore shape-only acceptance merely to recover a green count.
Activity
EffortlessSteven commentedon Oct 9, 2026
Taking the bounded parser/test implementation for this release prerequisite under #1339. Refreshed main is 266260b; fresh open-PR search found no #1333 implementation. Scope stays tools receipt admission and direct regression tests; #1306/#1317 and all pins, thresholds, suppressions, workflows and protection remain untouched.
Important producer verification: released RIPR v0.10.0
crates/ripr/src/output/badge/model.rsdeclaresBADGE_SCHEMA_VERSION = "0.6", not the historical 0.5 fixture alone. v0.6 addspreview_skipped; its producer contract says a nonempty list is incomplete analysis, not a clean Rust-grade result. The repair must preserve known 0.5 compatibility, admit actual 0.6 complete receipts, reject unknown/missing/malformed versions and native/badge hybrids, and not treat a skipped-preview receipt as clean. This is source verification, not a fresh analyzer execution.I will retain a tests-only predecessor and actual hosted RED before the source repair, then inspect exact-head baseline/gate/review outcomes. This session's container has no Cargo and public Git clone failed at DNS resolution; no local Rust execution is claimed. Hosted repository CI is the execution path. No new release/pin/settings authorization is implied.
EffortlessSteven commentedon Oct 10, 2026
Implemented, behaviorally tested and independently reviewed in PR #1347; not merged
Current source 9fa5ac2, tree 642f05dd2b868076183211678d25440b9170e6c2. The real reader now uses one duplicate-preserving typed admission path, rejects root/nested positional arrays and native/badge hybrids, and supports the actually pinned RIPR schema0.6 as well as retained0.5 compatibility. Unknown, missing, null/mistyped, conflicting or malformed authority fields cannot yield a clean count.
Known partial coverage is distinct from malformed schema: its observed count is a lower bound. Above the configured maximum remains failed; at/below it remains missing evidence. This prevents stricter coverage validation from hiding a proven violation. Existing Required/advisory and enforcement policy is unchanged.
Two tests-only hosted REDs are retained: eight original parser/projection failures, then one partial-count counterexample. Final hosted execution passes all seven independent baseline checks and1,250 top-level tests, with one intentional subprocess-driver ignore. Twelve new functions include a completed144-case real-reader/threshold matrix.
Exact proof, artifact hashes, source/merge identity and all27 raw finding joins. Current required gate is FAIL27/max0, not source merge qualification.
Independent review is now complete for the exact current head: CodeRabbit comment6091068865, updated2026-10-10T00:16:46Z, run
d6c40a00-47fd-4375-a443-2a53b8bae65f, explicitly covers9fa5ac and all four changed files. No actionable defect was found; its merge-readiness statement remains conditional on required checks. The older formatting thread is resolved. This technical LLM review is not release authorization or a waiver of the red gate.The remaining findings have separate inspection categories, not blanket suppression clearance:5 test-helper probes;4 compile-time where-bounds labelled field construction;2 removed reader expressions needing diff-side disposition;16 production discriminator/Result/output-binding rows needing exact evidence-backed classification. Existing #813 compatibility owner and RIPR#1453 received the complete frozen-input handoff. Current development analyzer behavior must be replayed rather than assumed.
This issue remains open. No analyzer version, suppression, threshold, workflow, policy, protection or release change was made. No local Rust or analyzer execution was used; ordinary hosted CI supplied execution and local data-only work independently checked artifact bytes/joins. #1306/#1317 retain their owners and source unchanged.
test(tools): reject unversioned, hybrid and incomplete badge receipts (…
fix(tools): admit versioned RIPR gate receipts without native fallbac…
test(ripr): prepare PR1401 source-role counterparts for #813 adjudica…