Skip to content

fix(review): reject option-shaped proof targets during admission - #1377

Closed
EffortlessSteven wants to merge 2 commits into
fix/proof-intent-recoveryfrom
fix/proof-intent-option-target
Closed

EffortlessSteven wants to merge 2 commits into
fix/proof-intent-recoveryfrom
fix/proof-intent-option-target

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

A model proof target such as --package passed initial admission and was only rejected later by the semantic resolver, missing the early public cause/recovery diagnostic. Reject leading hyphens during admission, matching the resolver's existing grammar, and add this input to the exact public-diagnostic regression.

Stacked on PR #1361 at cdb153fe287ae6ba8606211aad2f1ec191b2920c, targeting its fix/proof-intent-recovery branch. One file, six added lines. The downstream resolver already blocks execution; this fixes admission and recovery behavior.

Policy receipts

No controlled surface, analyzer pin, threshold, suppression, workflow or policy change. Existing implementation and #813 analyzer-qualification ownership retained.

Verification

  • Tests-first RED on the exact parent: the added --package case fails with invalid intent admitted; the one-line repair produces GREEN 7/7 proof-intent tests and 9/9 resolver tests. Durable RED/GREEN evidence and owner coordination.
  • Actual contribution: focused proof-intent suite 7/7 passed; locked workspace/all-target suite 1,247 passed, 0 failed, 1 ignored.
  • All seven local independent-baseline commands pass: fmt, workspace/all-target check, strict Clippy, workspace/all-target tests, docs, policy, verifier self-test. Diff check clean. Policy reports existing overdue-review warnings; no ledger renewal was made.
  • Contribution head 7f5a92e2fe74fdeeb16bb73cbd5d8490f387eb22; tree 8e5c18cdca9ab0d48dbb9a74ff49170ec4a9b039. Hosted checks on this head are pending; local checks are not hosted qualification.

CI budget

Planned band: default. No new lane or risk pack.

Remaining qualification

Draft only. Parent #1361's gate reported 11 unsuppressed RIPR gaps; this repair is not claimed to clear them. The parent's hosted tuple/claim-format rows align with the independently reproduced local shape, but that does not classify all rows as false positives. Complete frozen analyzer evidence and the corrected admission finding remain with #813's qualification owner.

No parent-branch push, merge, release, deployment or gate-policy change.

@coderabbitai

coderabbitai Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 2b5218b4-72e4-4979-8742-6ea5f171000d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

EffortlessSteven commented Oct 11, 2026 •

Copy link
Copy Markdown
Member Author

Exact-head baseline failure diagnosis at 7f5a92e2fe74fdeeb16bb73cbd5d8490f387eb22 (no contribution changes made).

Read actual test job 114384981491: at 04:07:51.0451784Z doctor_require_core_tools_fails_stale_actionlint_version fails; final CLI result is 58 passed / 1 failed / 1 ignored, with only Error: Text file busy (os error 26). Executable path and launch stage are absent. Product gate 38110537291 succeeds; independent fmt/check/clippy/doc/policy/verifier succeed, but test and aggregate remain FAILED. This is not hosted baseline qualification.

Source audit: tests/cli.rs:3446 acquires the CLI lock, :3447 creates a unique temp directory, :3449-3464 writes and checks the fake tools, :3464 directly executes the fake actionlint preflight, then :3470 launches the product. Writer :6995 calls write_file, whose :6755 fs::write closes before returning; :7002 only changes permissions. No retained write handle or shared fake-tool pathname was found, including by an independent Luna read-only audit. tests/common/mod.rs:635 and :670 propagate launch errors without command context, so this bare error does not establish which of the two launches failed. A fake tool's launch error inside an already-running doctor would be returned as product output; this test's bare anyhow error is insufficient to attribute it to that inner probe.

Rust 1.95.0 local evidence on unchanged head:

  • 100 exact focused repetitions PASS, zero failures (16.07 seconds).
  • 10 full default-concurrency CLI repetitions: each 59 passed / 0 failed / 1 ignored (590 passed total), with retained per-run logs.
  • CARGO_TARGET_DIR=/workspace/ub-review/target cargo test --workspace --all-targets --locked PASS, 1,247 distinct suite tests / 0 failures / 1 ignored; output also includes its existing one-test subprocess driver.
  • Linux negative control: keep a writable descriptor on an executable script, direct exec returns errno 26; close that descriptor, direct exec succeeds and returns exact stale actionlint 1.7.0; missing executable continues to propagate ENOENT. No retry/interpreter fallback was used.

Historical #1257 records this exact test name failing when another Cargo sensor relinked the product binary. That is a candidate class of interference, not a demonstrated cause here: independent-baseline.yml:71 assigns per-check target directories and checks run in separate jobs. Fixture write-close inspection plus passing stress does not justify claiming a repair.

Smallest safe next step: preserve single direct exec and its error, add executable/cwd/stage context at the preflight and product launch boundaries, then capture failing-path write handles or an overlapping linker/writer on a recurrence. Fix the demonstrated writer/launch ownership only after that evidence exists. No speculative retry, delay, assertion weakening, suppression, pin/threshold change, parent push, or new implementation PR was made. #1361 stays unchanged and its 11 RIPR gaps are separate.

Local retained evidence: /workspace/scratch/pr1377-doctor-diagnosis/ contains hosted-job.log, cli-stress-0..9.log, workspace-test.log, handle-controls.json and summary.json. Current branch/head remain unchanged; worktree clean.

Copy link
Copy Markdown
Member Author

Follow-up diagnostic-only scope authorized: preparing test/cli-launch-error-context independently from current main 5a72634d4eec98d5de494598902cc6cac256b508, limited to tests/common/mod.rs capture/expected-failure launch error context and deterministic negative/success controls. No ETXTBSY fix claim, retry, sleep, product change or #1361 stack update. Existing ownership search found #613's broad test split and #1296's distinct Windows listener investigation; neither names this spawn-context leaf. PR #1376's ambient-event isolation is already in this base. Parent retains PR1377 status/body updates.

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