Repository navigation
fix(xtask): bind readiness to current invocation - #10651
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 57 minutes. View limit details
Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces a typed ReadinessOutcome enum to handle readiness step results, replacing the previous approach of inferring status from retained Markdown reports. The run_readiness_step function now accepts a closure returning this outcome, and several reporting functions (such as pr_triage_readiness, critic_readiness, and worktree_doctor_readiness) have been updated to explicitly return ReadinessOutcome::Completed or ReadinessOutcome::NeedsAttention. The legacy logic for parsing status from Markdown files has been removed. I have no feedback to provide as there were no review comments.
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm the changed caller set is traced, but the supplied evidence does not establish that no other readiness-producing sibling routes remain outside these callers.
Refuted
- Completion-only commands need report-derived status classification to remain successful.; refuted because: Their changed closures explicitly map successful execution to Completed, and pr_summary no longer requires a Status: line; errors still use the existing required/optional failure policy.
- The change requires new public status/schema concepts or broader architectural migration.; refuted because: ReadinessOutcome is crate-private, while existing JSON schema_version 0.1, advisory mode, status vocabulary, required/optional behavior, and producer report outputs remain intact.
Evidence gaps
- The current review packet lacks independently rerun test evidence because cargo-test, build, and related witnesses were skipped.
- Model proof intent was rejected by deterministic validation.
- Current hosted qualification and final published-head integration proof were not executed in this lane's available evidence.
- The packet lacks current-head test/build execution because cargo-test and build witnesses were skipped.
There was a problem hiding this comment.
Verification questions
- Confirm the review packet contains a failed ripr sensor and no completed current-head cargo-test receipt, so the PR's test claims remain carried or pending rather than independently confirmed.
- Confirm the typed adapter has no remaining route that parses retained Markdown to determine readiness status.
- Confirm the prior completeness concern about all sibling readiness-producing routes is not disproven by the shown diff and prior evidence.
- Confirm the prior caller-set verification concern remains open because this lane found changed routes but no broad inventory of all readiness-producing sibling paths.
- Confirm doctor success, warning, and dirty-main failure are tested, but the assertion couples dirty-main behavior to a failed report write rather than a distinct current error outcome.
- Confirm current critic, pr-triage, and worktree-doctor findings are mapped to needs_attention while successful completion maps to pass; producer errors retain required/optional fail or needs_attention behavior.
Refuted
- Completion-only commands still need retained Markdown parsing to preserve their successful result.; refuted because: The new test explicitly maps pr-summary completion to Completed and verifies pass; the seeded thread also confirms report-derived classification was removed.
- A typed outcome requires a new public schema or broad architectural migration.; refuted because: The enum is crate-private; existing JSON schema_version, advisory mode, status strings, and required/optional error mapping are retained.
- The typed-enum migration necessarily changes the public JSON schema or status vocabulary.; refuted because: ReadinessOutcome is crate-private, and tests retain schema_version 0.1, advisory mode, and existing pass/needs_attention/fail vocabulary.
- Completion-only commands require report-derived status classification.; refuted because: Their closures explicitly map successful execution to ReadinessOutcome::Completed, while failures remain errors.
Evidence gaps
- The PR body overstates independent current-head validation because ripr failed and cargo-test was only scheduled late.
- Model proof intent was rejected by deterministic validation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Disposition of review 5655000666 on head cf70f971fe18d1ab66f2f43ef0ba130f3aa71caf:
The doctor finding is refuted by the actual fixture. It verifies clean success and an actual residue warning, then renames the committed branch to main, creates and observes dirty.txt, invokes the producer, and reads a new Status: fail / Errors: report. The report finisher writes the report with ? before returning the blocking-doctor error. The regression neither injects nor depends on write failure; its prior warning report cannot satisfy the failure-report assertions.
The retained caller disposition remains applicable: two production aggregators, 15 calls and 11 commands. Doctor/critic/triage preserve typed warnings; eight completion-only commands explicitly adapt successful execution. No caller in this invocation-result contract derives readiness from retained Markdown. Other report inventories are not claimed to be converted.
Five selected owner-native tests completed successfully on cf70f97, including this doctor regression; integrated compilation, check-fast with strict workspace/all-targets Clippy, and native precommit also passed. Original 44 controls and independent source review retain their 2febc33 identity. No independent current-head test completion by this advisory lane is claimed; its failed sensor and rejected proof intent remain lane limitations.
These questions warrant no source patch or proof replay. Required hosted Rust qualification and final integration judgment remain pending; no merge clearance is asserted.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY — final current-head and integration review
Reviewed head: cf70f971fe18d1ab66f2f43ef0ba130f3aa71caf (tree fa092103f7c8e30a360bd512a9305af1142e8797).
Tested composition: 7fa888cebd258fc5f48c577bcc507744ba97ff31, parents bbbfd92fd57f43a59e3041944f4d1075d6448d37 + the reviewed head, tree 0a58c610b482bd537d7b140933231ed78e7013cc. Admission, Rust-gate and shard/cover logs bind the actual checkouts to this subject.
Qualification40359362692, attempt1, completed successfully; required result121728092507 passed. Policy, all-features target compilation, strict workspace/all-targets Clippy, goldens, fixtures, capability checks, configured verdict corpora, doctests, PR evidence and schema checks passed. All four test shards passed, and cover verification121726138501 accepted a complete disjoint CI-profile cover:5615 +5557 +5504 +5457 =22133 tests. This is the installed CI-profile qualification, not a claim about every possible feature/runtime or release.
The four repair blobs remain identical to the source reviewed at2febc334d. Original44 focused controls and independent review retain that identity; the five cf70 controls, native compile/check-fast/precommit and this hosted run retain their own subjects. Directed final review in the owning session confirmed typed current-invocation outcomes, all15 production calls/11 commands, warning preservation, completion-only contracts, required/optional errors and unchanged public schema/status vocabulary. The doctor/write-failure and evidence-provenance questions are source-dispositioned in5655411340; no source repair or proof replay was warranted.
Current main 13d8470b9641b483fd4ad38e550e28b889e3a9d6 adds no repair/caller/instruction/workspace-manifest change over the assessed basis. The newer partial-rerun verifier retains the same first-fresh-attempt1 contract; the final newer commit changes Python doctest tests/docs only. No new claim-affecting conflict or prerequisite was found, and unrelated main movement does not invalidate unchanged proof.
Current reviews/Conversation findings and all inline threads were inspected: no unresolved inline thread or remaining blocking source, oracle, contract or proof finding. Provider quotas were not treated as clean review or a required new reviewer. All53 observed check records are settled with no failure; skipped optional lanes are not counted as executed passes. Normal expected-head protected squash may proceed after the immediate live gate guard; no protection bypass, release or deployment is authorized by this review.
Summary
The advisory readiness adapter used the first Markdown status it found, or defaulted to pass when status was missing or unrecognized. Retained, quoted, fenced or superseded report text could therefore stand in for the current result.
Return a typed outcome from the current invocation instead. Preserve doctor, critic and triage warnings, explicitly adapt completion-only commands such as pr-summary, and retain existing status strings, schema 0.1 and required/optional error behavior.
Swarm / Source Boundary
Source-of-truth Links
Proposal: none; bounded hardening of the existing advisory readiness adapter.
Spec: none; no new public schema or lifecycle contract.
ADR: none; retain the existing repo_readiness semantic owner.
Plan item: accepted typed-readiness repair under #4984.
Governing issue or accepted claim: #4984; accepted bounded claim: advisory readiness must consume current typed producer outcomes instead of inferring them from retained Markdown.
Acceptance delta (one sentence): Current producer warnings remain needs_attention, successful completion-only commands remain pass, and retained report prose cannot override either result.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): codex/typed-readiness-outcome; published successor cf70f97.
Stack parent or prerequisite PR (if any): none; coordinator 09:49 first-party guards found this branch and all-state head PR absent, and bounded claim reconciliation found no equivalent. #8082 retains its separate runtime/caller seam.
Proposed replacement of PR (if any; not yet accepted): none.
Acceptance retained from a replaced candidate (if any): none; this is not presented as a replacement.
Accepted winner and losing candidate disposition (when decided): none decided; no other candidate is dispositioned by this PR.
Candidate Identity
Scope
Production delta: typed per-invocation outcomes in repo_readiness.rs, existing producer adapters and direct pr-ready/cockpit callers in main.rs.
Evidence/support delta: direct producer/adapter regressions in tests.rs and changelog.d/typed-readiness-invocation-outcome.md.
Command/process documentation disposition: no front-door documentation edit is needed. Commands, flags, help, routing, process/network surfaces and public schema/status vocabulary are unchanged; only the existing advisory projection consumes a typed current result. The changelog records this internal hardening. This explains the native shape checker's path-based documentation warning without expanding the source scope.
Scope Classification
Single acceptance criterion: the current invocation determines the advisory step result, with compatible completion, warning and error behavior.
Non-goals: workflow or merge-queue changes, GitHub eligibility/requiredness, git_changed_files, proof_route.rs, doctor cleanup policy/advice, or release/deployment configuration. #8082 retains runtime/caller and late-eligibility/H-G ownership.
Support-tier Impact
Claim/proof notes: contributor-only advisory tooling; no analyzer or product support claim changes.
Policy Impact
Ledger or exception notes: existing Rust and process-helper surfaces; no new dependency, process-launch API, network surface or policy exception.
Proof
Carried native commands from the original repair subject, all exit 0:
The five test selections passed 6 + 18 + 3 + 8 + 9 = 44 controls. The complete xtask test target and production binary compiled. The built producer-local xtask binary also passed check-process-policy, check-static-language, check-no-panic-family, check-allow-attributes and check-local-context.
Original subject identities: native runs used the final reviewed Rust file contents over base a58975d before commit creation. Post-commit file hashes matched 2febc33. Compilation metadata may retain the base identity; the evidence is bound by unchanged source contents, not relabeled as a later execution.
The original unchanged-adapter witness at that base retained seven false-pass counterexamples and five matching controls. Separate typed-adapter evidence retained 24 paired controls plus two error controls. Always-pass and continued-Markdown-parsing mutants each failed the intended assertion. These are distinct witnesses, not a claimed unchanged-input seven-red-to-seven-green producer run.
An initial native run exposed one doctor test-fixture defect: an unborn Git branch could not reach dirty-main behavior. The repaired fixture creates a commit, verifies branch identities and observes dirty.txt before the error assertion. The final focused runs above passed.
New Successor Evidence
Retained prior successor evidence (5951d13)
The one incoming xtask change updates the TypeScript corpus-pin test/config expectation. On exact successor 5951d13:
cargo test --offline --locked -p xtask --bin xtask corpus_pins_the_typescript_commit -- --test-threads=1The integrated xtask test target compiled and the selected test passed: 1 passed, 0 failed. The original 44 readiness/producer controls, production Clippy, six policy checks and independent source review are carried with their original identities because their four source blobs and relevant contracts are unchanged. They are not relabeled as successor executions.
Local currentness inspection matched the coordinator's 329-path incoming inventory, verified ancestry and a conflict-free merge tree, and independently resolved exactly four candidate paths against pinned main 1459aa1. Coordinator 09:49 reconciliation of the later 33 paths found no material effect on this repair; the original basis and proof identities are preserved.
The saved native Draft body is checked with check-pr-shape on this successor: all 11 required fields validate; its advisory command/process documentation warning is dispositioned in Scope above. New native check-command-catalog and check-generated-clean observations also passed on the successor. Exact artifact/body digests, commands and terminal results are retained in the successor receipt. No broad matrix replay or new reviewer was needed.
Current published successor (cf70f97)
Integrated verified main
6fa82ed0intocf70f971, incorporating the landed helper/corpus prerequisite without changing any repair blob. Five affected controls, native check-fast with strict workspace/all-targets Clippy, and native precommit passed. Original proof/review remains attributed to2febc334d. Caller completeness is resolved; hosted qualification and final integration judgment remain pending.On exact cf70f97/tree fa092103, the whole xtask test target and dependency compiled. Five selected native tests passed: current critic outcome against 12 conflicting/stale report shapes with warning/clean controls; completion-only summary plus required/optional errors; current triage warning/clean outcomes; doctor clean/warning/error outcomes; and the incoming Python corpus coverage expectation. The original44 tests are not relabeled as these five executions.
Native check-fast passed all 11 selected gates with a stable selector independently matched to the four candidate paths against main 6fa82ed, including cargo clippy --workspace --all-targets -- -D warnings. Native precommit passed on the same head/basis with complete four-path discovery, selected xtask/all-targets Clippy and no limitations. Commands, native exits and report/log digests are retained in the integration receipt. No tests or reviews were replayed for this publication step.
The regenerated GitHub merge tree 0a58c610 matches a conflict-free local composition of cf70f97 with observed main bbbfd92. The named hosted merge candidate has not been executed by this local proof.
Hosted qualification and landing
Run40359362692, attempt1, completed successfully on composed merge7fa888ce (parents bbbfd92 + cf70f97, tree 0a58c610). Actual admission, gate, shard and verification checkout records bind the run to that subject. Required result121728092507 passed. The four passing partitions contain5615,5557,5504 and5457 tests; verification121726138501 confirmed a complete disjoint CI-profile cover of22133 tests. Policy, all-feature target compilation, strict workspace/all-targets Clippy, goldens, fixtures, capability checks, configured verdict corpora, doctests, PR evidence and schema checks passed. Skipped optional lanes are not executed passes.
Final live gates reported54 settled check records with no failure and no unresolved inline thread. Final review5656183571 recorded REVIEW_READY in the owning session. Normal protected squash with expected headcf70f971 landed commit c487d63 on main; authoritative PR/commit/main readback verified parent 13d8470, tree dfd276ae and the exact four approved repair blobs. Qualification and original proof keep their own source identities; this does not relabel an old run as post-merge execution.
Review
Same-session Sol 6.1 independent review is bound to head 2febc33 and tree 51cfde2e5453ecf60837598688c471dc9667fdeb. No remaining source or local-proof blocker. The earlier adapter/critic/triage review is preserved for unchanged subjects; the doctor fixture finding is resolved.
The prior review is carried onto this successor by unchanged blob identity and the owning lead's integration applicability judgment; no new independent review is asserted. Current integration applicability was refreshed for main 6fa82ed and the bounded later main bbbfd92 inventory; the four repair blobs remain identical. Final current-head/integration disposition is REVIEW_READY in5656183571, after actual hosted qualification and fresh reviews/threads/checks/currentness inspection. Ordinary expected-head protected squash then landed this repair as c487d63.
Caller completeness disposition for review5650285172: the production step adapter and both constructors have only pr_ready and cockpit as production callers: 15 calls covering 11 commands. Doctor, critic and triage preserve typed warnings; the other eight commands explicitly adapt completion/error contracts. No production sibling was missed in that contract. Other report inventories/readiness subsystems are not claimed to be converted. The retained native controls and original independent review supply the relevant evidence; advisory witness skips do not erase those receipts or establish hosted qualification.
Changelog
changelog.d/typed-readiness-invocation-outcome.md uses Internal / CI and references #4984. Native fragment validation passed.
Claim Boundary
After integration, pr-ready and cockpit can describe their current advisory step outcomes without parsing retained report prose. This does not establish review approval, merge readiness, queue activation, deployment or release acceptance.
Rollback
Revert the four-file repair delta originating at 2febc33 through the ordinary protected route, preserving incoming main history. No protection, workflow, settings or data migration change is needed. Existing producer findings, report rendering and public CLI contracts remain the rollback boundary.
Spec-Test-Code Traceability
Static Language Check
CI Economics
Engineering Check
Gates
Completed local proof retains the identities enumerated above. Required hosted qualification40359362692/attempt1 passed on the named composition; its four partitions and complete disjoint CI-profile cover verified22133 tests, alongside the Rust gates and doctests. Preview/runtime adequacy and release/deployment qualification are not claimed. Existing checks and protections were preserved.
Local saved-body validation is recorded with the publication receipt. Before Ready, observe the current published head/body, effects, merge subject, findings and checks, and qualify through the installed protected route when expected-green conditions hold. Refresh an affected shape check if the body changes.
Repair Publication Authority
“Commit and push scoped fixes and open draft PRs for authorized repairs in repositories owned by the user or their GitHub orgs. Across those PRs, post descriptions, progress comments and evidence-backed COMMENT reviews to their repository audiences, limited to repair findings, changes and test results. Preserve protections; exclude unrelated outreach and sensitive disclosures.”
Continuation
Owner / governing claim: retained typed-readiness owner; bounded advisory current-invocation acceptance under #4984.
Candidate: PR#10651 is merged. Reviewed/qualified head cf70f97, tree fa092103f7c8e30a360bd512a9305af1142e8797. Tested composition7fa888cebd258fc5f48c577bcc507744ba97ff31, parents bbbfd92 + cf70f97, tree 0a58c610b482bd537d7b140933231ed78e7013cc.
Landing: protected squash c487d63 at2026-10-26T17:22:09Z, parent 13d8470, tree dfd276ae8d3d1bf0d4cad81a02259c8e3f9553de. All four landed repair blobs match the approved source; main readback confirmed this commit.
Review: original2feb source review and controls preserved; substantive late questions dispositioned in5655411340; final current-head/integration REVIEW_READY5656183571 followed fresh findings/checks/threads/source inspection.
Validation: original44 controls retain2feb identity; prior5951 integration proof retains its identity; cf70 five focused controls/compile/check-fast strict workspace-all-targets Clippy/precommit passed. Hosted40359362692/attempt1 required result and four-shard cover passed;22133 CI-profile tests verified.
Acceptance: this typed-readiness leaf is landed. Broader #4984 campaign acceptance remains with its coordinator; no umbrella issue was closed.
Next: return this accepted leaf and linked evidence to the parent campaign. Preserve the original witnesses and warm mutable build state for concrete evidence/repair consumers; no routine post-merge proof replay was requested.