Repository navigation
fix(ci): refuse qualifying success for diagnostic branch dispatch - #8809
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
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 40 minutes. View limit details
Comment |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent source/oracle review by /root/review_5394, submitted through the author account as COMMENT; this is not an independent GitHub approval.
reviewed_head_sha: f9a30f4
integration_basis: 806147b
Complete six-file inspection covered installed triggers/concurrency/Result shell and direct event/ref env, admission's real non-PR producer, reused Rust/docs consumers, PR-only evidence, budgets, CI contract and changelog. No blocking source or oracle finding. Own Rust tests 4/4 pass; independently varied actual Result shell across 245 cases including all runner routes and admission/detection/docs/child failures. Exact-base bypass reproduced. Refusal removal, missing github.ref binding and unconditional-success controls are rejected by 2/1/3 tests respectively. Raw review and controls retained at /workspace/scratch/5394-review.
Root verified subsequent native Cargo tests 4/4, focused strict Clippy, ci-policy, committed-head check-fast (6 actual paths) and precommit all exit0. Changed Result passes ShellCheck/bash syntax. Full-action inherited SC2034 warnings and identical Zizmor findings remain disclosed in the body.
Source/local proof clear for the separate qualification-request decision. Final published-head/integration disposition remains REVIEW_INCOMPLETE until required hosted proof, actual checkout and current findings/protection applicability are assessed. Ubuntu production surface; native Windows unexecuted. Reviewer's gh issue read was Forbidden and not retried; root's permitted connector read is separate. #8082 holds remain intact. No workflow dispatch, Ready/merge or release action is supplied by this review.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm new xtask test executes the checked-in Result shell and admission producer shell as Bash subprocesses with fixture env, asserting the 4 route classes (PR, main dispatch, master dispatch, push to main) plus 3 admission failure shapes plus docs-only override; no network or workflow dispatch is performed.
- Confirm test harness parses YAML by string split_once on '
result:
' and '- name: Summarize routed result\n', strips 10-space indent per line, then invokes bash -e -c with env_clear and only PATH + GITHUB_STEP_SUMMARY + synthetic input vars. - Confirm they do not exercise actual GitHub-hosted scheduling, check creation, or branch protection. The PR body's own acceptance ('REVIEW_INCOMPLETE for final merge pending published-head hosted proof') acknowledges this; tests-red-green lane cannot bridge that gap, so this residual is human-verification-only and does not affect test correctness.
- Confirm hosted published-head qualification is pending (PR body marks REVIEW_INCOMPLETE) and this lane cannot witness live GitHub scheduling/check association. Actionlint sensor failed locally (exit 1) and zizmor missing; workflow-correctness on the published runner remains a human verification.
Refuted
- Allocation failure in BTreeMap or env_clear would silently drop WORKFLOW_REF and let a diagnostic dispatch qualify; refuted because: Box::from / BTreeMap allocation failure is out of scope; even if env_clear/build failed the missing WORKFLOW_REF would make the diagnostic branch evaluate WORKFLOW_REF != "refs/heads/main" true and refuse; allocation failure on env build would itself abort Command::new before any shell run.
- A concurrent Rust test invocation could leak Scratch dirs if a panic skips Drop.; refuted because: Rust runs destructors during unwinding; AtomicUsize NEXT.fetch_add is Relaxed (safe for unique-name counter); no thread::spawn or detached handle in the new test file. No JS or async detach surface exists.
- Placing refusal only in Result shell lets 'continue-on-error: true' at job level (or a future skip) still report green via parent job rules; refuted because: Worker's grep across the workflow shows no 'continue-on-error: true' anywhere, and the new test 'event_identity_is_wired_from_github_not_candidate_inputs' asserts its absence. PR body and workflow comment claim this is deliberate; relying on the static required context also prevents accidental skip.
Parked follow-ups
- No sibling crypto/compression/runtime helper paths exist or warrant broadening: the diff is YAML shell + 2 process-policy allowlist entries + docs + a single 278-line xtask test. Test file only uses std::process::Command and a temp Scratch dir; no new helper modules.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REPAIR_REQUIRED / hosted qualification failed. Run 39144222585 attempt 1 actually checked out dee5860 (parents main806147b2/headf9a30f46), and executed the same reusable controller. Admission, policy, workspace checks and strict Clippy passed. Required nextest stopped after 83/17428 selected tests: 82 passed, 1 failed, 4 skipped; the remaining selected tests were not run. Failure: repo-policy::docs_only_routing::actual_result_block_requires_successful_detection_and_selected_proof; its existing shell fixture initializes newly introduced WORKFLOW_REF to empty, then expects workflow_dispatch success. Exact-main comparison is being established before repair; no rerun, duplicate qualification or Ready action requested. Final Result correctly failed. Doctests/goldens/fixtures/PR-evidence remained skipped after failure. Source/local review remains useful, but final readiness is withdrawn; no merge.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Affected-dimension exact-head review: ef565e4 / basis806147b2184d1ff703a883abf68215228a7d2bef. Independent reviewer /root/review_5394 inspected the ten-line fixture-only successor and entire existing docs-routing matrix. No assertion or production byte changed. Its own exact-commit tests6/6+4/4 pass; empty-ref and diagnostic-ref mutations each fail the unchanged expected-success assertion. Original workflow/event/admission/245-case review remains applicable to unchanged production. Submitted through author-account COMMENT, not independent GitHub approval.
Root established candidate attribution before repair: exact-main failing-test control native0/1pass; oldhead native101/1failure. Current committed ci-policy/check-fast/precommit all native0. Check-fast ran15gates including workspace strictClippy, skipped cli-help-parity/check-fixture-contracts, and independent Git diff agrees on7paths. Repair-working-source Cargo6+4 and strict fixtureClippy passed; independent reviewer refreshed committed-source execution.
Review5563878738 verification questions are answered by actual checked-in shell extraction, real admission producer, event/ref control matrices and explicit local-versus-hosted limits in the body. Its unavailable/missing local sensors are not source findings: root's retained actual Actionlint/ShellCheck/Zizmor observations distinguish inherited warnings from changed Result. No human-only approval requirement is inferred. Quota-limited Gemini/CodeRabbit remain unavailable review.
Final disposition REVIEW_INCOMPLETE: original required run39144222585/attempt1 failed, and its82pass/1fail/4skip plus unexecuted remainder never qualified this new head. No new qualification or Ready requested; current PR remains Draft under continuation constraint. Actual new-head hosted checkout/complete gates/current integration acceptance remain missing. No merge. Original gh/protection denials and workspace artifact-transfer403 remain preserved; no retry/bypass. Native Windows unexecuted; Ubuntu-only production Result. #8082 holds and inactive freeze unchanged.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Confirmed findings
- result_shell strips 10-space indent assuming uniform nesting; workflow YAML could legally mix spaces and tabs or use different indent if refactored, causing silent shell extraction failure with a generic 'unexpected Result shell nesting' error rather than a targeted diagnostic.
- xtask/tests/routed_dispatch_result.rs:37 — result_step and result_shell use exact-string YAML anchors (split_once on 'result:' and 'Summarize routed result', strip 10-space indent). A future reformat to indent the step or rename the summary will fail every test with an opaque 'missing actual result job' / 'unexpected Result shell nesting' error. Anchor on a tolerant regex or assert a stable shape first.
- Sibling scope: only one workflow (routed-rust.yml) implements the 'required Result' pattern; no sibling workflow replicates it. The claim of no-sibling-paths holds because routed-rust.yml is the unique dispatch site and it is the file changed. No further cross-workflow route scan is needed for this PR.
Verification questions
- Confirm docs_only_routing fixture had WORKFLOW_REF bound from EVENT_NAME so existing positives remained authoritative after production wiring changed; no assertion weakening.
- Confirm manual/push positives in docs_only_routing.rs routed_result_admitted now bind WORKFLOW_REF to refs/heads/main while manual/push negatives bind it to refs/heads/main as well, so non-PR diagnostic failures would not surface here; routed_dispatch_result.rs is the only negative coverage. If WORKFLOW_REF were dropped from the real job env, the fixture would not regress detect it.
- Confirm xtask matrix covers 4 routes × multiple admission shapes, but the 'tag named main' literal is asserted only via the != predicate, not as a positive fixture name.
- Confirm hosted publish-head Run qualification (the exact failure observed) is the only execution boundary this lane cannot witness; failure attribution and fixture repair are documented but a hosted re-run before merge is the architectural seal on smallest-complete-fix.
- Confirm the 278-line new test extracts the result shell by YAML string split_once rather than parsing YAML; if the workflow reorders ' result:' or alters step nesting the regex path goes silent. Coupling is tight but documented and bounded to the result step.
- Confirm docs-routing fixture and new routed_dispatch_result both assert via identical required-check identity; a future rename of 'Ripr Rust Small Result' would break both. The proposed test asserts the summary header literally.
- Confirm hosted scheduling/association remains unproven: the test exercises a parsed shell, not GitHub-hosted run ordering, check creation, or branch protection. PR body already declares REVIEW_INCOMPLETE for this boundary; opposition cannot bridge it.
Refuted
- Adding WORKFLOW_REF env var to the result step could be observed by a concurrent workflow job and leak dispatch intent across the worker boundary; refuted because: Each job runs in a fresh GitHub Actions container with its own GITHUB_ENV/GITHUB_STEP_SUMMARY; WORKFLOW_REF is a per-job env var, not a shared artifact, and the test exec()s bash with env_clear so there is no inherited parent context.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Disposition of automated review5564017085 on exact current head ef565e4:
YAML anchor/indent coupling is an accepted nonblocking maintenance limitation, not silent acceptance or current source/oracle defect. result_step uses split_once(...).ok_or(...); result_shell returns Err for unexpected nesting. Rust Result-returning tests fail when the actual shape changes. Current installed shape was compiled/executed by root and independent reviewer. A future step rename/reformat must update these bounded consumers. A tolerant parser is not needed to establish this repair; no suppression or source edit follows.
Existing docs-routing main/manual positives and heavy-failure negatives intentionally use main authority. The fixture repair changes only env; every prior assertion is unchanged. Separate routed_dispatch_result cases cover diagnostic refs. Removing the real WORKFLOW_REF env is detected by event_identity_is_wired_from_github_not_candidate_inputs, and the independent binding-removal control failed1test. Synthetic env therefore is not the sole wiring oracle. The checked-in4tests and independent245-case matrix have distinct denominators; the latter review records tag/near-match refusal including tags named main/master on unchanged production source. Required summary/context-name coupling is deliberate contract coverage and fails closed.
Hosted association remains separate. Run39147874242 attempt2 has successful admission after attributed/restored PR-body metadata; actual Admission checkout365484 verified. Required Rust work has advanced through policy/workspace checks. Full Rust terminal evidence/Result and final current integration judgment remain pending, so final REVIEW_INCOMPLETE is retained. Sensor proof-intent rejection and unavailable sensors are not clean review or a new product finding. No independent GitHub approval inferred from this author-account COMMENT. No unresolved inline threads observed.
The attempted local read before this comment failed CreateProcess because exec-server transport disconnected; no remote comment/write occurred in that failed script. Connector evidence/operations remain usable. Local cleanup remains pending access to the existing environment; no speculative deletion or artifact-transfer retry.
Maintained regression proposal: named-tag suffix mutationReviewed source: The current disposition already records independent refusal coverage for tags named main/master. That coverage is acknowledged here. The new contribution is a concrete proposal to retain these cases in the checked-in matrix, backed by a different wrong-predicate control. At routed_dispatch_result.rs:126, the diagnostic-ref matrix has Codex executed 16 isolated Bash controls against the exact current Result shell and that mutant:
The existing full-ref predicate behaves correctly. The small maintained-test proposal is to add the two named-tag refs to for reference in [
"refs/heads/fix/5394",
"refs/tags/v0.11.0",
+ "refs/tags/main",
+ "refs/tags/master",
"",
"main",
] {This is optional regression retention within the existing owner's test surface, not a new production defect or a challenge to the already recorded 245-case review. The separate suggestion that a Limits: only the extracted current Result shell and fixture environment were executed. The Rust tests were not compiled or run by this pass, and these controls establish no hosted scheduling, check association or qualification. The local full-workflow SHA256 is Implementation stays with the existing PR owner. The next source step, if useful, is only the two test literals; no new writer, build, CI request or source edit was started by this handoff. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Final published-head disposition: REVIEW_READY for normal protected expected-head squash.
reviewed_head_sha: ef565e4
source/local_basis:806147b2184d1ff703a883abf68215228a7d2bef
actual qualified checkout/controller:3654849295a701beea099f920a5378821a1d44bc/treeb32df9b11eef355122e4430a2acf8ba4e837684e, ordered parents[B302872c0,Hef565e48]. Run39147874242attempt2/eventpull_request completed success; Rust117736870910 and final Result117743499580 success. Actual nextest17429passed/4skipped across125binaries, all4newdispatch cases and existing repaired docs assertion passed; doctests2passed/1ignored, separate policy0subjects. Full explicit gate steps and PR evidence ran successfully; actual diff operandsS806147b2/Hef565e48. Rust execution29m20s, not20minute acceptance.
Current integration basis710b306bc1356d27473d270cb6d8768d23cab0f3 adds disjoint #8771 test-resource support overB302. All source changes inspected; no workflow/admission/docs-routing overlap or source-contract invalidation. Native clean merge-tree419b2e12c9117461bba3a568f9b1264c55381531; all7candidate files match tested365484 bytes. No runtime pass is asserted for this newer tree. No behind-only restack or duplicate qualification required for this noninterfering test-only component. Original independent source/oracle/negative-control review remains current; final hosted/identity/findings dimensions refreshed by root.
Current Conversation, review submissions including automated5564017085/disposition5564034271, all inline threads and current-head run inventory inspected. No blocking source/oracle finding or unresolved thread. Tight shell-extraction shape is accepted fail-closed maintenance; missing provider sensor/quota is not promoted to clean review. Main ruleset18845973 active: resolved threads required, approvals0, extra-unattributed rule retained, no bypass. Classic read403 remains unknown, not absence. Normal merge must honor all live enforcement; no admin/settings change.
Residual nonclaims: native Windows and live negative GitHub branch dispatch unexecuted; historical green checks not revoked; local artifact XML not inspected under preserved transfer403 (complete job logs plus artifact metadata retained). Original old-head Rust failure and attempt1metadata refusal remain separately recorded. No #8082/#8172 hold change, freeze, pin, release, tag or deployment.
Reviewer identity: accountable root with independent /root/review_5394 source execution/controls; submitted via author EffortlessSteven account as COMMENT, not independent GitHub approval. This clears scoped semantic/evidence review; normal protected GitHub merge enforcement remains authoritative.
Manual branch/tag dispatch could post successful
Ripr Rust Small Resultwhile skipping PR-only evidence. The always-running Result now explicitly fails diagnostic dispatches outsiderefs/heads/mainandrefs/heads/master; diagnostic children remain available. Ready PR and main/master authorities retain real admission/detection/child checks. The existing docs-routing fixture now supplies its intended PR/main ref, with every assertion unchanged.Governing issue or accepted claim: #5394
Acceptance delta (one sentence): A diagnostic branch/tag dispatch cannot supply successful PR qualification through the installed Result shell.
Closes #5394.
Source:
ef565e4833dfd53722bf623819fd4724d8355b06(two commits, seven files); implementation/local basis806147b2184d1ff703a883abf68215228a7d2bef.Evidence:
3654849295a701beea099f920a5378821a1d44bc, treeb32df9b11eef355122e4430a2acf8ba4e837684e, parents[main302872c09fcba7f2d14614a5103b021d103337de, head ef565e4].710b306bc1356d27473d270cb6d8768d23cab0f3adds only test(repo-policy): use runtime resources in relocated test harnesses #8771 test-resource support over qualified basis302872c0. Complete source delta inspected; no changed workflow/admission/docs-routing overlap. Clean native merge-tree419b2e12c9117461bba3a568f9b1264c55381531; all7candidate files byte-identical to tested365484. This newer combined tree has no separate runtime pass; unaffected scoped proof remains applicable without a behind-only restack.Limits/authority: native Windows unexecuted; required production Result runs on Ubuntu. No live diagnostic dispatch or revocation of historical green checks. Successful artifact metadata retained (nextest12144552457, calibration12144562479); local JUnit bytes uninspected because prior workspace transfer403 remains preserved, with no retry. Complete original job logs are retained locally. No #8082/#8172 activation/hold mutation, settings/protection/access/security, freeze/candidate, release/tag/deployment or source-sync action. Classic-protection403 remains an evidence gap; readable main ruleset requires resolved threads and no bypass. Merge uses normal expected-head squash and existing enforcement.
Changelog:
changelog.d/5394-diagnostic-dispatch-result.md, canonical Internal / CI marker, bullet and issue reference. Fixture repair belongs to the same coherent entry. Rollback is an ordinary reviewed revert; it reopens the dispatch gap.Continuity, original receipts and recoverable cleanup. Root retains original witnesses and verified archives; mutable target released only after full restore verification. Shared Git/toolchain/main checkout untouched.