Skip to content

fix(engine): resolve interrupted-gate trust through the runner identity - #46

Merged
erikreinert merged 1 commit into
mainfrom
fix/interrupted-gates
Nov 1, 2026
Merged

erikreinert merged 1 commit into
mainfrom
fix/interrupted-gates

Conversation

@erikreinert

Copy link
Copy Markdown
Member

Summary

Resuming a step whose gate was interrupted looked up the trust entry by the exec root. In a worktree checkout the exec root differs from the trust identity, so every lookup missed and the step parked as "no trust entry" instead of honoring the entry's re_runnable flag.

Changes

  • Resolve the trust identity from the runner's identity, as the gate runner does, in the interrupted-gate resume path.
  • Add a worktree-layout test covering an identity-bound entry (re-runnable and not) and an entry bound only to the worktree path.
  • Rebind the declared-files fixture to the identity it previously passed against only by accident.

Testing

  • Ran the engine package's resume and interrupted-gate tests with go test ./internal/engine/ -run 'TestInterruptedGate|TestResume' -count=1: passed.
  • Full test suite not run.

- Resume looked up the trust entry by the exec root, so in a worktree
  checkout every entry missed and the step parked as "no trust entry".
- Use the runner's identity, as the gate runner does, so the entry's
  re_runnable flag decides the outcome.
- Cover a worktree layout and rebind the declared-files fixture to the
  identity it was only passing against by accident.
@erikreinert erikreinert self-assigned this Nov 1, 2026
@erikreinert
erikreinert marked this pull request as ready for review November 1, 2026 22:47
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 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-11-01T22:48:21.489260Z 2e83077 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-01T22:49:42.872938Z 2e83077 Draft marked ready
ℹ️ 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.

@erikreinert
erikreinert merged commit 27477e7 into main Nov 1, 2026
8 checks passed
@erikreinert
erikreinert deleted the fix/interrupted-gates branch November 1, 2026 23:03
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