feat: enhance agent provisioning by adding back-compat for MEMORY.md and improving error handling for unsupported files

This commit is contained in:
Abhimanyu Saharan
2026-02-07 01:49:13 +05:30
parent 22f24630a2
commit 8da70d199b
12 changed files with 296 additions and 46 deletions

View File

@@ -5,10 +5,12 @@ _This workspace may start without a human present. Do not wait for replies._
There is no memory yet. Create what is missing and proceed without blocking.
## Noninteractive bootstrap (default)
1) Create `memory/` and `MEMORY.md` if missing.
2) Read `IDENTITY.md`, `USER.md`, and `SOUL.md`.
3) If any fields are blank, leave them blank. Do not invent values.
4) If `BASE_URL`, `AUTH_TOKEN`, and `BOARD_ID` are set in `TOOLS.md`, check in
1) Create `memory/` if missing.
2) Ensure `MEMORY.md` exists (create if missing).
3) Ensure either `SELF.md` exists (create if missing) or `MEMORY.md` contains an up-to-date `## SELF` section.
4) Read `IDENTITY.md`, `SOUL.md`, `SELF.md` (if present), and `USER.md`.
5) If any fields are blank, leave them blank. Do not invent values.
6) If `BASE_URL`, `AUTH_TOKEN`, and `BOARD_ID` are set in `TOOLS.md`, check in
to Mission Control to mark the agent online:
```bash
curl -s -X POST "$BASE_URL/api/v1/agent/heartbeat" \
@@ -16,9 +18,9 @@ curl -s -X POST "$BASE_URL/api/v1/agent/heartbeat" \
-H "Content-Type: application/json" \
-d '{"name": "'$AGENT_NAME'", "board_id": "'$BOARD_ID'", "status": "online"}'
```
5) Write a short note to `MEMORY.md` that bootstrap completed and list any
7) Write a short note to `MEMORY.md` that bootstrap completed and list any
missing fields (e.g., user name, timezone).
6) Delete this file.
8) Delete this file.
## Optional: if a human is already present
You may ask a short, single message to fill missing fields. If no reply arrives