Skip to content

fix(pilot): apply generated policy to capped absence warnings - #8253

Merged
EffortlessSteven merged 2 commits into
mainfrom
codex/pilot-capped-generated-absence
Oct 16, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
codex/pilot-capped-generated-absence

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Summary

When sparse changed source exceeds the repository inventory cap, a successful
pilot supplement currently warns about eight missing files while the same
uncapped change warns about four. The extra four are already excluded by the
generated-source policy. Apply that shared policy to the supplement's absence
observation, retaining real missing-source warnings and full changed vendor
marker context.

Swarm / Source Boundary

Source-of-truth Links

  • Governing accepted residual: #6976 continuation.
  • Spec: docs/specs/RIPR-SPEC-0009-defaults-first-adoption.md.
  • Public contract: docs/OUTPUT_SCHEMA.md pilot current-change coverage.
  • Acceptance delta: both cap settings name exactly the analyzable absent paths,
    including missing headers whose bytes are unavailable.
  • Proposal / ADR / plan item: existing pilot absence contract; no new architecture.

Candidate Relationships

Scope

  • One production behavior: generated-policy admission of absence warnings in
    successful capped pilot supplements.
  • Production: observe limitations through the existing shared policy before
    supplement classification, inside the existing timeout; pass full changed
    paths for policy context while keeping Rust-only classification subjects.
  • Evidence: one retained CLI regression, traceability, spec/schema explanation
    and changelog fragment.
  • Non-goals: generic scoped inventory, classification predicates, ranking,
    fold/error caveats, corpus cache, artifact population, overlays, workflows,
    dependencies, credentials, protection and release qualification.

Support-tier Impact

  • changes the documented CLI/JSON absence observation; no support-tier change
  • Header-only exclusions still require available bytes or an already-active
    overlay. Sparse unavailable generated headers remain named as absent.

Policy Impact

  • none: no new policy exception, process launcher, dependency or network surface
  • Existing bounded fixture runner and Git helper are reused.
  • Changelog: changelog.d/pilot-capped-generated-absence.md matches the canonical
    README example: first-line <!-- section: Fixed -->, - bullet, indented
    continuations and trailing fix(pilot): retain missing changed-file coverage in seam-limit recovery #6976 reference. No exemption or deferred entry.

Proof

Subject Exact evidence Result
Clean base 2168209 doctor, check-fast, locked ripr all-target check and CLI build native 0
Retained RED test-only 048cfa0, successful nine-Rust-file supplement native 101; ten passed, one actual-eight/expected-four failure
Independent baseline frozen 2168209, unchanged independent probe intended driver 1; capped default eight vs four and opt-in eight vs six; uncapped/restored controls pass
Retained GREEN exact 3c6f00a, pilot_missing_changed_files native 0; all 11 passed
Independent GREEN frozen exact 3c6f00a, same probe on fresh fixture native 0; all 12 observations passed
Candidate policy exact 3c6f00a, explicit process policy and check-fast native 0; 14 applicable gates, including full workspace/all-target Clippy; selector independently verified seven paths
Precommit exact 3c6f00a; complete seven-path set, no skipped commands or limitations native 0
Offline fixture preparation / goldens / dogfood exact 3c6f00a and pinned Rust1.95.0 native 0; 454 fixtures, zero drift or fixture errors; dogfood pass
Hosted qualification required run38879684001, actual checkout75467fda=4ce+3c6 SUCCESS; 16,354passed/3skipped across107binaries, all11focused subjects passed; doctests2passed/1ignored

Independent baseline and candidate runs each used 77 serial owned Git/CLI
children, all native 0, with no timeout, output-cap or cleanup failure. The
oracle compares literal JSON, terminal and Markdown path sets: default four,
handwritten opt-in six, restored empty. It checks successful supplement routing,
nonempty changed ranking, warm/cold agreement and ordinary inventory isolation.
Explicit patterns and the missing changed vendor marker still exclude source;
only convention-generated paths are admitted by opt-in. Percent spelling and a
vendor-like handwritten filename remain named. Same HEAD/diff restoration
clears absence without suppressing real warnings.

Frozen CLI SHA256: base
e1db8373a35e663ca375de2f452e06b79bec697492ff4114d7730ad1ff6cfaf7;
candidate bf60b87f585ea63f27eca62a7ce6320e266dbb86dc6e2a3c9337f30f5ad77e19.
Native logs, witnesses, independent driver and per-child captures are retained
under /workspace/coverage-review-evidence/capped; these are local custody,
not claimed as uploaded GitHub artifacts.

