RING 0 — Foundation Seal
Context
trios-server exists with 7 MCP tools in crates/trios-server/src/tools.rs:
git_status, git_stage_files, git_unstage_files, git_commit, git_create_branch
gb_list_branches, gb_push_stack
MCP handler in crates/trios-server/src/mcp.rs, Axum server on port 9005.
Mission
Seal RING 0 — prove the spine is alive before any integration.
Steps (PHI LOOP)
R1 — Build
cargo build --release
# Must: 0 errors, 0 clippy warnings
cargo clippy -- -D warnings
R2 — Tests
cargo test
# Must: all tests green
R3 — Server smoke test
# Start server
cargo run -p trios-server -- --port 9005 &
# List tools
curl -s http://localhost:9005/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | jq .
# Must return 7 tools
R4 — git_status smoke
curl -s http://localhost:9005/mcp \
-H "Content-Type: application/json" \
-d "{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/call\",\"params\":{\"name\":\"git_status\",\"arguments\":{\"repo_path\":\"$(pwd)\"}}}" | jq .
# Must return changed files list (not error)
R5 — Seal
echo "{\"ring\": 0, \"sha\": \"$(git rev-parse HEAD)\", \"tools\": 7, \"tests\": \"all green\", \"date\": \"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}" \
> .trinity/experience/ring-0-seal.json
echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] RING0: cargo build + test green | 7 tools verified | port 9005 alive" \
>> .trinity/experience/trios_$(date +%Y%m%d).trinity
R6 — Commit
git add .trinity/experience/
git commit -m "feat(ring-0): RING 0 seal — build green, 7 tools verified on :9005
- cargo build --release: 0 errors
- cargo clippy: 0 warnings
- cargo test: all green
- tools/list returns 7 tools
- git_status smoke: OK
- .trinity/experience/ring-0-seal.json created
Closes #16"
Acceptance Criteria
Laws (CLAUDE.md)
- L1: NO
.sh files
- L3: clippy zero warnings
- L4: tests before merge
- L5: port 9005 is trios-server
- L7: experience log
NOT in scope
Agent returns
✅ RING 0 SEALED | sha: xxxxxxx | tools: 7 | tests: green | port: 9005
φ² + 1/φ² = 3 | TRINITY | GO.
RING 0 — Foundation Seal
Context
trios-server exists with 7 MCP tools in
crates/trios-server/src/tools.rs:git_status,git_stage_files,git_unstage_files,git_commit,git_create_branchgb_list_branches,gb_push_stackMCP handler in
crates/trios-server/src/mcp.rs, Axum server on port 9005.Mission
Seal RING 0 — prove the spine is alive before any integration.
Steps (PHI LOOP)
R1 — Build
cargo build --release # Must: 0 errors, 0 clippy warnings cargo clippy -- -D warningsR2 — Tests
R3 — Server smoke test
R4 — git_status smoke
R5 — Seal
R6 — Commit
Acceptance Criteria
cargo build --release— 0 errorscargo clippy -- -D warnings— 0 warningscargo test— all greencurl localhost:9005/mcp tools/listreturns exactly 7 toolsring-0-seal.jsoncommitted to.trinity/experience/Laws (CLAUDE.md)
.shfilesNOT in scope
Agent returns
φ² + 1/φ² = 3 | TRINITY | GO.