feat: add scripts/verify.sh with 3-layer validation

Layer 1: checks SKILL.md, continuity_doctor.py, openclaw.plugin.json exist
Layer 2: runs continuity_doctor.py to confirm tool is available
Layer 3: detects empty/placeholder CURRENT_STATE.md and suggests --sample

--sample flag shows a realistic production migration task (db v2→v3,
blocked on migration window sign-off) so new users understand what
high-importance state looks like before their first session.

Colour output with  ⚠️ . README Quick Start updated with verify commands.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-19 06:53:02 +10:00
co-authored by Claude Sonnet 4.6
parent 201c52bf75
commit 33c3558625
2 changed files with 226 additions and 0 deletions
+13
View File
@@ -69,6 +69,18 @@ No npm install, no API keys, no external database.
### Verify
```bash
# Quick 3-layer install check (files → tool → workspace state)
bash scripts/verify.sh
# Show a sample high-importance state entry
bash scripts/verify.sh --sample
# Check against a custom workspace
bash scripts/verify.sh --workspace ~/.openclaw/workspace/myproject
```
```bash
# Alternatively, confirm the gateway loaded the plugin
openclaw gateway restart 2>&1 | grep memory-continuity
# Should show: [memory-continuity] Plugin registered successfully
```
@@ -230,6 +242,7 @@ memory-continuity/
│ └── phase2-hook-validation.md
└── scripts/
├── post-install.sh # Automated installer
├── verify.sh # 3-layer install verifier
└── continuity_doctor.py # Health check
```