Skip to content

feat(baseline): gap-ledger analyzed-scope disclosure; parser-declined files in Markdown (#9599, #9734) - #9778

Merged
EffortlessSteven merged 23 commits into
mainfrom
claude/baseline-ledger-analyzed-scope
Oct 30, 2026
Merged

EffortlessSteven merged 23 commits into
mainfrom
claude/baseline-ledger-analyzed-scope

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • baseline: gap-ledger gate decisions need a real analyzed-files disclosure so baseline diff/update can resolve gaps on the ledger path #9599: ripr reports gap-ledger --repo-exposure records an optional analysis_coverage only for a complete run of a producer-issued, content-committed repo-exposure artifact (run_status: complete, no seam limit, no parse-declined or generated-skipped Rust files, no run limitations, every seam converted). It carries the producer corpus identity: cache_schema_version, 16-hex files_content_hash, analyzed_production_files (sorted, normalized production-role file list the inventory's discovery admitted, captured before either cache return) and analysis_inputs (the producer cache key's own 64-bit FNV hashes of: classified config incl. raw ripr.toml bytes, .ripr/test_intent.toml, suppressions file, RIPR_CFG_FEATURES, Cargo workspace manifests/configuration, Cargo.lock, toolchain label, plus the analyzer build identity; all eight required). The coverage also carries records_total and a records_digest over every record's canonical serialization.
  • gate evaluate --gap-ledger verifies the disclosure against the ledger's records and recomputes the gated tree's corpus hash, production-file membership AND the eight input identities with the producer's own helpers (--root with its ripr.toml). Only when all match does it emit rust_workspace_complete; otherwise it keeps gap_ledger_artifact and names the differing classes in an additive coverage_refused array on that scope (content, membership, config, test_intent, suppressions, cfg_features, workspace_manifests, lockfile, toolchain, analyzer_version, records_or_disclosure, config_unloadable, unverifiable); baseline diff quotes it in the not-evaluated reason. Not a gate warning, since a warning would change the gate status. A rust_workspace_complete scope in a --pr-guidance document is dropped with a warning.
  • baseline_delta::absence_not_evaluated_reason (single owner, shared by baseline update) resolves an absent entry only when its path is a normalized relative .rs path (shared shape owner rust_workspace_path_gap, reusing the walk's ignored-dir rule) AND is in the disclosed membership. Discovery does not follow source symlinks or symlinked parents, so aliased paths are never members. Missing, malformed or duplicate membership and missing or malformed inputs establish no coverage; an empty membership covers no baseline path.
  • review-comments: show parser-declined files in the human Markdown summary (#9598 follow-up) #9734: the review-comments Markdown summary lists parser_declined_files as a limitation with a repair line (omitted when empty), plus a unit test for the covered/declined partition.

Source-of-truth Links

Proposal: none; follow-up acceptance is defined by #9599 and #9734.
Spec: docs/specs/RIPR-SPEC-0016-baseline-debt-delta.md
ADR: none; existing producer and shared baseline authorities are retained.
Plan item: #9301 F2 follow-up.
Governing issue or accepted claim: #9599, #9734 (parent #9301)
Acceptance delta (one sentence): A fixed Rust gap on the gap-ledger path resolves only when the ledger carries a verified, fresh complete-workspace disclosure (same Rust bytes, production membership containing the file, and the same config/test-intent/suppressions/feature/Cargo/toolchain/analyzer inputs), while filtered, stale, tampered, symlink-aliased, input-changed, limited or parser-declined cases and non-member paths stay not_evaluated, and parser-declined files are visible in the Markdown summary.

Retained prior proof

These receipts retain their original candidate scope; they are not current hosted qualification.

  • Real-chain e2e (inventory, production repo-exposure writer, ledger, gate, baseline delta and update): fixed gap resolves; stale tree, filtered ledger, tampered digest, edited real record, unloadable ripr.toml, parser-declined project, non-Rust and odd paths, forged pr_guidance scope, role-only source change, symlinked file/parent, and a changed ripr.toml / test_intent / suppressions / Cargo.toml harness target / Cargo.lock (each restored to resolve again, each naming its refusal class) keep the baseline. Disclosed cfg_features, toolchain and analyzer-version hashes that differ are refused with their class (the env var itself cannot be mutated under unsafe_code = forbid).
  • Unit tests: coverage verification (record set, full-record digest, corpus identity, membership and eight-field input shape), repo-exposure coverage conditions, predicate table, membership determinism, Markdown line.
  • cargo xtask precommit passes (goldens check incomplete only for the offline-cache fixture owner_return_pin_fallible_literal). Review-owned contribution review/9778-coverage-provenance adopted.

Known limits

  • No producer authentication: a writer who recomputes records_digest/records_total (including after deleting records, since membership is workspace-derived) on a tree whose inputs still match earns the scope; baseline diff/update trust a hand-edited gate decision. Corpus/input hashes use non-adversarial 64-bit FNV change detection; analyzer_version is a build identity string, and records_digest uses SHA-256.
  • Strict by design: a byte-different ripr.toml (comments, whitespace, CRLF) refuses coverage; RIPR_CFG_FEATURES and the toolchain environment at the gate must match the producer's; the Cargo manifest identity is bound to the checkout path and Cargo environment, so gate in the checkout that produced the ledger. The seam limit is not compared (a complete run applied none).
  • Membership is one sorted path per production file (~50 bytes each; about 47 KB for 911 files) carried in the repo-exposure artifact, ledger and gate decision; computing it adds about 60 ms on a warm 900-file workspace.
  • Only a ledger built from a complete repo-exposure run gets coverage; check-output or records-source ledgers stay gap_ledger_artifact.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/baseline-ledger-analyzed-scope
Stack parent or prerequisite PR (if any): no source stack; shared required-test repair #10586 remains separately owned.
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): #9778 is the existing selected candidate; no competing candidate.

Rollback

Revert this PR as one unit to retain conservative gap-ledger not_evaluated behavior. No release or settings changes.

Current candidate

Candidate: 48c1c2232d0ef29abcd4d1ed67724d44d8bd0771; integration basis aeeeddacd1e24f3b04e713572717e7b172966431; tree 93cc25875caeca5d3237d7c676a112144d040230.

A new builder-level regression reproduces a panic on a correctly content-committed, complete empty source whose corpus is a string. The repair requires a corpus object before adding analysis inputs; controls also cover null, numeric, boolean and array values while preserving valid complete-empty coverage. The four fixture conflicts retain the coverage disclosures and main's cache schema, with their derived hashes reconciled. The changelog remains changelog.d/9599-ledger-analyzed-scope-parser-declined-markdown.md.

Current validation: 16 exact focused library tests pass (each 1 passed, 0 failed, 0 ignored; native exit 0), including complete/partial/skipped/generated/conversion conditions, record commitments, membership and symlink refusal, analysis inputs, baseline resolution/retention, Markdown and fixture receipt consumers. cargo fmt --check passes. Local policy checks are in progress; required hosted qualification is absent.

Independent source review: #9778 (review) (source approved, final REVIEW_INCOMPLETE). The repaired symlink thread is resolved after reply and state verification.

Dependency: shared required-test executable-lifetime repair #10586, currently owned in codex/10586-driver-image; no duplicate repair or affected-test rerun. Keep Draft until its repair and applicable proof are available, then verify its presence in the actual GitHub merge subject before requesting qualification.

Observed GitHub merge subject: b29cfd80bbec7e39409ca0483092727b90cc7262, parents c8af153c1a5aae07d6abcf7f7a799cdf6992996c and 48c1c2232d0ef29abcd4d1ed67724d44d8bd0771, tree 06581ff85c7e8503a0f20e58983b7ee81223edd1. The additional base change is #8831's standalone binary-rename refusal; it is not a reason for another branch update. This ref observation is not hosted checkout execution evidence.

…files in Markdown (#9599, #9734)

reports gap-ledger --repo-exposure records a verified whole-Rust-workspace
coverage disclosure bound to the ledger's exact records; gate evaluate emits a
rust_workspace_complete scope from it and absence_not_evaluated_reason accepts
it for Rust paths only. The review-comments Markdown summary lists
parser_declined_files, and the seam_inventory covered/declined partition has a
unit test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh
@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 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 148 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: 74f71c21-8e81-4702-a8eb-7e72a2e308ce
Commits

Reviewing files that changed from the base of the PR and between 153ba5a and 9007138.

Files selected for processing: 32
  • .ripr/traceability.toml
  • changelog.d/9599-ledger-analyzed-scope-parser-declined-markdown.md
  • crates/ripr/src/agent/artifact.rs
  • crates/ripr/src/analysis/mod.rs
  • crates/ripr/src/analysis/seam_inventory.rs
  • crates/ripr/src/analysis/workspace/discover.rs
  • crates/ripr/src/analysis/workspace/mod.rs
  • crates/ripr/src/app/python_repair_verification.rs
  • crates/ripr/src/cli/commands/agent.rs
  • crates/ripr/src/cli/commands/check.rs
  • crates/ripr/src/cli/commands/pilot.rs
  • crates/ripr/src/output/baseline_delta.rs
  • crates/ripr/src/output/baseline_update.rs
  • crates/ripr/src/output/gap_decision_ledger.rs
  • crates/ripr/src/output/gap_source_subject.rs
  • crates/ripr/src/output/gap_source_subject/corpus.rs
  • crates/ripr/src/output/gate.rs
  • crates/ripr/src/output/gate/input.rs
  • crates/ripr/src/output/gate/tests.rs
  • crates/ripr/src/output/render.rs
  • crates/ripr/src/output/repo_exposure.rs
  • crates/ripr/src/output/review_comments.rs
  • crates/ripr/src/testing/verify_fixture.rs
  • crates/ripr/tests/cache_clear_safety.rs
  • crates/ripr/tests/cli_smoke.rs
  • docs/BASELINE_LEDGER_WORKFLOW.md
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0016-baseline-debt-delta.md
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/after.repo-exposure.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-receipt.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-verify.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/before.repo-exposure.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@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

  • The record-set digest authenticates only gap IDs, not the complete ledger records.

Verification questions

  • Confirm no test mutates a non-ID field while preserving gap_id and record count.
  • Confirm the Markdown limitation disclosure is rendered as a separate section with an explicit repair route and is omitted when parser_declined_files is empty.

Evidence gaps

  • Cargo-test is the only planned executable witness and was scheduled late.

…rgery, staleness and odd paths (#9599)

Only a verified, fresh gap-ledger disclosure may produce rust_workspace_complete;
a pr-guidance copy is dropped. Producer disclosure requires the content-committed
repo_exposure envelope, cache schema and hash shape, and every seam converted.
records_digest now covers the full canonical records. The corpus hash is checked
against the gated tree. Delta paths must be normalized relative .rs outside the
walk's ignored dirs. Adds Markdown/schema docs and tests (#9734).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

@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 one verification check before upstream.

Verification questions

  • Confirm sibling producer routes were not exhaustively enumerated.

Refuted

  • Baseline resolution could trust a stale or filtered ledger disclosure.; refuted because: Gate verification requires records_total, full-record digest, and check_rust_corpus_subject(...)=Current; fallback remains gap_ledger_artifact/not_evaluated.

Evidence gaps

  • The executable correctness witness was scheduled late and is not available in this review packet.
  • Model proof intent was rejected by deterministic validation.
  • Execution evidence remains trust-affecting because the ripr sensor failed and cargo-test was only scheduled late.

…ccepted limits (#9599)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

@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 verification checks before upstream.

Verification questions

  • Confirm the new corpus hash validator accepts only 16 lowercase hex digits, while the pre-existing corpus checksum may emit a different length, causing valid current ledgers to fail closed unexpectedly.
  • Confirm the PR body claim that complete coverage is independent of surviving records is only true when the disclosed records_digest still matches the complete record set; filtered ledgers correctly fall back.

Refuted

  • A PR-guidance document can forge rust_workspace_complete and cause baseline removal.; refuted because: The gate explicitly drops that scope when no gap ledger is present; only verified gap-ledger coverage reaches analysis_scope.

Evidence gaps

  • The only planned executable correctness witness had not arrived in this packet.
  • Model proof intent was rejected by deterministic validation.
  • Cargo-test is the only planned executable witness and was scheduled late; ripr also failed with exit code 2, leaving route assertions unexecuted in this packet.
  • The only planned executable correctness witness was scheduled late, while the ripr sensor failed.

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

Targeted independent contract/oracle review of #9599/#9734 at reviewed_head_sha 1af0624ebcd41db697b36db76aac4237252ea479, integration basis eca67e8a50075a8f9f91aee0e759400e42130b85. Disposition: REPAIR_REQUIRED for the inline producer-coverage finding. No candidate branch or production source was changed by this review.

Observed proof:

  • The unmodified output::gate::tests::e2e_ledger_workspace_coverage_resolves_only_in_scope_rust_gaps passes: 1 passed, 0 failed, 13229 filtered, native exit 0. This exercises real inventory -> repo-exposure writer -> ledger -> gate -> delta/update; it is focused local proof, not hosted qualification.
  • A separate review-only test, adding only a test to this head, captures two baseline entries through real PR guidance -> gate -> baseline-create. Replacing the regular src/lib.rs with a relative symlink to the same bytes produces actual_inventory_seams=0, then scope=rust_workspace_complete, delta_resolved=2, baseline_after=0. Its retention assertion fails (native exit 101). The experimental test-only diff SHA-256 is 0b3ff50ba202f981bb9ee156a4155627dd31d78d99d9ebbdba9800bfc2cd4b83. This is an executed behavioral counterexample, not a manually authored scope or gap identity.

Contract reconciliation:

  • ReviewCommentsAnalysisScope::from_working_set and the wrappers that call it are #[cfg(test)]. The real diff CLI uses limited_diff_scope in cli/commands/review_comments.rs; there is no production working_set capability to enable based on those helpers.
  • Missing/malformed/unverified analysis_coverage leaves gap_ledger_artifact, and absent entries remain not_evaluated. A complete empty record set can establish resolution only for actually covered subjects. Explicit incomplete producer outcomes and bounded runs are a separate gate-input refusal path; absence of a capability disclosure is not a zero-findings pass.
  • Semantic owners remain gap_decision_ledger::{repo_exposure_analysis_coverage,verified_analysis_coverage}, gate input/current-corpus admission, and the shared baseline_delta::absence_not_evaluated_reason consumed by delta and shrink-only update.

Review of prior questions: the non-ID-record digest concern is superseded by full-record hashing and the current real-record edit control. The 16-hex concern is refuted in source: the existing seam_cache::hash_bytes emits format!("{:016x}", ...), and the new helper extracts the prior corpus reader's identical shape check. The PR body is stale about corpus currentness: gate input now recomputes the current corpus; refresh that description with the repair.

Remote proof observed: all 25 current-head checks and 37 branch workflow runs returned terminal states; required Ripr Rust Small Result is absent and there is no merge-ready label. Existing wheel/ub-review/source-of-truth successes do not establish that missing required qualification. No new campaign was requested. Full merge review, remote merge-subject proof, and required qualification remain unverified. Live cloud-task/session ownership is not exposed by this delegated tool set, so the existing issue claim/branch/PR remains the canonical writer; no replacement writer was created.

Owner continuation: repair the coverage admission in the same claude/baseline-ledger-analyzed-scope / #9778 candidate, retain the positive producer chain, add identity-preserving undiscovered-file controls, then refresh exact-head independent review/integration/required checks before promotion. #9598 remains completed at 0b475aaaf140eadb3a010ae82b2a78c8b39fa154; this review neither reopens nor requalifies its acceptance.

@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

  • Baseline delta and update trust a hand-edited gate decision that claims rust_workspace_complete.

Verification questions

  • Confirm gate currentness compares disclosed membership against discovery under the gate root; a legitimate different-root evaluation cannot retain coverage.
  • Confirm the ignored-directory rule is centralized for baseline consumers, but its configured-directory coverage is not demonstrated.
  • Confirm all checked repo-exposure producer entry points now carry analyzed-production-file membership.

Refuted

  • The new coverage feature needs a separate baseline-resolution implementation, creating boundary drift.; refuted because: Both baseline delta and update consume the same PreparedAnalysisScope and absence_not_evaluated_reason owner, while path shape and membership validation are centralized in gap_source_subject/corpus.rs.

Evidence gaps

  • The only planned executable correctness witness was unavailable in this packet, and the ripr sensor failed with exit code 2.
  • Model proof intent was rejected by deterministic validation.
  • The only planned executable correctness witness was not present in this packet, while the ripr sensor exited 2.
  • The executable correctness witness is unavailable in this packet.

…eability and digest wording (#9599)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

@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

  • Baseline resolution trusts a hand-edited gate decision claiming rust_workspace_complete, as already identified in the seeded thread.

Verification questions

  • Confirm the shared ignored-directory rule may not cover all discovery exclusions.
  • Confirm the exact-record-set digest has a unit oracle for a same-ID/same-count non-ID mutation, but no focused gate/baseline test proves that such a mutation prevents rust_workspace_complete admission and baseline resolution.

Evidence gaps

  • The planned executable witness is not yet available in this packet.
  • Model proof intent was rejected by deterministic validation.
  • Executable validation of the new coverage and Markdown behavior was not present in this packet because cargo-test was scheduled late and ripr failed.
  • Executable qualification is still unavailable in this packet, so the strongest new currentness and symlink assertions remain unverified here.

…lchain and analyzer identity; name refusal classes (#9599)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

Copy link
Copy Markdown
Member Author

Review of record, head b3407c0.

P1 from Steven's lane (symlinked source resolved as analyzed): resolved by the adopted repair. Their published contribution (review/9778-coverage-provenance, cab0961 witness + d0b5ca0 repair) is in this branch. Its witness fails on the pre-repair production (left: 0, entry removed) and the file-symlink and parent-symlink real-chain controls pass at the repaired head.

Independent read-only reviews on exact heads, three angles, four rounds:

  • Correctness / fail-closed (forged disclosures, stale trees, odd paths, dropped seams, pr_guidance scope passthrough, record tampering, config/test-intent/suppressions/Cargo/toolchain drift): found three HIGH fail-open paths in round 1 (pr_guidance scope passthrough, no freshness check, forgeable disclosure) plus path-rule, digest and dropped-seam gaps; all repaired; later rounds found no way for a non-analyzed path to resolve. Remaining limit stated in the docs: no producer authentication, hand-edited gate decisions trusted, 64-bit FNV non-adversarial.
  • Tests / oracles / contracts: ~25 production mutations across rounds 1-4, each caught by a test; the two surviving mutants were equivalent; final delta (2f7722e) ran 176 focused + 270 broader tests green; docs, traceability, changelog parity checked; the small gaps it listed are in b3407c0.
  • Owner proof: cargo xtask precommit exits 0 on the merged tree; focused lib run 747 passed, 1 env-only failure (fallible_literal_full_and_compact_warm_caches_invalidate_changed_inputs, needs cargo fetch).

Bot findings: "hand-edited gate decision is trusted" is the documented no-authentication limit, not a defect of this PR; "non-ID record mutation has no gate-level test" is covered by the real-record gap_state edit control in the e2e; "16-hex vs corpus checksum length" refuted (same hash_bytes format).

Follow-up filed: #10166 (manifest identity is absolute-path bound, so the gate must run in the producer's checkout path).

Draft state: Steven's lane converted this PR to draft over the P1 above. I have not changed that. The P1 is resolved at this head; Steven can mark it ready, or tell me to. I am applying merge-ready so the required qualification runs on this exact head meanwhile.


Generated by Claude Code

…ld; re-bless boundary_gap fixture (#9599)

The checkout-path-bound manifest identity made source_subject.corpus differ for
byte-identical foreign checkouts (cli_smoke, lsp_lifecycle). It now sits outside
source_subject; portable fixture normalization pins machine-bound values.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

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

Confirmed findings

  • The pre-existing trust boundary remains: baseline delta and update trust a hand-edited gate decision that claims rust_workspace_complete.

Verification questions

  • Confirm production membership is derived before cache lookup and propagated through every changed repo-exposure producer entry point, but the diff does not prove that every possible producer route was enumerated.
  • Confirm the architecture centralizes the new coverage predicate and explicitly rejects forged PR-guidance scope, but no evidence proves that all sibling repo-exposure producer routes populate membership.
  • Confirm the producer hash-shape validator requires exactly 16 lowercase hex characters, while current corpus fixtures expose that producer spelling; compatibility with any existing alternate checksum spelling is not demonstrated.
  • Confirm repo-exposure construction sites outside the changed writers need an executable completeness witness to rule out an omitted sibling route.

Refuted

  • The new coverage path introduces a memory-safety or secret-disclosure primitive.; refuted because: The diff adds Rust-owned JSON/path/hash handling with no unsafe blocks, raw pointers, unchecked indexing, shell execution, or secret serialization introduced in the reviewed paths. Hashes and paths are metadata rather than credentials.

Evidence gaps

  • The planned executable witness is unavailable in this packet, leaving the new assertions documentary rather than independently executed on this review head.
  • The changed artifact path is covered by static review, but executable qualification remains unavailable because cargo-test was scheduled late and the ripr sensor failed.
  • The scheduled cargo-test witness is the only planned executable qualification because the ripr sensor failed; focused execution is still needed for the real-chain and symlink regressions.
  • The executable correctness witness is not present in this packet because ripr failed and cargo-test was scheduled late.
  • Model proof intent was rejected by deterministic validation.
  • Executable confirmation of the new currentness, symlink, and malformed-membership behavior remains pending in this packet.

Copy link
Copy Markdown
Member Author

Bounded independent disclosure-path review at head 3d276ad, tree 921b73381608ed3b142985020a79bd74ad2384cb, integration base/second parent acb0f4d (tree 211bedb2ed906ec254e5ba77d2983df59273a0e0). Canonical author EffortlessSteven / claude/baseline-ledger-analyzed-scope remains sole implementation writer. Read root AGENTS.md and .agents/skills/review-pr/SKILL.md.

Reused retained evidence at #9778 (comment) and #9778 (comment) with their original revision/outcome limits; no duplicate broad mutation campaign. The old symlink finding has an adopted membership repair and real producer file/parent controls; the outdated unresolved thread is not silently resolved here.

Delta checked from ancestor b3407c0: Markdown, gate admission, membership and both baseline consumers/tests are unchanged. The relevant producer/ledger delta relocates analysis_inputs to the top-level producer document and explicitly copies it back into analysis_coverage.corpus. Both producer hash/write passes receive these disclosures. Missing inputs refuse coverage; eight input identities, full-record digest, current corpus and production membership remain enforced. Absolute-path manifest identity remains intact; #10166 portability is separate.

Source disposition: no new blocking defect identified within this slice. Parser-declined paths render via code_span as a limitation, with explicit not-evaluated/not-resolved wording and a parse-repair route; empty/null lists omit the line. Rendering grants no repair_packet_ready capability. Existing production-chain tests capture baseline identities, withhold coverage from declined ledgers, resolve zero and retain debt. The accepted conservative refusal policy, hand-edited gate trust and non-adversarial FNV limits are not invented blockers. The bot's missing non-ID-record control claim is superseded by the existing real-record edit control.

Fresh bounded local proof: preinstalled rustc 1.95.0 (59807616e 2026-04-14), locked dependencies, CARGO_HOME=/workspace/.cargo, isolated CARGO_TARGET_DIR=/workspace/review-9778-target. Fresh library-test executable SHA-256 475f3ae24859e3c180bcd313aa84b258c474151dc5a65835f9a98e0bbeb09de0. Four exact tests each report 1 passed, 0 failed/ignored: output::gate::tests::e2e_ledger_workspace_coverage_resolves_only_in_scope_rust_gaps (Cargo native exit 0); output::gate::tests::e2e_ledger_coverage_requires_matching_non_rust_analysis_inputs; output::gate::tests::e2e_real_markdown_lists_parser_declined_files; output::review_comments::tests::parser_declined_files_markdown_names_the_limitation_and_stays_inert. The first includes the real declined-ledger retention negative; matching-inputs checks all eight identities and refusal behavior after relocation. No new mutation experiment was needed for the unchanged consumers.

Setup failure preserved: the initial default-Cargo-home attempt exited 101 on a read-only cache before assertions; the writable workspace retry completed successfully. Brief environment unavailability was recovered by checking the same running process, without duplicate submission. Clean detached review checkout /workspace/review-9778 retained; no production/test edits, author-branch writes or competing PR. Local logs retained at /workspace/review-9778-runtime-workspace.log, /workspace/review-9778-inputs.log, /workspace/review-9778-markdown.log and /workspace/review-9778-inert.log.

Disposition: bounded disclosure slice PASSES source inspection and the four named current-head local checks. Overall REVIEW_INCOMPLETE: hosted qualification, full integration/merge review and remote merge-subject execution were not assessed or claimed by this pass. No new blocking source finding in this slice. No dispatch, Ready, merge, release, settings or other-issue work performed; prior authorization holds remain unchanged.

Canonical-owner next action: use this exact-head delta receipt with the retained campaign to reconcile the outdated symlink thread and remaining current-head qualification in the same #9778 lane, preserving #10166 identity separation. No duplicate disclosure review/mutation campaign is needed.

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

reviewed_head_sha: 48c1c22
integration_basis: aeeedda; reviewed tree 93cc25875caeca5d3237d7c676a112144d040230
claim_boundary: #9599 producer-backed gap-ledger coverage and #9734 parser-declined Markdown disclosure.

Independent source review approves the repaired candidate. All 32 changed files were inspected, following discovery membership through every changed producer route, both content-hash/write passes, ledger conversion and completeness admission, gate freshness/refusal, and the shared baseline delta/update predicate. Complete empty, partial, skipped/generated, parser-declined and unconverted-seam cases retain their distinct admission behavior. Markdown escapes declined paths, explains non-evaluation and gives a parse-repair route without granting repair capability.

A new malformed-corpus finding was reproduced on test-only commit 3d56d3b: a correctly content-committed empty source with a string corpus panicked in mutable JSON indexing (one executed test, native exit 101). The repair validates the object before inserting analysis inputs. The same builder-level regression now passes, including null, string, numeric, boolean and array refusal plus valid complete-empty coverage.

Observed proof on this exact combined tree: 16 exact library tests, each 1 passed / 0 failed / 0 ignored, native exit 0. Subjects cover the new regression; complete-run/corpus conditions; top-level-only input identity; full-record digest; unenveloped/uncommitted refusal; production membership; full producer-to-baseline chain; role-only changes; symlink file and parent; all eight analysis inputs; unloadable configuration; real Markdown; inert Markdown limits; covered/declined partition; and the reconciled unchanged-after-attempt fixture. Executable SHA-256: 6641838e7f80a588850f335e716d7600516f7083e943df2955a182294b6499a0. Formatting check passes. Independent inspection verified both fixture content commitments, verification commitments and all receipt hashes after schema reconciliation.

Blocking source findings: none remaining. The earlier symlink and ID-only digest findings are addressed. Currentness refreshed for production guard, test stimulus/oracle, docs, fixture hashes, integration basis and head. Remaining non-claims: producer authentication, adversarial FNV resistance, trusting hand-edited gate decisions, and cross-checkout manifest portability (#10166).

Disposition: source review APPROVED; final REVIEW_INCOMPLETE. Local policy checks are still running; required hosted qualification and actual hosted checkout/shard evidence are absent. #10586 retains its separate shared-test repair owner. This review does not authorize merge.

@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 every changed repo-exposure writer appears to propagate discovery membership through the shared artifact context.
  • Confirm producer-route completeness is asserted structurally for changed writers but lacks one executable invariant covering every repo-exposure construction route.
  • Confirm repo-exposure producer context now carries both corpus identity and analyzed production membership, but changed call-site enumeration does not prove every sibling producer route supplies both fields.

Refuted

  • A PR-guidance document could forge rust_workspace_complete and retire baseline debt.; refuted because: The gate explicitly drops that scope when no gap ledger supplies verified coverage; coverage is admitted only through the gap-ledger route.
  • The new producer membership can be omitted by a sibling repo-exposure route or become cache-hit dependent.; refuted because: Changed producers call with_rust_inventory, and analyzed_production_files is computed before either cache return. This lane did not find an omitted changed producer route, although exhaustive sibling-route proof remains appropriate given prior thread concern.
  • A worker/GC/detach handoff could make disclosed membership or analysis inputs outlive their owner and resolve baseline debt against a stale producer.; refuted because: No such lifecycle boundary exists in the diff. Membership is cloned into owned PathBuf/JSON values, serialized into the artifact, then verified from persisted JSON against both the exact ledger records and the current gated workspace; no live producer buffer or detached object is reused.
  • Coverage admission tests may be reach-only smoke assertions that do not distinguish fail-open from fail-closed behavior.; refuted because: The suite mutates stale content, config, test intent, suppressions, manifests, lockfile, membership, digest, records, forged guidance, malformed corpus values, and symlink aliases, then asserts refusal plus retained baseline entries.

Evidence gaps

  • Current packet lacks the executable cargo-test receipt, while the ripr sensor failed with exit code 2.
  • Executable qualification for the Rust handoff remains unavailable in this packet because cargo-test was scheduled late and the ripr sensor failed.
  • Executable qualification for the current head is not present in this packet.
  • Model proof intent was rejected by deterministic validation.
  • A current executable witness for all changed producer routes was unavailable in this packet: ripr failed with exit code 2 and cargo-test was only scheduled late.

@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 of record (exact-head sweep, head 48c1c22)

Claim boundary

#9599 producer-backed gap-ledger analysis_coverage disclosure plus gate admission, and #9734 parser-declined files in the review-comments Markdown summary. The body carries the required Governing issue or accepted claim: (#9599, #9734, parent #9301) and Acceptance delta fields. The 32 changed files match the claimed scope; no unrelated surfaces ride along.

Verified

All of the following were read at this head SHA during this review (PR files API for the full patch; contents API for surrounding source):

  • Producer membership is not cache-dependent. analyzed_production_files is computed in inventory_classified_seams_report_collect before both cache-return paths and the cold path (crates/ripr/src/analysis/seam_inventory.rs, diff hunks at report construction), and every changed repo-exposure producer route (cli/commands/check.rs, cli/commands/pilot.rs, cli/commands/agent.rs, app/python_repair_verification.rs, output/render.rs) now supplies it via with_rust_inventory. mint_repo_exposure_snapshot deliberately passes None, keeping synthetic snapshots coverage-less.
  • The ignored-dir rule has one owner. path_enters_ignored_dir (analysis/workspace/discover.rs:24 at head) is derived from the same DEFAULT_IGNORED_DIRS const the walk enforces by directory name (visit, discover.rs:448-476); it pops the file-name component, so a file named like an ignored directory is still admitted (covered by the src/target.rs assertions).
  • The fail-closed chain is coherent end to end. Ledger-side disclosure requires the producer envelope, a still-valid content commitment, run_status: complete, neutral-only limitations, 1:1 seam-to-record conversion, a well-formed corpus identity, membership, and the eight input identities. Gate-side admission re-verifies the record count/digest, then recomputes content, membership and all eight inputs against the gated tree with the producer's own helpers; refusals name classes in coverage_refused; baseline diff/update resolve only through the shared PreparedAnalysisScope/absence_not_evaluated_reason owner with an exact-string membership join after rust_workspace_path_gap shape admission. Forgery and degradation routes each have a named refusal and an assertion: hand-written minimal document, forged --pr-guidance rust_workspace_complete scope (dropped with a warning), tampered digest, in-place record edit with kept digest, filtered records, stale tree, each of the eight inputs mutated, role-only source change, symlink file/parent, malformed/duplicate/missing membership, and the non-object-corpus panic regression with null/string/numeric/bool/array controls.
  • Coverage-block placement is not a bypass. The early return Some(Vec::new()) paths in read_gap_ledger_impl (output/gate/input.rs:123-190 at head) all push config_errors, where the gate emits no analysis_scope at all; the verification block runs on every successful record parse, including zero-record complete runs.
  • Traceability entries resolve. All 15 new .ripr/traceability.toml test entries match test functions defined in this diff (each definition was read).
  • The golden edit is justified. The boundary_gap unchanged-after-attempt re-bless is additive (analysis_inputs, corpus.analyzed_production_files) plus reconciled content_sha256/receipt/verify hashes, matching the additive schema change documented in docs/OUTPUT_SCHEMA.md; not a silent re-bless.
  • Dedupe. Prior review-of-record 5648172267 covers this exact head (submitted 2026-10-26T06:32Z, outside the 48-hour window). Its blocking findings (symlink aliasing, ID-only digest, malformed-corpus panic) are repaired in this tree; this review re-derives the current state independently.

Findings

  1. [P1] e2e_fixed_root collides across concurrent test processes — crates/ripr/src/output/gate/tests.rs:5058. Detail inline.
  2. [P2] Drive-prefix check rejects legal Unix filenames and silently withholds the whole membership — crates/ripr/src/output/gap_source_subject/corpus.rs:236. Detail inline.
  3. [P2] Symlink-alias refusal is exercised only on Unix — crates/ripr/src/output/gate/tests.rs:5987. Detail inline.

Strongest positive: the refusal matrix is real evidence, not reach-only smoke — each admission class is mutated (bytes, membership, each of the eight inputs, records, digest, config loadability, role selection, symlink aliases) and the assertion checks both the fallback scope class and that baseline entries are retained, which would fail loudly if any single check flipped open.

Validation signal

  • Observed: the file/diff reads and cross-checks listed above; cargo nextest run --workspace --profile ci confirmed as the canonical required runner (xtask/src/product_gate_plan.rs:21, .github/workflows/rust-gates.yml:222) with no serialization groups in .config/nextest.toml (basis for finding 1).
  • Reported: PR body and review 5648172267 report the 16 focused library tests passing on this combined tree (native exit 0, executable SHA-256 recorded there), cargo fmt --check passing, fixture commitment/receipt hash verification, local policy checks in progress, and required hosted qualification absent.
  • Not verified: the test suite, policy xtasks, and fixture hash recomputation were not re-executed in this review lane (read-only review; the workspace target lock is shared with concurrent lanes).

Disposition

REVIEW_INCOMPLETE (draft) — findings above are pre-landing feedback; the P1 should be repaired before this candidate is taken to qualification.

Comment thread crates/ripr/src/output/gate/tests.rs Resolved
Comment thread crates/ripr/src/output/gate/tests.rs Resolved
…th prefixes (#9599)

The fixed e2e root was tagged by thread id alone, so nextest's one-process-per-test
runs shared one directory and deleted each other's state. Add the process id.

rust_workspace_path_gap refused any ':' in the first component, which withheld the
whole membership list over a legal Unix filename. Refuse only a letter-colon drive
prefix (still fail-closed for drive-relative forms).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

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

Independent review (fresh-context reviewer, head cae2cbc): REVIEW_INCOMPLETE

Scope of this pass: DELTA from 48c1c2232d0ef29abcd4d1ed67724d44d8bd0771 (the head of the prior review of record, the 2026-10-30 exact-head sweep) to cae2cbccadd68e098e1836e8edcfa31b233e2712. The delta is exactly one commit, cae2cbcca fix(baseline): unique e2e root per process; refuse only drive-form path prefixes (#9599), touching crates/ripr/src/output/gap_source_subject/corpus.rs and crates/ripr/src/output/gate/tests.rs (+25/-7). Prior-finding status against the three findings raised at 48c1c2232: the P1 (cross-process uniqueness of the e2e root) is ADDRESSED; the P2 (:-in-first-component over-refusal) is ADDRESSED along the fix direction that finding itself prescribed; the P2 (symlink refusal is Unix-only) is deliberately NOT changed here and was dispositioned by the author as follow-up #11101, so I do not re-raise it as a new finding — see Non-blocking.

Inspected:

  • crates/ripr/src/output/gap_source_subject/corpus.rs:223-226 — the new has_drive_prefix helper: bytes.len() >= 2 && bytes[0].is_ascii_alphabetic() && bytes[1] == b':', i.e. exactly the [A-Za-z]: Windows drive form.
  • crates/ripr/src/output/gap_source_subject/corpus.rs:228-255 — rust_workspace_path_gap at head: the old raw.split('/').next().is_some_and(|first| first.contains(':')) test is replaced by raw.starts_with('/') || has_drive_prefix(raw); the refusal reason string is unchanged, and the other shape rules (whitespace, backslash, empty/./.. component, non-.rs, ignored-dir) are untouched.
  • crates/ripr/src/output/gap_source_subject/corpus.rs:261-272 — the new unit test a_colon_after_the_first_character_is_a_legal_unix_filename_but_drive_forms_are_refused, asserting weird:name.rs and src/a:b.rs are admitted and c:x.rs, a:b.rs, Z: are refused with the drive-prefix reason.
  • crates/ripr/src/output/gap_source_subject/corpus.rs:274-298 — the existing production_membership_is_sorted_deduplicated_and_fails_closed control, unchanged, so the withhold-the-whole-list policy and the sorted/deduped membership are still pinned.
  • crates/ripr/src/output/gap_source_subject/corpus.rs:147 and :161, and crates/ripr/src/output/baseline_delta.rs:1722 — the three consumers of rust_workspace_path_gap. It remains the single shared shape owner for producer membership admission and baseline consumption, so the narrowing cannot drift between the two sides.
  • crates/ripr/src/analysis/workspace/discover.rs:24-30 — path_enters_ignored_dir pops the file-name component before checking DEFAULT_IGNORED_DIRS, so weird:name.rs (no directory component) and src/a:b.rs (directory src) both reach the .rs/ignored-dir rules without being refused. I confirmed both new assertions follow from the rule as written.
  • crates/ripr/src/output/gate/tests.rs:5055-5070 — the repaired e2e_fixed_root: the directory tag is now std::process::id() plus the existing thread tag, with the remove/recreate behavior preserved.
  • crates/ripr/src/output/gate/tests.rs:5072-5085 and :5523-5531 — the two callers (e2e_gate_json_with_files and e2e_real_ledger). The producer and the gate still resolve the same absolute root within one process, which is the property the checkout-path-bound manifest identity needs; only the cross-process uniqueness changed.
  • crates/ripr/src/output/gate/tests.rs:5990-6002 — the symlink tests are still #[cfg(unix)] at this head.
  • fixtures/** — searched for file names containing :; none exist, so the narrowed rule changes no fixture expectation and implies no golden drift.
  • docs/** and .ripr/*.toml — searched for "drive prefix" / "carries a drive"; no document or spec states the colon rule, so the narrowing requires no doc or spec update and the unchanged refusal reason string keeps the public output shape stable.
  • Hosted check runs at this head: 3 records — Graphite / AI Reviews (success), GitGuardian Security Checks (success), CodeRabbit (neutral). No Rust or native lane has a record at this head.

P1 repair assessment: under the required runner (one process per test), the previous tag was the main thread id, which is the same small deterministic value in every test process, so concurrent tests resolved one shared directory and deleted each other's project files mid-test. The repaired name embeds std::process::id(), which is unique across live processes, so the two e2e tests and two concurrent worktrees now resolve distinct roots; the intra-process thread tag is retained, which is what keeps multiple tests in one cargo test process distinct. The remove/recreate behavior and the producer/gate root agreement are unchanged, so the checkout-path-bound manifest identity is preserved.

P2 repair assessment: weird:name.rs is admitted under the new rule and refused under the old one, so the new assertion is the discriminating control. src/a:b.rs and the three drive-form assertions hold under both the old and the new rule — they bound over-narrowing rather than pin the change.

Blocking:

  • None.

Non-blocking:

  • The narrowing is a narrowing, not an elimination. A root-level Unix file literally named a:b.rs (single-letter first component) is still refused as "absolute or carries a drive prefix", because a: is the genuine Windows drive-relative form and is therefore ambiguous across platforms. The commit subject and the comment at corpus.rs:237-238 state this intent, and it matches the fix direction the prior finding itself prescribed, so it is not a defect — but the over-refusal class that finding named survives for that one shape. The failure direction stays fail-closed: one such path withholds the whole membership list.
  • The P1 repair has no in-repo regression test. e2e_fixed_root is a test helper and nothing asserts that two processes receive distinct roots; the prior finding's proposed validation (repeated nextest runs of the two e2e tests, or asserting distinct paths from two spawned processes) was not performed in this pass and is not encoded in the repository.
  • Carried forward, still open at this head, and deliberately not re-filed: the symlink-alias refusal remains #[cfg(unix)] (gate/tests.rs:5990-6002), so the Windows evidence lane still never executes it. The author declined to change it here and filed #11101, which I verified is OPEN ("Platform-neutral test for symlink-aliased paths in analyzed_production_files membership"), so the follow-up has a home.
  • The PR body "Current candidate" section still names 48c1c2232d0ef29abcd4d1ed67724d44d8bd0771 and its tree and integration basis, while the published head is now cae2cbcc…. The body defers to the GitHub PR head and the delta is a two-file change, but the recorded validation evidence is bound to the older head and hosted qualification has not run on the current one.

Not run:

  • No Rust toolchain on this host (rustc, cargo, rustup absent from PATH), so cargo xtask precommit, cargo xtask goldens check, cargo nextest run -p ripr --lib and the new corpus unit test were NOT executed here. Every judgment above is a source reading at the head SHA.
  • Hosted proof: this head has only three check records and no Rust lane at all. .github/workflows/routed-rust.yml:40 gates the Rust lanes on the merge-ready label, and this PR is a Draft without that label, so no hosted Rust lane exists for this head. No green hosted Rust proof is claimed here.
  • The author's "Retained prior proof" receipts and the prior review of record's executed observations were not reproduced in this pass; they are inherited, not re-verified by me. In particular I did not run the repeated-nextest check that the P1 repair's correctness rests on.

Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head cae2cbccadd68e098e1836e8edcfa31b233e2712. Not an approval.

# Conflicts:
#	crates/ripr/src/analysis/mod.rs
#	crates/ripr/src/output/gap_decision_ledger.rs
#	fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/after.repo-exposure.json
#	fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-receipt.json
#	fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-verify.json
#	fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/before.repo-exposure.json
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 30, 2026 13:19

@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 verification checks before upstream.

Verification questions

  • Confirm the repo-exposure writer without a Rust inventory context produces no production membership, but its completeness can still make the ledger treat the artifact as a whole-workspace run.
  • Confirm a sibling producer may silently lose complete-workspace coverage even though its output otherwise satisfies the producer-issued and complete-run checks.

Refuted

  • The new coverage path contains a buffer detach/resize or backing-store lifetime hazard.; refuted because: The changed Rust code owns JSON values, PathBuf lists, strings, and digest state. It contains no ArrayBuffer, TypedArray, resizable allocation, raw pointer, unsafe block, detach/transfer operation, or borrowed view into mutable backing storage.
  • The changed handoff paths could expose JS-backed borrowed memory or transfer state across async/worker boundaries.; refuted because: The diff is Rust-only and introduces no JS values, FFI handles, raw pointers, or unsafe code. Artifact membership is cloned into owned PathBuf/Vec values, and the repo-exposure/ledger boundaries operate on owned serde_json::Value and byte buffers. No changed line creates a cross-thread borrow or a dangling transferred reference.

Parked follow-ups

  • The prior fixed e2e-root collision and Unix-only symlink concerns are outside this delta; the thread marks the collision fixed and the Windows gap as follow-up #11101.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Executed proof for the current candidate is not yet present in this packet.
  • Exhaustive sibling repo-exposure route coverage is not independently executable in this packet; prior thread evidence also records this as a remaining verification concern.

Copy link
Copy Markdown
Member Author

Review of record at 5910e20 (integrating lane's exact-head read; the two prior independent reviews cover 48c1c22 and the cae2cbc delta).

Angles and what was inspected:

No blocking findings. Remaining threads are resolved; the Windows symlink-coverage note is #11101. Bot reviews on this head (github-actions, CodeRabbit rate limit) carry no new defect; the "sibling producer without inventory context loses coverage" question is the intended fail-closed behavior (mint_repo_exposure_snapshot passes None). Applying merge-ready on this head.


Generated by Claude Code

…hots with analysis_inputs and membership (#9599)

The main merge kept main's side of the four unchanged-after-attempt fixtures, which
predate this PR's analysis_inputs and corpus.analyzed_production_files, so
cli_smoke first_useful_action_corpus_pins_routing_cases failed. Regenerate before/after
from the production route (portable normalization), and reconcile the content hash in
agent-verify and the artifact hashes in agent-receipt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

Copy link
Copy Markdown
Member Author

Review-of-record addendum at fc35452. The first merge-ready run on 5910e20 failed the Rust-only feature lane at cli_smoke::first_useful_action_corpus_pins_routing_cases: the main merge kept main's side of the four boundary_gap/unchanged-after-attempt fixtures, which predate this PR's analysis_inputs and corpus.analyzed_production_files. My earlier remark that the conflict resolutions were correct was wrong for those fixtures, and goldens check did not cover that path.

Delta (fixtures only, no source change): before/after.repo-exposure.json regenerated from the production route through the test's own portable normalization (content hash 72db8322…, cache schema 1.120, membership src/lib.rs); agent-verify.json content hashes and agent-receipt.json artifact hashes reconciled to the new bytes. On this head: cli_smoke 677/677, goldens check exit 0, cargo xtask precommit exit 0. No blocking findings. Re-requesting merge-ready.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready was requested, but this PR conflicts with main (head fc35452e), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

Resolves the four boundary_gap unchanged-after-attempt fixtures by regenerating them
from the production route at main's cache schema 1.122.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

Copy link
Copy Markdown
Member Author

Review-of-record addendum at 9007138. Main moved to cache schema 1.122 and merge-ready was refused at fc35452 (conflict with main in the same four boundary_gap/unchanged-after-attempt fixtures). I merged main and regenerated those fixtures from the production route (content hash 753060ee…, schema 1.122, membership src/lib.rs), reconciling agent-verify and agent-receipt hashes. No source conflicts; the PR's own source is unchanged from the reviewed head. On this head: cli_smoke 677/677, goldens check exit 0, cargo xtask precommit exit 0. Re-requesting merge-ready.


Generated by Claude Code

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

Independent review (fresh-context reviewer, head 9007138): REVIEW_INCOMPLETE — the candidate's own commit fc35452e regenerates the four boundary_gap/unchanged-after-attempt snapshots so they carry this PR's analysis_inputs and the analyzed-scope membership disclosure, which is the repair of the specific defect a previous review of this PR recorded; the production surface is unchanged by the candidate's own commit. No blocking defect found; the hosted Rust gates were still running at this head, so the Rust proof is unobserved.

Inspected:

  • Head 9007138e, previously reviewed head cae2cbcc.
  • The candidate's own commit is fc35452e test(fixtures): regenerate boundary_gap unchanged-after-attempt snapshots with analysis_inputs and membership (#9599), whose parent is 5910e20972c20f9f998f99f16cb7c76988aa9193. That commit touches exactly four files, all fixtures: fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/{before,after}.repo-exposure.json (+14/-1 each), agent-receipt.json (+3/-3) and agent-verify.json (+2/-2). It changes no production code.
  • The regenerated before.repo-exposure.json and after.repo-exposure.json at this head: each now opens with an analysis_inputs block carrying analyzer_version, cfg_features_hash, config_hash, lockfile_hash, suppressions_hash, test_intent_hash, toolchain_hash and workspace_manifests_hash (the portable-fixture values being the placeholder strings normalized-for-portable-fixture and the FNV-1a hashes), and both carry the analyzed-scope membership disclosure.
  • The regenerated agent-receipt.json: it now records "after_class": "weakly_gripped" and "before_class": "weakly_gripped", the provenance.after_artifact/before_artifact sha256 pins (sha256:b0a4bc2cfe68948dfc171b6ef385a9480e608c7e88addc4e49c6682dd0fb4ce0 for both), the command_template_version, and analysis_outcome_status: "missing" with analysis_outcome: null — i.e. the receipt states plainly that no analysis outcome was available rather than implying one.
  • The candidate's own production surface as it stands at this head (unchanged by the candidate's commit, carried by the merge): crates/ripr/src/output/gap_decision_ledger.rs (+489/-0), crates/ripr/src/output/gate/tests.rs (+706/-4), crates/ripr/src/output/baseline_delta.rs (+243/-13), crates/ripr/src/output/gap_source_subject/corpus.rs (+256/-17), crates/ripr/src/output/gate.rs (+45/-8), crates/ripr/src/output/gate/input.rs (+36/-0), crates/ripr/src/output/review_comments.rs (+85/-1), crates/ripr/src/output/repo_exposure.rs (+19/-0), crates/ripr/src/analysis/seam_inventory.rs (+95/-10), crates/ripr/src/analysis/workspace/discover.rs (+12/-0), crates/ripr/src/analysis/workspace/mod.rs (+1/-0), crates/ripr/src/agent/artifact.rs (+5/-1), crates/ripr/src/app/python_repair_verification.rs (+4/-1), crates/ripr/src/cli/commands/{agent,check,pilot}.rs (+4/-1 each), crates/ripr/src/output/render.rs (+4/-1).
  • The spec docs/specs/RIPR-SPEC-0016-baseline-debt-delta.md (+51/-2) and docs/BASELINE_LEDGER_WORKFLOW.md (+41/-3) that govern the ledger's analyzed-scope disclosure.
  • Hosted state at this head: Route Ripr Rust Small, Detect Docs-Only Surface, Admit PR Candidate, Report conflicting merge-ready request, Graphite / AI Reviews, Graphite / mergeability_check and the Linux x64 wheel build are all success; GitGuardian Security Checks is neutral; Ripr Rust Small on GitHub Hosted / Rust gates (job 124132429140) and the two Python wheel journeys are in_progress; Rust-only feature lane, rust-tests-junit, rust-coverage, future-clippy, msrv, cargo-deny, dependency-review, Windows Advisory, windows-advisory-subset, macOS Advisory and Perl and release proof are all completed | skipped.

Blocking:

  • None found. The previously recorded defect on this PR is REPAIRED at this head:
    • The defect. An earlier review of this PR recorded that the first merge-ready run failed the Rust-only feature lane at cli_smoke::first_useful_action_corpus_pins_routing_cases, because "the main merge kept main's side of the four boundary_gap/unchanged-after-attempt fixtures, which predate this PR's analysis_inputs and corpus.analyzed_production_files", and that "goldens check did not cover that path". That is, the fixture's committed expectations had drifted from the contract this PR introduces, and the drift was invisible to the golden gate.
    • The repair is targeted at exactly that surface. fc35452e touches those four fixtures and nothing else. At this head the two repo-exposure.json snapshots each carry the analysis_inputs block and the membership disclosure the earlier review named as missing, and the agent-receipt.json carries the matching before_class/after_class and the re-pinned artifact sha256 values. The earlier review's own remark — "My earlier remark that the conflict resolutions were correct was wrong for those fixtures" — is now answered by the fixtures themselves rather than by an assertion about them.
    • The regenerated receipt discloses rather than implies. "analysis_outcome": null with "analysis_outcome_status": "missing" and "analysis_outcome_error": "<analysis_outcome_error>" is the fail-closed shape: the receipt says no outcome was established rather than carrying an empty outcome. That is the honest direction for this surface.
    • The candidate's commit adds no production change, so the repair cannot have widened the product behavior this PR introduces; it only brings the committed expectations back in line with it.

Non-blocking:

  • The candidate's commit is fixture-only and therefore cannot itself demonstrate that the regenerated expectations are correct — it asserts them. Correctness here comes from the golden/fixture gate, which had not run at this head. That is why the disposition is REVIEW_INCOMPLETE rather than REVIEW_READY, not because a defect was found.
  • The agent-receipt.json pins the same sha256 for both the before_artifact and the after_artifact (sha256:b0a4bc2c…). That is consistent with the fixture's name and purpose — unchanged-after-attempt — and with the matching "before_class"/"after_class" pair both reading weakly_gripped: the attempt is expected to leave the artifact unchanged. It is worth naming because a same-hash pair is also what a stale re-bless would look like; here the analysis_inputs block shows the content was genuinely re-generated against the current contract rather than copied.
  • The candidate's cli_smoke.rs (+23/-0) and crates/ripr/tests/cache_clear_safety.rs (+22/-0) additions are the tests that would catch a future drift of this fixture family. The earlier review's observation that "goldens check did not cover that path" is consistent with the candidate adding a cli_smoke assertion rather than relying on the golden gate alone; that is the right shape for the repair.
  • The candidate's production surface is large — gap_decision_ledger.rs alone adds 489 lines and gate/tests.rs 706 — and the merge that brought this head also absorbed a large amount of upstream main movement (5d6d2f9b, 2daf6b60, ccd26d43, 153ba5a6, fc35452e, and the upstream commits before them). This review is a delta review of the movement from cae2cbcc to 9007138e; it does not re-adjudicate the original 30-file production claim from scratch, and the upstream movement is not candidate-owned.

Not run:

  • No local Rust toolchain on this host: cargo/rustc are absent from PATH, so build and test execution could not be performed locally. Every claim above is source reading plus the hosted run state at the exact head.
  • cargo xtask goldens check and cargo xtask fixtures boundary_gap were not run by this reviewer; the regenerated expectations were verified by reading the committed bytes at this head, not by regenerating them.
  • cargo xtask precommit was not run by this reviewer (no toolchain on this host); the candidate's reported local results are not independently reproduced here.
  • The cli_smoke::first_useful_action_corpus_pins_routing_cases assertion that caught the original defect was not executed by this reviewer — the Rust lanes that would run it were skipped at this head, and the Rust gates job was still in_progress.

Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head 9007138e. Not an approval.

@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 the producer-route completeness concern remains only partially evidenced because no executable invariant proves every repo-exposure construction route carries analyzed production membership.

Refuted

  • The new coverage path could introduce an OOB/UAF/type-confusion primitive or disclose secret material.; refuted because: The diff contains no unsafe blocks, raw pointers, FFI handles, borrowed mutable backing storage, or secret-bearing output paths; data crossing artifact boundaries is owned serde JSON or owned path/hash collections.
  • The prior symlink-alias concern should be reopened because this diff changes the coverage path.; refuted because: The seeded thread already records the adopted membership repair and exact-head file/parent controls; the remaining Windows denominator is explicitly parked as #11101 and this diff does not reopen the Unix defect.
  • A hand-edited gap ledger can bypass record or current-tree checks.; refuted because: For this changed admission route, coverage requires the exact record digest and recomputed current corpus, membership, and input identities. The acknowledged remaining trust boundary is a separately rewritten gate decision, which is documented and outside this diff's producer admission contract.
  • The coverage disclosure could retain an active view into a resized, detached, or transferred backing store.; refuted because: The changed implementation does not use resizable buffers, transfer/detach operations, raw pointers, or borrowed mutable backing-store views; relevant data is cloned or serialized into owned Rust values.
  • The new artifact and coverage handoff can detach, resize, transfer, or expose GC-backed memory across an async worker boundary.; refuted because: The changed implementation is Rust-only and uses owned strings, paths, vectors, JSON values, and hashes with no JavaScript runtime, FFI, unsafe operation, async task handoff, or backing-store transfer.
  • The malformed-corpus builder path can panic through mutable JSON indexing on a committed empty artifact.; refuted because: The changed builder clones the corpus, checks object mutability with as_object_mut()?, and has regression controls for null, scalar, boolean, and array corpus values.

Evidence gaps

  • The only planned executable witness is cargo-test; this packet has no receipt, while ripr failed with exit code 2.
  • Executable proof for the changed Rust behavior and tests is not yet present in this packet.
  • Current executable evidence is incomplete because the ripr sensor failed and cargo-test was scheduled late.
  • Model proof intent was rejected by deterministic validation.

Parked follow-ups

  • Platform-neutral aliased-membership behavior remains outside this PR and is already parked as follow-up #11101; it should not broaden this change.

@EffortlessSteven
EffortlessSteven merged commit 68e61de into main Oct 30, 2026
61 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/baseline-ledger-analyzed-scope branch October 30, 2026 16:12

Copy link
Copy Markdown
Member Author

Merged as 68e61de after Ripr Rust Small Result passed on the exact head 9007138 (run 41075863603), with the review of record and addenda above and all threads resolved. Post-merge: main's lib tests compile at 68e61de. #9599, #9734 and #9301 closed with acceptance evidence; follow-up #11101 remains open.


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