Critics & Arbitration
The Spec Closure System validates LLM-generated specifications before they cross the Compiler Wall. Nothing reaches the compiler until the specification closes.
When are critics needed? Only during LLM-assisted spec authoring. If you write your .dmx specification directly, the critics system is bypassed entirely — the spec goes straight to the Lark parser.
Three Agents
Converts natural language requirements into .dmx specifications. Implements targeted repairs identified by the Critic agent.
- Generates the initial .dmx draft from natural language
- Implements repairs using the specified JSONPaths only
- Temperature locked at zero: no sampling, so the same input yields the same draft
- Receives the DMX language reference as system context
Evaluates specifications against the Spec Closure Contract. Identifies what blocks closure, and where.
- Evaluates against the Spec Closure Contract
- Separates what blocks closure from what only warns
- Every issue carries the JSONPath it was found at
Validates critic evaluations through deterministic checks before any LLM inference.
- Objective checks run deterministically, before anything is inferred
- Auto-disagree triggers when the checks contradict the critic
- LLM inference only when the deterministic checks pass
- No authority to override — advisory role only
Closure Loop
The loop is bounded, and every pass must improve on the last. If the specification does not close, the system escalates to human review rather than settling for what it has.
Generate
LLM-A generates initial .dmx draft from requirements
Critique
LLM-B evaluates the draft against the Spec Closure Contract
Converge?
Closes when the contract is satisfied and nothing blocks. Otherwise continue.
Repair
LLM-A applies path-locked repairs (only specified JSONPaths modified)
Monotonic Check
Verify the draft got closer. If it did not, escalate to a human.
Triangulate
LLM-C validates the critic's output. Advisory only, and bounded.
Bounded, and monotonic: a pass that does not improve on the last one escalates to a human.
Design Principles
Fail-Closed
Uncertain findings escalate to humans rather than auto-resolving. The system never guesses.
Path Locking
Repairs only modify the specific JSONPaths identified by the critic. No side-effect edits.
Monotonic Closure
Each iteration must improve on the last, or hold. Regression triggers escalation.
No Authority for LLM-C
The triangulation verifier is advisory only. It cannot override the critic or approve specs.
Evidence-First
Every issue citation includes the specific rule violated, the JSONPath, and the evidence.
Deterministic Bypass
LLM-C's objective checks run before any inference. The model is invoked only when they leave something open.