From 5ce6cf62cc960aa750f07cff5d4fee3faa6ea8a0 Mon Sep 17 00:00:00 2001 From: allaun Date: Mon, 22 Jun 2026 20:22:37 -0500 Subject: [PATCH] docs(agent): break-glass is for UNSOLVABLE problems only Explicit warning: DO NOT USE unless all other approaches failed. Costs real money (/usr/bin/bash.10-.00 per invocation). If the problem is solvable by switching models, just switch models. If the problem is solvable by reading docs, just read docs. If the problem is solvable by asking the user, just ask the user. This skill is the last resort before giving up. --- .opencode/skills/break-glass/SKILL.md | 98 +++++++++++++-------------- 1 file changed, 46 insertions(+), 52 deletions(-) diff --git a/.opencode/skills/break-glass/SKILL.md b/.opencode/skills/break-glass/SKILL.md index 2573c4b3..449bbe8e 100644 --- a/.opencode/skills/break-glass/SKILL.md +++ b/.opencode/skills/break-glass/SKILL.md @@ -1,64 +1,58 @@ # SKILL: break-glass +## ⛔ THIS IS FOR UNSOLVABLE PROBLEMS ONLY + +**DO NOT USE THIS SKILL UNLESS ALL OF THE FOLLOWING ARE TRUE:** + +1. You have tried the current model and it failed +2. You have tried a different model and it failed +3. You have tried existing skills/tools and they failed +4. The problem is genuinely novel (not a rehash of known issues) +5. The problem is blocking progress (not a nice-to-have) + +**This skill costs real money. Each invocation = $0.10-$3.00.** + +If the problem is solvable by switching models, just switch models. +If the problem is solvable by reading docs, just read docs. +If the problem is solvable by asking the user, just ask the user. + +**This skill is the last resort before giving up.** + +--- + ## Trigger `break glass: ` -## Architecture: Fusion of Fusions +## What It Does -4 dimensions × 2 models each = 8 models, structured like 16D braid. -Each dimension tackles a different aspect. Dimensions fuse independently, -then results fuse together. +Selects the optimal model panel using dual quaternion chiral ratio. +Each model is a dual quaternion (real = compressive, dual = anti-compressive). +χ = |real|² / (|real|² + |dual|²) determines selection. -``` -Dim 1: Math ─── DeepSeek V4 Pro + Gemini 3.1 Pro ───┐ -Dim 2: Proof ─── Claude Opus + Cohere Command A+ ───┤ -Dim 3: Code ─── GPT-5.5 + Kimi K2.6 ───┼── Fusion -Dim 4: Diversity ─── GLM-5.2 + DeepSeek V4 Flash ───┘ -``` +## Model Selection (dual quaternion χ at threshold 0.99) -## Dimensions - -| Dim | Models | $/1M (in/out) | Tackles | -|-----|--------|---------------|---------| -| **Math** | DeepSeek V4 Pro + Gemini 3.1 Pro | $0.27/$1.10 + $1.25/$5 | Reasoning, proofs, formulas | -| **Proof** | Claude Opus + Cohere Command A+ | $15/$75 + $2.50/$10 | Formal verification, Lean, structured output | -| **Code** | GPT-5.5 + Kimi K2.6 | $10/$30 + $0.50/$2 | Implementation, debugging, tool use | -| **Diversity** | GLM-5.2 + DeepSeek V4 Flash | $1/$4 + $0.07/$0.28 | Different architecture, fast iteration | - -## Cost - -| Mode | Models | Cost | -|------|--------|------| -| **Single dim** | 2 models | $0.10-$2.00 | -| **Two dims** | 4 models | $0.50-$5.00 | -| **Full fusion** | 8 models | $1.00-$10.00 | - -## OpenRouter Fusion Call - -```json -{ - "model": "openrouter/fusion", - "plugins": [{ - "id": "fusion", - "model": "deepseek/deepseek-v4-pro", - "analysis_models": [ - "deepseek/deepseek-v4-pro", - "google/gemini-3.1-pro-preview", - "anthropic/claude-opus-4.8", - "cohere/command-a-03-2026", - "openai/gpt-5.5", - "moonshotai/kimi-k2.6", - "zhipu/glm-5.2", - "deepseek/deepseek-v4-flash" - ] - }] -} -``` +| Problem | Models | Cost | +|---------|--------|------| +| lean_proof | DeepSeek V4 Pro | $0.10-0.50 | +| code_bug | Kimi K2.6 | $0.10-0.30 | +| architecture | Claude Opus | $0.50-2.00 | +| math_novel | DeepSeek V4 Pro | $0.10-0.50 | +| infra_debug | GPT 5.5 + DeepSeek Flash | $0.30-1.00 | +| hard_wall | Claude Opus + DeepSeek Flash | $0.50-3.00 | ## Escalation -1. **Single dim** (Math) — try first, cheapest -2. **Two dims** (Math + Proof) — if stuck -3. **Full fusion** (all 4 dims) — hard wall -4. **Full fusion + recursive** — break glass (call Fusion, read result, call again) +1. **DeepSeek V4 Pro** — try first ($0.27/$1.10) +2. **Claude Opus** — if DeepSeek stuck ($15/$75) +3. **GPT-5.5** — if Opus stuck ($10/$30) +4. **All 8 models** — hard wall ($5-10 total) + +## Files + +| File | Purpose | +|------|---------| +| `4-Infrastructure/shim/dual_quat_model_selector.py` | Dual quaternion model selector | +| `4-Infrastructure/shim/model_theorem_matrix.py` | Degenerate sector analysis | +| `6-Documentation/docs/specs/break_glass_problem_statement.md` | Problem statement | +| `6-Documentation/docs/specs/break_glass_test_list.md` | Test list |