Skip to content

feat(skills): phase protocol enforcement for orchestration skills#192

Merged
dean0x merged 4 commits intomainfrom
feat/phase-protocol-enforcement
Apr 23, 2026
Merged

feat(skills): phase protocol enforcement for orchestration skills#192
dean0x merged 4 commits intomainfrom
feat/phase-protocol-enforcement

Conversation

@dean0x
Copy link
Copy Markdown
Owner

@dean0x dean0x commented Apr 22, 2026

Summary

  • Add Phase Protocol section to router/SKILL.md with 5 universal enforcement rules (announce, produce, no silent skips, verify, scoped nesting)
  • Add Produces:/Requires: checkpoint variables to all 7 orchestration skills, creating data-flow dependencies between phases
  • Add Continuation Detection to plan:orch (refinement path for existing artifacts) and implement:orch (re-validation path after manual fixes)
  • Add Phase Completion Checklist to all 7 orchestration skills as a final self-check gate
  • Add scoped nesting note to pipeline:orch for inner skill phase prefix format
  • Add 5 structural tests validating checklist/phase count correspondence, annotation presence, and continuation detection placement

All changes are markdown-only (SKILL.md files) + test additions. No TypeScript CLI code changes.

Test plan

  • npm run build succeeds — skills distributed to all 17 plugins
  • npm test passes — 1064/1064 tests (0 failures)
  • New phase protocol structural validation test suite passes all 5 assertions
  • Existing router/classification/preamble drift tests unaffected
  • Manual: devflow init reinstalls updated skills
  • Manual: trigger PLAN/ORCHESTRATED — verify model announces phases
  • Manual: trigger with existing .docs/design/ artifact — verify continuation detection

Dean Sharon added 4 commits April 22, 2026 11:42
Add four complementary enforcement mechanisms to make ORCHESTRATED
pipeline phase compliance the path of least resistance:

- Phase Protocol section in router with 5 rules (announce, produce,
  no silent skips, verify, scoped nesting)
- Produces:/Requires: checkpoint variables on all 7 orch skills
- Continuation Detection for plan:orch and implement:orch
- Phase Completion Checklist on all 7 orch skills

Structural tests validate checklist/phase count correspondence,
annotation presence, and continuation detection placement.
…note

Replace hardcoded orchSkills array with fs.readdir discovery of *:orch
directories so new orch skills are automatically validated by phase
protocol structural tests. Add Phase Protocol convention bullet to
CLAUDE.md Key Conventions > Skills section.
Add explicit data-flow annotations to 12 command files (7 base + 5 teams
variants) aligning them with the Phase Protocol convention shipped for
orchestration skills. Each phase/step heading now documents its checkpoint
variables — what it produces and what it requires — making data contracts
visible and consistent across both execution paths.

Add per-phase correspondence tests to ambient.test.ts that dynamically
discover all command files, detect container headings, and verify every
leaf phase has at least one annotation.
@dean0x dean0x merged commit 92a37b4 into main Apr 23, 2026
4 checks passed
@dean0x dean0x deleted the feat/phase-protocol-enforcement branch April 23, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant