From 1b128c519c2d50ba0eec6248235a5dc3f13721d6 Mon Sep 17 00:00:00 2001 From: tegwick Date: Wed, 8 Jul 2026 14:50:35 +0200 Subject: [PATCH] Regenerate agent instructions from state-hub templates (CUST-WP-0055 T01) Sync AGENTS.md, CLAUDE.md, and .claude/rules from updated project_rules templates: workplan-first session protocol, legacy terminology footnote, and GET /workplans/ examples. --- .claude/rules/credential-routing.md | 2 +- .claude/rules/first-session.md | 12 ++++++------ .claude/rules/repo-boundary.md | 2 +- .claude/rules/repo-identity.md | 4 ++-- .claude/rules/session-protocol.md | 22 ++++++++++------------ .claude/rules/workplan-convention.md | 18 ++++++++++++++---- AGENTS.md | 12 ++++++------ CLAUDE.md | 2 +- 8 files changed, 41 insertions(+), 33 deletions(-) diff --git a/.claude/rules/credential-routing.md b/.claude/rules/credential-routing.md index c0fa603..39c17d4 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=railiance-infra` is for coordination, not secret vending | +| **Codex / Grok** (shell, HTTP State Hub) | `warden route` commands above; inbox `to_agent=railiance-hosts` 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 412c4c4..f305327 100644 --- a/.claude/rules/first-session.md +++ b/.claude/rules/first-session.md @@ -20,14 +20,14 @@ roadmap phase. **Wait for approval before creating.** workplans/RAIL-HO-WP-NNNN-.md ← write this, commit it ``` Then register by running the consistency check — do **not** call -`create_workplan`/`create_task` (or legacy `create_workstream`) yourself; -manual registration duplicates what C-06 creates from the file: +`create_workplan`/`create_task` yourself; manual registration duplicates what +C-06 creates from the file: ```bash -statehub fix-consistency --repo railiance-infra +statehub fix-consistency --repo railiance-hosts ``` -C-06 creates the hub workplan + tasks and writes `state_hub_workstream_id` / -`state_hub_task_id` back into the file (legacy field names, kept for -compatibility — they hold workplan/task IDs). +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` +back into the file. **Step 5 — Record the setup** ``` diff --git a/.claude/rules/repo-boundary.md b/.claude/rules/repo-boundary.md index 8b48c17..335c457 100644 --- a/.claude/rules/repo-boundary.md +++ b/.claude/rules/repo-boundary.md @@ -1,6 +1,6 @@ ## Repo boundary -This repo owns **railiance-infra** only. It does not own: +This repo owns **railiance-hosts** only. It does not own: diff --git a/AGENTS.md b/AGENTS.md index ed01c8e..10afdbf 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,11 +1,11 @@ -# railiance-infra — Agent Instructions +# railiance-hosts — Agent Instructions ## Repo Identity -**Purpose:** OAS S1 Infrastructure Substrate — OS provisioning, Ansible roles, Goss spec, Terraform, inventory +**Purpose:** Host inventory and node-level configuration for railiance infrastructure. Tracks server specs, network topology, and per-host service assignments. **Domain:** financials -**Repo slug:** railiance-infra +**Repo slug:** railiance-hosts **Topic ID:** `ca369340-a64e-442e-98f1-a4fa7dc74a38` **Workplan prefix:** `RAIL-HO-WP-` @@ -38,7 +38,7 @@ curl -s "http://127.0.0.1:8000/workplans/?topic_id=ca369340-a64e-442e-98f1-a4fa7 | python3 -m json.tool # Check inbox -curl -s "http://127.0.0.1:8000/messages/?to_agent=railiance-infra&unread_only=true" \ +curl -s "http://127.0.0.1:8000/messages/?to_agent=railiance-hosts&unread_only=true" \ | python3 -m json.tool ``` @@ -87,7 +87,7 @@ curl -s -X PATCH "http://127.0.0.1:8000/tasks/" \ **Start:** 1. `cat .custodian-brief.md` — domain goal and open workplans (offline-safe) -2. Check inbox: `GET /messages/?to_agent=railiance-infra&unread_only=true`; mark read +2. Check inbox: `GET /messages/?to_agent=railiance-hosts&unread_only=true`; mark read 3. Scan workplans: `ls workplans/` — note `status: ready`, `active`, or `blocked` files and open tasks 4. Check human-needed tasks: `GET /tasks/?needs_human=true` @@ -128,7 +128,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=railiance-infra` is for coordination, not secret vending | +| **Codex / Grok** (shell, HTTP State Hub) | `warden route` commands above; inbox `to_agent=railiance-hosts` 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.md b/CLAUDE.md index 871d83d..ef28d7b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,4 +1,4 @@ -# railiance-infra — Claude Code Instructions +# railiance-hosts — Claude Code Instructions @SCOPE.md @.claude/rules/repo-identity.md