Skip to content

fix(agent): label mixed artifact-pair currentness truthfully (#3027) - #3053

Merged
EffortlessSteven merged 3 commits into
mainfrom
codex/issue3027-pair-currentness
Aug 8, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
codex/issue3027-pair-currentness

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Production delta

The pair-level artifact_currentness in agent verify / agent receipt output mapped EVERY mixed pair — including the expected clean (Historical, Current) before/after transaction — to dirty_worktree, even when neither worktree was dirty. Replaced with a truthful closed vocabulary computed by one shared authority, agent::artifact::pair_currentness_label, called from both renderers so the receipt's fail-closed canonical byte comparison always recomputes the token verify emitted:

(Current, Current)       -> current
(Historical, Historical) -> historical_noncurrent
(Historical, Current)    -> historical_before_current_after
(Current, Historical)    -> current_before_historical_after
(DirtyWorktree, _)       -> dirty_before
(_, DirtyWorktree)       -> dirty_after
(DirtyWorktree, both)    -> dirty_both

dirty_worktree stays reserved for per-artifact evidence (verification_execution.rs mapping untouched). There is deliberately no unavailable token: per-artifact validation always classifies before pair rendering, so no production path can produce one (recorded in a comment, not emitted as invented vocabulary).

No validation-semantics change: comparability, lineage, movement, currentness classification, and the receipt byte comparison are exactly as before. Two cells (current, current_before_historical_after) are unreachable through the CLI (movement/lineage gates) and stay truthful in the shared mapping.

Evidence delta

  • agent::artifact::tests::pair_currentness_label_covers_the_closed_vocabulary — full 3x3 matrix.
  • cli_smoke::agent_verify_and_receipt_disclose_historical_before_current_after_pair — the ux(agent): mixed historical/current pair currentness is mislabeled dirty_worktree #3027 motivating case through real verify, then the verify JSON feeds agent receipt and is accepted (receipt agrees; canonical byte comparison passes with the new token).
  • cli_smoke::agent_verify_discloses_dirty_before_and_dirty_after_pairs — single-side dirty flips (recommitted) yield dirty_before / dirty_after.
  • Existing tests strengthened to exact /artifact_currentness JSON-pointer assertions: (Historical, Historical) -> historical_noncurrent, (Dirty, Dirty) -> dirty_both (real dirty worktree).
  • Golden fixtures/boundary_gap/expected/editor-agent-loop/agent-verify.json re-blessed dirty_worktree -> dirty_both — the fixture genuinely declares both sides dirty; verified the actual-vs-expected diff was exactly this one field.
  • Docs/spec/ADR/traceability updated (OUTPUT_SCHEMA closed 7-token list, RIPR-SPEC-0134 vocabulary + stale "Current bound pair" acceptance example corrected, ADR-0020 amendment note).

Acceptance criterion

Closes #3027.

Non-goals

  • no per-artifact token change; no validation-semantics change; no new producer fields;
  • no schema change (agent verify/receipt JSON has no checked-in schema; repair-assurance.schema.json currentness enums belong to the separate VerificationCurrentnessV1 axis and were verified unrelated).

Gates (run on head 0f71db9, merged with main 3f7c9e5)

cargo fmt --all -- --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test -p ripr --lib agent::artifact (39/39), cargo test -p ripr --test cli_smoke agent_ (43/43), cargo test -p xtask reports::release (89/89 — after one rerun past the known inherited ETXTBSY flake #3051), cargo xtask goldens check, cargo xtask precommit — all pass.

Test added 2 commits August 8, 2026 01:25
Resolve SPEC-0134 test-mapping and traceability conflicts as unions:
the #3049 portable input-identity gates (input:v2 strict shape) and the
#3027 truthful pair-currentness vocabulary both survive. cli_smoke
fixture helpers now emit input:v2 identities, so the #3027 pair tests
need no fixture edits.
@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 Aug 8, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@EffortlessSteven, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 54 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: a9bf5b17-ea2e-4252-a25e-b63185457420

📥 Commits

Reviewing files that changed from the base of the PR and between 0f71db9 and b1f98c5.

📒 Files selected for processing (6)
  • crates/ripr/src/app/agent_receipt.rs
  • crates/ripr/src/output/outcome/mod.rs
  • crates/ripr/tests/cli_smoke.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0134-repair-artifact-provenance.md
  • fixtures/boundary_gap/expected/editor-agent-loop/agent-verify.json

Summary by CodeRabbit

  • New Features

    • agent verify now reports detailed artifact currentness states, including historical, current, and dirty before/after combinations.
    • Clean historical-before/current-after artifact pairs are explicitly recognized.
  • Bug Fixes

    • Improved consistency of currentness labels across verification output and receipts.
    • Corrected reporting for independently dirty artifacts and artifacts from different repository states.
  • Documentation

    • Updated output schema, specifications, and architectural guidance to describe the expanded currentness vocabulary.

Walkthrough

The change adds a shared classifier for all artifact currentness pairs. Agent verification and receipts use it. Tests, schemas, specifications, ADRs, traceability, and fixtures now cover the expanded labels.

Changes

Artifact currentness reporting

Layer / File(s) Summary
Shared pair classifier
crates/ripr/src/agent/artifact.rs, .ripr/traceability.toml
Defines the closed pair-currentness vocabulary and tests all nine ArtifactCurrentness combinations.
CLI and receipt integration
crates/ripr/src/cli/commands/agent.rs, crates/ripr/src/app/agent_receipt.rs, crates/ripr/tests/cli_smoke.rs, .ripr/traceability.toml
Uses the shared classifier for verification and receipt output. Smoke tests cover historical, current, dirty_before, dirty_after, and dirty_both pairs.
Output contracts and fixtures
docs/OUTPUT_SCHEMA.md, docs/adr/0020-..., docs/specs/..., fixtures/boundary_gap/...
Documents the expanded labels and updates the boundary-gap expectation to dirty_both.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

Suggested labels: enhancement

Poem

A rabbit maps each pair with care,
Historical, current, dirty there.
Before and after names align,
Receipts now report the sign.
Nine small paths hop into view. 🐇

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the implementation and evidence, but it omits most required template sections and checklist details. Complete the required template sections, including scope, source links, proof commands, rollback, traceability, engineering checks, and CI economics.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the main change: truthful labeling for mixed artifact-pair currentness.
Linked Issues check ✅ Passed The changes directly address #3027 by correcting mixed-pair labels, preserving validation semantics, and reserving dirty_worktree for actual dirty artifacts.
Out of Scope Changes check ✅ Passed The code, tests, fixture, traceability, and documentation changes support the #3027 output-labeling correction and show no unrelated scope.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/issue3027-pair-currentness

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@codecov

codecov Bot commented Aug 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0f71db98c3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/ripr/src/agent/artifact.rs Resolved
Comment thread crates/ripr/src/agent/artifact.rs Resolved

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Exact-head review — REVIEW_READY

reviewed_head_sha: b1f98c5c (branch codex/issue3027-pair-currentness,
  merge with main 3f7c9e53 + schema-0.3 repair)
integration_basis: origin/main 0cb57eaa (behind-only; three-dot diff is the
  9-file #3027 delta + 6-file schema-bump delta, no conflicts)
claim_boundary: truthful closed pair-currentness vocabulary (#3027);
  output-vocabulary change only, no validation-semantics change
changed_surfaces_and_semantic_owners_inspected:
  - shared authority: agent::artifact::pair_currentness_label (single source
    for verify + receipt; receipt's canonical byte comparison agrees by
    construction)
  - call sites: cli/commands/agent.rs, app/agent_receipt.rs (fallthrough
    deleted at both)
  - per-artifact mapping in verification_execution.rs untouched (truthful
    dirty_worktree reservation verified)
  - schema family: AGENT_VERIFY_SCHEMA_VERSION 0.2 -> 0.3 with fail-closed
    0.2 rejection at the receipt gate, no migration path
  - docs/spec/ADR/golden parity: OUTPUT_SCHEMA family table + closed token
    list, RIPR-SPEC-0134, ADR-0020 amendment, editor-agent-loop golden
    re-blessed (two one-field diffs: dirty_both, schema 0.3 — both verified
    against actual renderer output)
blocking_findings: none
non_blocking_suggestions: none outstanding
refuted_or_stale_findings:
  - codex P1 "preserve dirty state on historical artifacts": rejected with
    counter-evidence — pre-existing classification collapse (85065f56),
    token truthfully reports repository currentness, production-dirt stays
    digest-bound in the envelope; axis split filed as design_question #3056.
    Reply-backed, resolved.
  - codex P1 "bump the verify schema": valid — repaired in b1f98c5c,
    reply with commit+proof, resolved.
proof_and_ci_observed:
  - required check Ripr Rust Small Result: pass on b1f98c5c; mergeStateStatus
    CLEAN
  - advisory: rust-tests-junit, rust-coverage, source-of-truth, ub-review,
    codecov/patch, cargo-deny, dependency-review, pr-plan — pass
  - CodeRabbit rate-limited again: recorded as missing review, not clean
  - local gates re-run by reviewer on b1f98c5c: fmt, agent::artifact 39/39,
    cli_smoke agent_ 43/43, goldens check — pass; clippy/xtask suites green
    per candidate verification (inherited ETXTBSY flake #3051 noted twice,
    passes on rerun, not caused by this diff)
proof_or_review_missing: CodeRabbit quota-limited (non-substantive); no
  human-authored review thread on this PR
affected_currentness_dimensions: production implementation, test stimulus,
  test oracle, public claim, integration basis, candidate head identity —
  refreshed at b1f98c5c after the schema-bump repair
residual_assumptions_and_non_claims:
  - two vocabulary cells (current, current_before_historical_after) are
    unreachable through the CLI (movement/lineage gates) and stay truthful
    in the shared mapping only
  - 0.2 verify documents are rejected, not migrated
  - review threads: 2/2 resolved with reply-backed adjudication
disposition: REVIEW_READY

COMMENT review per the author-review convention; GitHub's author limitation is not approval. Arming normal auto-merge.

@EffortlessSteven
EffortlessSteven merged commit b3ac8e1 into main Aug 8, 2026
26 checks passed
@EffortlessSteven
EffortlessSteven deleted the codex/issue3027-pair-currentness branch August 8, 2026 08:51
@EffortlessSteven

Copy link
Copy Markdown
Member Author

Exact-head review record

Disposition: CHANGES_NEEDED

Findings

[MAJOR] docs/specs/RIPR-SPEC-0134-repair-artifact-provenance.md

The spec (and the mirroring unit-test comment) states that a current-before/historical-after pair "fails the lineage gate" and is unreachable, but no gate in the production path rejects that pair; the claim asserts enforcement that does not exist.

Evidence

Added spec text: "A fully current pair fails the movement gate and a current-before/historical-after pair fails the lineage gate, so current and current_before_historical_after close the vocabulary without being reachable verify outcomes today." The movement half is true (validate_verify_movement, artifact.rs L494-502, rejects same-head Current/Current). The lineage half is not: validate_pair_lineage (artifact.rs L460-481) returns Ok(()) whenever git_merge_base_is_ancestor(root, before.head, after.head). A before artifact bound to the live clean HEAD (=> Current, artifact.rs L325-330) and an after artifact bound to a strict descendant commit that still exists in the repository (=> Historical, since actual_head != identity.repository.head) satisfies lineage (before is an ancestor of after), satisfies validate_comparable_pair (distinct heads => distinct snapshot identities, L441-449), and passes the movement gate (heads differ). That reaches (Current, Historical) -> "current_before_historical_after". Same wording is duplicated in crates/ripr/src/agent/artifact.rs test comment L1250-1253 ("a current-before/historical-after pair fails the lineage gate").

[MINOR] crates/ripr/src/output/outcome/mod.rs

The PR body's Non-goals still claim "no schema change" and its Gates section cites head 0f71db9, but the exact head b1f98c5 bumps AGENT_VERIFY_SCHEMA_VERSION 0.2 -> 0.3; the squash-merge description would therefore assert the opposite of what the head does, and no gate evidence is quoted for the head that made the change.

Evidence

Head b1f98c5 ("fix(agent): bump agent verify schema to 0.3 ...") changes crates/ripr/src/output/outcome/mod.rs L37 to pub(crate) const AGENT_VERIFY_SCHEMA_VERSION: &str = "0.3";. PR body Non-goals still reads: "no schema change (agent verify/receipt JSON has no checked-in schema; ...)", and "## Gates (run on head 0f71db9, merged with main 3f7c9e5)". 0f71db9 is the merge commit that precedes b1f98c5 in git log pr3053. (Exact-head CI is independently green — see rationale — so this is a stale public-claim defect, not missing proof.)

[MINOR] docs/OUTPUT_SCHEMA.md

New prose calls historical_before_current_after "the clean expected transaction", a cleanliness claim the classification cannot support: a before artifact produced from a dirty worktree at a since-superseded revision is collapsed to Historical and yields the same token.

Evidence

Added text at L6389-6394: "A dirty side names the side (dirty_before, dirty_after, or dirty_both); the clean expected transaction is historical_before_current_after." (RIPR-SPEC-0134 L508-513 repeats it.) But artifact.rs L325-333 classifies actual_head != identity.repository.head as Historical unconditionally, discarding identity.analysis.worktree == "dirty". This is the Codex P1 thread on artifact.rs:378; the author correctly rejected it as a pre-existing classification defect and filed #3056, but the prose asserting cleanliness is new in this PR and is the part that over-claims. The token itself ("each side's repository currentness") is truthful; wording it as "clean" is not.

[NIT] docs/OUTPUT_SCHEMA.md

The agent verify JSON shape example still shows "artifact_currentness": "current", a value the same PR's spec now declares unreachable through the CLI.

Evidence

docs/OUTPUT_SCHEMA.md L6308 (inside the ripr agent verify JSON shape block whose schema_version was updated to 0.3 at L6298) reads "artifact_currentness": "current", while RIPR-SPEC-0134 now says current is not a reachable verify outcome today (a fully current pair is rejected by validate_verify_movement). Pre-existing sample value, but it now contradicts the vocabulary text added in this PR.

Synthesis

reviewed_head_sha: b1f98c5 (confirmed live via gh pr view; branch codex/issue3027-pair-currentness, base main, mergeable). Integration basis: 0f71db9 merges origin/main 3f7c9e5, which is current main.

Production change is correct and well-owned. pair_currentness_label (crates/ripr/src/agent/artifact.rs L367-386) is a single exhaustive match over the closed 3x3 ArtifactCurrentness product with no wildcard on the first four arms, and both renderers — cli/commands/agent.rs L210 and app/agent_receipt.rs L90 — call it. That shared-authority placement is load-bearing: the receipt's fail-closed byte comparison (agent_receipt.rs L109-125) re-renders canonical verify JSON and compares supplied != canonical_body, so any divergence between the two mappings would have turned every mixed pair into a [not_canonical] refusal. Calling one function removes that class of drift rather than duplicating the fix. dirty_worktree remains reserved for per-artifact evidence in verification_execution.rs L676-680, untouched, as claimed. No validation semantics moved: validate_comparable_pair, validate_pair_lineage, validate_verify_movement are byte-identical to main.

Oracle grip is real, not incidental. Mutation challenge: reverting the production hunk restores _ => "dirty_worktree", which makes agent_verify_and_receipt_disclose_historical_before_current_after_pair and both arms of agent_verify_discloses_dirty_before_and_dirty_after_pairs fail on exact /artifact_currentness JSON-pointer equality, and flips the re-blessed golden. The two strengthened existing tests were upgraded from stdout.contains(...) (which a substring of a longer token could satisfy) to exact pointer equality — a genuine oracle improvement, not just churn. Stimulus construction is asserted rather than assumed: the dirty test carries assert_ne!(declared_dirty, read_to_string(dirty_path)) proving the clean->dirty flip actually landed before the run, and recommit_repo_exposure_json recomputes the content commitment so the artifact still passes provenance validation. I checked that the flipped artifact stays comparable: snapshot_identity is input_identity;revision:<head> and does not include worktree state, so the same-head pair still satisfies validate_comparable_pair L447-449, and the single-dirty pair legitimately clears the movement gate (which only rejects Current/Current). The new historical/current test asserts the retained production path end to end — real agent verify, then its stdout fed to real agent receipt, which succeeds only if the receipt recomputes the identical new token.

Golden re-bless verified as truthful, not convenient. editor_agent_loop_fixture_outputs_match_expected (cli_smoke.rs L2037-2050) binds both snapshots with bind_repo_exposure_fixture_with_worktree(..., "dirty"), so dirty_both is the correct label for that fixture. I confirmed the normalizers do not hide the change: normalize_agent_verify_fixture (L438-458) only masks inputs.before/after_content_sha256, leaving artifact_currentness and schema_version compared exactly. I also checked whether the sibling agent-receipt.json golden needed updating alongside (the analogous #2922 commit 85065f5 changed both): it does not, because normalize_agent_receipt_fixture L474-484 masks provenance.verify_artifact.sha256, and I confirmed the recorded digest matches neither the old nor new golden bytes (sha256 of the file is eae0ead6..., main's was 826baf28..., recorded value is 2358acd3...) — it hashes the live runtime verify output, so no stale-hash defect exists.

Schema bump is sound and complete. AGENT_VERIFY_SCHEMA_VERSION is read in exactly two places — render_json.rs L62 (sole emitter) and agent_receipt.rs L26 (fail-closed consumer) — so 0.3 propagates atomically and 0.2 documents now fail with [unsupported_schema]; the test adds "0.2" to the rejection loop with a preserved positive control, which is the right negative experiment for a no-migration boundary. I swept for stale 0.2 references: none remain in crates, xtask, fixtures, or docs for this family (the only surviving hit is an explanatory comment). I confirmed the repair-assurance.schema.json currentness enums (L65, L299) are a different axis fed by verification_execution.rs / the assurance corpus, never by pair_currentness_label, so leaving them is correct. No VS Code extension code parses agent verify schema_version or artifact_currentness (checked editors/vscode/src/client.ts and firstPrProjection.ts), so there is no editor consumer to break. Platform lane: nothing in this diff is platform-conditional.

Exact-head CI receipts are real, not aggregate-only. All checks pass at b1f98c5; I verified run head SHAs individually (Routed Rust Small 31248644113, Test Analytics 31248644126, Coverage 31248644127, Source of Truth 31248644078 — all b1f98c5). Rather than trust the green roll-up, I pulled job 93081313527 logs and confirmed the three new tests actually executed at that head: pair_currentness_label_covers_the_closed_vocabulary PASS (17/5811), agent_verify_and_receipt_disclose_historical_before_current_after_pair PASS (4174/5811), agent_verify_discloses_dirty_before_and_dirty_after_pairs PASS (4178/5811), plus editor_agent_loop_fixture_outputs_match_expected PASS (4270/5811); cargo xtask precommit and cargo xtask goldens check both ran in that job. Denominator is honest — no zero-subject gate.

Review-evidence gaps, stated rather than papered over: CodeRabbit reports "Review rate limited" and is surfaced as pass — that is missing reviewer output, not a clean review. Both Codex P1 threads were filed at 07:07 against the pre-b1f98c5c head, so the schema-bump commit itself has received no automated review; this review pass covers it. Codex P1 #2 (schema bump) is genuinely repaired in b1f98c5. Codex P1 #1 (dirty state collapsed on historical artifacts) is correctly refuted as pre-existing — I confirmed the collapse lives in artifact.rs L325-333, unchanged by this PR — and follow-up #3056 is open; only the new "clean expected transaction" prose inherits that over-claim (finding 3).

Disposition CHANGES_NEEDED, and I want to be precise about why, because it is not a correctness objection. I found no blocking source, oracle, contract, or platform defect; the runtime behavior, tests, goldens, and schema handling are all sound and I would not hold the code. What I am holding is the committed claim layer. Finding 1 is the one I would not wave through: RIPR-SPEC-0134 is a governing spec, and it now asserts that the lineage gate rejects a pair that the lineage gate demonstrably admits. This repo treats "a gate whose stated contract exceeds its real enforcement" as a false-confidence surface on purpose, and the same sentence is duplicated into a test comment, so it will be read as verified fact by the next person reasoning about reachability. The cost to fix is one sentence in two files; the cost of merging it is a spec that lies about enforcement. Finding 2 matters because the PR body becomes the squash-merge message, and it currently denies the schema change that is the head commit's entire subject — a reader auditing the 0.2->0.3 break later would find the merge record contradicting the code. Findings 3 and 4 are the same family, smaller. All four are documentation/public-claim edits repairable in this candidate without touching production code or re-running the full gate set, after which only the affected currentness dimensions (public claim, spec) need refreshing — production implementation, test stimulus, test oracle, generated relationships, and integration basis all remain current and would not need re-proof.

Surfaces inspected

  • F:/code/Rust3/ripr-swarm/crates/ripr/src/agent/artifact.rs (pair_currentness_label, validate_repo_exposure_artifact currentness classification L325-333, validate_comparable_pair, validate_pair_lineage, validate_verify_movement, unit test pair_currentness_label_covers_the_closed_vocabulary)
  • F:/code/Rust3/ripr-swarm/crates/ripr/src/app/agent_receipt.rs (validate_agent_receipt_verify_json: schema gate L23-35, shared label call L90-93, canonical byte comparison L109-125, unit test 0.2 rejection)
  • F:/code/Rust3/ripr-swarm/crates/ripr/src/cli/commands/agent.rs (render_agent_verify L207-229)
  • F:/code/Rust3/ripr-swarm/crates/ripr/src/output/outcome/mod.rs (AGENT_VERIFY_SCHEMA_VERSION = 0.3) and render_json.rs (sole emitter)
  • F:/code/Rust3/ripr-swarm/crates/ripr/src/app/verification_execution.rs L668-682 (per-artifact dirty_worktree mapping, deliberately untouched)
  • F:/code/Rust3/ripr-swarm/crates/ripr/tests/cli_smoke.rs (new tests L2936-3060, strengthened L2878-2932, schema fail-closed L3860-3900, helpers write_bound_repo_exposure_fixture/advance_fixture_head/recommit_repo_exposure_json/normalize_agent_verify_fixture/normalize_agent_receipt_fixture, editor_agent_loop_fixture_outputs_match_expected L2033-2110)
  • F:/code/Rust3/ripr-swarm/fixtures/boundary_gap/expected/editor-agent-loop/agent-verify.json and agent-receipt.json
  • F:/code/Rust3/ripr-swarm/docs/OUTPUT_SCHEMA.md (version table L44-50, agent verify shape L6296-6395)
  • F:/code/Rust3/ripr-swarm/docs/specs/RIPR-SPEC-0134-repair-artifact-provenance.md
  • F:/code/Rust3/ripr-swarm/docs/adr/0020-repair-artifacts-carry-producer-identity.md
  • F:/code/Rust3/ripr-swarm/.ripr/traceability.toml
  • F:/code/Rust3/ripr-swarm/schemas/ripr/repair-assurance.schema.json (separate VerificationCurrentnessV1 enum, confirmed unrelated)
  • F:/code/Rust3/ripr-swarm/editors/vscode/src/client.ts and firstPrProjection.ts (no consumer parses agent verify schema_version or artifact_currentness)
  • F:/code/Rust3/ripr-swarm/xtask/src/reports/operator.rs and xtask/src/reports/fixtures.rs (golden consumption/blessing rules)
  • GitHub: gh pr view 3053, gh pr diff 3053, pulls/3053/comments (2 Codex P1 threads + author replies), gh pr checks 3053, run 31248644113 job 93081313527 logs at b1f98c5

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Recorded post-merge: the review above landed after this PR merged as b3ac8e1c. The production change stands — pair_currentness_label as a single exhaustive match shared by both renderers is the right placement, and the oracle discriminates. The documentation and spec claim-accuracy findings are carried forward in #3061 rather than left on a closed PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ux(agent): mixed historical/current pair currentness is mislabeled dirty_worktree

1 participant