De-template agent instructions from the seed repo
The .claude/rules/ files still carried the seed placeholders. The practical failure: session-protocol.md told agents to check the inbox with to_agent="repo-seed", which returns [] regardless. Three unread messages from gate-house and risk-nexus sat unread for days behind that wrong query until fix-consistency's C-28 surfaced them. Replaced repo-seed with tenant-engine throughout, and REPO-WP- with this repo's actual TEN-WP- prefix. Also records that no MCP server is registered (dev-hub was deregistered 2026-09-04), so the REST paths are the default rather than the fallback, and fixes the root CLAUDE.md heading, still "Repo Seed". Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HHwvAEQfmzLHtrFGhXtVjq Assistant: claude-code Assistant-Model: opus Assistant-Process: 823014@bnt-lap001 Assistant-Session: 2a0786b1-efea-4c38-959b-6e86a493f259
This commit is contained in:
parent
cef3d2aed9
commit
897c62caef
5 changed files with 18 additions and 14 deletions
|
|
@ -1,7 +1,11 @@
|
|||
## Session Protocol
|
||||
|
||||
Dev Hub (State Hub API): http://127.0.0.1:8000
|
||||
MCP server name in `~/.claude.json`: `dev-hub`
|
||||
Agent name on the hub (inbox `to_agent`): `tenant-engine`
|
||||
|
||||
No MCP server is registered by default (`dev-hub` was deregistered
|
||||
2026-09-04). Use the REST paths below; the MCP variants apply only if a
|
||||
server has been registered and is actually running.
|
||||
|
||||
**Step 1 — Orient**
|
||||
|
||||
|
|
@ -22,14 +26,14 @@ If the hub is offline: `cd ~/state-hub && make api`
|
|||
**Step 2 — Check inbox**
|
||||
With MCP tools:
|
||||
```
|
||||
get_messages(to_agent="repo-seed", unread_only=True)
|
||||
get_messages(to_agent="tenant-engine", unread_only=True)
|
||||
```
|
||||
Mark read with `mark_message_read(message_id)`. Reply or act on coordination
|
||||
requests before proceeding.
|
||||
|
||||
Without MCP tools:
|
||||
```bash
|
||||
curl -s "http://127.0.0.1:8000/messages/?to_agent=repo-seed&unread_only=true" \
|
||||
curl -s "http://127.0.0.1:8000/messages/?to_agent=tenant-engine&unread_only=true" \
|
||||
| python3 -m json.tool
|
||||
curl -s -X PATCH "http://127.0.0.1:8000/messages/<id>/read" \
|
||||
-H "Content-Type: application/json" -d '{}'
|
||||
|
|
@ -45,7 +49,7 @@ For each file with `status: ready`, `active`, or `blocked`, note pending
|
|||
**Step 4 — Present brief**
|
||||
|
||||
1. **Active workplans** for `infotech` — title, task counts, blocking decisions
|
||||
2. **Pending tasks** from `workplans/` + any `[repo:repo-seed]` hub tasks
|
||||
2. **Pending tasks** from `workplans/` + any `[repo:tenant-engine]` hub tasks
|
||||
3. **Goal guidance** — if `goal_guidance` in summary:
|
||||
- `needs_workplan`: surface as top action — *"Repo goal '{title}' has no workplan yet"*
|
||||
- `alignment_warnings`: flag if active work is not aligned with current goal
|
||||
|
|
@ -85,7 +89,7 @@ statehub fix-consistency
|
|||
For repos where implementation runs on a remote machine (e.g. CoulombCore),
|
||||
use the pull-before-fix mode from any shell with the State Hub CLI:
|
||||
```bash
|
||||
statehub fix-consistency --repo repo-seed --remote
|
||||
statehub fix-consistency --repo tenant-engine --remote
|
||||
```
|
||||
**C-15** (DB task ahead of file) is normal in multi-machine workflows — writeback
|
||||
will sync the file to match DB. **C-16** (repo behind remote) blocks all writes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue