feat(seed): OOTB zot seed — AGENTS.md→ZOT_HOME, content + staging, regression tests #137

Merged
clawdie merged 3 commits from feat/seed-population into main 2026-06-25 05:09:35 +02:00

3 commits

Author SHA1 Message Date
5df307aaf4 test(seed): add Layer 0 importer + Layer 2 MCP-boundary regression tests
Layer 0 (seed-import-test.sh): runs the real clawdie-live-seed importer in a
sandbox (CLAWDIE_SEED_TEST=1, all paths overridden) and asserts the seed->runtime
propagation contract — env split, provider.env, dual-home ssh, soul staging, and
AGENTS.md -> $ZOT_HOME (the global slot the autospawned zot reads). Idempotent
re-import is checked. REQUIRE_AGENTS_MD=1 enforces the AGENTS.md install added on
this branch; it passes 23/23 here.

Layer 2 (mcp-boundary-test.sh): exercises the mother MCP-over-SSH boundary on
Linux — colibri-mcp-ssh forced-command allowlist (""/"tools" route, everything
else rejected) and the MCP tools/list handshake, including a real loopback sshd
with command=. Skips cleanly when colibri isn't a sibling checkout.

Verified end to end on Linux before merge: importer target path and the ZOT_HOME
pin in colibri (fix/zot-home) both resolve to /var/db/colibri/.local/state/zot.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 05:03:23 +02:00
85ac1ceec5 fix(seed): close three OOTB gaps before merge
A. ZOT_VERSION drift: build.cfg defaulted to v0.2.42 while build.sh
   preflight hint said v0.2.47. Now both default to v0.2.47.

B. AGENTS.md hw-probe phrasing: told zot to run clawdie-hw-probe,
   but the daemon already collects it into CLAWDIE_HW_PROFILE at
   autospawn time. zot should read the env var, not shell out.

C. RPC_PROMPT missing: COLIBRI_AUTOSPAWN=YES starts zot in RPC mode,
   but without RPC_PROMPT, zot blocks on stdin and idles. Added
   a prompt telling zot to read CLAWDIE_HW_PROFILE, call node_register
   on mother, and report its assigned capabilities.
2026-06-25 04:38:06 +02:00
1a85f17733 feat(seed): populate CLAWDIESEED partition with agent operational files
Adds seed/ directory with:
- AGENTS.md: zot operational rules (mother, verbs, capabilities)
- harness.toml: harness="zot", model="deepseek-v4-pro"
- env.placeholder: template for API key injection

build.sh seed population step reads provider keys from the build host's
/usr/local/etc/colibri/provider.env and writes them to the seed partition's
env file. Also installs AGENTS.md, harness.toml, and the layered-soul backup.

Keys are NEVER committed — only placeholders. Real keys are injected at build
time from the build host's provider.env (DEEPSEEK_API_KEY, OPENROUTER_API_KEY).
2026-06-25 04:30:17 +02:00