diff --git a/.claude/rules/credential-routing.md b/.claude/rules/credential-routing.md index bc920ab..ae072b9 100644 --- a/.claude/rules/credential-routing.md +++ b/.claude/rules/credential-routing.md @@ -19,7 +19,7 @@ Requires the `warden` CLI from `~/ops-warden` (`uv tool install .` or `uv run wa | Agent runtime | How to orient | | --- | --- | -| **Codex / Grok** (shell, HTTP State Hub) | `warden route` commands above; inbox `to_agent=repo-seed` is for coordination, not secret vending | +| **Codex / Grok** (shell, HTTP State Hub) | `warden route` commands above; inbox `to_agent=tenant-engine` is for coordination, not secret vending | | **Claude Code** (MCP when available) | `get_domain_summary("custodian")` for workplans; **still** use `warden route` for credential ownership | | **llm-connect** (inference service) | Never put secret retrieval in prompts; route custody to OpenBao/operator paths surfaced by `warden route` | diff --git a/.claude/rules/first-session.md b/.claude/rules/first-session.md index a891fa0..be72409 100644 --- a/.claude/rules/first-session.md +++ b/.claude/rules/first-session.md @@ -17,13 +17,13 @@ roadmap phase. **Wait for approval before creating.** **Step 4 — Write the workplan file; fix-consistency registers it (ADR-001)** ``` -workplans/REPO-WP-NNNN-.md ← write this, commit it +workplans/TEN-WP-NNNN-.md ← write this, commit it ``` Then register by running the consistency check — do **not** call `create_workplan`/`create_task` yourself; manual registration duplicates what C-06 creates from the file: ```bash -statehub fix-consistency --repo repo-seed +statehub fix-consistency --repo tenant-engine ``` C-06 creates the hub workplan + tasks and writes `state_hub_workstream_id` (legacy frontmatter name — holds the workplan UUID) and `state_hub_task_id` diff --git a/.claude/rules/session-protocol.md b/.claude/rules/session-protocol.md index e65d9d4..3f69b99 100644 --- a/.claude/rules/session-protocol.md +++ b/.claude/rules/session-protocol.md @@ -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//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 diff --git a/.claude/rules/workplan-convention.md b/.claude/rules/workplan-convention.md index 4df2bc3..8623cfa 100644 --- a/.claude/rules/workplan-convention.md +++ b/.claude/rules/workplan-convention.md @@ -1,7 +1,7 @@ ## Workplan Convention (ADR-001) -File location: `workplans/REPO-WP-NNNN-.md` -ID prefix: `REPO-WP-` +File location: `workplans/TEN-WP-NNNN-.md` +ID prefix: `TEN-WP-` Work items originate as files in this repo **before** being registered in the hub. @@ -12,7 +12,7 @@ repo state, and `finished` when implementation is complete. `stalled` and `needs_review` are derived health labels, not stored statuses. Closed workplans may be moved to `workplans/archived/` with a completion-date -prefix: `YYMMDD-REPO-WP-NNNN-.md`. The frontmatter id remains +prefix: `YYMMDD-TEN-WP-NNNN-.md`. The frontmatter id remains unchanged; the prefix is only for quick visual reference. Small opportunistic tasks discovered during another session use **Ad Hoc Tasks**: @@ -21,7 +21,7 @@ Small opportunistic tasks discovered during another session use **Ad Hoc Tasks** directly. Promote anything requiring analysis, design, approval, dependencies, or multiple planned phases into a normal workplan. -Ecosystem todos from other agents arrive as `[repo:repo-seed]` hub tasks — +Ecosystem todos from other agents arrive as `[repo:tenant-engine]` hub tasks — visible at session start. Pick one up by creating the workplan file, committing, and running `statehub fix-consistency` — C-06 registers the workplan in the hub. Never register by hand with `create_workplan` (legacy MCP alias: `create_workstream`). @@ -29,7 +29,7 @@ Never register by hand with `create_workplan` (legacy MCP alias: `create_workstr Task blocks use this shape: ```task -id: REPO-WP-NNNN-T01 +id: TEN-WP-NNNN-T01 status: wait | todo | progress | done | cancel priority: high | medium | low state_hub_task_id: "" # written by fix-consistency — do not edit diff --git a/CLAUDE.md b/CLAUDE.md index a01c656..b9da207 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,4 +1,4 @@ -# Repo Seed — Claude Code Instructions +# tenant-engine — Claude Code Instructions @SCOPE.md @.claude/rules/repo-identity.md