Repository navigation
fix(pilot): apply generated policy to capped absence warnings - #8253
Conversation
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
Comment |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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; actionand 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
left a comment
There was a problem hiding this comment.
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:19delegates to the existingworkspace/discover.rs:77owner, 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:1109category/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.
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
EffortlessMetrics/ripr-swarmSource-of-truth Links
docs/specs/RIPR-SPEC-0009-defaults-first-adoption.md.docs/OUTPUT_SCHEMA.mdpilot current-change coverage.including missing headers whose bytes are unavailable.
Candidate Relationships
codex/pilot-capped-generated-absence.3c6f00afa2539e14ee1468aa83392371788fca99.21682090ac12af4e2633d42ba2f4f1f70bf5a6b3, the merged fix(pilot): disclose absent changed source without an inventory cap #8223 squash.Scope
successful capped pilot supplements.
supplement classification, inside the existing timeout; pass full changed
paths for policy context while keeping Rust-only classification subjects.
and changelog fragment.
fold/error caveats, corpus cache, artifact population, overlays, workflows,
dependencies, credentials, protection and release qualification.
Support-tier Impact
overlay. Sparse unavailable generated headers remain named as absent.
Policy Impact
changelog.d/pilot-capped-generated-absence.mdmatches the canonicalREADME example: first-line
<!-- section: Fixed -->,-bullet, indentedcontinuations and trailing fix(pilot): retain missing changed-file coverage in seam-limit recovery #6976 reference. No exemption or deferred entry.
Proof
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
docs/OUTPUT_SCHEMA.md.pilot_capped_absence_matches_uncapped_generated_policy_and_recoversplus the ten existing subjects in
pilot_missing_changed_files.analysis/seam_inventory.rsand its solepilot caller; shared generated policy remains the admission owner.
.ripr/traceability.toml.Static Language Check
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
surfaces, dependency or policy exceptions.
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 dogfoodContinuation
Owner / governing claim: existing missing-source writer; bounded capped residual in #6976 after separately merged #8223.
Current phase: PR_MERGED. Normally squash-merged at
14afcde1c5e7777ecb5697bdbfb80394dd9e5fb2on 2026-10-16T10:35:26Z. Reviewed head3c6f00afa2539e14ee1468aa83392371788fca99. GitHub and local Git confirm parent0bd1d34904f9a92574cb4454771415619121c044and treec3574f46597330e3cf168041ba3c0e05c434e7c5, 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, SHA256791d4964b93ff832d77d469c80f47f96f6ce5cca34eceace0748cd4821a39676. 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 branchcodex/pilot-capped-generated-absence, then extract the archive under/workspacewith preserved metadata as recorded incloseout8253-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.