Repository navigation
fix(xtask): validate applicable support tiers in check-fast - #7534
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughThe local ChangesSupport-tier check-fast routing
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant check_fast_gates
participant categorize_changed_files
participant check_support_tiers as check-support-tiers
check_fast_gates->>categorize_changed_files: classify changed paths
categorize_changed_files-->>check_fast_gates: support-tier applicability
check_fast_gates->>check_support_tiers: run when applicable
check_support_tiers-->>check_fast_gates: diagnostics and status
Merge Risk: ⚪ Minimal · up to Local check-fast now validates support-tier declarations when applicable paths change, and strict receipts require that gate to have run. The change is confined to local tooling, and no merge-blocking risk is evident. Security Architecture Review
Pre-merge checks ·
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head local inspection record: source/oracle reviewer /root/independent_review independently read the complete committed diff and actual dispatch/leaf consumers, challenged missing execution and receipt controls, checked invalid/canonical declarations and zero-path applicability, reviewed SPEC-0060/traceability/process policy/changelog, and inspected terminal raw receipts. No actionable findings. Author reverified exact eight-path Git inventory, 29 focused tests, one actual-dispatch integration control, check-fast (14 ran, fixture-only skip), canonical precommit (six passing outcomes, no limitations/skips), coverage (350 cases/117 subjects, 71/136 floor71), and applicable doc/process reports. Full inspection is independent-review.txt in the Library proof archive recorded in the body. Disposition: REVIEW_INCOMPLETE for absent published-head hosted qualification and native Windows execution; local source/oracle readiness is established. This COMMENT records inspection on the author's PR; it is neither GitHub approval nor Ready/merge admission. Parent owns those transitions.
There was a problem hiding this comment.
Confirmed findings
- process_allowlist.txt narrowly accounts for two Command::new sites and one use import but does not explicitly note fs::write/remove_file as part of the same harness; policy grammar is additive and the existing rows already cover the spawn surface, but reviewers may want explicit acknowledgment that the fixture manipulation is not a spawn site.
- ub-worker-handoff surface is not applicable: no JS, no async runtime, no transferable objects, no detached workers. Process::Command used in tests is synchronous and scoped. No handoff boundary exists in this Rust-only diff.
Verification questions
- Confirm integration test commits a malformed '- None. No product support claim changes.' spec on a private git clone and asserts both
check-support-tiersandcheck-fastexit with code 1 and emitspec_support_tier_reference_missing; then canonical '- None.' + separate paragraph passes both. This is the deliberate pre-repair negative the PR body claims. The fixture usesgit clone --shared --no-checkoutagainst CARGO_MANIFEST_DIR parent, which is a non-production spawn already inventoried in policy/process_allowlist.txt (Command::new|2 + use std::process::Command|1). Sibling-path risk: no other xtask integration test under xtask/tests/ follows this private-clone-and-commit-control pattern (verified by scanning the changed surface for analogous support-tier commit-control logic); only this single file holds the route-control harness. - Confirm hermetic question: fixture() clones with --shared from CARGO_MANIFEST_DIR parent and pins origin/main to current HEAD in private clone. Diff used to materialize the SPEC control is reused as the actual selector; tests observe committed git log via println. Adequate; no observable leak beyond git's --shared object dir reuse.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package xtask --test ripr_help_process_contract. This is a current failure, not a red/green witness.
Refuted
- Path-injection through support_tiers category into subprocess argv; refuted because: categorize_changed_files only inspects path strings with starts_with/ends_with/equality; check_support_tiers itself is invoked with no arguments derived from changed files; SPEC-0060 keeps the established origin/main...HEAD selector so only committed paths are considered.
- The integration test could be tautological because it spawns the xtask binary under test and only checks exit codes that the leaf would produce regardless of routing; refuted because: Test asserts three independent artifacts: stdout/stderr reason code, check-fast.md content (Status: failed + reason code), AND check-fast-selector.md content (Selector: fast_gate_failed + Changed files: 1). A no-op routing that skipped the leaf would produce exit 1 but would not contain
spec_support_tier_reference_missingin the aggregate reports, so the test would fail. The canonical pass case additionally requires the literal- check-support-tiers\nin the aggregate report, proving actual execution. - alloc-failure / Box::from(slice) regression in categorize_changed_files or check_fast_strict; refuted because: the PR diff adds bool flags and string pushes only; no Box::from, Vec::from(slice), or allocation-sensitive conversions are introduced in the changed lines. Default box-allocation-failure semantics apply, but no candidate finding was raised in the seeded thread or the diff. False premise; not in scope per calibration.
- A spawned git or xtask child could outlive the fixture or leak detached handles, breaking worker-handoff safety; refuted because: Command::new in support_tier_fast_route.rs always uses blocking .output(); Output is consumed synchronously before the function returns; Fixture Drop runs fs::remove_dir_all on the temp clone root, which removes .git/objects and any shared refs; --shared --no-checkout avoids worktree contention; no Child or Stdio handle is retained across scopes, no thread::spawn or async task is created.
Evidence gaps
- ripr provider sensor returned exit code 2; lane cannot independently confirm the on-the-wire stack still satisfies RIPR-SPEC-0060 without that receipt.
- Model proof intent was rejected by deterministic validation.
Parked follow-ups
- Siblings paths/coverage: support-tier fast-route uses one sibling helper family (categorize_changed_files + validate_fast_report + private fixture clone). Dispatch/read_report siblings in the new test only read check-fast.md, check-fast-selector.md, and support-tiers.md; sibling leaves (check-spec-format, check-traceability, check-process-policy, verdict-corpus) keep their own reports and were not broadened. No sibling helper change requested.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Parent Ready-admission assessment, exact head 34359c5, qualified base 2748c54. Independent reviewer /root/review_support_validation_route inspected all eight task files, validator input closure, actual dispatch oracles, strict receipt enforcement, documentation and current-main interactions; no actionable candidate source defect found. Retained local proof includes the old-route behavioral red, actual invalid/canonical/no-op controls and applicable gates. Source of Truth job 114999960869 additionally executes the unchanged leaf successfully on merge 4a0f476 with f6e792f. Later main changes require normal merge-tree qualification; older floor-71/local gate results do not establish floor-88 or the new changelog gate.
Review 5495840658 is now classified from raw artifact 11772379460, verified SHA256 5b0d998a2b69f004544a22242ece0e52248612181b8a71d5549f16fe98afb8fe. The focused process-contract command genuinely compiled and ran, with one pass and one failure: timeout_retains_primary_and_every_cleanup_error reports File exists (os error 17) in one cleanup attempt. Both relevant helper/test blobs are unchanged from base; no introduced support-route defect is demonstrated. Exact-base reproduction and precise collision cause are NOT established. This existing harness failure remains a separate tracked investigation, not a green result. Optional broad Cargo sensor failed because matching llvm-profdata was unavailable. The ripr sensor refused its 800-file budget at 1124 indexed files. Malformed proof target labels were rejected; valid new-route requests were deferred with no receipts. None of those optional results is credited as execution of this PR's new tests.
Proceeding to the normal Ready-triggered required qualification is appropriate to obtain the actual combined-tree results; it does not dispose of the unresolved harness investigation or authorize merge. No blind advisory rerun, weakened test, increased sensor limit, extra hosted matrix or protection bypass. Native Windows execution of the new harness remains unestablished. Required checks and newly arriving material reviews remain mandatory.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Bounded disposition of advisory review 5495840658, without candidate source changes or a rerun:
Candidate head stays |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Final parent acceptance: required run 38310648587 / job 115015347896 and Ripr Rust Small Result succeeded. Raw checkout log binds merge 4a0f476 (candidate plus f6e792f). Actual nextest summary: 14,650 passed, two skipped. The new committed_spec_declarations_reach_actual_check_fast_dispatch control passed in 79.814 s. The separately failing advisory process-contract control also passed in this required execution (24.115 s); that is newer execution evidence, not a diagnosis or repair of #7545. Later doctest, contract and corpus gates completed successfully.
Independent reviewer /root/review_support_validation_route inspected all 11 intervening main commits through live 5ab3160, paginating capped inventories. Support/fast/strict owners and inputs remain unchanged; #7521 adds a separate command and correctly scoped spec, while release-tree changelog filtering does not alter ordinary fragment validation. No material source interaction or conflicting implementation found. This is source applicability, not a claim that the latest combined main executed. No new unresolved review threads; exact-head source/review identity remains unchanged. Required protections are preserved, and queued optional reviewer work is not counted as successful evidence.
The bounded #7528 repair is accepted for the normal protected merge. #7545 remains open with both distinct outcomes and unproved cause. Native Windows execution of the new harness and cleanup remain separately unestablished.
|
Follow-up reconciliation of the retained UB-review budget deferral, without source changes or a rerun. This supplements comment6132959679 and avoids treating the duration-accounting defect as a sufficient explanation for recovering this proof. Artifact11772379460 from run38305962606 was re-materialized through the official connector and byte-verified:818821bytes, SHA2565b0d998a2b69f004544a22242ece0e52248612181b8a71d5549f16fe98afb8fe. Job114999963395 verifies executed UB action source55e4fbab879b3a83c31f35cdc9f7e5cd99f0a6c8. Its proof budget source is byte-identical to the #1371 probe basis in EffortlessMetrics/ub-review. Actual accounting: resolved profile allows600seconds total and one focused task. Sole granted proof lease reserved300seconds. Its matching help-process command completed in113.967seconds, exit101, not timed out. Legacy remaining time is300seconds and remaining task count is zero. Reclaiming timeout slack would produce at most486.033seconds, still below the deduplicated support-route red/green estimate600seconds (two300second commands, not four separate charges). The one-task allowance is independently exhausted. Four request IDs share one candidate; selected_task_ids and receipt_ids are empty. The executed broker emits deferred_by_safe_wind_down when remaining task count is zero, then uses the optional-request fallback prose 'remaining budget was reserved for higher-value candidates'. That prose is not evidence of live or finalization reservations. The packet's task ledger covers24terminal Sensor tasks only and does not prove proof-lease reconciliation; no live-reservation leak or finalization-reserve charge is demonstrated. Scheduler offsets show the initial proof terminal before the model-request admission. Conclusion: UB #992's historical timeout charging is present and overcharges186.033seconds here, but fixing it alone would still correctly defer this optional600second request. Retain this packet shape as a negative control for that accounting work, alongside #1371's separate1500reserved/63actual positive reclamation probe. Do not raise budgets or launch another proof based on this comparison. Historical EEXIST, llvm-profdata setup failure, file-count refusal and malformed targets remain separate observations. Existing merged support-route qualification is unchanged. |
Summary
A committed spec declaring
- None. No product support claim changes.failed the existing support-tier leaf but passed the oldcheck-fastroute.check-fastnow executes that unchanged leaf for applicable inputs before compilation-bearing Rust gates, and strict dispatch requires its actualRanreceipt.Refs #7528; historical #2729 support-tier routing residual. PR #7521's separate authored-spec correction and ownership are unchanged.
Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Spec: RIPR-SPEC-0060, Early local support-tier validation.
Proposal: RIPR-PROP-0015 (existing source-of-truth stack).
ADR/plan: existing SPEC-0060 relationships; no new architecture decision.
Governing issue: #7528.
Acceptance delta: applicable committed support-tier/spec changes fail locally through the existing validator before expensive Rust qualification.
Candidate Relationships
Branch:
codex/7528-local-support-tier-gate.Head:
34359c50d8124c1dcf81bd3ab3fd845ee5a203f6.Local base/merge-base:
2748c549547f6fc9fa2319e108fdc513b02a00d2.No stack, prerequisite, replacement, or support promotion. #7521 remains independently owned; no files or PR state changed there.
Scope Classification
Production: one diff-applicable support-tier leaf invocation in
check_fast_gates, its category, and strict receipt enforcement.Evidence: actual-dispatch integration control, applicability/receipt controls, SPEC-0060 and traceability, automation documentation, two narrow test-process inventory rows, changelog fragment.
Applicable inputs: spec Markdown, support map, root README, Rust repair corpus, xtask source, workflow and script proof paths. Other inputs retain the support-tier no-op. Existing Rust, workflow, policy, fixture, selector/failure and catalog obligations are retained.
Support-tier Impact
Leaf grammar, failure diagnostic/status, support map, Rust repair cap, and claims remain unchanged. Canonical
- None.with its explanation in a separate paragraph passes; the malformed declaration remains refused.Policy Impact
policy/process_allowlist.txtaccounts for twoCommand::newsites and one Command import in the integration harness. They execute only Git and the Cargo-selected xtask artifact against one private source clone. No production spawn or network addition.Proof
Exact-head local results: Task-local official Rust 1.95.0, Linux/Bash, jobs=2, debug=0, incremental=0; one Cargo execution pipeline at a time.
Baseline at the exact base: worktree doctor; zero-path check-fast (6 run/5 skipped);
cargo check -p xtask --all-targets; explicit support-tier leaf all native0. Warm leaf including Cargo launch: 0.172 s, an observation rather than a timing guarantee.Deliberate pre-repair negative:
cargo test -p xtask --test support_tier_fast_route -- --nocapturenative101. The standalone leaf rejected the committed malformed spec, while the old actual aggregate ran its six gates and returned native0. This is behavioral red, not setup/compile failure.Executed at the exact candidate:
The fast selector was independently matched to the exact Git NUL path inventory; support execution precedes file-policy and workspace Clippy. Canonical precommit includes passing document-artifact, spec numbering, traceability, doc-index, Markdown-link and static-language reports. SPEC-0060 has unnumbered prose acceptance examples, so its unchanged no-coverage-entry disposition satisfies the actual numbered-example validator. No SPEC-0253 or coverage entry was edited.
Independent source/oracle reviewer
/root/independent_reviewinspected the committed diff, actual dispatch, negative/removal oracles, leaf consumers, contract parity and exact-head terminal receipts; no actionable findings.REVIEW_INCOMPLETEretains missing hosted qualification and native Windows proof. Warm WIP green and deliberate pre-repair red are retained with their original identities, rather than relabeled as exact-head runs.Latest main observed after local gates:
dd5a66b5dc9d8c09fba83f5d38d6dbb26367cc9c; no equivalent support-tier route landed. Local proof remains on the recorded base; current-main integration is parent-owned. GraphQL PR discovery returned Forbidden and was replaced by successful connector reads. A report-inspection script initially used command-rowstatusrather than schemaoutcome; corrected inspection passed without a gate rerun. The platform disconnection report was reconciled against the original active session and raw progress, with no duplicate Cargo.Claim Boundary
The selector remains committed
origin/main...HEAD; uncommitted/untracked authoring requires explicitcargo xtask check-support-tiers. This local route is not spec/document completeness or CI-equivalent proof. Precommit shared table, hosted required/advisory routing, triggers, cadence, protections and product support claims are unchanged. Parent owns Ready, hosted qualification, protected merge and cleanup. No native Windows proof established here.Rollback and Changelog
Revert this focused PR; existing leaf commands remain available.
changelog.d/7528-local-support-tier-fast-gate.mduses the canonical<!-- section: Fixed -->marker,-bullet and trailing #7528 reference. No root CHANGELOG edit.Spec-Test-Code Traceability
committed_spec_declarations_reach_actual_check_fast_dispatchto real dispatch, malformed/canonical controls, current leaf/failure/selector receipts and zero-path no-op.selected_support_tier_inputs_require_leaf_receiptrejects omitted support receipts for each bounded input family;support_tier_near_matches_keep_noop_applicabilityprotects unrelated boundaries.CI Economics
Engineering Check
Durable evidence and continuation
Library file:
ripr-7528-local-support-tier-proof-34359c50.tar.xz(file IDfile_00000000912c81f595abf8d2d3ce5c74, Library identitylibfile_250130db91d88191bbbd669fe635f04a, version 0). Archive size 33,282,888 bytes; SHA2566a12880c3035a623e151fdccf08de641b94e29d2c34f1482b6a61a9fafe99f80. All 59 contained files were streamed and checked against the current manifest, including both original and repaired executable witnesses, raw logs/reports, source patch, invocation controls, and independent review.The larger ZIP's prepared helper failed at tools/list network discovery before any upload or Library mutation. A smaller single solid-compressed archive retained every witness and was saved by the supported single-file route; identity metadata writeback also passed. First solid encoding caught a metadata-sidecar manifest mismatch after the upload-attempt note changed; manifest was refreshed and final verification passed. No gate or Cargo execution was repeated for either transfer/inspection issue. Task code, source, tests and native results did not change.
Resource clarification: pre-existing Cargo build output was neither used nor deleted; the authorized gates refreshed their standard reports under target/ripr/reports. Task-owned build output/toolchain/raw witnesses remain retained for parent continuation. Private test clones were removed by their owner.
Endpoint: Draft PR #7534 at the exact head above. Parent owns current-main integration assessment, Ready, hosted qualification, protected squash merge and cleanup. SPEC-0060 coverage and traceability obligations pass. Distinct verdict-corpus local routing remains an explicit consumer observation in spec-consumer-audit.txt, separate from this support-tier repair and #7521's owner's SPEC-0253 work.
Final state/readback: Draft/open/unmerged at exact head, mergeable at observation. Live Git main verified at
f6e792fa00ad1bb777329b7f4d20fd8cd0c44261; actual merge-base stays2748c549547f6fc9fa2319e108fdc513b02a00d2. New #6800 changelog validator/README were inspected; the submitted fragment meets its predicates, but that new current-main validator was not executed by this older candidate's precommit. Parent owns combined-tree/current-main qualification. Gemini quota is missing provider review and CodeRabbit is processing; independent local review remains the source/oracle record above.