Skip to content

refactor(rust): extract existing registry receipts (#10868) - #10869

Merged
EffortlessSteven merged 1 commit into
mainfrom
refactor/10868-registry-receipts
Oct 27, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
refactor/10868-registry-receipts

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Extract the existing serde_json registry receipt reader into an internal module, preserving its implementation and callers. This isolates an existing architectural seam before #10846 adds another provider profile. The feature's required qualification stopped at the ordinary 3,000-line admission limit; landing this independent refactor preserves its full behavior and acceptance tests while reducing its remaining diff.

Closes #10868.

Swarm / Source Boundary

  • ordinary analyzer development for EffortlessMetrics/ripr-swarm

Source-of-truth Links

Proposal: #10868
Spec: docs/specs/RIPR-SPEC-0197-owner-return-pins.md
ADR: Existing internal analysis ownership; no new architecture decision or package boundary.
Plan item: #6643 through #10839; preparatory extraction for #10846.
Governing issue or accepted claim: #10868
Acceptance delta (one sentence): Move the existing registry receipt implementation while preserving every provider, refusal, currentness, caller, and output contract.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): refactor/10868-registry-receipts
Stack parent or prerequisite PR (if any): None; this independent extraction is a prerequisite for resuming #10846.
Proposed replacement of PR (if any; not yet accepted): None.
Acceptance retained from a replaced candidate (if any): No candidate is replaced; #10846 retains its complete property implementation and regression acceptance.
Accepted winner and losing candidate disposition (when decided): One extraction candidate; no competing extraction owner was found in the issue's all-state search.

Scope

One architectural seam: move the existing 240-line JSON registry receipt section from assertion_dependency.rs into assertion_dependency/registry.rs, add internal reexports, and retain parent-test access to json_manifest_digests through pub(super) visibility. The moved implementation, existing test module, shared configuration/environment/metadata reader, callers, fixture inputs, provider version and checksum remain identical.

Support changes are .ripr/traceability.d/10868-registry-receipts.toml and changelog.d/10868-registry-receipts.md. The changelog follows the canonical section marker, bullet, and trailing issue-reference format under Internal / CI.

No dependency, process-launch, workflow, admission cap, generated-path, public API, schema, cache generation, or property behavior change is included.

Proof and currentness

Base: fe57f0af80b9b771218d7611e25ef25ef9814483. The original extraction is bd8ebf9864f9e755ca968eb615db56d430d1e550; current main's source owner is byte-identical to that extraction's parent.

Reviewed local candidate: 09ea532ca8ba8d567be56e60f09abdbef4981930, tree fd3d69129e4ff3e790a159da203d6d6a0f5525d0; four files, 261 additions and 241 deletions. A Git-data publication may have a different commit identity; its tree must match this reviewed tree.

The retained inverse-move check compares the exact moved implementation, all unaffected source bytes, the complete original test module, and unchanged consumers and fixtures. It reconstructs the original source file byte for byte after removing only module wiring and normalizing the required test-helper visibility.

The exact base passed ten native source checks, including worktree doctor. The committed candidate passed nine: Git whitespace, direct Rust 1.95 rustfmt, and the spec-format, traceability, doc-index, changelog-fragments, workspace-shape, dependencies, and process-policy checks. All seven candidate reports say pass. The source-policy instrument is retained xtask from a7435d8b0bdb0ccae3d0b1a27aaba980e794bd10, SHA-256 72bdb390d3705c0d5d9bba5d059afd41121d32ac30eac30c2e7378d756a9f038; exact owner/dispatch/helper comparisons establish applicability only for these source checks.

Retained receipt SHA-256 values:

  • Baseline: 4955310232424ee4c02d6ecacf1cdf2e18e2f048fe24d4ab0b8a4442f25aab19.
  • Candidate: eaacd224a3b4a21e03f1e7c105ef23339f5b0bd9025b903c5dbf36cba8108dfb.
  • Inverse move: d7f4f134d7f5e0cae6162e23ecb7d022e5cecf336bba08c237bda5aca920ec14.
  • Instrument applicability: eae13c9a3c6bd27ed53d278fc5b34d1ad8adf2edff9531f59c40177c8fd4251a.

