mirror of
https://github.com/dtzp555-max/memory-continuity.git
synced 2026-07-21 21:15:07 +00:00
2.7 KiB
2.7 KiB
name, description
| name | description |
|---|---|
| continuity-guard | Maintain short-term continuity and anti-silence discipline for OpenClaw agents using memory/CURRENT_STATE.md plus dual reporting rules. Use when creating/updating agent workspaces, after OpenClaw upgrades/restarts, when continuity seems broken, when a session may have lost context, or when you need to doctor/repair CURRENT_STATE coverage and reporting protocol drift across agents. |
Continuity Guard
Use memory/CURRENT_STATE.md as a small overwrite-oriented workbench, not as a journal.
Core rules
- Ensure every agent workspace has
memory/CURRENT_STATE.md - Keep
CURRENT_STATE.mdsmall- main: target 25-40 lines, hard cap 50
- other agents: target 15-25 lines, hard cap 30
- Required sections:
In FlightBlocked / WaitingRecently FinishedNextReset Summary
- Update only on state changes, not on a timer
- Remove stale items instead of endlessly appending
Dual reporting protocol
Worker → main
Execution agents must report to main at:
- accepted
- blocked
- milestone
- done
- model/environment abnormal
Preferred reply format:
statussummaryevidencerisknext
main → Tao
Main must report to Tao at:
- task accepted / formally started
- worker dispatched
- blocked
- milestone reached
- task/phase completed
Preferred Tao update format:
- who
- status
- output
- next
Ordering rule:
- When a worker reports milestone/completion/blocker, first update
CURRENT_STATE.md, then update Tao, then continue with review/commit/next dispatch. - If no evidence point exists yet (sessionKey / commit / branch / PR / log), do not claim work has already started.
When to use the doctor
Run scripts/continuity_doctor.py when:
- OpenClaw was upgraded
- gateway restarted and continuity feels suspicious
- an agent seems to have lost short-term context
- you need to confirm
CURRENT_STATE.mdcoverage across workspaces
How to use the doctor
From the main workspace:
python3 skills/continuity-guard/scripts/continuity_doctor.py \
--main-workspace /Users/taodeng/.openclaw/workspace/main \
--agents-root /Users/taodeng/.openclaw/workspaces
The doctor checks:
- main
memory/CURRENT_STATE.mdexists - all agent workspaces have
memory/CURRENT_STATE.md - required sections exist
- line-count caps are respected
AGENTS.mdstill contains continuity + dual reporting rules
Repair strategy
If drift is found:
- Restore/create missing
memory/CURRENT_STATE.md - Restore continuity guidance in
AGENTS.md - Re-run doctor
- Only then investigate deeper behavioral failures
References
- For template and limits: read
references/template.md - For doctor semantics and PASS/WARN/FAIL meanings: read
references/doctor-spec.md