Add continuity-guard skill skeleton and doctor script

This commit is contained in:
2026-03-08 11:19:28 +10:00
parent 9f2cd76891
commit 01ca393531
4 changed files with 320 additions and 0 deletions
@@ -0,0 +1,34 @@
# continuity doctor spec
## PASS
The checked item exists and matches the required structure.
## WARN
The item exists but is drifting:
- file too long
- required text partly missing
- structure present but not ideal
## FAIL
The item is missing or materially broken:
- missing CURRENT_STATE.md
- missing required sections
- missing continuity rules in AGENTS.md
## Minimal checks
1. `main/memory/CURRENT_STATE.md` exists
2. each agent workspace has `memory/CURRENT_STATE.md`
3. every `CURRENT_STATE.md` contains:
- `## In Flight`
- `## Blocked / Waiting`
- `## Recently Finished`
- `## Next`
- `## Reset Summary`
4. main `AGENTS.md` contains continuity guidance and dual reporting protocol markers
5. line-count caps are respected
## Suggested actions on failure
- create missing files from template
- restore missing AGENTS continuity section
- trim oversized CURRENT_STATE files
- rerun doctor after repair
@@ -0,0 +1,51 @@
# CURRENT_STATE template
## main agent (expanded)
```md
# CURRENT_STATE
_Last updated: YYYY-MM-DD HH:MM Australia/Brisbane_
## In Flight
- [status] task — owner — latest milestone
## Blocked / Waiting
- item — blocker / waiting on
## Recently Finished
- result — why it still matters now
## Next
- next action
## Reset Summary
- one short paragraph explaining what matters if a new session starts now
```
Capacity:
- target 25-40 lines
- hard cap 50 lines
- In Flight max 5
- Blocked / Waiting max 5
- Recently Finished max 3
- Next max 5
## other agents (standard)
Use the same template, but keep it smaller.
Capacity:
- target 15-25 lines
- hard cap 30 lines
- In Flight max 3
- Blocked / Waiting max 3
- Recently Finished max 2
- Next max 3
## Allowed status values
- planned
- dispatched
- in_progress
- blocked
- reviewing
- done