Skip to content

feat: SEAM 5 — the calibrate→pin→re-optimize verb chain (#681) - #695

Merged
aarontrowbridge merged 6 commits into
mainfrom
681-seam5-calib-chain
Aug 31, 2026
Merged

feat: SEAM 5 — the calibrate→pin→re-optimize verb chain (#681)#695
aarontrowbridge merged 6 commits into
mainfrom
681-seam5-calib-chain

Conversation

@aarontrowbridge

Copy link
Copy Markdown
Member

Fixes #681. Part of #679 (the codesign PRD). The chain as ONE recorded verb path over existing seams: STAGE amicode_calib_chain{leg: mock} — calibrate (the SEAM 1 rehearsal artifact read through the same dishonest-artifact-refusing reader; the hardware leg is structurally refused, names the five human gates, records nothing — the record type has only a mock variant), pin (the formulation calibration_pin constraint + solve.pinned_globals, additive, idempotent), re-optimize (the warm-start seed; the re-solve itself is the established bash launch), re-bank (the tool STAGES the exact ingest command with the chain fingerprint — calibration-ref, pin, warm-start — and performs no catalog write; promotion stays human-gated, the amico catalog ingest gains the additive provenance flags). COMPLETE amicode_calib_chain verifies the fingerprint against the promoted metadata and lands the countable executed_on_mock event. Director gates: fast suite 1847 passed + the 3 documented pre-existing env failures; typecheck clean; THE E2E EXECUTION RECORD — the chain ran end-to-end on mock through real solves by the director (one honest fix en route: the generated warm-start script re-wraps the loaded traj through ZeroOrderPulse; the e2e is green). Overlay untouched. Part of #679.

…verb, staged + completed) + structural promotion invariant
The e2e failed on the director's first run: the generated solve_B passed load_traj's raw NamedTrajectory straight to SmoothPulseProblem — the constructor wants a trajectory-with-pulse. The correct idiom re-wraps: warm = load_traj(seed); qtraj = UnitaryTrajectory(sys, ZeroOrderPulse(warm), op). Verified end-to-end green (the full calibrate -> pin -> warm-started re-solve -> provenanced re-bank -> executed_on_mock chain, real solves both legs). Also: the temp-dir cleanup now respects AMICO_DEBUG_KEEP_DIR (the env guard that made this diagnosis possible without a rerun).
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 69a4ee2d-3e6d-4125-b43f-9bae0858300e


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@aarontrowbridge
aarontrowbridge merged commit 882f2ee into main Aug 31, 2026
9 checks passed
@aarontrowbridge
aarontrowbridge deleted the 681-seam5-calib-chain branch August 31, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Codesign SEAM 5: the calibrate→pin→re-optimize verb chain

1 participant