Skip to content

feat(goals): capture individual reviewed issue snapshots for authority audit - #1830

Closed
EffortlessSteven wants to merge 4 commits into
mainfrom
feat/goals-individual-issue-snapshots-1716
Closed

EffortlessSteven wants to merge 4 commits into
mainfrom
feat/goals-individual-issue-snapshots-1716

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Replaces range aggregates in issue-contracts.json with individual reviewed snapshots for issues #1631-#1639, #1643-#1650, #1692, #1697, and #1701.

Each snapshot includes captured_body_hash and captured_updated_at (derived from live GitHub issues metadata). The audit validator checks for these fields and joins them into the semantic digest to ensure deterministic freshness.

Resolves the issue_snapshots_not_proven framework blocker.

Changes

  • ixtures/active-goal-authority-audit/issue-contracts.json: Replace range entries with individual issue snapshots containing body hash and updated_at
  • xtask/src/active_goal_authority.rs:
    • Add captured_body_hash and captured_updated_at to Rule struct and parse them
    • Include hashes/timestamps in semantic_text to pin them to the semantic_digest
    • Output new fields in
      ender_json
    • Remove issue_snapshots_not_proven blocker from ramework_blockers
  • Update unit test fixtures (hidden-singleton, historical-reference, duplicate-issues) with mock hashes to preserve verification

Closes #1716

…y audit

Replaces the issue range aggregates (#1631-#1639, #1643-#1650) in
issue-contracts.json with individual reviewed issue snapshots for
#1631-#1639, #1643-#1650, #1692, #1697, and #1701.

Each individual snapshot now binds:
- issue identity
- captured updatedAt timestamp
- captured body SHA-256 hash

The active-goal authority audit tool (xtask/src/active_goal_authority.rs)
now parses and validates these captured hashes and timestamps, incorporating
them into the audit's semantic digest to ensure deterministic freshness.
Fixture contract schemas have also been updated to preserve validation.

Resolves the issue_snapshots_not_proven framework blocker.

Closes #1716
@coderabbitai

coderabbitai Bot commented Jul 18, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 1 minute

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).

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: a604c6db-d9c7-4d64-bd44-b6a4c4014a8f

📥 Commits

Reviewing files that changed from the base of the PR and between 442fdac and ca0a48f.

📒 Files selected for processing (6)
  • docs/specs/RIPR-SPEC-0128-active-goal-authority-audit.md
  • fixtures/active-goal-authority-audit/duplicate-issues/fixtures/active-goal-authority-audit/issue-contracts.json
  • fixtures/active-goal-authority-audit/hidden-singleton/fixtures/active-goal-authority-audit/issue-contracts.json
  • fixtures/active-goal-authority-audit/historical-reference/fixtures/active-goal-authority-audit/issue-contracts.json
  • fixtures/active-goal-authority-audit/issue-contracts.json
  • xtask/src/active_goal_authority.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/goals-individual-issue-snapshots-1716

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

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

Code Review

This pull request replaces range-based issue aggregates with individual issue contracts in the active goal authority audit and introduces captured_body_hash and captured_updated_at fields to the contract schema. The audit tool in xtask/src/active_goal_authority.rs and mock fixtures have been updated to support these new fields, and the issue_snapshots_not_proven framework blocker has been removed. No review comments were provided, so there is no feedback to address.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@codecov

codecov Bot commented Jul 18, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.60000% with 26 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
xtask/src/active_goal_authority.rs 89.60% 26 Missing ⚠️

📢 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: 6b53bd54f0

ℹ️ 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 xtask/src/active_goal_authority.rs Resolved

Copy link
Copy Markdown
Member Author

Integration status — 2026-07-18

This PR should be treated as the second item in the goals-authority stack, not as a standalone merge.

Why:

  • audit(goals): bind consumers to exact occurrences #1838 identifies issue_snapshots_not_proven as the remaining audit blocker.
  • This PR supplies the individual reviewed snapshots and changes the same audit implementation and fixture family.
  • The current head is mergeable, but its required Ripr Rust Small Result is red; a mergeable Git graph is not sufficient proof.

Next action:

  1. Finish and land audit(goals): bind consumers to exact occurrences #1838 first.
  2. Rebase/stack this branch onto the final audit(goals): bind consumers to exact occurrences #1838 result, resolving overlapping active_goal_authority and fixture changes as one semantic audit.
  3. Regenerate the exact audit artifacts and verify that the required canonical issue set, hashes, timestamps, and semantic digest remain deterministic and fail closed.
  4. Run the required exact-head gate, then land before refactor(goals): retire singleton execution authority #1708.

Claim boundary: this PR can remove the individual-snapshot framework blocker after integration, but it does not by itself complete the singleton-authority migration or generate the live portfolio required by #1692.

Copy link
Copy Markdown
Member Author

Stack position — restack after #1838

This PR is the second goals-authority convergence step, not an independent merge candidate:

merged #1838 exact occurrence framework
  → #1830 individual issue captures
  → #1708 authority migration

Before merge:

  • restack on the exact audit(goals): bind consumers to exact occurrences #1838 merge SHA and current main;
  • refresh captured body hashes and updated_at identities for any reviewed issue changed since the original capture;
  • require exactly the governed issue set; reject ranges, duplicates, unexpected identities, missing rows, malformed hashes, and malformed timestamps;
  • keep report generation offline over captured inputs;
  • prove the semantic digest is deterministic across equivalent roots/orderings;
  • run exact-head required CI.

After merge, close #1716 with the exact capture/digest proof and make #1708 the only active writer on the migration surface. Tracked in #1862.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Pausing this PR — superseded by the migration reframe (2026-07-20).

The reframe rejects checked-in snapshots of live GitHub state as execution evidence: "Do not let this migration produce a checked-in copy of live GitHub issue state; body hashes and timestamps as normal execution authority." Capturing per-issue body hashes / updated_at into issue-contracts.json is exactly that pattern, so this PR's core deliverable is no longer wanted.

Live issue state stays live in GitHub; the migration PR sequence starts with an authority-removal PR tracked in #1701. Closing.

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.

audit(goals): capture individual authority issue snapshots

1 participant