Independent exact-head source/oracle/docs inspection found no blocking findings.
Two retained-oracle findings were fixed before GREEN: restored inventory's first
file and a nonempty changed-ranking requirement. The observed RED prefix and
literal four-path expectation are unchanged. Final REVIEW_READY5546525558 completes the earlier incomplete review after independent hosted/late-findings/current-main inspection. Gemini's sole low fixture-literal readability suggestion is acknowledged as nonblocking; reply4292910539 exists and its thread is resolved. CodeRabbit and Devin unavailability statuses provide no substantive review.

Claim Boundary

This establishes matching generated-policy absence admission on capped and
uncapped pilot routes for the retained controls. It does not establish complete
classification, missing-header contents, a newly created overlay, hostile
concurrent-worktree safety, forced-error runtime behavior or release readiness.
Classification errors retain their existing caveat and are not made successful.

Rollback

Revert this one squash to restore the inherited capped warning population;
there is no persistent-data migration, dependency or workflow rollback.

Spec-Test-Code Traceability

  • Spec / output: RIPR-SPEC-0009 and docs/OUTPUT_SCHEMA.md.
  • Test: pilot_capped_absence_matches_uncapped_generated_policy_and_recovers
    plus the ten existing subjects in pilot_missing_changed_files.
  • Code: pilot supplement wrapper in analysis/seam_inventory.rs and its sole
    pilot caller; shared generated policy remains the admission owner.
  • Traceability: .ripr/traceability.toml.
  • Golden outputs / metrics: no intended drift or new metric.

Static Language Check

  • Static evidence keeps unknowns and existing limitation categories.

CI Economics

N/a: ordinary source PR; no workflows, protection, routing, labels or artifacts
are changed. One Cargo job, serial tests and task-local resources were admitted
before execution. Hosted CI owns the required broad merge matrix.

Engineering Check

  • No new panic-family calls, non-Rust repository programs, process/network
    surfaces, dependency or policy exceptions.
  • Public absence semantics and existing recovery limits are documented.
  • Pinned toolchain and lockfiles are preserved.

Gates

Focused retained, independent and applicable local proof is green as above.
Required hosted qualification and actual checkout are verified in final review5546525558. Native logs and artifact metadata are retained; ZIP bodies/local rehash are not claimed.

cargo test --locked -p ripr --test pilot_missing_changed_files -- --test-threads=1
cargo xtask check-process-policy
cargo xtask check-fast
cargo xtask precommit
cargo xtask goldens prepare --offline
cargo xtask goldens check
cargo xtask dogfood

Continuation

Owner / governing claim: existing missing-source writer; bounded capped residual in #6976 after separately merged #8223.

Current phase: PR_MERGED. Normally squash-merged at 14afcde1c5e7777ecb5697bdbfb80394dd9e5fb2 on 2026-10-16T10:35:26Z. Reviewed head 3c6f00afa2539e14ee1468aa83392371788fca99. GitHub and local Git confirm parent 0bd1d34904f9a92574cb4454771415619121c044 and tree c3574f46597330e3cf168041ba3c0e05c434e7c5, exactly the inspected conflictfree composition. Main was read back at this squash. The shared root checkout remains untouched.

Review: REVIEW_READY5546525558, incorporating independent source/oracle, native hosted checkout, named absence/pathless/fold/render controls, late findings and current-main review. Sole thread resolved. Final gate snapshot44checks=22success/22skipped; skips are not passes. Required Ripr Rust Small Result/app15368 succeeded; applicable branch protection/ruleset respected. Additional ruleset20661783 applies only to release tags. No bypass, settings, security or release change.

Validation: retained11/11 and independent12/12 GREEN against behavioralRED; all applicable local commands native0; required run38879684001 SUCCESS on actual75467fda (4ce+3c6/treef78e36b2),16,354passed/3skipped/107binaries and doctests2passed/1ignored. Raw logs, witnesses and receipts remain under /workspace/coverage-review-evidence/capped.

Advisory/access limits: late UB review5545752762's Err-collapse and parser claims are source-refuted in final review; hypothetical non-Rust callers remain outside this Rust-only caller. Native UB packet-report logs explicitly retain ripr2/cargo-test101 failed sensors with causes unestablished, rejected/unsupported/invalid-timeout intents, focused-head success without differential credit and deferred automated RED/GREEN with zero receipts. No claim-essential result relies on those missing dimensions. Native artifact downloads returned managed file references; archive ZIP bodies/local rehash were not inspected. The previously denied managed-host proxy route was not retried or bypassed. Header contents without bytes/overlay, hostile concurrency and forced-error runtime remain unclaimed.

Dependency / next: no remaining integration obligation for this bounded residual. #6976/#7056 and #8223 stay separately delivered; no umbrella or release completion is asserted. Storage closeout is complete: archive /workspace/coverage-review-evidence/capped/closed-8253-generated-state.tar.gz, 1,303,429,977 bytes, SHA256 791d4964b93ff832d77d469c80f47f96f6ce5cca34eceace0748cd4821a39676. Full separate restoration verified all30,314entries/24,651regularfiles plus13symlinks, bytes/modes/ownership/mtime/xattrs; originals were rechecked unchanged before release. Released the task-owned mutable Cargo target/toolchain, three ignored output roots, verified staging and candidate worktree. Observed release free-space gain9,118,547,968bytes (including temporary verification copy); final free29,930,254,336bytes. Retained all mandatory original frozen witnesses/native logs, prior8223 archive, source branch/ref and the new archive/manifest/verification/release receipts. Restore source at retained branch codex/pilot-capped-generated-absence, then extract the archive under /workspace with preserved metadata as recorded in closeout8253-manifest.json; never overwrite active consumers. Shared root/Git store remains intact at its original checkout. No local compiler/test, additional source/CI action, or unresolved bounded-outcome obligation remains.

@coderabbitai

coderabbitai Bot commented Oct 16, 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 all 5 included reviews currently available. Your 10 included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 35146016-3bb4-45d3-a259-491c18b9961e
📥 Commits

Reviewing files that changed from the base of the PR and between 4ce18be and 3c6f00a.

📒 Files selected for processing: 7
  • .ripr/traceability.toml
  • changelog.d/pilot-capped-generated-absence.md
  • crates/ripr/src/analysis/seam_inventory.rs
  • crates/ripr/src/cli/commands/pilot.rs
  • crates/ripr/tests/pilot_missing_changed_files.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0009-defaults-first-adoption.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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 updates ripr pilot to apply the shared generated-source policy to capped supplements, ensuring that real missing-source warnings are preserved while known generated or vendored paths are excluded. It modifies classify_seams_in_files_at_with_config to accept the full changed_paths context and computes absent file limitations early before classification. The changes are accompanied by comprehensive integration tests and updated documentation. Feedback is provided on a test file to improve code readability by replacing a long string containing escaped quotes with a Rust raw string literal.

@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_INCOMPLETE — eligible for one Ready transition to obtain hosted proof; not merge-ready.

Reviewed exact published head 3c6f00afa2539e14ee1468aa83392371788fca99 against base 21682090ac12af4e2633d42ba2f4f1f70bf5a6b3. Read all seven changed files, shared admission owner, pilot caller/fold/render consumers, spec/output contract and proof. Independent source/oracle reviewer authored a separate bounded probe, found two retained-oracle defects that were repaired before GREEN, and refreshed the unchanged published head and final local reports. The accountable writer independently inspected the source, receipts and native GitHub objects.

Semantic result: the successful supplement observes the shared generated-policy-filtered absence population before classification, inside the existing timeout/cancellation boundary. Full changed paths retain missing vendor-marker context separately from Rust classification subjects. Only successful classification carries that observation. Generic raw scoped inventory, existing error caveat, renderer, classification and cache/artifact populations are unchanged.

Discriminator: retained test-only 048cfa0 failed actual8/expected4 (native101, ten other subjects passed); exact-base frozen CLI independently failed capped default8vs4 and opt-in8vs6 on all three surfaces, while uncapped/restored controls passed. Exact3c6 retained suite is11/11 native0. The unchanged independent probe passes12/12 fresh observations,77/77 serial child exits0, no timeout/cap/cleanup failure. Literal path sets, successful nine-Rust-file supplement, nonempty changed ranking, explicit/vendor precedence, unavailable header, percent spelling, restoration, warm/cold and ordinary cache isolation are observed. Candidate binary SHA256 bf60b87f585ea63f27eca62a7ce6320e266dbb86dc6e2a3c9337f30f5ad77e19.

Local proof: explicit process policy,14-gate check-fast (verified seven-path selector and workspace/all-target strict Clippy), precommit (complete change set, no skipped commands/limitations), offline pinned fixture preparation,454 goldens/zero drift/zero errors and dogfood all native0. Exact-head reports and raw captures retained under /workspace/coverage-review-evidence/capped. No full local hosted-matrix duplication or new platform claim.

Integration: native GitHub merge 75467fda3ea7f499eaa805286d20fac3504d4d24 has parents 4ce18be6f927d3b953cee5c905375c949692ff0c + reviewed3c6 and tree f78e36b28235bf2fd9eda3bec02c7285f1f1b0b1. Intervening #8248/#8249 affect separate test-efficiency/Perl harness work; no material prerequisite or conflict found. Behind-only movement needs no restack.

Finding disposition: Gemini review5545566722 has one low fixture-literal readability suggestion; acknowledged as nonblocking in reply4292910539, thread read back resolved. No unresolved thread or blocking source/oracle finding. CodeRabbit rate limit and Devin expired trial supply no substantive review, despite success statuses. Current checks28=10success/14skipped/4running, no failure; skips are not passes. Required Ripr Rust Small Result (app15368) is not yet present while Draft.

Remaining merge evidence: Ready-triggered required qualification, actual job checkout parents/tree, native test denominators/reports, current required checks and final integration/review/thread inventory. Sparse unavailable-header contents, hostile concurrent mutation and forced-error runtime behavior remain outside the observed claim. Do not merge or arm auto-merge on this incomplete disposition.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 16, 2026 09: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.

Confirmed findings

  • No exploit primitive introduced. Excluded-source admission is documented and matches the unchanged fallback. Residual: hosted qualification + cargo-test receipt still pending; precommit/golden/dogfood rows pending per PR body.
  • PR claim boundary states classification errors retain their existing caveat, but the new early admission observation is only carried on classification success (Ok branch). On Err from absent_changed_rust_file_limitations, the supplement surfaces a string error rather than the bounded path-less disclosure; renderer-level absence caveat is not armed. PR body's claim boundary does not enumerate this fallback collapse.
  • Unscanned variant: if a future non-Rust supplement is added (e.g. Python fold) reusing classify_seams_in_files_at_with_config, changed_paths would include non-Rust files whose absence is silently filtered only because absent_changed_rust_file_limitations is Rust-scoped. A sibling-path gap exists for non-Rust supplement sites; not exercised by current diff.
  • ub-active-view lane scope is JS/WebAssembly Resizable/Detached/TypedArray/SAB buffer contracts. The PR is a pure Rust policy-admission refactor (no JS, no WASM, no JS-side ArrayBuffer/TypedArray). No active-view-relevant symbols are touched, so a buffer-side candidate finding cannot be grounded in this diff.

Verification questions

  • Confirm spec/schema text and the new retention-only test align with the production route: capped supplement with the shared policy admits the same four absent paths as the uncapped run.
  • Confirm classify_seams_in_files_at_with_config now takes full changed_paths for policy context and computes absent_file_limitations before classification; supplement preserves all changed paths including absent vendor markers while classifying only Rust subjects.
  • Confirm absent-file warning parser splits on 'changed_file_absent_from_worktree: ' but the rendered format in pr-pilot Markdown/terminal uses category: path; action and the literal category text does not include a trailing space-delimited colon in all places; fragile split_once on a fixed substring.
  • Confirm no new unsafe/RawFd/native pointer/Box/transmute surface appears in the diff; absent_changed_rust_file_limitations is the shared admission owner returning owned strings.

Refuted

  • The new changed_paths parameter could shadow or alias an existing vector and produce a stale active seam view reused across warm/cold runs.; refuted because: The function takes changed_paths by &[PathBuf] slice and binds it only inside its own scope; the warm/cold agreement assertions in pilot_capped_absence_matches_uncapped_generated_policy_and_recovers plus assert_cache_hit rule out stale-view divergence. No view-typed state is produced.
  • Box::from slice allocation failure could mask the moved admission computation.; refuted because: Not raised by this PR diff, seeded thread, or any candidate; allocation failure is out of scope for tests-red-green red/green review and is a refuted false-premise per calibration.
  • Hoisting admission into the shared classify helper would couple absence policy to per-file checks or undo the bounded path-less refusal; refuted because: absent_changed_rust_file_limitations runs once before the staged inventory; the bounded refusal path is unchanged in generated_rust_corpus.rs and the call only sees changed_paths, not the post-classification inventory.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

