Roadmap context: vault plan `plan-20260812-142100-problemspecs-issimo-roadmap` (W2.1); master design `spec-20260717-020639-typed-problem-specs-piccolo-amicode` ("Amicode integration" + the entities↔spec mapping table). This is the reliability payoff of the whole typed-specs initiative: zero LLM-authored Julia for the spec-expressible subset. Depends on harmoniqs/Piccolo.jl#271 (shipped env admitting v1.21).
What exists today
solvespec v4 already routes `problem_spec` → `Piccolo.Specs.solve_spec` via `local_executor.ts` (`PROBLEM_SPEC_RUNNER`), and the gate already skips the import scan for scriptless specs. What's missing is the authoring side: nothing in TS produces a ProblemSpec from interview state.
Tasks
Acceptance
- Master-spec success criterion 1: a CZ-on-transmons solve runs end-to-end from `amicode_formulate` + `amicode_solve` with zero LLM-authored Julia; final infidelity matches the script path within 1e-6.
- Criterion 2: an intentionally malformed spec is corrected by the agent in ≤1 retry using only the structured error payload.
- vitest goldens on the projection; ajv dual-validation extended to the emitted `problem.toml`.
Roadmap context: vault plan `plan-20260812-142100-problemspecs-issimo-roadmap` (W2.1); master design `spec-20260717-020639-typed-problem-specs-piccolo-amicode` ("Amicode integration" + the entities↔spec mapping table). This is the reliability payoff of the whole typed-specs initiative: zero LLM-authored Julia for the spec-expressible subset. Depends on harmoniqs/Piccolo.jl#271 (shipped env admitting v1.21).
What exists today
solvespec v4 already routes `problem_spec` → `Piccolo.Specs.solve_spec` via `local_executor.ts` (`PROBLEM_SPEC_RUNNER`), and the gate already skips the import scan for scriptless specs. What's missing is the authoring side: nothing in TS produces a ProblemSpec from interview state.
Tasks
Acceptance