Commit graph

10 commits

Author SHA1 Message Date
ba226a28d9 feat(agent): Gemma4-12B as primary model, free and local
Gemma4-12B is now the primary model for all questions:
- Endpoint: http://127.0.0.1:8081/v1
- Model ID: gemma4-12b
- Speed: ~40 tokens/sec
- Cost: free (local)

Escalation: Gemma4-12B → DeepSeek V4 Pro → Claude Opus → GPT-5.5 → all 8
2026-06-22 22:45:46 -05:00
19eaeada9d docs(agent): break-glass requires user has no solution + all free models expended
Added explicit conditions:
- User has no solution (they don't know the answer)
- All free models tried and failed
- All cheap models (< /usr/bin/bash.50/call) tried and failed
- If a free model can solve it, use the free model
2026-06-22 20:25:18 -05:00
5ce6cf62cc 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.
2026-06-22 20:22:37 -05:00
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
9ecd29361b feat(skills): add headroom autoloaded skill for Research Stack
Injects Headroom compression/memory usage into every session triggered by
Research Stack keywords.
2026-06-21 01:27:21 -05:00
Brandon Schneider
dac28c1b52 docs: sync all editor rules, opencode agents, and sorry audit
Editor rules updated (.cursorrules, .clinerules, copilot-instructions, .roo):
- Build: 3571 jobs, 0 errors
- Sorry inventory: 8 across 4 files (all documented)
- Q16_16 compliance, new modules list, FPGA info
- Fixed stale path in copilot-instructions

Opencode agents:
- 3 marked RESOLVED (pist-simulation, qfactor, ssms)
- 2 new agents created (adjugate-matrix, hamiltonian-mechanics)
- 1 updated (hyperbolic-statesurface)

SORRY_AUDIT.md: updated to 8 sorries across 4 files
2026-05-28 17:53:54 -05:00
Brandon Schneider
ede983168c feat(lean): complete goldenContractionEnergyDecrease proof + PIST predictions pipeline v2
- PistSimulation.lean: proven goldenContractionEnergyDecrease (no sorry)
  7 supporting lemmas, h_u'_nonneg + h_pt hypothesis, fold induction
- Connectors.lean: restored zeroIsVoid theorem with Q16_16 proof
- CanonSerialization.lean: removed dead theorem, documented blocker
- FixedPointBridge.lean: eliminated Float from compute paths

PIST predictions pipeline:
- pist_matrix_builder.py: reproducible matrix-only builder (SHA256)
- build_pist_matrices_278.py: generates PIST/Matrices278.lean
- PIST/Classify.lean: classifyProxy/classifyExact stubs (v2 surface)
- PIST/Matrices278.lean: 250-entry matrix HashMap
- build_corpus278.py: reads predictions artifact, uses classify*
- Pipeline contract documented in root AGENTS.md

Cleanup:
- Archived 5 orphan pist_* shims, 5 old route_repair variants
- Quarantined PIST/Repair.lean (no external callers)
- Created 4 opencode agents for remaining TODO items

Build: PistSimulation 3309, Compiler 3313, Full 3571 (0 errors)
2026-05-27 12:40:16 -05:00