A closed-loop operating system for pull requests: observe the exact head, request independent review, dispatch real blockers, resolve only with recorded approval, and merge only when every guard is true.
Exact headEvery decision binds to a full commit SHA.
Fail closedMissing or ambiguous evidence blocks progression.
AuditableReports and resolution records preserve the decision trail.
Signal to outcome
One pipeline, four accountable movements.
The system does not guess. Each movement either produces the evidence required for the next one or leaves an explicit blocker behind for the right owner.
01 · OBSERVE
Monitor the live head
Codex Monitor tracks open pull requests, review receipts, CI evidence, and exact commit identity.
02 · ROUTE
Dispatch the real blocker
Conductor and the Blocker Dispatcher create targeted briefs for the pane that owns the evidence or implementation.
03 · PROVE
Resolve only with proof
Thread Resolver rechecks the current head and original opener approval before one governed resolution mutation.
04 · GATE
Merge only when clean
Principal Merge Gate independently verifies reviews, threads, checks, contracts, and the immutable head before merging.
Control plane
The pipeline is autonomous, not permissive.
A
ConductorConsumes governed work signals, validates handoffs, and dispatches briefs to the fleet.
B
Review monitor and reporterDetects changed heads, requests review where policy permits, and emits a durable receipt trail.
C
Blocker dispatcherClassifies actionable blockers and wakes the exact owner instead of creating generic queue noise.
D
Thread resolverRetries transient reads, then remains safely blocked if the source of truth cannot be read.
E
Principal Merge GatePerforms final independent verification. A healthy pipeline still refuses a noncompliant merge.
Operating contract
Three boundaries keep autonomy trustworthy.
The pipeline coordinates work without widening authority. It separates observation, remediation, and irreversible action so a fast signal never becomes an unsafe merge.
Observe
Monitors and reporters inspect GitHub state, retain exact-head receipts, and create durable reports. They do not merge code.
Remediate
The dispatcher sends the smallest useful brief to the owning pane. Work remains scoped to the blocker, branch, and evidence trail.
Commit irreversible actions
Only the Principal Merge Gate performs a merge after independently rechecking policy, reviews, threads, CI, and the final head.
State language
Every result is legible at a glance.
Progress
Evidence advances
New exact-head review, an approved closure, or a passing CI result moves the relevant gate forward.
External hold
Wait without guessing
Rate limits, unavailable reviewers, and pending checks are reported as holds. The system keeps evidence intact and waits for a change.
Hard stop
Refuse unsafe mutation
Head drift, ambiguous approval, stale receipts, or unreadable threads prevent closure and merge until independently resolved.
Concrete decision paths
What the pipeline does when the world is imperfect.
Every branch has a defined outcome. The system either produces the evidence required to move forward or leaves a clear, safe hold for the right owner.
Clean, merge-ready PR
Advances
1
Monitor: records the current head and review receipts.
2
Resolver: confirms connector-opened threads are resolved or explicitly approved.
3
Gate: independently verifies CI, reviews, policy evidence, and head identity before merge.
Reviewer has a finding
Routes work
1
Reporter: persists the finding with its review link and path.
2
Dispatcher: creates an owner-specific brief instead of broad queue noise.
3
Gate: refuses the PR until the repaired head has fresh governed review evidence.
GitHub read is transiently unavailable
Retries, then holds
1
Resolver: performs bounded read retries under review policy.
2
Safety: an unreadable source of truth produces no resolution mutation.
3
Recovery: the next scheduled sweep retries with fresh remote state.
Approval becomes stale after a new commit
Refuses
1
Resolver: compares approval evidence with the current full head SHA.
2
Drift guard: re-fetches the head immediately before a mutation.
3
Outcome: the old approval cannot close a thread on the newer commit.
Proof trail
Every automated decision leaves a human-readable record.
PR observation captures repository, number, current full head, and status snapshot.
Review receipts prove the reviewer saw the same immutable head.
Blocker briefs preserve ownership, priority, and a focused remediation request.
Thread-resolution JSONL records the approving comment, thread ID, and head.
Merge verification rechecks the final truth independently from the dispatcher.
Shared vocabulary
Terms used by the pipeline.
Exact head
The complete commit SHA that every review, resolution, and merge decision must reference.
Receipt
Durable evidence that a review system evaluated a particular PR head and returned a result.
Blocker brief
A focused task containing the affected PR, evidence, owner, and bounded next action.
Closure handshake
The exchange in which the original thread opener explicitly approves closure at the current head.
Fail closed
When evidence is missing or ambiguous, the system performs no irreversible action and records the hold.
Independent gate
A final verifier that does not trust upstream status alone and rechecks the merge prerequisites.