Eight diagrams covering the state machine, dispatch cascade, agent harness, KB structure, review flow, gate topology, lifecycle states, and substrate boundaries.
intake.mdcourse-outline.mdpedagogy.mdpreferences-*.mdnon-negotiables-*.mdunits/unit-1/structure.mdunits/unit-2/structure.mdunits/unit-N/structure.mdunits/unit-N/modules/module-M.mdunits/.../lessons/lesson-L.mdunits/.../assignments/assignment-A.mdlearning_content rows in Supabasestatus: field changes; the commit author tells you who made the transition (teacher@email vs agent:role).| Gate | Fires at | Kind | Prompt |
|---|---|---|---|
| gate-outline-to-structure | M1 → M2 | Crossing | gates/outline-to-structure.md |
| gate-planning-to-generation | M2 → M3 | Crossing | gates/planning-to-generation.md |
| gate-between-modules | Within M3 + M4 | Intra-milestone alignment | gates/between-modules.md |
| gate-unit-content-complete | Per-unit M3 close | Per-unit closure | gates/unit-closure-m3.md |
| gate-all-units-content-complete | M3 → M4 | Crossing (cross-unit) | gates/all-units-closure-m3.md |
| gate-unit-lessons-complete | Per-unit M4 close | Per-unit closure | gates/unit-closure-m4.md |
| gate-all-units-lessons-complete | M4 → Publish | Crossing (cross-unit) | gates/all-units-closure-m4.md |
| gate-final-sign-off | Publish | Always-pauses (compliance) | gates/final-sign-off.md |
| Wiki concept | Per-course workspace | Per-teacher KB |
|---|---|---|
| Raw sources | intake.md, fixtures, references | kb/sources/ |
| Wiki core (mutable) | course-outline.md, units/**, lessons/** | kb/pages/ |
| Schema file | CLAUDE.md (workspace) + curriculum-agents/prompts/* | kb/AGENTS.md |
| Index | workspace tree + topology manifest | kb/index.md |
| Log | Git history | Same — git history |
| Ingest | delegated course-generation task dispatches worker sessions | kb/librarian.md + kb/field-researcher.md |
| Query | Teacher review + milestone chat | Course sub-agents Task-invoke kb/context-researcher.md |
| Lint | Evaluator prompts at gates | kb/linter.md (cron + on-demand) |
| File-back | Resolved chat → comment thread back-reference | Resolved chat → new kb/pages/<topic>.md via chat-dock affordance |
finalizedcoordinator/review-proposals/<path>/<n>.mdopen; stale targets become rebase_needed