Local compilation, check-fast, Clippy, tests, product execution, and full CI remain unestablished under the root-owned storage/build hold. Required hosted and Rust-only qualification are still needed on the published head.

Existing semantic controls include JSON literal and binding refusals, namespace collisions, configuration/lock/dependency revocation, member-manifest snapshots, and the native correct/wrong callback fixture. No acceptance test is removed or rewritten.

Claim Boundary

Acceptance establishes a behavior-preserving internal decomposition. Proptest recognition, typed evidence, configured-fact handling, cache behavior, and the broader property-support claim remain with #10839 and #10846.

Rollback

Revert the extraction commit before dependent provider work lands. After dependent work lands, coordinate the reverse move with its reader changes; do not remove the module underneath its callers.

Spec-Test-Code Traceability

  • Spec: RIPR-SPEC-0197.
  • Tests: Existing assertion_dependency::tests::json_member_snapshots_revoke_changed_or_missing_manifests, owner_pin::tests::json_construction, and owner_pin_execution::literal_json_constructor_matches_real_callback_and_runtime_controls.
  • Code: analysis/workspace/assertion_dependency.rs and its registry.rs child.
  • Golden outputs and metrics: Unchanged.

CI Economics

No CI behavior, limits, workflow, labels, protection, or artifact policy changes. Use the existing required and Rust-only lanes; the prerequisite separates a pure move from the property feature's semantic review.

Exact published source and source evidence

Published head: 80c23d2458ef0104b3909f2c163da0de762b8e8a; tree fd3d69129e4ff3e790a159da203d6d6a0f5525d0, exactly equivalent to independently reviewed local commit 09ea532ca8ba8d567be56e60f09abdbef4981930. Four files, +261/-241.

Candidate source receipt SHA256: eaacd224a3b4a21e03f1e7c105ef23339f5b0bd9025b903c5dbf36cba8108dfb. Root and independent review verified all27 referenced command streams, reports, driver and instrument. Nine native source-check exits are zero; seven retained reports state pass. Baseline receipt: 4955310232424ee4c02d6ecacf1cdf2e18e2f048fe24d4ab0b8a4442f25aab19. Inverse-move receipt: d7f4f134d7f5e0cae6162e23ecb7d022e5cecf336bba08c237bda5aca920ec14.

Source-policy instrument: retained xtask SHA256 72bdb390d3705c0d5d9bba5d059afd41121d32ac30eac30c2e7378d756a9f038, producer a7435d8b0bdb0ccae3d0b1a27aaba980e794bd10; scoped applicability companion eae13c9a3c6bd27ed53d278fc5b34d1ad8adf2edff9531f59c40177c8fd4251a. This establishes the named source-policy checks, not current product compilation or runtime qualification. Hosted required and Rust-only results remain pending.

@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 27, 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 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 163 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: cae9fe1f-b178-4615-81de-af74e1567749
Commits

Reviewing files that changed from the base of the PR and between 450c54a and 80c23d2.

Files selected for processing: 4
  • .ripr/traceability.d/10868-registry-receipts.toml
  • changelog.d/10868-registry-receipts.md
  • crates/ripr/src/analysis/workspace/assertion_dependency.rs
  • crates/ripr/src/analysis/workspace/assertion_dependency/registry.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

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

Source review: qualified for hosted checks; REVIEW_INCOMPLETE for merge

Reviewed exact head 80c23d2458ef0104b3909f2c163da0de762b8e8a, tree fd3d69129e4ff3e790a159da203d6d6a0f5525d0, equivalent to local09ea532c. The Git-data publication returned the exact reviewed tree. Governing issue #10868 has no competing extraction owner.

Root and an independent reviewer inspected the complete move, reexports, test-helper visibility, changelog and0197trace extension. The240-line JSON receipt implementation is unchanged after necessary internal visibility normalization; inverse reconstruction exactly matches the base owner SHA256 964cf7f5b76369f0d3badee560733a929f0c94fde8dffb8b43a27f6d3fd87df8. Existing tests, callers, provider version/checksum, configuration/currentness, metadata budgets and fixtures remain unchanged.

