openspine
AGENTS.md2 starsChanged 2 months agoApache-2.0View on GitHub
Rust workspace (crates/) for a self-hostable governed-agent runtime, plus an archived OpenSpec spec tree (openspec/) and an Astro docs site (site/). Process canon — read first: DIRECTION.md. New work uses the Pocock skills workflow (wayfinder → grilling/domain-modeling → to-spec → to-tickets → implement, all under .agents/skills/); the OpenSpec ceremony (propose / apply / archive) is retired for new work — do not open new changes under openspec/changes/. Domain vocabulary: CONTEXT.md (five promises, six users, decision test) and STORIES.md. Crates are…
In this repository3 other files it gives its agents.
- site/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- site/CLAUDE.mdCLAUDE.md
The file
Files
openspine
Rust workspace (crates/) for a self-hostable governed-agent runtime, plus an
archived OpenSpec spec tree (openspec/) and an Astro docs site (site/).
Process canon — read first: DIRECTION.md. New work uses
the Pocock skills workflow (wayfinder → grilling/domain-modeling → to-spec →
to-tickets → implement, all under .agents/skills/); the OpenSpec ceremony
(propose / apply / archive) is retired for new work — do not open new
changes under openspec/changes/. Domain vocabulary: CONTEXT.md
(five promises, six users, decision test) and STORIES.md.
Crates are split by trust boundary, not by convenience: openspine-schemas
(shared types) → openspine-authority (composition) → openspine-gate
(mediation) → openspine-kernel (privileged) → openspine-shell (untrusted,
sandboxed). Dependencies point one way down that list.
Gate
scripts/check.sh is the gate and mirrors .github/workflows/ci.yml. It still
strict-validates the archived OpenSpec tree (historical record). Inner loop:
cargo test -p <crate>.
Gotchas
- The kernel E2E test spawns the real
openspine-shellbinary.cargo testbuilds shell tests but not the shell binary, so a barecargo test --workspacefails with a confusing spawn error. Runcargo build -p openspine-shell --bin openspine-shellfirst (check.sh does this for you). - 500-line cap on
crates/**/*.rs(scripts/check-file-sizes.sh). The escape hatch is a first non-blank line reading// openspine:allow-large-module reason: <reason>. Prefer the repo's other habit: move the test module into<name>_tests.rsand pull it in with#[cfg(test)] #[path = "<name>_tests.rs"] mod tests;. capabilities/capability-map.jsonis generated into the public roadmap.scripts/capability-map.mjsrewrites the block between<!-- capability-map:start -->/<!-- capability-map:end -->insite/src/content/docs/roadmap.md. Edit the JSON, never inside the markers.- Every
test: <name>row indocs/threat-claims.mdmust name a real test (scripts/check-claims.sh). Writing a security claim without landing its test fails the gate. - Legacy OpenSpec changes archive with the CLI, never by moving directories
(applies only to leftover/historical changes — new work never creates them;
see
DIRECTION.md).npx --no-install openspec archive "<name>" --yesapplies the deltas intoopenspec/specs/mechanically; a rawmvintoopenspec/changes/archive/leaves the specs unapplied.--yesis permitted onarchiveonly. If it fails withADDED ... already exists, change the delta header to## MODIFIED Requirementsand re-run; do not fall back to--skip-specs. .omp/skills/openspec-*and.omp/commands/opsx-*are generated but hand-patched with that ceremony.openspec init/update --tools oh-my-pisilently reverts the patch;scripts/check-omp-ceremony.shcatches it. Re-apply before committing regenerated output..omp/is the only maintained copy — do not re-generate openspec skills into other harness directories, they drift and teach the raw-move archive.- OpenSpec is pinned to exact
1.6.0-beta.1; usenode_modules/.bin/openspec(or$OPENSPINE_OPENSPEC_BIN), not a global install. Rust is pinned to 1.97.1 inrust-toolchain.toml. - Requirement content lives in the canon, not in the sequence file.
.raw/openspine-agentos-design-log.md(AD-0XX, only settled entries bind a spec) and.raw/openspine-decision-log.md(D-0XX) are canon;openspec/openspine-change-sequence.mdholds only decomposition and dependency edges. On conflict, canon wins. On process,DIRECTION.mdis newest and wins.
Where to look
- Process rulings and the delivery workflow:
DIRECTION.md. Legacy OpenSpec workflow detail (historical changes only):.omp/skills/openspec-*/SKILL.md. - Operator-facing docs:
docs/(terminal chat, Gmail setup, day-2 ops, threat claims). - Product framing and the public site:
site/. - Whole-codebase structural view: the codegraph MCP server, registered in
.omp/mcp.json(omo-codegraph), so omp sessions here getcodegraph_explore/codegraph_search/codegraph_callers/codegraph_nodeas tools.exploregives a symbol's blast radius, callers, and covering tests in one shot — use it instead of reading source file-by-file. The index is a local.codegraph/codegraph.db(~34MB, gitignored). It is NOT built on demand: run~/.omo/codegraph/bin/codegraph indexonce (~5s; the binary is not onPATH), after which the MCP file-watcher auto-syncs on edits. Re-runindexafter a branch switch or large rebase if results look stale.
Agent skills
Issue tracker
Issues live in GitHub Issues (George-RD/openspine), managed with the gh CLI. See docs/agents/issue-tracker.md.
Triage labels
The five canonical triage labels, used verbatim. See docs/agents/triage-labels.md.
Domain docs
Single-context: CONTEXT.md + docs/adr/ at the repo root. See docs/agents/domain.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

