Skip to content

test(gate): distinguish Required, Detective, and Advisory output - #1663

Merged
EffortlessSteven merged 2 commits into
mainfrom
test/976-consumer-gate-output
Nov 20, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
test/976-consumer-gate-output

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

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.

Current policy and evidence conclusion gate_result
Required sensor, status receipt absent inconclusive not_proven
Selected optional tool, configured threshold exceeded fail finding
Unselected optional tool, configured threshold, stale success and over-limit receipts pass pass
Selected advisory tool, identical receipt without a configured threshold pass pass

The fixture also checks evaluated and required counts and the blocking-reason receipt links.

Verification

Base 810527e3728c6789d98d8dd9e9eb72f538d6464a, head 9e877d80e429870f75b90a461c45bf2a95c0c6e7, tree 1a8db3dd6d1c5ceb64ff92b19196ef20b23a08b4.

  • 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 recorded gate conclusion is pass and 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.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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 32 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 147 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

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 17f0ad41-2f07-42ee-9104-58ab231672f7
Commits

Reviewing files that changed from the base of the PR and between 9207901 and 0828382.

Files selected for processing: 1

  • src/gate.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

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.

Comment thread src/gate.rs Resolved

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

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
EffortlessSteven marked this pull request as ready for review November 20, 2026 11:44

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

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

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.

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