Skip to content

docs(agent): align pair-currentness claims with the enforced gates (#3061) - #3121

Merged
EffortlessSteven merged 2 commits into
mainfrom
docs/3061-pair-currentness-claim-accuracy
Aug 11, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
docs/3061-pair-currentness-claim-accuracy

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Claim-accuracy repair for #3061 (post-merge review findings on #3053). No change to pair_currentness_label semantics or any gate.

  • Spec asserts a gate that does not exist (major): RIPR-SPEC-0134 claimed a current-before/historical-after pair "fails the lineage gate". Production validate_pair_lineage (crates/ripr/src/agent/artifact.rs:460) rejects only reversed or unrelated ancestry; a before artifact at the live HEAD plus an after artifact bound to a strict descendant that is not the HEAD passes lineage, comparability, and movement. The spec and the pair_currentness_label_covers_the_closed_vocabulary comment now describe the gates as enforced: current is unreachable through CLI verify (movement gate), and current_before_historical_after requires the after artifact bound to a non-HEAD descendant of the live HEAD.
  • "Clean expected transaction" over-claim (minor): dropped "clean" from RIPR-SPEC-0134 and docs/OUTPUT_SCHEMA.md; the token states repository currentness only, and a dirty historical side collapses (ux(agent): production-time dirty state is collapsed away once an artifact becomes historical #3056).
  • Unreachable sample value (nit): the ripr agent verify JSON sample now shows historical_before_current_after instead of the CLI-unreachable current.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Spec: RIPR-SPEC-0134
Issue: #3061 (acceptance: prose matches enforced gates; no pair_currentness_label change)

Proof

  • cargo test -p ripr --lib pair_currentness_label — pass
  • cargo xtask check-spec-format, check-doc-index, check-output-contracts, check-static-language, check-traceability — pass

Non-goals

Candidate head: 1b79926

…3061)

RIPR-SPEC-0134 and the pair_currentness_label test comment claimed the
lineage gate rejects a current-before/historical-after pair; production
validate_pair_lineage only rejects reversed or unrelated ancestry, so the
descendant arrangement passes. Describe the gates as they actually enforce,
drop the 'clean' over-claim from the expected-transaction prose (a dirty
historical side collapses, #3056), and use a CLI-reachable
artifact_currentness value in the OUTPUT_SCHEMA sample. No change to
pair_currentness_label semantics.
@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 11, 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: 52 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: b392913f-d2a3-4fad-9475-d9ced57005f8

📥 Commits

Reviewing files that changed from the base of the PR and between 1b79926 and e267829.

📒 Files selected for processing (2)
  • crates/ripr/src/agent/artifact.rs
  • docs/specs/RIPR-SPEC-0134-repair-artifact-provenance.md

Summary by CodeRabbit

  • Documentation

    • Clarified artifact currentness labels for agent verify, including historical-before/current-after transactions.
    • Documented how mixed dirty states and historical artifacts are represented.
    • Explained lineage requirements for valid before/after artifact pairs.
  • Tests

    • Updated test commentary to clarify valid and rejected artifact ancestry relationships.

Walkthrough

The change clarifies artifact pair-currentness semantics, lineage constraints, and output-schema wording. It also updates a source comment to match the documented rules.

Changes

Artifact currentness

Layer / File(s) Summary
Define pair-currentness rules
docs/specs/RIPR-SPEC-0134-repair-artifact-provenance.md
Documents dirty-state labels, historical-side handling, unreachable states, and lineage requirements.
Align currentness documentation
docs/OUTPUT_SCHEMA.md, crates/ripr/src/agent/artifact.rs
Updates the output example, field contract, and source comment for historical-before/current-after transactions.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Poem

A rabbit checks the currentness chart,
Historical paws stay set apart.
Descendant paths now clearly show
Which paired states may safely flow.
The schema hops in tune—
And comments thump a steady tune.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the change and proof, but it omits most required template sections, including scope, claim boundary, rollback, traceability, and engineering checks. Complete the required template sections and record applicable checks as completed, not applicable, or skipped with reasons.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies a documentation change that aligns pair-currentness claims with enforced gates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ 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 docs/3061-pair-currentness-claim-accuracy

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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@crates/ripr/src/agent/artifact.rs`:
- Around line 1255-1257: Update the explanatory comment near the lineage gate to
explicitly state that the after head must descend from the live HEAD and must
not be the live HEAD itself, replacing the ambiguous wording while preserving
the surrounding ancestry explanation.

In `@docs/specs/RIPR-SPEC-0134-repair-artifact-provenance.md`:
- Around line 88-92: The `current_before_historical_after` documentation
incorrectly presents artifacts from another clone as reachable. Remove the
“another clone” example from the reachability description, while retaining the
supported same-root descendant-branch example; do not change the lineage-gate
behavior.
- Around line 80-85: Remove the “clean” qualifier from the description of the
expected before/after transaction associated with
historical_before_current_after, while preserving the token and its currentness
semantics.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b8f98c2f-d365-4a6f-b9b1-72e4a7273d80

📥 Commits

Reviewing files that changed from the base of the PR and between 14ba3a4 and 1b79926.

📒 Files selected for processing (3)
  • crates/ripr/src/agent/artifact.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0134-repair-artifact-provenance.md

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

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Member Author

Release disposition: POST_W3 / OUT_OF_0.11.0. The protected 0.11.0 candidate is 14ba3a45c633a5dba19c4b3e4acd4add98ff80a8; this documentation/claim-alignment PR opened after that boundary and does not enter or delay 0.11.0. Keep it unmerged while the release hold is active unless exact-W3 qualification demonstrates a release-blocking contradiction that requires a deliberate W4 ruling. This comment does not authorize repinning, J, metadata, or publication.

@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 record (review-pr), refreshed after repair:

reviewed_head_sha: e267829 (post-repair head; prior head 1b79926 reviewed before the three coderabbit findings)
integration_basis: origin/main (docs+comment diff; no production logic)
claim_boundary: claim-accuracy repair for #3061 — spec/OUTPUT_SCHEMA/test-comment prose must describe only the gates production enforces; no pair_currentness_label semantic change
changed_surfaces_and_semantic_owners_inspected: docs/specs/RIPR-SPEC-0134 (pair-currentness contract prose), docs/OUTPUT_SCHEMA.md (verify JSON sample + field prose), crates/ripr/src/agent/artifact.rs (test comment only)
blocking_findings: none
non_blocking_suggestions: none outstanding
refuted_or_stale_findings: none — all three review findings (ambiguous reachability wording; remaining "clean" claim in Acceptance Examples; unsupported cross-clone example) were valid and are repaired in e267829; threads replied and resolved
proof_and_ci_observed: required check Ripr Rust Small Result PASS on e267829; rust-tests-junit, ub-review, source-of-truth pass; local gates check-spec-format, check-doc-index, check-output-contracts, check-static-language, check-traceability pass; cargo test -p ripr --lib pair_currentness_label pass
proof_or_review_missing: none material
affected_currentness_dimensions: public claim, candidate head identity (re-reviewed after head move)
residual_assumptions_and_non_claims: no new lineage gate added (issue non-goal #4 honored — prose-correction path); #3056 remains the owning issue for the dirty-state collapse itself
disposition: REVIEW_READY

@EffortlessSteven
EffortlessSteven merged commit f844469 into main Aug 11, 2026
36 checks passed
@EffortlessSteven
EffortlessSteven deleted the docs/3061-pair-currentness-claim-accuracy branch August 11, 2026 03:01
EffortlessSteven added a commit that referenced this pull request Aug 11, 2026
* Revert "test(perl): consume one production Perl→domain oracle mapping authority (#3034) (#3126)"

This reverts commit c8e3e18.

* Revert "docs(agent): align pair-currentness claims with the enforced gates (#3061) (#3121)"

This reverts commit f844469.

* Revert "test(doctor): retry the transient probe class in the selected-root test (#3073) (#3122)"

This reverts commit c425119.

* Revert "test(lsp): retain listActionableItems branch/capability mutation receipt (#3032) (#3133)"

This reverts commit d9d4630.

* Revert "fix(analysis): retract unused SeamKind ↔ ProbeFamily crosswalk (#3039) (#3130)"

This reverts commit b8e9d55.

* Revert "test(perl): consume one production Perl→domain oracle authority (#3126)"

* Revert "docs(agent): align pair-currentness claims with the enforced gates (#3121)"

* Revert "test(doctor): retry the transient probe class in the selected-root test (#3122)"
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.

1 participant