Repository navigation
test(gate): distinguish Required, Detective, and Advisory output - #1663
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 32 minutes. View limit details
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
Reviewed the exact draft diff against the tool-status projection, threshold evaluation, and gate reducer. The focused lab run exercised the four policy cases. I found no required change within this output contract.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-head source review passed. The test changes one authority/selection dimension at a time, holds successful receipts and the over-limit count constant where relevant, and asserts serialized verdict, coverage, outcome, and reason. The stale unselected receipt cannot silently influence the decision. No production policy changes.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-head source re-review: no blocker for this #976 compatibility regression. The root/test diff is unchanged; the restack adds the landed Codex Cloud guide only. The four cases use the real status/receipt writers and gate reducer to distinguish required missing, selected over-limit, stale unselected, and selected advisory without an applicable threshold. This is not the full typed policy matrix. The earlier Ready run refused the stale base-side parent before gate analysis; it did not fail the test. Let the ordinary new-head gate finish on the current merge preview and verify the required status before merging.
Summary
Refs #976. Add one deterministic model-off fixture for the gate JSON contract using the existing sensor-status and tool-gate writers and the gate reducer.
conclusiongate_resultinconclusivenot_provenfailfindingpasspasspasspassThe fixture also checks evaluated and required counts and the blocking-reason receipt links.
Verification
Base
810527e3728c6789d98d8dd9e9eb72f538d6464a, head9e877d80e429870f75b90a461c45bf2a95c0c6e7, tree1a8db3dd6d1c5ceb64ff92b19196ef20b23a08b4.The focused test passed on Rust 1.95.0 in a detached lab at the above base. The lab applied the exact candidate patch, compiled the existing production functions, and excluded unrelated test items to reduce memory use. The passing result covers the four cases above.
cargo fmt --all -- --check, the staged diff check, and the Bun artifact verifier self-test passed locally.Ordinary local test-binary builds timed out or ended with rustc killed before execution. The published candidate includes the full test suite for normal hosted qualification.
The local policy check passed with existing overdue receipt warnings.
The independent baseline passed all seven jobs. The workspace test log records an exact-head checkout, the new fixture passing, and 1,443 passing binary unit tests.
The required gate passed on GitHub's evaluated merge
26f4ee3d85ab1adfd5b0f4aafe7cd546bb2fb602. The job recordedgate conclusion is passand uploaded the verified gate packet.Author inline review. CodeRabbit deferred its review because of its rate limit.
Policy receipts and CI budget
One test in an existing Rust file. Default CI budget with the ordinary draft workflows.