Skip to content

fix(ci): retire queued checks after native policy changes - #344

Merged
ScriptedAlchemy merged 1 commit into
masterfrom
codex/ci-native-receipt-policy
Sep 29, 2026
Merged

ScriptedAlchemy merged 1 commit into
masterfrom
codex/ci-native-receipt-policy

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Why

Updating an Action pin changes its policy digest. When native CI then owns the same PR head, queued checks from the earlier policy can remain pending because their policy does not match the new receipt.

Scope

Accept any well-formed native policy receipt from the latest exact-head PR workflow. Delegation still requires the exact requested policy. Planning includes valid queued prior-policy checks for known lanes only when that native refusal exists.

Move native-marker cancellation entirely into serialized drains. Before cancellation, recheck the current PR head, native receipt and exact queued check. Enqueue only declines new admission. Add regression coverage, a patch Changeset and regenerated artifacts.

Tradeoffs

This retires queued markers on open PR heads with validated native ownership. It does not retire closed PRs, unknown lanes or active checks. A valid old-policy delegated receipt remains untouched.

Verification

  • pnpm build: passed, including host validation.
  • pnpm check: passed (artifact freshness, validation, build, typecheck, diagnostics, Action, unit, route and browser suites).
  • Action suite: 50 passed, one unchanged opt-in Docker test skipped. Regressions cover old-policy plan-to-drain cleanup, read-only planning, strict delegation, malformed identities, wrong head/app/lane, changed receipts and queued-to-running transitions.

@changeset-bot

changeset-bot Bot commented Sep 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6495606

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
cargo-hauler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T04:50:22.767149Z 6495606 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ScriptedAlchemy
ScriptedAlchemy merged commit 893a3c4 into master Sep 29, 2026
3 checks passed
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