feat: add supervised Codex integration controls - #11
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4fb18e13ac
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| notification: false, | ||
| }, | ||
| ownershipRecords: [], | ||
| ownershipRecords: loadOwnershipRecords(found.repoRoot, { excludePath: ownershipPath }), |
There was a problem hiding this comment.
Scan the registry when reusing a released worktree
When a native host binding claims a just-released managed worktree between checkpoints, createOwnedWorktree() takes the reuseOwnedWorktree() path first; that path still evaluates only the previous managed record, so the full registry load here is never reached. If the worktree remains clean during the check, CEWP reactivates managed ownership and dispatches a child into the native-owned worktree, allowing simultaneous host and child mutation. Load all ownership records in the continuation gate as well.
AGENTS.md reference: AGENTS.md:L6-L6
Useful? React with 👍 / 👎.
| assignments: { | ||
| ...(previous ? previous.assignments : {}), | ||
| [operation]: assignment, |
There was a problem hiding this comment.
Discard stale assignments when approving a revised checkpoint
After a plan revision or checkpoint change, approving one operation loads the old policy with allowStale but copies every unrelated stale assignment into the new policy. resolveCodexEffortForDispatch() later validates all assignments without allowStale, so an old reviewer or repair assignment blocks a freshly approved implementation dispatch until every historical operation is unnecessarily reapproved; there is no command to clear them. Preserve these entries in history, but omit stale assignments from the current policy.
AGENTS.md reference: AGENTS.md:L5-L5
Useful? React with 👍 / 👎.
Summary
Validation
This is part 1 of the ordered Phase 11-14 publication series.