chore(harness): add mandatory pre-flight guard for working directory

- Require absolute-path existence check for AGENT_INSTRUCTIONS.md and TODO.md
- Fail fast with STUCK if harness files missing
- Prevent repeated bad-working-dir iterations
This commit is contained in:
Paul Huliganga 2026-03-24 21:50:33 -04:00
parent 3987083e46
commit 37b17f7284
1 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,15 @@
### 1. Orientation First ### 1. Orientation First
Every time you wake up (new session): Every time you wake up (new session):
**PRE-FLIGHT GUARD (mandatory):**
- Verify these files exist at absolute path `/home/paulh/.openclaw/workspace/projects/recipe-manager/`:
- `AGENT_INSTRUCTIONS.md`
- `TODO.md`
- If either is missing, stop immediately and report:
- `STUCK: bad working dir or missing harness files at /home/paulh/.openclaw/workspace/projects/recipe-manager`
Then continue orientation:
1. Read `PROJECT.md` — What are we building? 1. Read `PROJECT.md` — What are we building?
2. Read `ARCHITECTURE.md` — How are we building it? 2. Read `ARCHITECTURE.md` — How are we building it?
3. Read `ROADMAP.md` — What's next? 3. Read `ROADMAP.md` — What's next?