Both reviewers verified candidate receipt eaacd224a3b4a21e03f1e7c105ef23339f5b0bd9025b903c5dbf36cba8108dfb and all27 references: nine native source-check exits0 and seven retained pass reports. Baseline/inverse/applicability receipts and exact selected-command owner comparisons were also reviewed. These receipts use the explicitly identified retained source-policy instrument, not a current product build.

Actual published PR-body check exited0. Its policy-metadata/front-door-doc advisory is explained by the traceability extension; this PR changes no workflow, admission, process policy or user behavior. No front-door instruction change is needed for an internal move.

The base-pinned admission classifier counts4 nongenerated files /502 changed lines. The feature's future composed diff projects2793 nongenerated changed lines while preserving every acceptance control; remote accounting will be rechecked after this prerequisite lands.

No source blocker found. Current-head compiler, strict Clippy, complete required suites/inventories, Rust-only semantic/native JSON controls, actual artifacts, review-thread disposition and final main composition remain pending. Do not merge on this source-only review. Request the existing hosted route once after Ready read-back; retain REVIEW_INCOMPLETE until actual proof is consumed.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 27, 2026 06:14
@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!

@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: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

EffortlessSteven commented Oct 27, 2026 •

Copy link
Copy Markdown
Member Author

Merged and verified — prerequisite complete

#10869 was merged by ordinary expected-head squash as b1a3c100219ac7ff52e0afcdedea343f0081b26b at07:12:48UTC on October27. GitHub read-back confirms merged/closed, and governing #10868 is closed. The landed tree is exactly the reviewed current-main composition da7cda6972bd2b814bc6bea805f396824ce8c27d, with parent9bad3e4d.

Final exact-head REVIEW_READY5663424933 was published and read back against head80c23d before the merge. It supersedes the earlier source-only merge hold.

Required run40459911181 passed all gates, all four shards, complete-cover verification and the required Result. 22498 intended tests executed exactly once, with zero missing/extra/duplicate identities, failures, errors, skips or retries. Root and independent review consumed native logs, the four digest-bound shard archives and the matching combined packet. Independent receipt SHA256 248b765287cd1bf6c669f1704b0097334acf55a0766937f299b7d58fe662cdc1; root rehashed17 file references and138 archive members.

Rust-only run40459911149 passed on the same actual CI checkout40691df2, including all six JSON binding/currentness/native controls. The executed CI tree and later source-reviewed main composition remain distinguished. The separate advisory sensor exit2 and intentionally unavailable broad success-report payloads remain disclosed in the final review.

Source owner is now incorporating this landed prerequisite into #10846, retaining the f182 two-seam test correction, every regression control and current-main changes. That dependent feature receives a new exact-head source review and fresh native/installed qualification; it inherits no test pass from this prerequisite. Source/proof remains retained through that handoff.

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

Verification questions

  • Confirm repository-wide sibling helper families were not exhaustively enumerated from the scoped diff packet, so absence of further variants cannot be proven here.

Refuted

  • A passing static extraction review is sufficient to prove the refactor compiles and its tests pass.; refuted because: That overstates the available evidence. Static and retained receipts support behavior preservation, but the current cargo-test sensor has not produced a receipt and ripr failed. Executable qualification remains required.
  • The PR changes behavior rather than merely moving the implementation.; refuted because: The moved logic is byte-identical in substance, and the retained inverse-move proof reconstructs the original owner while the PR body records unchanged callers, fixtures, provider identity, currentness checks, and refusal behavior.
  • The extraction could introduce an active-view resize, detach, transfer, or stale-length-snapshot defect.; refuted because: Both Rust files use path, metadata, digest, manifest, and snapshot operations only; the moved implementation is behavior-preserving and contains no buffer/view API or mutable backing-store length handling.
  • The source move could have altered registry refusal/currentness semantics or duplicated logic.; refuted because: The extracted functions and constants preserve the original control flow and values, including metadata bracketing, manifest digest comparison, lockfile checksum/version/source checks, and snapshot equality.
  • The changed registry code crosses a JS-backed worker, async, GC, detach, or transfer boundary.; refuted because: The diff contains only Rust module extraction, internal reexports, visibility adjustment, and documentation metadata; no JavaScript, worker, async runtime, GC, detach, transfer, thread, or channel APIs were added or changed.

