agentleFS
George-RDGeorge-RD/openspine/AGENTS.md

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…

The file

Files
AGENTS.md

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-shell binary. cargo test builds shell tests but not the shell binary, so a bare cargo test --workspace fails with a confusing spawn error. Run cargo build -p openspine-shell --bin openspine-shell first (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.rs and pull it in with #[cfg(test)] #[path = "<name>_tests.rs"] mod tests;.
  • capabilities/capability-map.json is generated into the public roadmap. scripts/capability-map.mjs rewrites the block between <!-- capability-map:start --> / <!-- capability-map:end --> in site/src/content/docs/roadmap.md. Edit the JSON, never inside the markers.
  • Every test: <name> row in docs/threat-claims.md must 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>" --yes applies the deltas into openspec/specs/ mechanically; a raw mv into openspec/changes/archive/ leaves the specs unapplied. --yes is permitted on archive only. If it fails with ADDED ... already exists, change the delta header to ## MODIFIED Requirements and 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-pi silently reverts the patch; scripts/check-omp-ceremony.sh catches 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; use node_modules/.bin/openspec (or $OPENSPINE_OPENSPEC_BIN), not a global install. Rust is pinned to 1.97.1 in rust-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.md holds only decomposition and dependency edges. On conflict, canon wins. On process, DIRECTION.md is 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 get codegraph_explore / codegraph_search / codegraph_callers / codegraph_node as tools. explore gives 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 index once (~5s; the binary is not on PATH), after which the MCP file-watcher auto-syncs on edits. Re-run index after 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.