Repository navigation
feat(agent): verify TypeScript gaps through a producer-identified check-findings artifact - #9547
Conversation
…ck-findings artifact (#9103) Add ripr check --format check-findings-json and let agent verify/receipt accept it through the one shared identity and commitment validator. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WsmpqwQoXW5V5Yhs4waRvg
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 11 minutes. View limit details
Comment |
…#9103) Reject a findings snapshot that analyzed a partitioned diff or disclosed run limitations, document that absence is not closure evidence, and align the spec's evidence claims with the tests that exist. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WsmpqwQoXW5V5Yhs4waRvg
|
Generated by Claude Code |
…t the format (#9103) Hash every finding-affecting config field into the findings input identity, document the new format in verify/check help, and register RIPR-SPEC-0310 in the verdict-corpus spec coverage. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WsmpqwQoXW5V5Yhs4waRvg
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- crates/ripr/src/agent/artifact.rs:1076 —
check_findings_gapssilently skips findings whosegap_id()returns None (non-TS id withoutcanonical_gap_id). The spec requires each finding to carry a usable gap identity; a producer could omit both fields and hide a gap. Reject as malformed instead of continuing.
Verification questions
- Confirm checkFindingsFinding::gap_id only derives a canonical id for the probe:...:typescript_preview: shape; other producers with canonical_gap_id still work, but a finding whose id matches neither pattern is silently skipped (continue) instead of rejected, so a producer could hide a gap by omitting canonical_gap_id and using a non-TS id format. README/spec require each gap-identified finding to be unique and well-formed; skipping is not the same as rejecting malformed entries.
- Confirm validate_verify_snapshot dispatches by declared_artifact_kind before parse-failure handling; declared_artifact_kind returns None for malformed JSON, so a corrupt check_findings doc would fall into the repo-exposure branch and fail there with a less specific 'is not a canonical repo-exposure artifact' error. Acceptable but worth noting; a kind-mismatch error would be clearer.
Refuted
- Devin finding 2: a Python snapshot with shared canonical gap ids would be wrongly accepted as check_findings; the slice should aggregate or de-duplicate across rows.; refuted because: Per author reply in PR thread: downstream
targeted_outcome_seams_by_idalready refuses repeated seam ids, so admitting repeated rows here only moves the refusal downstream; aggregating is a new movement rule outside this slice. Python verify is out of scope for #9103 (terminal reason from #9102), and TypeScript gap ids embed the changed-line fingerprint and are unique per finding, which the test pins. The fail-closed behavior the spec requires is satisfied via the duplicate-gap-id rejection unit test.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
#9103) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WsmpqwQoXW5V5Yhs4waRvg
|
Head 98165e4 addresses the failures on 2a9ba31:
Generated by Claude Code |
…y validator (#9500) (#9701) #9632 and #9547 each passed alone; together the foreign-producer refusal referenced a subject only the repo-exposure route defined. Claude-Session: https://claude.ai/code/session_015jyhvmnQnqYgyfnycQYsvx Co-authored-by: Claude <noreply@anthropic.com>
Governing issue or accepted claim: #9103 (slices A+B of the revised plan on the issue)
Acceptance delta (one sentence):
agent verifyandagent receiptcan now verify a TypeScript gap's movement by canonical gap id from a producer-identifiedcheck-findings-jsonsnapshot, with edited, unenveloped, incomplete, duplicate and reversed snapshots refused.What changed
ripr check --format check-findings-json: the complete (never findings-bounded) check JSON with the sharedartifactenvelope (kind: check_findings, content commitment).validate_repo_exposure_artifact's identity/commitment/Git-provenance half is extracted into one shared validator; both kinds run it, so the new kind is not a weaker twin.validate_verify_snapshotselects by declared kind; verify and receipt use it.document_complete: false, unique gap ids and non-empty classification/file/line.Not in this PR
Gap-bound
agent repair --phase before/afterand the journey flip (slices C and D). #9103 stays open.Proof
--format jsonis refused; reversed pair is incomparable.cargo xtask precommitpasses locally.Generated by Claude Code