Skip to content

test(xtask): select existing CLI help parity in check-fast (#8631) - #8658

Merged
EffortlessSteven merged 1 commit into
mainfrom
codex/8631-cli-parity-fast
Oct 18, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
codex/8631-cli-parity-fast

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

A parser extraction can leave help parity pointed at a flag-free wrapper while policy checks and Clippy pass. This change makes check-fast select the existing parity test for the existing command-parser owners, verifies that the named case actually ran, and retains the strict receipt obligation. The parser table, parity assertions and exceptions are unchanged.

Closes #8631. Prevention after merged #8550/#7618; no interruption implementation or init write-safety work.

Governing issue or accepted claim: #8631 — select existing help/parser parity in focused local checks.
Acceptance delta (one sentence): Committed changes in command-parser owners execute the unchanged exact help parity case and propagate its failure before broader Rust checks, while unrelated paths retain skips.
Proposed replacement of PR (if any; not yet accepted): None
Accepted winner and losing candidate disposition (when decided): Sole bounded candidate; no equivalent prevention PR found in all-state claim searches.

The existing changed-file categorizer covers Rust module files/directories in cli, app, mcp and output/first_pr. These cover the actual cross-file parser consumers without copying their owner table. The existing captured runner preserves native status/streams; the guard rejects zero, ignored, wrong or duplicate case execution. The existing strict checker requires cli-help-parity under Ran. Diagnostics disclose captured parity versus inherited fmt/Clippy streams.

Source and evidence

Native candidate: 97e3d0f98f7122a4cd8e986ac72b492013901234, tree c46422842540f1c3a8e901a5a9aeef289cb062d6, parent 048c48fb3a3fa679affdf77da8647427bf6706a3. Published API commit: 2c0a1d1c51200bace7fd56e1c5ad31ae18c7dfa2, with the exact same tree, five verified blob SHAs and parent. Commit metadata differs; native receipts are not relabeled as executions at that API SHA.

Read actual repair ea561c7 and failed job117503846586: check→check_inner was the sole repair; the existing parity case failed in0.359s after compilation and Clippy passed.

Local evidence (raw native logs and source identities retained):

  • Baseline at parent 048c48fb: check-fast native 0, six gates, independently verified zero paths; scoped cargo check --locked -p xtask --all-targets native 0. Doctor's behind-only diagnostic is retained; no unrelated restack.
  • A strict-receipt regression failed before implementation because a parser-owner path accepted an omitted runtime receipt. Twenty-one focused tests subsequently passed on retained pre-commit source before the diagnostics-only disclosure correction.
  • Actual public negative control c0a86bc1: historical wrong mapping plus a formatted parser-source marker. check-fast selected the unchanged exact parity case, reported the original 19 Check-flag errors, captured Cargo exit 101 and exited 1. Cold parity compilation took about 4m40s; test execution 0.22s. The earlier malformed marker attempt failed fmt and is not counted as parity evidence.
  • Actual public healthy control 008dc99f: only a parser-source comment differs from candidate 97e3d0f9; repaired help.rs is byte-exact. The identical frozen public driver selected and passed exactly one parity case (0.15s after 3m43s recompilation), then the entire command passed 12 gates/one expected skip, strict stable six-path receipt, native 0. Whole healthy aggregate: 19m20s, including existing policy warmups and 5m47s workspace Clippy. No full hosted-suite-equivalent timing claim.
  • Both controls have byte-identical validation-tool source to the native candidate. Frozen driver SHA256 7a89761e684a5a80f4f8c96af28383013f9e5f8063cfd825b1680bf768bb0296; distinct negative/healthy library-test witnesses are preserved. Complete control-source bundle SHA256 ee212660251248f558f9cab6dcfe0fb687c67c83474dbf0a26c6b1db028bcb33.
  • Final committed-candidate gates: check-fast native 0 (11 ran, two expected skips; strict stable five paths); 21 focused tests passed/0 failed/0 ignored on exact native head; check-process-policy and ci-policy native 0. Precommit native 0, receipt status pass on native 97e3d0f9, complete five-path set, merge base 048c48fb, impacted xtask only, no limitations; selected Clippy native 0 (164802ms), receipt digest sha256:eca5e367ac03455a3d7512c1ff73d8dd7485745ac44b36925d5b46931001dba5.

Independent early and exact native-head review inspected all five files, unchanged validator and cross-file consumers, execution grip, receipts and rendered diagnostics. The stale report disclosure found during review is repaired. Final published-head, hosted and postlanding review completed with REVIEW_READY; see landed acceptance below.

Preserved source: verified complete-history candidate-source.bundle, SHA256 9a5931c9745b4d57b4651a156ae0f1a241bf97a3bac92dee7808911ed5f2fcf6. Raw commands, native exits, patches, source bundles, reports and distinct executable witnesses are retained under /workspace/8631-evidence; these local bytes are not claimed as uploaded hosted artifacts.

Scope, CI and limits

Five files, one local validation change. Existing #7534/#7528 support selection, #8608/#8421 golden selection and #8082/#4987 hosted lifecycle owners are retained. No new command catalog, parser inventory, policy scanner, dependency, product behavior, public API/schema, workflow, protection or access change.

Actual triggers were inspected: required Routed Rust Small subscribes to native ready_for_review; Draft publication is separate. Legacy full-ci/coverage label conditions remain unchanged; no duplicate dispatch or extra label is requested. Automatic advisory/wheel applicability work stays separate from the selected required run.

Cold library-test compilation is real additional cost; the subsecond parity case is not the complete command time or full CLI qualification. Existing literal-scanner limits and per-command real-argv obligations remain. The selector remains committed origin/main...HEAD; uncommitted edits require direct focused proof. This change does not satisfy the broader20-minute complete-CI target.

Changelog: changelog.d/8631-local-cli-help-parity.md uses canonical Internal / CI marker, dash bullet and trailing issue reference. Rollback reverts this focused selection/receipt/tests/docs bundle. No release action.

Unrelated inherited coverage finding is retained separately in #8657: controlled same-binary execution passes in the normal package cwd and fails in repository-root cwd. Required isolated Nextest failure is not established; no repair is folded into this PR.

Landed acceptance and continuation

Merged by the normal protected expected-head squash endpoint at 87bdbe62d796b9d98530cc5980db411b91797593; #8631 is closed as completed. Landing tree ca35b14df8f0b06a176fb1f98dff6358f9119b1c, parent 60763c480a497cae5afe7783a28d28167261f5ef. Net contribution is exactly five files (+190/-3), with all five blobs unchanged from reviewed native candidate 97e3d0f98f7122a4cd8e986ac72b492013901234 and published head 2c0a1d1c51200bace7fd56e1c5ad31ae18c7dfa2 (shared source tree c46422842540f1c3a8e901a5a9aeef289cb062d6).

Exactly one Ready transition selected required run 39087753554, attempt 1, which passed. The native Rust-job log establishes actual execution at integration subject a3e9d51d6bc33d0519ce682928ed535c83e9196d, tree a26badff73ac7f1f6df62ff0d150bccab0ac3d2b, parents da8e7601572c2c9ca27b85ded49c45ec4057de1a + published head. Nextest: 17,281 run, 17,281 passed, three skipped, 997.683s execution. Parity passed in 0.403s; execution guards, strict selector cases, golden contracts, verdict corpora and PR evidence passed. Required Ripr Rust Small Result succeeded from app15368. Full workflow 42m01s, Rust job41m20s; the broader20-minute target remains unmet.

Eight unrelated main merges intervened before landing. Native static comparison and independent postlanding review confirm no changes to validation tooling, parser owners/inputs, dependencies, workflows or repository instructions across qualified subject and landing. The exact five contribution blobs are preserved. Qualification is attributed to a3e9d51, not claimed as whole-tree execution at landing 87bdbe6; no full-suite replay or behind-only restack was performed.

Independent early, candidate, native-log and postlanding reviews found no blocker. Final accountable REVIEW_READY disposition is bound to published head. Gemini/CodeRabbit quota notices remain missing provider review. UB's moved-target finding was source-backed refuted: the existing guard rejects native-success/zero-test output; strict receipts share the gate constant rather than duplicating the test target. Its failed/timed-out sensors and rejected proof intents remain incomplete advisory evidence; no denied route or budget was bypassed.

Evidence access limits: classic branch-protection read was denied HTTP403; accessible ruleset and the successful normal protected merge endpoint enforced the delivery. Nextest artifact12122232966 exists, but local transfer was denied HTTP403 before bytes, so no ZIP-content/digest verification is claimed; that route was not retried. Full native job logs were independently inspected and a labeled excerpt retained. These limits did not block scoped acceptance.

Source and proof are retained under /workspace/8631-evidence. Verified complete-history complete-source.bundle preserves native candidate, both controls, published head, exact qualified merge and landing; SHA256 4c6c5d9b008a1be13b2f11358b7633ca251ef3f5815310fed868f4013f3c66dd. Reports, raw commands/exits, patches and hashed executable witnesses remain auditable locally; these bytes are not claimed uploaded as hosted artifacts.

Next action: this prevention claim is complete. Separate inherited working-directory-sensitive coverage finding remains in #8657, which passed under required Nextest isolation; no repair was folded into this change. Broader hosted-CI timing work remains with its existing owners. No release or access changes.

Resource closeout complete: task-owned4.9GB Cargo target and clean temporary worktree removed; original root checkout/cache/toolchain untouched. Four executable witnesses were compressed, every archived member rehashed against its frozen original before expanded copies were removed. Archive SHA256 262b380a99039902aad3a04df68d01e2698410f52fbfc9eda68b172a60d42f4a; raw reports/source/proof retained for delivery audit and #8657. See local resource-closeout.json and OUTCOME.md.

@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 18, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 80 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
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: e0aa9ad1-efbf-47b7-bcc2-098c37b51c1f
📥 Commits

Reviewing files that changed from the base of the PR and between da8e760 and 2c0a1d1.

📒 Files selected for processing: 5
  • changelog.d/8631-local-cli-help-parity.md
  • docs/PR_AUTOMATION.md
  • xtask/src/check_fast_cli.rs
  • xtask/src/check_fast_strict.rs
  • xtask/src/main.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disposition: REVIEW_INCOMPLETE for merge; READY TO REQUEST one normal qualification.

Reviewed head 2c0a1d1c51200bace7fd56e1c5ad31ae18c7dfa2, tree c46422842540f1c3a8e901a5a9aeef289cb062d6; native execution subject 97e3d0f98f7122a4cd8e986ac72b492013901234 has identical tree/five verified blobs and parent 048c48fb3a3fa679affdf77da8647427bf6706a3. Commit metadata identities remain distinct. Actual GitHub integration a3e9d51d6bc33d0519ce682928ed535c83e9196d, tree a26badff73ac7f1f6df62ff0d150bccab0ac3d2b, parents da8e7601572c2c9ca27b85ded49c45ec4057de1a + published head: exactly five net contribution paths and unchanged candidate blobs.

Accountable author COMMENT records the independent read-only review plus root evidence inspection; it is not an author approval. No blocking source/oracle/contract/integration finding. Reviewed all five files, semantic owners and non-CLI parser consumers, actual captured execution/diagnostics, strict Ran receipt enforcement, rendered disclosure, unchanged validator/exceptions, and existing selector/runner ownership. New main --timeout remains in mapped check_inner and matching help; no material prerequisite conflict. No API/schema/dependency/workflow/protection change.

Grip: original strict-receipt test failed before implementation; final native 21 focused cases pass. Actual public wrong-owner input c0a86bc1 reproduces the historical 19-flag failure (Cargo101, check-fast1). Healthy parser-only marker 008dc99f passes exactly one unchanged case and the whole selected aggregate (12 gates/one skip, native0). Tool sources are identical to candidate. This distinguishes real execution and parser-only applicability from a receipt-only assertion. Cold parity build ~4m40s; healthy whole aggregate19m20s, not a subsecond command.

Final native candidate: check-fast11gates/two expected skips and stable5paths; focused21/0/0; process-policy, ci-policy, precommit all native0. Precommit binds head97, base048, complete5paths, xtask-only impact, no limitations; digest eca5e367ac03455a3d7512c1ff73d8dd7485745ac44b36925d5b46931001dba5. Native Linux evidence only; no new platform branch or launch owner, CRLF compatible line parsing, no native Windows/macOS pass claimed.

Current reviews/threads and ordinary Conversation inspected: no source findings; Gemini/CodeRabbit quota notices are missing provider review, not clean passes. UB advisory/wheel work remains separate. Unchanged controlled coverage cwd sensitivity is retained in #8657, not an established failure of isolated required Nextest.

Remaining: one Ready-triggered required qualification, actual job checkout identity/results, current final findings and published-head REVIEW_READY before normal protected expected-head squash. No Ready run exists yet; do not duplicate it or substitute advisory green.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 18, 2026 01:47
@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!

@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

  • Test target string cli::help::tests::every_parsed_flag_agrees_with_its_help_documentation is hard-coded in both runner and strict selector. If the test is renamed/moved, both cli-help-parity gate and validate_execution go silent; the error message mentions 'update the focused selector if the test moved' but no test simulates a moved target.
  • Overclaim audit: PR body and docs/PR_AUTOMATION.md clearly bound the change to one in-tree exact test and the strict selector retention; no claim of full CLI qualification is made. The '5m47s workspace Clippy' / '19m20s healthy aggregate' in the PR body are author evidence, not user-facing. The check-fast.md disclosure now correctly mentions CLI help parity capture alongside fmt/workspace Clippy.

Verification questions

  • Confirm strict selector requires 'cli-help-parity' under Ran for any path under cli/app/mcp/output/first_pr; near-misses (cli-not, .rs.bak, mcp/help.txt, output/first_pr_not) do not select.

Refuted

  • capture_output_without_timeout could swallow indefinite hangs; refuted because: Function name indicates timeout-disabled by design; no doc change claims a hung test would be terminated. Risk is bounded to developer-machine UX, not CI, since the gate runs locally only and the validator strictly checks execution.
  • The new module duplicates the parser-owner table already maintained inside crates/ripr/src/cli/help.rs and risks drift.; refuted because: The xtask categorizer intentionally re-derives from path prefixes; it does not copy any owner list from help.rs and only triggers an external library test, so no sync obligation is created.
  • Near-miss path crates/ripr/src/output/first_pr_not/options.rs is correctly rejected, but the prefix rule f.strip_prefix(owner).is_some_and(\|tail\| tail == ".rs" \|\| tail.starts_with('/')) would also reject crates/ripr/src/cli_legacy/... and crates/ripr/src/mcpextra.rs since they don't start with the owner followed by / or end with .rs. Subtle: crates/ripr/src/cli_alpha.rs is correctly skipped (prefix cli not cli/).

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Disposition of the UB finding on unchanged head 2c0a1d1c51200bace7fd56e1c5ad31ae18c7dfa2: refuted, independently checked against source and retained native execution.

The full target string occurs once, at check_fast_cli.rs:4. The strict consumer:127 requires the shared gate ID; it does not contain another test target.

A moved/renamed test cannot silently pass. Even after Cargo native 0, run calls validate_execution:26–45, which requires exactly one test <expected name> ... ok line and a one-passed/zero-failed/zero-ignored summary. A missing target returns the explicit execution-not-established error. The caller:829–831 propagates that error before adding Ran.

The existing negative test:62–75 explicitly rejects both zero cases (line64) and renamed-target output (line67), plus ignored, missing-summary, duplicate and multiple-case outcomes. It passed in the exact native97 focused21-case run.

Additional build-free control: the preserved healthy008 library-test executable, with a nonexistent exact filter ending _moved, actually exited0 and printed running 0 tests / 0 passed. The frozen exact97 xtask execution-guard regression then passed independently. The first observation is real libtest zero-case success, not itself a gate failure; the source and guard regression establish refusal of that output. Logs: /workspace/8631-evidence/moved-target-zero.{log,json} and execution-guard-control.{log,exit}; no source mutation or hosted rerun.

The verification question is covered by strict owner/near-match controls:376–434: 13 module/parser paths, omission and Skipped-only refusal, complete receipt acceptance, and the named cli-not/.rs.bak/mcp-help.txt/first_pr_not negatives. Healthy008 separately established actual public parser-only selection.

UB's rejected proof intent remains missing advisory execution evidence; a successful advisory job is not promoted to proof. No source repair is justified by this finding. Required qualification run39087753554/attempt1 remains in progress unchanged; final merge review is still pending.

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

Disposition: REVIEW_READY for scoped #8631.

Reviewed published head 2c0a1d1c51200bace7fd56e1c5ad31ae18c7dfa2, source tree c46422842540f1c3a8e901a5a9aeef289cb062d6 (source-identical native97). Actual qualified checkout is a3e9d51d6bc33d0519ce682928ed535c83e9196d, tree a26badff73ac7f1f6df62ff0d150bccab0ac3d2b, parents da8e7601572c2c9ca27b85ded49c45ec4057de1a + reviewed head. Five contribution blobs remain identical to the independently reviewed native candidate.

One required run39087753554/attempt1 completed successfully. The complete native Rust-job log was independently fetched and inspected by both root and read-only reviewer. It confirms actual checkout, Nextest997.683s with17,281 run/17,281 passed/3 skipped, existing parityPASS0.403s, new execution guards and strict selection/near-match controlsPASS, and the separately tracked cwd casePASS under isolation. Policy/compilation/Clippy/goldens/corpora/PR-evidence succeeded. Required Ripr Rust Small Result is success from app15368.

The substantive source/oracle/contract/platform review and discriminating local controls are retained in the prequalification review. No source changes followed it. Current submitted reviews, Conversation comments and all inline threads were re-read: no unresolved threads. UB's moved-test allegation is refuted with verified source/native evidence. Provider quotas and rejected/timed-out advisory proof remain missing evidence, not clean execution. Graphite reports its review ran with0comments. Independent review is substantive and separately established.

Access limits remain explicit: local Nextest ZIP transfer was denied by tunnel403, so its bytes/digest were not verified; native full logs establish scoped acceptance independently. Classic protection details returned403; accessible ruleset is active, requires thread resolution, has zero approval quota and no bypass. Use only normal protected expected-head squash; server enforcement remains authoritative. This author COMMENT is an accountable review disposition, not an author approval.

No blocking source, oracle, integration or acceptance finding remains. Full workflow42m01s does not meet the broader20-minute CI goal; #8657 is separate inherited coverage follow-up. Neither is completed by this scoped leaf.

Next: re-read head/merge state, normal protected squash with expected head2c0a1d1, read back landed commit/tree/main and issue acceptance, then close out owned resources while preserving proof.

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.

test(xtask): select existing CLI help parity in focused local checks

1 participant