Skip to content

ci(proof-routing): wire contract/xtask proof into required gates (P18) - #1084

Merged
EffortlessSteven merged 1 commit into
mainfrom
ci/p18-wire-contract-proof
Jun 10, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
ci/p18-wire-contract-proof

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

What

Makes the only required check (Ripr Rust Small Result) stricter by running six proof commands the manifest declared required but that ran in no CI workflow. Refs #1079; builds on #1074.

Why this shape (not a skip gate)

The P16 evidence (#1078) showed code/schema surfaces carry real signal — skipping required gates there is unsafe. So P18 closes a proof gap rather than opening a skip. This is the same gap class that hid #1074's golden drift.

Changes (2 files)

.github/workflows/routed-rust.yml

  • Append to the Required Rust gates in all four routed runner jobs: check-command-catalog, check-output-contracts, goldens check, fixtures, check-traceability, check-capabilities. (cargo test -p xtask omitted — cargo test --workspace already covers the xtask workspace member.)
  • Close the P17 docs/OUTPUT_SCHEMA.md escape: it ends in .md so it was routing docs-only and skipping check-output-contracts. Added to the detect-docs-only never-skip carve-out → schema-only PRs now route full proof.

policy/ci-lane-whitelist.toml

  • Reconcile the routed-rust-small lane to list the commands it now actually runs (manifest honesty for the proof-route artifact).

Verification

  • All 6 commands pass on current main (post-test(goldens): latent TypeScript preview golden drift not caught by required CI #1074 fix): check-command-catalog, check-output-contracts, goldens check, fixtures, check-traceability, check-capabilities.
  • check-workflows / check-proof-packs / check-ci-lane-whitelist green. Run-block 27/63 lines.
  • OUTPUT_SCHEMA.md-only diff now → docs_only=false (full proof); regular docs still route docs-only.
  • This PR is non-docs, so its own CI runs the new gates — live self-validation.

🤖 Generated with Claude Code

Closes the proof gap surfaced while verifying P18's prerequisites: six commands
that the proof-pack manifest declares as required proof ran in NO CI workflow,
so the surfaces they cover (xtask automation, output contracts, goldens,
fixtures, traceability, capabilities) had no required gate. This is the same
class of gap that hid the #1074 golden drift.

P18 is deliberately NOT a skip gate. The P16 evidence showed code/schema
surfaces carry real signal, so skipping required gates there is unsafe. Instead
this makes the only required check ("Ripr Rust Small Result") STRICTER:

- Add to the Required Rust gates in all four routed runner jobs:
  check-command-catalog, check-output-contracts, goldens check, fixtures,
  check-traceability, check-capabilities.
  (cargo test -p xtask is omitted: cargo test --workspace already covers the
  xtask workspace member.)
- Close the P17 docs-only escape for docs/OUTPUT_SCHEMA.md: it ends in .md and
  was routing docs-only, skipping check-output-contracts. Add it to the
  detect-docs-only never-skip carve-out so a schema-only PR routes full proof.
- Reconcile the routed-rust-small lane in ci-lane-whitelist.toml to list the
  commands it now actually runs (manifest honesty for the proof-route artifact).

All six commands pass on current main (post-#1074 fix). Run-block 27/63 lines;
check-workflows / check-proof-packs / check-ci-lane-whitelist green.

Refs #1079. Builds on #1074 (goldens fix).
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@EffortlessSteven
EffortlessSteven enabled auto-merge (squash) June 10, 2026 22:20
@coderabbitai

coderabbitai Bot commented Jun 10, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: d9ff22f5-6a8f-4764-b01f-fc25d57b069f

📥 Commits

Reviewing files that changed from the base of the PR and between b7872d4 and d73ee89.

📒 Files selected for processing (2)
  • .github/workflows/routed-rust.yml
  • policy/ci-lane-whitelist.toml

Summary by CodeRabbit

  • Chores
    • Expanded CI validation pipeline to include additional cargo xtask checks: command catalog verification, output contract validation, goldens comparison, fixture testing, traceability verification, and capability checking
    • Documentation schema file now included in release-surface change detection

Walkthrough

This PR updates GitHub Actions workflow validation logic and CI lane configuration. The docs-only detection now recognizes OUTPUT_SCHEMA.md as part of the release surface, and all four Rust job lanes add six additional cargo xtask checks to their required gates. The CI lane whitelist configuration is expanded to allow the full set of validation commands.

Changes

CI Validation Expansion

Layer / File(s) Summary
Docs-only detection surface expansion
.github/workflows/routed-rust.yml
docs/OUTPUT_SCHEMA.md is added to the release surface allowlist, preventing docs-only optimization when this schema file changes.
Required Rust gates expansion across lanes
.github/workflows/routed-rust.yml
All four execution lanes (rust-cx43, rust-cpx42, rust-cx53, rust-github) add six additional cargo xtask commands to required gates: check-command-catalog, check-output-contracts, goldens check, fixtures, check-traceability, and check-capabilities.
CI lane whitelist command expansion
policy/ci-lane-whitelist.toml
The routed-rust-small lane's command list is expanded to include the full set of cargo xtask validation checks now required by the workflow gates.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related issues

  • #1079: Related — modifies the same routed-rust workflow lanes by adding the same cargo-xtask checks.
  • #1078: Related — modifies .github/workflows/routed-rust.yml and policy/ci-lane-whitelist.toml by adding and altering the same cargo xtask CI gate commands.
  • #1080: Related — updates the same CI workflow gating in .github/workflows/routed-rust.yml with required xtask checks and gate logic.

Poem

🐰 A workflow grows stronger with each test aligned,
Gates and lanes expanded, validation refined,
The schema now watches the release take flight,
With fixtures and checks burning bright through the night! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description provides substantial detail on changes, rationale, and verification, but omits several required template sections including Summary, Source-of-truth Links, Scope Classification, Support-tier Impact, Claim Boundary, Rollback, Spec-Test-Code Traceability, and most CI Economics fields. Complete missing template sections: add explicit Summary bullets, source-of-truth links (Issue/Plan item/etc.), Scope Classification checkboxes, Support-tier Impact assessment, clear Claim Boundary and Rollback sections, Spec-Test-Code Traceability with golden outputs, and detailed CI Economics (LEM impact, workflows touched, required lanes affected, rollback path).
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: adding contract/xtask proof commands to required CI gates as part of the P18 proof-routing work, which aligns with the substantial workflow and policy changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/p18-wire-contract-proof

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates the routed-rust-small CI lane in policy/ci-lane-whitelist.toml by adding several verification commands, including check-command-catalog, check-output-contracts, goldens check, fixtures, check-traceability, and check-capabilities. The reviewer noted that cargo xtask check-campaign was omitted and suggested adding it to ensure complete coverage of all required traceability proofs.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

workflow = ".github/workflows/routed-rust.yml"
jobs = ["Ripr Rust Small Result"]
commands = ["cargo fmt --check", "cargo check --workspace --all-targets", "cargo clippy --workspace --all-targets -- -D warnings", "cargo test --workspace", "cargo xtask check-static-language", "cargo xtask check-no-panic-family", "cargo xtask check-allow-attributes", "cargo xtask check-local-context", "cargo xtask check-file-policy", "cargo xtask check-executable-files", "cargo xtask check-workflows", "cargo xtask check-droid-review-config", "cargo xtask check-spec-format", "cargo xtask check-spec-numbering", "cargo xtask check-fixture-contracts", "cargo xtask check-generated", "cargo xtask check-badge-diff-policy", "cargo xtask check-generated-clean", "cargo xtask check-dependencies", "cargo xtask check-process-policy", "cargo xtask check-network-policy"]
commands = ["cargo fmt --check", "cargo check --workspace --all-targets", "cargo clippy --workspace --all-targets -- -D warnings", "cargo test --workspace", "cargo xtask check-static-language", "cargo xtask check-no-panic-family", "cargo xtask check-allow-attributes", "cargo xtask check-local-context", "cargo xtask check-file-policy", "cargo xtask check-executable-files", "cargo xtask check-workflows", "cargo xtask check-droid-review-config", "cargo xtask check-spec-format", "cargo xtask check-spec-numbering", "cargo xtask check-fixture-contracts", "cargo xtask check-generated", "cargo xtask check-badge-diff-policy", "cargo xtask check-generated-clean", "cargo xtask check-dependencies", "cargo xtask check-process-policy", "cargo xtask check-network-policy", "cargo xtask check-command-catalog", "cargo xtask check-output-contracts", "cargo xtask goldens check", "cargo xtask fixtures", "cargo xtask check-traceability", "cargo xtask check-capabilities"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The traceability lane (which is marked as required) includes the cargo xtask check-campaign command. However, this command is omitted from the routed-rust-small lane, even though other traceability commands like check-traceability and check-capabilities have been added. To ensure complete coverage of all required traceability proofs, please add cargo xtask check-campaign to the commands list.

Suggested change
commands = ["cargo fmt --check", "cargo check --workspace --all-targets", "cargo clippy --workspace --all-targets -- -D warnings", "cargo test --workspace", "cargo xtask check-static-language", "cargo xtask check-no-panic-family", "cargo xtask check-allow-attributes", "cargo xtask check-local-context", "cargo xtask check-file-policy", "cargo xtask check-executable-files", "cargo xtask check-workflows", "cargo xtask check-droid-review-config", "cargo xtask check-spec-format", "cargo xtask check-spec-numbering", "cargo xtask check-fixture-contracts", "cargo xtask check-generated", "cargo xtask check-badge-diff-policy", "cargo xtask check-generated-clean", "cargo xtask check-dependencies", "cargo xtask check-process-policy", "cargo xtask check-network-policy", "cargo xtask check-command-catalog", "cargo xtask check-output-contracts", "cargo xtask goldens check", "cargo xtask fixtures", "cargo xtask check-traceability", "cargo xtask check-capabilities"]
commands = ["cargo fmt --check", "cargo check --workspace --all-targets", "cargo clippy --workspace --all-targets -- -D warnings", "cargo test --workspace", "cargo xtask check-static-language", "cargo xtask check-no-panic-family", "cargo xtask check-allow-attributes", "cargo xtask check-local-context", "cargo xtask check-file-policy", "cargo xtask check-executable-files", "cargo xtask check-workflows", "cargo xtask check-droid-review-config", "cargo xtask check-spec-format", "cargo xtask check-spec-numbering", "cargo xtask check-fixture-contracts", "cargo xtask check-generated", "cargo xtask check-badge-diff-policy", "cargo xtask check-generated-clean", "cargo xtask check-dependencies", "cargo xtask check-process-policy", "cargo xtask check-network-policy", "cargo xtask check-command-catalog", "cargo xtask check-output-contracts", "cargo xtask goldens check", "cargo xtask fixtures", "cargo xtask check-traceability", "cargo xtask check-capabilities", "cargo xtask check-campaign"]

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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