From 95779bae02a08ea6094803d3cbe6eada9ada792a Mon Sep 17 00:00:00 2001 From: tegwick Date: Mon, 22 Jun 2026 23:16:25 +0200 Subject: [PATCH] Normalize agent instructions and workplan frontmatter (STATE-WP-0067) - Align agent files with on-disk workplan prefixes (infer from workplan ids) - Set workplan domain to registered domain_slug; add topic_slug where applicable - Repair frontmatter delimiter formatting; migrate legacy task status literals - Regenerate AGENTS.md, CLAUDE.md, and .claude/rules from State Hub templates --- .claude/rules/first-session.md | 10 ++++----- .claude/rules/repo-identity.md | 2 +- .claude/rules/session-protocol.md | 9 ++++---- .claude/rules/workplan-convention.md | 18 +++++++++++++--- AGENTS.md | 21 ++++++++++++------- ...IB-WP-0001-state-hub-and-repo-bootstrap.md | 4 ++-- ...IB-WP-0002-infospace-lifecycle-baseline.md | 2 +- .../IB-WP-0003-evaluation-and-inspection.md | 2 +- .../IB-WP-0004-reference-infospace-pilot.md | 2 +- ...-0005-orthogonal-successor-architecture.md | 2 +- .../IB-WP-0006-markitect-tool-adapter.md | 2 +- ...WP-0007-entity-relation-model-migration.md | 2 +- ...-0008-evaluation-history-metrics-parity.md | 2 +- ...09-applied-workflow-generation-pipeline.md | 2 +- ...-kontextual-engine-integration-boundary.md | 2 +- ...B-WP-0011-pruned-legacy-reference-pilot.md | 2 +- ...P-0012-replacement-readiness-cli-parity.md | 2 +- ...3-wealth-vsm-generation-pipeline-parity.md | 2 +- ...B-WP-0014-infospace-backend-abstraction.md | 2 +- ...-generic-source-infospace-generator-cli.md | 5 ++--- ...-0016-lefevre-ebook-infospace-readiness.md | 5 ++--- ...IB-WP-0017-agentic-memory-profile-pilot.md | 2 +- ...B-WP-0018-adaptive-llm-routing-consumer.md | 2 +- .../IB-WP-0019-budget-and-usage-registry.md | 2 +- workplans/IB-WP-0020-provider-routing-cli.md | 2 +- .../IB-WP-0021-scope-intent-reconciliation.md | 2 +- 26 files changed, 63 insertions(+), 47 deletions(-) diff --git a/.claude/rules/first-session.md b/.claude/rules/first-session.md index df13806..909e0e4 100644 --- a/.claude/rules/first-session.md +++ b/.claude/rules/first-session.md @@ -1,11 +1,11 @@ ## First Session Protocol -Triggered when `get_domain_summary("markitect")` shows **no workstreams**. +Triggered when `get_domain_summary("communication")` shows **no workstreams**. The project is registered but work has not yet been structured. **Step 1 — Read, don't write** -- `~/the-custodian/canon/projects/markitect/project_charter_v0.1.md` — purpose, scope -- `~/the-custodian/canon/projects/markitect/roadmap_v0.1.md` — planned phases +- `~/the-custodian/canon/projects/communication/project_charter_v0.1.md` — purpose, scope +- `~/the-custodian/canon/projects/communication/roadmap_v0.1.md` — planned phases - Scan repo root: README, directory structure, existing code or docs **Step 2 — Survey in-progress work** @@ -17,7 +17,7 @@ roadmap phase. **Wait for approval before creating.** **Step 4 — Create workplan file first, then DB record (ADR-001)** ``` -workplans/infospace-bench-WP-NNNN-.md ← write this first +workplans/IB-WP-NNNN-.md ← write this first ``` Then register in the hub: ``` @@ -28,7 +28,7 @@ create_task(workstream_id="", title="...", priority="high|medium|low") **Step 5 — Record the setup** ``` add_progress_event( - summary="First session: structured markitect into N workstreams, M tasks", + summary="First session: structured communication into N workstreams, M tasks", event_type="milestone", topic_id="5571d954-0d30-4950-980d-7bcaaad8e3e2", detail={"workstreams": [...], "tasks_created": M} diff --git a/.claude/rules/repo-identity.md b/.claude/rules/repo-identity.md index 0de6d02..b1ccaf9 100644 --- a/.claude/rules/repo-identity.md +++ b/.claude/rules/repo-identity.md @@ -1,5 +1,5 @@ **Purpose:** Application-layer workspace and service for concrete structured knowledge spaces; scoped successor to markitect-main infospace work. -**Domain:** markitect +**Domain:** communication **Repo slug:** infospace-bench **Topic ID:** 5571d954-0d30-4950-980d-7bcaaad8e3e2 diff --git a/.claude/rules/session-protocol.md b/.claude/rules/session-protocol.md index 76fb27a..8d52a98 100644 --- a/.claude/rules/session-protocol.md +++ b/.claude/rules/session-protocol.md @@ -1,6 +1,7 @@ ## Session Protocol -State Hub: http://127.0.0.1:8000 +Dev Hub (State Hub API): http://127.0.0.1:8000 +MCP server name in `~/.claude.json`: `dev-hub` **Step 1 — Orient** @@ -10,7 +11,7 @@ cat .custodian-brief.md ``` Then call the MCP tool for richer cross-domain context when MCP tools are exposed: ``` -get_domain_summary("markitect") +get_domain_summary("communication") ``` If MCP tools are unavailable in the current agent session, use the REST API: ```bash @@ -39,11 +40,11 @@ curl -s -X PATCH "http://127.0.0.1:8000/messages//read" \ ls workplans/ ``` For each file with `status: ready`, `active`, or `blocked`, note pending -`todo`/`in_progress` tasks. +`wait`/`todo`/`progress` tasks. **Step 4 — Present brief** -1. **Active workstreams** for `markitect` — title, task counts, blocking decisions +1. **Active workstreams** for `communication` — title, task counts, blocking decisions 2. **Pending tasks** from `workplans/` + any `[repo:infospace-bench]` hub tasks 3. **Goal guidance** — if `goal_guidance` in summary: - `needs_workplan`: surface as top action — *"Repo goal '{title}' has no workplan yet"* diff --git a/.claude/rules/workplan-convention.md b/.claude/rules/workplan-convention.md index c5b4362..3d80bf3 100644 --- a/.claude/rules/workplan-convention.md +++ b/.claude/rules/workplan-convention.md @@ -1,7 +1,7 @@ ## Workplan Convention (ADR-001) -File location: `workplans/infospace-bench-WP-NNNN-.md` -ID prefix: `INFOSPACE-WP` +File location: `workplans/IB-WP-NNNN-.md` +ID prefix: `IB-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-infospace-bench-WP-NNNN-.md`. The frontmatter id remains +prefix: `YYMMDD-IB-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**: @@ -25,4 +25,16 @@ Ecosystem todos from other agents arrive as `[repo:infospace-bench]` hub tasks visible at session start. Pick one up by creating the workplan file, then registering the workstream. +Task blocks use this shape: + +```task +id: IB-WP-NNNN-T01 +status: wait | todo | progress | done | cancel +priority: high | medium | low +state_hub_task_id: "" # written by fix-consistency — do not edit +``` + +Status progression is `todo` → `progress` → `done`; use `wait` for waiting or +blocked work and `cancel` for stopped work. + diff --git a/AGENTS.md b/AGENTS.md index d666edf..302a352 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,10 +4,10 @@ **Purpose:** Application-layer workspace and service for concrete structured knowledge spaces; scoped successor to markitect-main infospace work. -**Domain:** markitect +**Domain:** communication **Repo slug:** infospace-bench **Topic ID:** `5571d954-0d30-4950-980d-7bcaaad8e3e2` -**Workplan prefix:** `INFOSPACE-WP-` +**Workplan prefix:** `IB-WP-` --- @@ -63,8 +63,8 @@ Omit `workstream_id` / `task_id` when not applicable. ```bash curl -s -X PATCH "http://127.0.0.1:8000/tasks/" \ -H "Content-Type: application/json" \ - -d '{"status": "in_progress"}' -# values: todo | in_progress | done | blocked + -d '{"status": "progress"}' +# values: wait | todo | progress | done | cancel ``` ### Flag a task for human review @@ -83,7 +83,7 @@ curl -s -X PATCH "http://127.0.0.1:8000/tasks/" \ 1. `cat .custodian-brief.md` — domain goal and open workstreams (offline-safe) 2. Check inbox: `GET /messages/?to_agent=infospace-bench&unread_only=true`; mark read 3. Scan workplans: `ls workplans/` — note `status: ready`, `active`, or `blocked` files and open tasks -4. Check blocked tasks: `GET /tasks/?needs_human=true` +4. Check human-needed tasks: `GET /tasks/?needs_human=true` **During work:** - Update task statuses in workplan files as tasks progress @@ -151,6 +151,11 @@ every repo's agent instructions because it is high-frequency, high-risk, and eas get wrong. **Canon:** `~/ops-warden/wiki/CredentialRouting.md` · catalog `~/ops-warden/registry/routing/catalog.yaml` + + + + --- ## Workplan Convention (ADR-001) @@ -176,7 +181,7 @@ anything needing analysis, design, approval, dependencies, or multiple phases. id: INFOSPACE-WP-NNNN type: workplan title: "..." -domain: markitect +domain: communication repo: infospace-bench status: proposed | ready | active | blocked | backlog | finished | archived owner: codex @@ -198,7 +203,7 @@ derived health labels, not frontmatter statuses. ` ` `task id: INFOSPACE-WP-NNNN-T01 -status: todo | in_progress | done | blocked +status: wait | todo | progress | done | cancel priority: high | medium | low state_hub_task_id: "" # written by fix-consistency — do not edit ` ` ` @@ -206,7 +211,7 @@ state_hub_task_id: "" # written by fix-consistency — do not edit Task description text. ``` -Status progression: `todo` → `in_progress` → `done` (or `blocked`) +Status progression: `todo` → `progress` → `done`; use `wait` for waiting/blocked work and `cancel` for stopped work. To create a new workplan: 1. Write the file following the format above diff --git a/workplans/IB-WP-0001-state-hub-and-repo-bootstrap.md b/workplans/IB-WP-0001-state-hub-and-repo-bootstrap.md index 0488d4c..ad0c496 100644 --- a/workplans/IB-WP-0001-state-hub-and-repo-bootstrap.md +++ b/workplans/IB-WP-0001-state-hub-and-repo-bootstrap.md @@ -2,7 +2,7 @@ id: IB-WP-0001 type: workplan title: "State Hub And Repo Bootstrap" -domain: markitect +domain: communication repo: infospace-bench status: done owner: markitect @@ -110,7 +110,7 @@ state_hub_task_id: "e6c1fd21-f1de-45f0-bcd1-e533b8e890ab" ```task id: IB-WP-0001-T07 -status: cancelled +status: cancel priority: medium state_hub_task_id: "78b3824b-2454-44f2-8c6d-27800ab7507b" ``` diff --git a/workplans/IB-WP-0002-infospace-lifecycle-baseline.md b/workplans/IB-WP-0002-infospace-lifecycle-baseline.md index f0333e1..e714ae4 100644 --- a/workplans/IB-WP-0002-infospace-lifecycle-baseline.md +++ b/workplans/IB-WP-0002-infospace-lifecycle-baseline.md @@ -2,7 +2,7 @@ id: IB-WP-0002 type: workplan title: "Infospace Lifecycle Baseline" -domain: markitect +domain: communication repo: infospace-bench status: done owner: markitect diff --git a/workplans/IB-WP-0003-evaluation-and-inspection.md b/workplans/IB-WP-0003-evaluation-and-inspection.md index b0313b4..cf47968 100644 --- a/workplans/IB-WP-0003-evaluation-and-inspection.md +++ b/workplans/IB-WP-0003-evaluation-and-inspection.md @@ -2,7 +2,7 @@ id: IB-WP-0003 type: workplan title: "Evaluation And Inspection Framework" -domain: markitect +domain: communication repo: infospace-bench status: done owner: markitect diff --git a/workplans/IB-WP-0004-reference-infospace-pilot.md b/workplans/IB-WP-0004-reference-infospace-pilot.md index 97e038c..70fd7cb 100644 --- a/workplans/IB-WP-0004-reference-infospace-pilot.md +++ b/workplans/IB-WP-0004-reference-infospace-pilot.md @@ -2,7 +2,7 @@ id: IB-WP-0004 type: workplan title: "Reference Infospace Pilot" -domain: markitect +domain: communication repo: infospace-bench status: done owner: markitect diff --git a/workplans/IB-WP-0005-orthogonal-successor-architecture.md b/workplans/IB-WP-0005-orthogonal-successor-architecture.md index 6ace80a..ced4292 100644 --- a/workplans/IB-WP-0005-orthogonal-successor-architecture.md +++ b/workplans/IB-WP-0005-orthogonal-successor-architecture.md @@ -2,7 +2,7 @@ id: IB-WP-0005 type: workplan title: "Orthogonal Successor Architecture" -domain: markitect +domain: communication repo: infospace-bench status: done owner: markitect diff --git a/workplans/IB-WP-0006-markitect-tool-adapter.md b/workplans/IB-WP-0006-markitect-tool-adapter.md index 5028587..e7960e9 100644 --- a/workplans/IB-WP-0006-markitect-tool-adapter.md +++ b/workplans/IB-WP-0006-markitect-tool-adapter.md @@ -2,7 +2,7 @@ id: IB-WP-0006 type: workplan title: "Markitect Tool Adapter And Markdown Artifact Validation" -domain: markitect +domain: communication repo: infospace-bench status: done owner: markitect diff --git a/workplans/IB-WP-0007-entity-relation-model-migration.md b/workplans/IB-WP-0007-entity-relation-model-migration.md index e7c7396..d08efa5 100644 --- a/workplans/IB-WP-0007-entity-relation-model-migration.md +++ b/workplans/IB-WP-0007-entity-relation-model-migration.md @@ -2,7 +2,7 @@ id: IB-WP-0007 type: workplan title: "Entity And Relation Model Migration" -domain: markitect +domain: communication repo: infospace-bench status: completed owner: markitect diff --git a/workplans/IB-WP-0008-evaluation-history-metrics-parity.md b/workplans/IB-WP-0008-evaluation-history-metrics-parity.md index 5f68592..e3c6241 100644 --- a/workplans/IB-WP-0008-evaluation-history-metrics-parity.md +++ b/workplans/IB-WP-0008-evaluation-history-metrics-parity.md @@ -2,7 +2,7 @@ id: IB-WP-0008 type: workplan title: "Evaluation History And Metrics Parity" -domain: markitect +domain: communication repo: infospace-bench status: completed owner: markitect diff --git a/workplans/IB-WP-0009-applied-workflow-generation-pipeline.md b/workplans/IB-WP-0009-applied-workflow-generation-pipeline.md index e01dca3..adfc259 100644 --- a/workplans/IB-WP-0009-applied-workflow-generation-pipeline.md +++ b/workplans/IB-WP-0009-applied-workflow-generation-pipeline.md @@ -2,7 +2,7 @@ id: IB-WP-0009 type: workplan title: "Applied Workflow And Generation Pipeline" -domain: markitect +domain: communication repo: infospace-bench status: completed owner: markitect diff --git a/workplans/IB-WP-0010-kontextual-engine-integration-boundary.md b/workplans/IB-WP-0010-kontextual-engine-integration-boundary.md index 38efc85..d99dfaa 100644 --- a/workplans/IB-WP-0010-kontextual-engine-integration-boundary.md +++ b/workplans/IB-WP-0010-kontextual-engine-integration-boundary.md @@ -2,7 +2,7 @@ id: IB-WP-0010 type: workplan title: "Kontextual Engine Integration Boundary" -domain: markitect +domain: communication repo: infospace-bench status: completed owner: markitect diff --git a/workplans/IB-WP-0011-pruned-legacy-reference-pilot.md b/workplans/IB-WP-0011-pruned-legacy-reference-pilot.md index 67fc74b..89dae0c 100644 --- a/workplans/IB-WP-0011-pruned-legacy-reference-pilot.md +++ b/workplans/IB-WP-0011-pruned-legacy-reference-pilot.md @@ -2,7 +2,7 @@ id: IB-WP-0011 type: workplan title: "Pruned Legacy Reference Pilot" -domain: markitect +domain: communication repo: infospace-bench status: completed owner: markitect diff --git a/workplans/IB-WP-0012-replacement-readiness-cli-parity.md b/workplans/IB-WP-0012-replacement-readiness-cli-parity.md index 31ab7f1..bfe7d7c 100644 --- a/workplans/IB-WP-0012-replacement-readiness-cli-parity.md +++ b/workplans/IB-WP-0012-replacement-readiness-cli-parity.md @@ -2,7 +2,7 @@ id: IB-WP-0012 type: workplan title: "Replacement Readiness And CLI Parity Gate" -domain: markitect +domain: communication repo: infospace-bench status: completed owner: markitect diff --git a/workplans/IB-WP-0013-wealth-vsm-generation-pipeline-parity.md b/workplans/IB-WP-0013-wealth-vsm-generation-pipeline-parity.md index a65fafa..ad52674 100644 --- a/workplans/IB-WP-0013-wealth-vsm-generation-pipeline-parity.md +++ b/workplans/IB-WP-0013-wealth-vsm-generation-pipeline-parity.md @@ -2,7 +2,7 @@ id: IB-WP-0013 type: workplan title: "Wealth VSM Generation Pipeline Parity" -domain: markitect +domain: communication repo: infospace-bench status: completed owner: markitect diff --git a/workplans/IB-WP-0014-infospace-backend-abstraction.md b/workplans/IB-WP-0014-infospace-backend-abstraction.md index 34e36b6..325bc47 100644 --- a/workplans/IB-WP-0014-infospace-backend-abstraction.md +++ b/workplans/IB-WP-0014-infospace-backend-abstraction.md @@ -2,7 +2,7 @@ id: IB-WP-0014 type: workplan title: "Infospace Archive Integration With artifact-store" -domain: markitect +domain: communication repo: infospace-bench status: done owner: markitect diff --git a/workplans/IB-WP-0015-generic-source-infospace-generator-cli.md b/workplans/IB-WP-0015-generic-source-infospace-generator-cli.md index 23a15cb..f0497e1 100644 --- a/workplans/IB-WP-0015-generic-source-infospace-generator-cli.md +++ b/workplans/IB-WP-0015-generic-source-infospace-generator-cli.md @@ -2,7 +2,7 @@ id: IB-WP-0015 type: workplan title: "Generic Source Infospace Generator CLI" -domain: markitect +domain: communication repo: infospace-bench status: completed owner: markitect @@ -14,8 +14,7 @@ state_hub_workstream_id: "1bf47fb9-fe55-428a-b8da-8e6cc76d4b03" depends_on_workplans: - IB-WP-0013 related_workplans: - - IB-WP-0014 ---- + - IB-WP-0014--- # IB-WP-0015 - Generic Source Infospace Generator CLI diff --git a/workplans/IB-WP-0016-lefevre-ebook-infospace-readiness.md b/workplans/IB-WP-0016-lefevre-ebook-infospace-readiness.md index 9e23fd1..186214d 100644 --- a/workplans/IB-WP-0016-lefevre-ebook-infospace-readiness.md +++ b/workplans/IB-WP-0016-lefevre-ebook-infospace-readiness.md @@ -2,7 +2,7 @@ id: IB-WP-0016 type: workplan title: "Lefevre EPUB3 Infospace Readiness Pilot" -domain: markitect +domain: communication repo: infospace-bench status: done owner: markitect @@ -14,8 +14,7 @@ state_hub_workstream_id: "23be7d20-b01f-4b17-9851-4d540e4c0984" depends_on_workplans: - IB-WP-0015 related_workplans: - - IB-WP-0014 ---- + - IB-WP-0014--- # IB-WP-0016 - Lefevre EPUB3 Infospace Readiness Pilot diff --git a/workplans/IB-WP-0017-agentic-memory-profile-pilot.md b/workplans/IB-WP-0017-agentic-memory-profile-pilot.md index 2bbfb70..c6a84e1 100644 --- a/workplans/IB-WP-0017-agentic-memory-profile-pilot.md +++ b/workplans/IB-WP-0017-agentic-memory-profile-pilot.md @@ -2,7 +2,7 @@ id: IB-WP-0017 type: workplan title: "Agentic Memory Profile Infospace Pilot" -domain: markitect +domain: communication repo: infospace-bench status: completed owner: markitect diff --git a/workplans/IB-WP-0018-adaptive-llm-routing-consumer.md b/workplans/IB-WP-0018-adaptive-llm-routing-consumer.md index 9bd5243..ed307d6 100644 --- a/workplans/IB-WP-0018-adaptive-llm-routing-consumer.md +++ b/workplans/IB-WP-0018-adaptive-llm-routing-consumer.md @@ -2,7 +2,7 @@ id: IB-WP-0018 type: workplan title: "Adaptive LLM Routing — infospace-bench Consumer Wiring" -domain: markitect +domain: communication repo: infospace-bench status: done owner: markitect diff --git a/workplans/IB-WP-0019-budget-and-usage-registry.md b/workplans/IB-WP-0019-budget-and-usage-registry.md index c86ea69..dacf697 100644 --- a/workplans/IB-WP-0019-budget-and-usage-registry.md +++ b/workplans/IB-WP-0019-budget-and-usage-registry.md @@ -2,7 +2,7 @@ id: IB-WP-0019 type: workplan title: "Budget and Usage Registry for Infospaces" -domain: markitect +domain: communication repo: infospace-bench status: done owner: markitect diff --git a/workplans/IB-WP-0020-provider-routing-cli.md b/workplans/IB-WP-0020-provider-routing-cli.md index 0d8c654..f43d099 100644 --- a/workplans/IB-WP-0020-provider-routing-cli.md +++ b/workplans/IB-WP-0020-provider-routing-cli.md @@ -2,7 +2,7 @@ id: IB-WP-0020 type: workplan title: "Provider Routing CLI Integration" -domain: markitect +domain: communication repo: infospace-bench status: finished owner: markitect diff --git a/workplans/IB-WP-0021-scope-intent-reconciliation.md b/workplans/IB-WP-0021-scope-intent-reconciliation.md index 9f44c7b..647a060 100644 --- a/workplans/IB-WP-0021-scope-intent-reconciliation.md +++ b/workplans/IB-WP-0021-scope-intent-reconciliation.md @@ -2,7 +2,7 @@ id: IB-WP-0021 type: workplan title: "Scope and Intent Reconciliation" -domain: markitect +domain: communication repo: infospace-bench status: finished owner: markitect