Evidence gaps

  • Hosted compilation and runtime qualification were not established locally; cargo-test is scheduled late, while the ripr sensor failed with exit code 2.
  • Current packet evidence does not establish current compilation or tests, and the ripr sensor failed.
  • Current execution evidence for the extracted module remains incomplete because ripr failed and cargo-test is pending late.
  • Hosted cargo-test qualification is still pending, so compilation of the new module boundary is not established by the available sensor receipts.
  • Model proof intent was rejected by deterministic validation.
  • Current executable cargo-test qualification is not yet available in the supplied sensor packet.

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

REVIEW_READY — #10868 registry extraction

Reviewed exact head 80c23d2458ef0104b3909f2c163da0de762b8e8a, tree fd3d69129e4ff3e790a159da203d6d6a0f5525d0. This completes source review5662962916. The moved reader and its unchanged consumers remain within the scoped inverse-move proof; no exhaustive enumeration of unrelated repository helper families is claimed.

Executable and artifact proof

Required run40459911181, attempt1, completed successfully. Actual checkout 40691df2dd801bc8abc5ab9feb424895b6db52ba, tree aba25ca91507a40036c541c38e517524818b1b20, has parents450c54a5 and this exact PR head. Its complete extraction diff equals the reviewed change.

The completed gate passed compilation, strict Clippy, policy/dependency/process/network checks, fixtures/goldens, capability inventory, verdict corpora, doctests, PR evidence contracts and schema sweep. All four required test shards passed: 5714 +5648 +5592 +5544 =22498 intended tests, each executed exactly once. Independent per-shard/full-workspace comparison found zero missing/extra/duplicate identities, failures, errors, skips or retries. All six selected JSON receipt/binding/currentness/native-callback controls occur once.

The four source archives and combined verifier archive match API and native-upload sizes/digests, run/head/attempt, actual checkout, toolchain and all four input Git blobs. The combined packet preserves exact testcase identities and attributes. Hosted verifier122057781312 and required Result122058840080 passed. Independent receipt SHA256 248b765287cd1bf6c669f1704b0097334acf55a0766937f299b7d58fe662cdc1; root additionally rehashed17 file references and138 archive members, receipt 08022cac30e5992ccb83ddbb42f95b0ef18032aaddc70d783df79275cc67d8f0.

Rust-only run40459911149 passed on the same actual checkout:178 successful result summaries, including11727 library tests with0 failures/1 ignored and all six selected JSON controls. Log SHA256 274bab27fdfb7050756847f1e846584b44f273ee2b6890d575423d6139bd137e.

Review disposition and integration

All current Conversation comments, reviews and inline threads were consumed; there are no inline threads or unresolved source findings. Current native proof resolves the advisory review's earlier pending-compilation concern. Its separate ripr-sensor exit2 remains a failed advisory observation. Successful broad-report upload was intentionally disabled, so absent packet bytes are not claimed inspected. The combined-JUnit audit-reader format correction is retained with its original checker; strict suite/case/skip checks remain intact and no native rerun occurred.

Fresh main 9bad3e4de4c49075be00484cc82ced056dfa162d composes cleanly to tree da7cda6972bd2b814bc6bea805f396824ce8c27d. Root and independent review verified the same complete extraction patch, SHA256 81253320206b2fd04f2a8ad2dabc450bf1e2dcf9830f94b473f41b5815112cf4, and unchanged registry/qualification input blobs. Later main changes are source-reviewed; that later tree was not the executed CI tree. The property feature inherits no executable qualification from this prerequisite.

At07:12UTC, head80 remains Ready/mergeable; required Result and all reported non-skipped execution checks are successful. Active main ruleset18845973 has no bypass actors and requires resolved review threads. Ready for ordinary expected-head squash of this exact head, with normal server enforcement and landed-tree verification. No release or policy change.

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.

refactor(rust): extract the existing registry receipt reader before property support

1 participant