@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 — exact published head 3c6f00afa2539e14ee1468aa83392371788fca99.

This completes the hosted/integration dimensions left open in review5545601875. The independent reviewer refreshed native logs, named population controls, late findings, current rules/checks/threads and main composition; the accountable writer inspected the same primary evidence. No blocking source, oracle, contract or integration finding remains.

Actual qualification: required run38879684001 attempt1 and Rust job116903283609 are terminalSUCCESS. Checkout log explicitly identifies 75467fda3ea7f499eaa805286d20fac3504d4d24; native Git object parents are main4ce18be6f927d3b953cee5c905375c949692ff0c + reviewed3c6, treef78e36b28235bf2fd9eda3bec02c7285f1f1b0b1. cargo nextest run --workspace --profile ci ran16,354 tests across107binaries:16,354passed,3skipped. All11 pilot_missing_changed_files subjects passed, including capped default/handwritten-opt-in/restoration, uncapped vendor-marker context, intentional deletion and disabled-Rust controls. The three canonical/pathless/empty absence-helper tests, successful/empty/mixed supplement fold, retained classification caveat and independent rendering tests also passed. Doctests:2passed,1ignored. All applicable required build, policy, Clippy, goldens, fixture/corpus and evidence steps succeeded. Local14-gate/precommit/454golden/dogfood and independent baselineRED/candidate12caseGREEN remain current as recorded in the prior review; no duplicate build/CI or invented automated RED/GREEN is credited.

Late review5545752762 dispositions:

  • Refused-name collapse: refuted for current inputs. generated_rust_corpus.rs:19 delegates to the existing workspace/discover.rs:77 owner, which catches per-path validation refusal. Its fallback has positive count for nonempty paths, fixed recovery166chars and worst-case detail430chars below512. Empty input returnsOk[]. Filesystem failures become absent observations. The hosted refused-name/pathless test passed. Existing classificationErr fold and fallback remain unchanged; a hypothetical propagated error cannot establish a falsely complete rendered report.
  • Future non-Rust supplement: hypothetical, not a present sibling path. The sole production caller is pilot's Rust supplement; all changed paths supply policy context separately from Rust classification subjects.
  • Warning-parser fragility: the retained literal matches complete.rs:1109 category/path/semicolon format. It rejects unparsed warning rows and compares exact nonempty path sets. Independent JSON/terminal/Markdown fixtures and actual focused test pass; dropping the warning population fails the literal oracle.
  • Pending local/hosted proof statements are stale. Gemini's sole low readability suggestion remains acknowledged nonblocking, with reply4292910539 and resolved thread.

Advisory packet limits are retained explicitly. The native UB job116900362381 report was inspected: ripr sensor exit2 and cargo-test sensor exit101 are failed evidence with causes unestablished; invalid/unsupported intents are not executions, focused-head receipt passed0 supplies no RED/GREEN, and differential proof was deferred with zero matching receipts. The report labels subjectHEAD/broker-final as not current-head qualification. These are not credited as clean analysis or product-test passes. Native artifact downloads returned managed references for nextest12038383472 and UB12038200027; upload metadata/digests also cover wildcard12038546714. ZIP bodies/local rehash were not inspected; the previously denied managed-host proxy route was not retried or bypassed. No claim-essential evidence depends on these unavailable ZIP bodies or advisory automatic discrimination.

Current main0bd1d34904f9a92574cb4454771415619121c044 composes conflictfree with this head to treec3574f46597330e3cf168041ba3c0e05c434e7c5. Source comparison leaves this candidate's admission owner, wrapper, caller and retained tests unchanged; intervening TS/UX/harness work and command-shell guidance do not invalidate the absence proof. This is inspected composition, not a newly executed hosted checkout. No behind-only restack needed.

Current43checks=22success/21skipped, zero failures; required Ripr Rust Small Result116925916999 succeeded under app15368 and matches protected-main authority. Active ruleset requires resolved threads, zero platform approvals, no bypass actors; the sole thread is resolved. Provider quota/trial statuses add no substantive review. Preserve real missing-source warnings and header-byte/concurrency/forced-error-runtime nonclaims. Eligible for ordinary protected squash at this exact head after final live-gate refresh; no settings, security, release or publication change.

@EffortlessSteven
EffortlessSteven merged commit 14afcde into main Oct 16, 2026
46 checks passed
@EffortlessSteven
EffortlessSteven deleted the codex/pilot-capped-generated-absence branch October 16, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant