Repository navigation
STROT v1.1.0 — MCP agent surface + lifecycle primitives
1.0.0 was the compiler, converged to one door: decide → a self-contained .strot model that decides locally at $0. 1.1.0 keeps that core untouched and adds the surface for an agent to drive and maintain compiled models — plus the signals a maintainer runs on.
MCP — drive the compiler from an agent
- New strot-ai[mcp] extra exposes the compiler as an MCP server (python -m strot.mcp, SDK 2.x).
- 17 tools covering the full lifecycle: inspect_data, pii_scan, design_questions, compile_start/compile_status (async — a compile runs minutes), decide, evaluate_model, score, read_traces, drift_check, cluster_rejections, recompile, set_status/model_status (circuit breaker), budget_status, list_models, model_info.
- A strot_compiler playbook prompt teaches the methodology: inspect → pii → design → compile → verify → deploy → monitor → recompile → gatekeep.
- Guardrails: async-compile budget (STROT_MCP_COMPILE_BUDGET) and decide honors a paused model. The server does no LLM work of its own — all AI comes from the calling agent.
Lifecycle primitives (torch-free to read)
- strot.evaluate / score_decisions — accuracy, coverage, calibration (ECE) per question.
- strot.read_traces / summarize_traces — volume, refusal rate, confidence, value mix.
- strot.drift_check — recent-vs-baseline drift + a recommend_recompile verdict.
- strot.cluster_rejections — cluster refused records to surface the gap to close.
- strot.inspect_data / strot.pii_scan — profile raw input and preview what the teacher-boundary masker redacts.
- model.trace(path) — opt-in logging of every decision.
API
- model.dispatch("name") is the ship verb — writes one self-contained name.strot. (save() kept as a back-compat alias.)
Docs
- Full DEVELOPERS.md rewrite for 1.1; README gains an MCP section + Claude Desktop config.
Compatibility: additive. The decide API, the .strot artifact, and 1.0 models are unchanged. 141 tests green.