Skip to content

feat(ring-0): RING 0 seal — cargo build + cargo test green + 7 tools verified #16

@gHashTag

Description

@gHashTag

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

  • cargo build --release — 0 errors
  • cargo clippy -- -D warnings — 0 warnings
  • cargo test — all green
  • curl localhost:9005/mcp tools/list returns exactly 7 tools
  • ring-0-seal.json committed to .trinity/experience/
  • Experience log entry added

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions