Skip to content

feat(agent): verify TypeScript gaps through a producer-identified check-findings artifact - #9547

Merged
EffortlessSteven merged 6 commits into
mainfrom
claude/ts-9103-gap-bound-verify
Oct 22, 2026
Merged

EffortlessSteven merged 6 commits into
mainfrom
claude/ts-9103-gap-bound-verify

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #9103 (slices A+B of the revised plan on the issue)

Acceptance delta (one sentence): agent verify and agent receipt can now verify a TypeScript gap's movement by canonical gap id from a producer-identified check-findings-json snapshot, with edited, unenveloped, incomplete, duplicate and reversed snapshots refused.

What changed

  • New ripr check --format check-findings-json: the complete (never findings-bounded) check JSON with the shared artifact envelope (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_snapshot selects by declared kind; verify and receipt use it.
  • The findings kind additionally requires a completed analysis, no document_complete: false, unique gap ids and non-empty classification/file/line.
  • ADR 0020 amendment, OUTPUT_SCHEMA section, RIPR-SPEC-0310.

Not in this PR

Gap-bound agent repair --phase before/after and the journey flip (slices C and D). #9103 stays open.

Proof

  • Installed-binary test over the TypeScript fixture: before/after pair verifies and names the gap; hand-edited artifact fails the commitment; unenveloped --format json is refused; reversed pair is incomparable.
  • Unit tests for completeness, duplicate and malformed findings and kind dispatch.
  • cargo xtask precommit passes locally.

Generated by Claude Code

…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
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 103 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: b707c802-e777-4c0c-b10b-061b7cba06d9
📥 Commits

Reviewing files that changed from the base of the PR and between 48d3080 and 98165e4.

📒 Files selected for processing: 21
  • .ripr/traceability.toml
  • changelog.d/9103-check-findings-artifact-verify.md
  • crates/ripr/src/agent/artifact.rs
  • crates/ripr/src/app/agent_receipt.rs
  • crates/ripr/src/cli/commands/agent.rs
  • crates/ripr/src/cli/help/agent.rs
  • crates/ripr/src/cli/help/core.rs
  • crates/ripr/src/output/check_findings.rs
  • crates/ripr/src/output/format.rs
  • crates/ripr/src/output/mod.rs
  • crates/ripr/src/output/render.rs
  • crates/ripr/tests/installed_python_typescript_journeys.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/adr/0020-repair-artifacts-carry-producer-identity.md
  • docs/specs/README.md
  • docs/specs/RIPR-SPEC-0310-check-findings-artifact-verifies-by-gap-id.md
  • fixtures/perl-verdict-corpus/spec-coverage.toml
  • fixtures/python-verdict-corpus/spec-coverage.toml
  • fixtures/rust-verdict-corpus/spec-coverage.toml
  • fixtures/typescript-verdict-corpus/spec-coverage.toml
  • policy/doc-artifacts.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

…#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
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 22, 2026 08:07

Copy link
Copy Markdown
Member Author

windows-advisory-subset (advisory) failed two Python harness tests, test_recovery_escapes_apostrophes_like_the_formatter and test_windows_recovery_matches_console_quotes_and_keeps_literal. Both assert the quoting of a ripr check --root ... --diff ... --json selector recovery command, which this PR does not touch (it adds check-findings-json and a shared artifact validator; the recovery formatter and its call sites are unchanged). I'm treating it as not caused by this PR and will check whether main shows the same failure; the required checks are still running.


Generated by Claude Code

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Devin Review

Comment thread crates/ripr/src/agent/artifact.rs Resolved
Comment thread crates/ripr/src/agent/artifact.rs Resolved
Comment thread crates/ripr/src/output/format.rs Resolved
…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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • crates/ripr/src/agent/artifact.rs:1076 — check_findings_gaps silently skips findings whose gap_id() returns None (non-TS id without canonical_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_id already 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.

Copy link
Copy Markdown
Member Author

Head 98165e4 addresses the failures on 2a9ba31:


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants