Commit graph

4 commits

Author SHA1 Message Date
77b3de121a feat(agent): break-glass as fusion of fusions (16D model)
4 dimensions × 2 models each, structured like 16D braid:
- Math: DeepSeek V4 Pro + Gemini 3.1 Pro
- Proof: Claude Opus + Cohere Command A+
- Code: GPT-5.5 + Kimi K2.6
- Diversity: GLM-5.2 + DeepSeek V4 Flash

Each dimension fuses independently, then results fuse together.
Maps to OpenRouter Fusion with 8-model panel.

Cost: -10 for full fusion, /usr/bin/bash.10-2 for single dimension.
2026-06-22 15:51:07 -05:00
ec5ade77b5 refactor(agent): break-glass is just a model selection card
OpenCode handles provider routing. The skill is a reference card
for which model to switch to. Nothing more.

DeepSeek V4 Pro: /usr/bin/bash.27/.10 (55x cheaper than Opus)
Claude Opus: 5/5 (baseline)
2026-06-22 15:49:49 -05:00
9c5e5030a5 refactor(agent): simplify break-glass to model selection guide
Hermes already handles model routing. Remove MCP server, keep skill
as a cost-optimized model selection guide.

Key insight: DeepSeek V4 Pro is 55x cheaper than Claude Opus and
nearly as good at math/code. Default to DeepSeek, escalate to Opus
only when stuck.

Removed: break_glass_mcp.py (unnecessary — Hermes handles routing)
2026-06-22 15:48:40 -05:00
2cbba82406 feat(agent): break-glass MCP agent for novel problem attacks
Last-resort multi-model panel via OpenRouter Fusion. Only invoked
when all other approaches (local model, single frontier, existing
skills) have failed on the same problem.

Architecture:
- Problem classification (lean_proof, code_bug, architecture, math_novel, infra_debug)
- Per-type model panel selection (Opus + DeepSeek + Gemini for proofs)
- Context assembly (files, build logs, AGENTS.md constraints)
- OpenRouter Fusion call (parallel panel + judge synthesis)
- Structured output (diagnosis, solution, alternatives, risks, cost)

Safety:
- Explicit 'break glass:' trigger required
- Cost gate: /usr/bin/bash.30-.50 per invocation, .00/session cap
- Rate limit: 3 invocations per session
- Audit trail via ContextStream

Files:
- 4-Infrastructure/shim/break_glass_mcp.py (MCP server)
- 6-Documentation/docs/specs/break_glass_mcp_agent.md (design spec)
- .opencode/skills/break-glass/SKILL.md (skill definition)
- .mcp.json (server registration)
2026-06-22 15:33:16 -05:00