Codex Workflow Protocol
Trigger Boundary
Use this skill when the task is complex or risky because it has one or more of these properties:
- multi-phase implementation or execution;
- cross-file, cross-system, generated-layer, deployment, or repository-wide changes;
- explicit acceptance gates, metrics, rendered artifacts, live state, or release/commit boundaries;
- delegation to sub-agents, long-running work, external services, or repeated verification;
- failure could corrupt code, data, research conclusions, publication artifacts, or user-visible releases;
- the user asks for end-to-end execution with evidence rather than a single explanation.
Do not trigger this skill only because the prompt mentions a specific tool, format, or platform. Simple compilation, one-command help, a short wording pass, a single scheduler header, or a casual explanation should route directly to the relevant specialist skill or ordinary answer.
Non-Negotiable Rule
Do not claim completion without evidence from the current source of truth and the task's real acceptance gates.
Smoke tests, dry runs, preflights, successful compilation, file existence, job submission, HTTP 200, child-agent launch, or old status files are intermediate evidence. They are final only when the user explicitly asked for that intermediate check.
Specialist Routing Contract
This skill owns process only:
- discover source-of-truth files and live state;
- protect existing user work and dirty-tree boundaries;
- define phases, owners, and acceptance gates;
- route domain work to the right specialist skill;
- monitor execution and delegation;
- integrate results and verify the final state;
- report precise completion, partial completion, failure, or blocking state.
Specialist skills own technical rules for their domain. They may add stricter checks, commands, schemas, or quality gates. They must not weaken the global completion boundary. Verified Workflow must not override a specialist's technical instructions.
Task Identity And Labels
Treat task keys as machine locators for branches, results paths, scheduled review bindings, and replay evidence. When Bridge Kit or Reviewed Handoff owns task creation, use its canonical task-key contract; new tasks use semantic <scope-token>--<goal-token> keys, while legacy numbered keys remain read/validate-only compatibility. Do not implement a local parser in this skill.
Pick scope from the real owner of the work before choosing a key. Cross-repo or cross-plugin work should use a scope that names the boundary being coordinated, not a client title. Human-readable labels, sidebar titles, thread names, and plugin display_name values are presentation metadata; they must not generate, rewrite, or override the technical task key.
Release Gate Selection
For plugin or workflow releases, identify gates from the frozen Plan and the repository policy rather than inventing a fixed count. Known regressions first map to existing gates and the cheap deterministic regression bank. Split or create a gate only when capability, evidence type, failure semantics, normal entry, or owner boundary genuinely differs.
Run narrow gates only when the changed source area is explainably isolated and should-not-change evidence covers adjacent behavior. Escalate to broad/full gates when shared runtime/schema/generator, routing, marketplace/profile exposure, artifact review, credential/paid paths, or cross-plugin user-visible behavior changed. All release claims must be backed by the same final candidate, with grader/eval changes separated from product behavior changes.
Workflow
- Read source-of-truth instructions, repository state, relevant skills, configs, tests, and current artifacts before acting.
- Separate discoverable facts from preferences; ask only for decisions that cannot be derived safely.
- Define task-owned files, generated files, pre-existing dirty files, and forbidden changes.
- Route specialist work explicitly, then follow the specialist's gates.
- Verify with the strongest practical evidence for the requested outcome.
- Report status honestly, including skipped checks, residual risk, and required user decisions.
Final Status Vocabulary
complete: all acceptance criteria met and verified.
partial_complete: useful work exists, but some criteria remain unmet.
qa_failed: an artifact exists but fails quality, validation, rendering, metric, fidelity, or live-state checks.
blocked: external state, permission, dependency, secret, or user decision is required.
blocked_target_not_met: the target cannot be met under current constraints without unacceptable compromise.
References
- Read
references/task-template.md when starting a large reusable Codex task or writing a handoff prompt.
- Read
references/verification-matrix.md for completion gates, dirty-tree handling, and final evidence.
- Read
references/live-state-delegation.md for long-running work, live state, or sub-agent supervision.
- Read
references/escalation-rules.md when a baseline, smoke test, or simple method gives weak results.
1---2name: codex-workflow-protocol3description: Use for complex or risky Codex tasks that require source-of-truth discovery, phased planning, specialist routing, gate-driven verification, live-state supervision, integration ownership, or honest final status reporting.4---5# Codex Workflow Protocol67## Trigger Boundary89Use this skill when the task is complex or risky because it has one or more of these properties:1011- multi-phase implementation or execution;12- cross-file, cross-system, generated-layer, deployment, or repository-wide changes;13- explicit acceptance gates, metrics, rendered artifacts, live state, or release/commit boundaries;14- delegation to sub-agents, long-running work, external services, or repeated verification;15- failure could corrupt code, data, research conclusions, publication artifacts, or user-visible releases;16- the user asks for end-to-end execution with evidence rather than a single explanation.1718Do not trigger this skill only because the prompt mentions a specific tool, format, or platform. Simple compilation, one-command help, a short wording pass, a single scheduler header, or a casual explanation should route directly to the relevant specialist skill or ordinary answer.1920## Non-Negotiable Rule2122Do not claim completion without evidence from the current source of truth and the task's real acceptance gates.2324Smoke tests, dry runs, preflights, successful compilation, file existence, job submission, HTTP 200, child-agent launch, or old status files are intermediate evidence. They are final only when the user explicitly asked for that intermediate check.2526## Specialist Routing Contract2728This skill owns process only:29301. discover source-of-truth files and live state;312. protect existing user work and dirty-tree boundaries;323. define phases, owners, and acceptance gates;334. route domain work to the right specialist skill;345. monitor execution and delegation;356. integrate results and verify the final state;367. report precise completion, partial completion, failure, or blocking state.3738Specialist skills own technical rules for their domain. They may add stricter checks, commands, schemas, or quality gates. They must not weaken the global completion boundary. Verified Workflow must not override a specialist's technical instructions.3940## Task Identity And Labels4142Treat task keys as machine locators for branches, results paths, scheduled review bindings, and replay evidence. When Bridge Kit or Reviewed Handoff owns task creation, use its canonical task-key contract; new tasks use semantic `<scope-token>--<goal-token>` keys, while legacy numbered keys remain read/validate-only compatibility. Do not implement a local parser in this skill.4344Pick scope from the real owner of the work before choosing a key. Cross-repo or cross-plugin work should use a scope that names the boundary being coordinated, not a client title. Human-readable labels, sidebar titles, thread names, and plugin `display_name` values are presentation metadata; they must not generate, rewrite, or override the technical task key.4546## Release Gate Selection4748For plugin or workflow releases, identify gates from the frozen Plan and the repository policy rather than inventing a fixed count. Known regressions first map to existing gates and the cheap deterministic regression bank. Split or create a gate only when capability, evidence type, failure semantics, normal entry, or owner boundary genuinely differs.4950Run narrow gates only when the changed source area is explainably isolated and should-not-change evidence covers adjacent behavior. Escalate to broad/full gates when shared runtime/schema/generator, routing, marketplace/profile exposure, artifact review, credential/paid paths, or cross-plugin user-visible behavior changed. All release claims must be backed by the same final candidate, with grader/eval changes separated from product behavior changes.5152## Workflow53541. Read source-of-truth instructions, repository state, relevant skills, configs, tests, and current artifacts before acting.552. Separate discoverable facts from preferences; ask only for decisions that cannot be derived safely.563. Define task-owned files, generated files, pre-existing dirty files, and forbidden changes.574. Route specialist work explicitly, then follow the specialist's gates.585. Verify with the strongest practical evidence for the requested outcome.596. Report status honestly, including skipped checks, residual risk, and required user decisions.6061## Final Status Vocabulary6263- `complete`: all acceptance criteria met and verified.64- `partial_complete`: useful work exists, but some criteria remain unmet.65- `qa_failed`: an artifact exists but fails quality, validation, rendering, metric, fidelity, or live-state checks.66- `blocked`: external state, permission, dependency, secret, or user decision is required.67- `blocked_target_not_met`: the target cannot be met under current constraints without unacceptable compromise.6869## References7071- Read `references/task-template.md` when starting a large reusable Codex task or writing a handoff prompt.72- Read `references/verification-matrix.md` for completion gates, dirty-tree handling, and final evidence.73- Read `references/live-state-delegation.md` for long-running work, live state, or sub-agent supervision.74- Read `references/escalation-rules.md` when a baseline, smoke test, or simple method gives weak results.