| name | codex-orchestration |
| version | 0.1.0 |
| description | Orchestrate sprint work where team-lead coordinates, cwy is the sole developer, and quality-mgr enforces the QA gate. |
| depends_on | {"quality-management-gh":"1.x","quality-mgr":"0.x","req-qa":"0.x","arch-qa":"0.x","flaky-test-qa":"0.x","rust-qa-agent":"0.x","rust-best-practices-agent":"0.x","rust-service-hardening-agent":"0.x"} |
Codex Orchestration
This skill defines the repo-local orchestration workflow for this repository.
Model
team-lead coordinates sprint sequencing, worktree assignments, and PR flow
cwy is the sole developer for Codex-driven implementation work
quality-mgr runs the QA gate after each delivery
Preconditions
Before starting a sprint:
docs/requirements.md, docs/architecture.md, and docs/project-plan.md
define the sprint or phase review target.
- A worktree exists for the sprint branch under the repo’s worktree strategy.
- The target branch for the sprint is chosen from the current repo plan.
- The following prompts exist in
.claude/agents/:
quality-mgr.md
req-qa.md
arch-qa.md
flaky-test-qa.md
- installed Rust reviewers from
sc-rust
- The following QA reporting skill exists in
.claude/skills/:
quality-mgr must read:
.claude/assets/sc-rust/quality-mgr/quality-mgr.rust.md
quality-mgr must also read:
.claude/skills/quality-management-gh/SKILL.md
sc-compose is available for rendering the JSON and markdown templates.
Sprint Flow
team-lead assigns development to cwy using dev-template.xml.j2.
Every dev assignment must include the sprint-plan document path as
sprint_doc, and that sprint document is the authoritative source for the
task. Assignment prose may summarize, but it must not replace or weaken the
sprint doc.
cwy ACKs, implements, commits, pushes, and reports branch plus SHA.
- Before QA-1,
cwy performs a self-directed Rust best-practices sweep on
the integration branch using the same review_targets planned for QA-1 and
fixes all RBP findings found there. This is a developer cleanup step, not a
QA surprise.
team-lead opens or updates the PR.
team-lead assigns QA to quality-mgr using qa-template.xml.j2.
Every QA assignment must include sprint_doc, and quality-mgr must treat
that sprint document as the authoritative QA scope source.
quality-mgr launches the reviewer set:
req-qa
arch-qa
rust-qa-agent
rust-best-practices-agent
rust-service-hardening-agent
flaky-test-qa when test instability risk is present
- QA-2 and later rounds must omit
rust-best-practices-agent and
rust-service-hardening-agent. All RBP and service-hardening findings from
QA-1 must be fixed before merge — merge gate is 0B+0I+0m with no
exceptions and no backlog deferral. QA-1 findings route back to cwy
via fix-assignment.xml.j2 before QA-2, following the standard
triage-and-fix path.
- If QA passes and CI is green, merge may proceed.
- If QA fails,
team-lead first runs /triaging-findings to correlate the
findings across worktrees and determine the promoted fix branch.
- After triage completes,
team-lead routes concrete fixes back to
cwy using fix-assignment.xml.j2. Fix assignments must include:
- authoritative
sprint_doc = owning/promoted branch sprint plan (plus
additional sprint docs when findings span multiple sprint origins)
- specific requirement ids and ADR ids the fix must address (not whole
requirements/architecture dumps; planning already embeds those in the
sprint plan)
- triage
.ttl paths and concrete occurrences
The authoritative sprint document remains scope authority if the task
summary omits or compresses details. Do not omit sprint/REQ/ADR context
because the developer already worked the original sprint.
Plan Review Flow
team-lead completes /plan-hardening steps 1 through 5.
team-lead assigns plan QA to quality-mgr using qa-template.xml.j2
with review_mode: plan.
- The QA assignment must include the phase-plan document as
sprint_doc, and
that plan document is the authoritative scope source for plan QA.
quality-mgr treats review_mode: plan as docs-only review and launches:
req-qa
arch-qa
rust-best-practices-agent
rust-service-hardening-agent
- If plan QA passes, the hardened plan is ready for implementation dispatch.
- If plan QA fails,
team-lead uses the normal codex-orchestration
triage-and-fix loop to route concrete fixes back to cwy.
QA Coverage Rule
quality-mgr must extract every deliverable, acceptance criterion, deletion
target, required validation item, and expected artifact from sprint_doc
before launching req-qa
req-qa must independently treat sprint_doc as authoritative
req-qa must count deliverable completion and report a completion percentage
arch-qa must inspect sprint-doc structural gate artifacts directly when a
deliverable points to a boundary, packaging, release-tracking, readiness, or
validation gate
- QA cannot PASS unless deliverable completion is 100%
Phase-End Review
For extraction-readiness or phase-close reviews, use review-template.xml.j2
to assign a read-only review to cwy.
For phase-ending QA routed through quality-mgr, the reviewer set is
mandatory:
req-qa
arch-qa
rust-qa-agent
rust-best-practices-agent
rust-service-hardening-agent
flaky-test-qa
CI
Use standard GitHub CLI:
gh pr checks <PR> --watch
gh pr view <PR> --json mergeStateStatus,reviewDecision
Do not assume ATM-specific PR monitoring commands exist.
Assignment Templates
Use the templates in this skill directory:
dev-template.xml.j2
fix-assignment.xml.j2
qa-template.xml.j2
review-template.xml.j2
req-qa-assignment.json.j2
arch-qa-assignment.json.j2
flaky-test-qa-assignment.json.j2
- reporting templates under
.claude/skills/quality-management-gh/
Use the Rust assignment templates from:
.claude/assets/sc-rust/quality-mgr/templates/
Required Message Sequence
Every ATM task message must follow:
- ACK
- Work
- Completion summary
- Completion ACK by receiver