Regenerate agent instruction files for dev-hub MCP name

Session-protocol and related rules synced from state-hub template refresh.
This commit is contained in:
2026-06-22 21:24:35 +02:00
parent b268649e8d
commit 6c369e155c
10 changed files with 243 additions and 40 deletions

View File

@@ -2,11 +2,9 @@
## Repo Identity
**Purpose:** Reusable Python package of FastAPI router factories, SQLAlchemy
models, Pydantic schemas, MCP tooling, and migration scaffolds for FOS hub
services.
**Purpose:** **Updated:** 2026-06-16.
**Domain:** inter_hub
**Domain:** infotech
**Repo slug:** hub-core
**Topic ID:** `1f2e4d10-c967-4803-ae6c-7f4b4e806409`
**Workplan prefix:** `HUB-WP-`
@@ -103,43 +101,8 @@ curl -s -X PATCH "http://127.0.0.1:8000/tasks/<task_id>" \
---
## Commands
`hub-core` is a library — there is no `serve` entrypoint. Host repos mount
routers and run their own `uvicorn` process.
```bash
cd ~/hub-core
# Install (editable)
python3 -m venv .venv && .venv/bin/pip install -e .
# Test
.venv/bin/pytest -q
# Compile check (fast sanity)
python3 -m compileall hub_core
# Build wheel
.venv/bin/pip install build && python3 -m build
# Consumer regression (after router/schema changes)
cd ~/state-hub && make test
```
No repo-native lint or format targets yet. Add `ruff` / `mypy` when the
package surface stabilizes.
Primary references: `INTENT.md`, `SCOPE.md`, `README.md`,
`~/the-custodian/docs/hub-core-extraction-boundary.md`.
---
## Credential and access routing
> Fleet template mirrored in `.claude/rules/credential-routing.md` for Claude Code.
> Re-sync both from `~/ops-warden/wiki/CredentialRouting.md` when the catalog changes.
**Audience:** Codex, Claude Code, Grok, and custodian agents that call **llm-connect**
for inference. Run this check **before** requesting secrets, API keys, SSH access,
login tokens, or database passwords — in any repo, not only `ops-warden`.
@@ -188,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`
<!-- REPO-AGENTS-EXTENSIONS -->
<!-- Append repo-specific agent instructions below this marker.
The state-hub template sync preserves content after this line. -->
---
## Workplan Convention (ADR-001)
@@ -213,7 +181,7 @@ anything needing analysis, design, approval, dependencies, or multiple phases.
id: HUB-WP-NNNN
type: workplan
title: "..."
domain: inter_hub
domain: infotech
repo: hub-core
status: proposed | ready | active | blocked | backlog | finished | archived
owner: codex