Resume after human review
When the owner submits a GitHub review, the orchestrator ingests it and materializes a MERGE_APPROVAL gate at the exact PR head.
Steps
-
Owner reviews the PR.
-
Owner submits
APPROVEDvia the GitHub UI orgh pr review --approve. -
Owner (or autopilot) runs:
.\scripts\goal-runner\ingest-github-review.ps1 `-GoalId <GOAL_ID> `-ReviewJsonPath <path-to-review.json> -
The orchestrator materializes a
MERGE_APPROVALgate withsource: github-review-approval. -
The orchestrator re-runs and consumes the gate.
-
The governed merge happens.
-
The CI on
mainre-runs. -
The orchestrator emits a
PRODUCTION_PROMOTIONgate (if production-bound).
What if the review was a REQUEST_CHANGES?
The orchestrator routes the goal back to REPAIR_REQUIRED with next_action_policy.on_repair.
What if the PR head moved between review and merge?
The gate is stale. The owner must re-submit a review at the new head.