Repository navigation
Conversation
…w suites run (#2180) The shipped Julia environment pinned Piccolo 2.1 / DirectTrajOpt 0.10.1, but the vetted pulse-designer template's version probe requires Piccolo >= 2.2 / DTO >= 0.11 / NamedTrajectories >= 0.9.4 and refuses to run on anything older. - Raise [compat] to Piccolo 2.2 / DTO 0.11 and add MadNLP (0.9, what DTO 0.11 admits) as a direct dep, since the template `import MadNLP`s. Manifest re-resolved with Pkg.update + instantiate: Piccolo 2.2.0, DirectTrajOpt 0.11.0, NamedTrajectories 0.9.4, MadNLP 0.9.2. - Fast test pins the shipped Manifest/compat to the template's own probe floor and checks every non-stdlib template import is a direct dep. - The hermetic test setup now passes AMICO_TEST_JULIA_PROJECT through; every other AMICO_*/AMICODE_*/OPENCODE_* var is still cleared. - Slow Julia suites gate through gateSlowSuite, which logs why a suite skipped. New slow suite runs the pulse-designer template's own version probe. - An env set up from an older bundled pin is reported as "out of date, upgrade via Amicode: Set up Julia" (healthcheck + agent setup state) instead of "not instantiated"; re-running setup upgrades it in place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
…2180) The rehearsal suites need AMICO_TEST_REHEARSAL_PROJECT, which the hermetic setup still clears. Their skip reason now says that instead of suggesting a shell export that cannot take effect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…back (#2180) DTO 0.11 (Piccolo 2.2) defaults to MadNLP, where the raw `callback` kwarg never fires, so the fixture emitted no AMICODE_ITER lines and both integration tests failed on the shipped env. The fixture tests the run-dir contract, not solver choice; it now names IpoptOptions explicitly, as the template's Ipopt arm does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jacktrnr
marked this pull request as ready for review
November 23, 2026 22:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2180
What changed
Shipped Julia environment (
packages/extension/julia)[compat]raised to Piccolo2.2, DirectTrajOpt0.11, NamedTrajectories0.9.4(unchanged floor). MadNLP is now a direct dep (0.9, what DTO 0.11 admits), because the vetted template doesimport MadNLP; without it the template fails to load on the shipped env even once Piccolo is bumped.Pkg.update(...; preserve=PRESERVE_NONE)→resolve→instantiate), not hand-edited. Resolved: Piccolo 2.2.0, DirectTrajOpt 0.11.0, NamedTrajectories 0.9.4, MadNLP 0.9.2, CairoMakie 0.15.13, JLD2 0.6.7.julia_versionmoves 1.12.5 → 1.12.7 (same minor, which is what the installer and the setup command pin).install.shand "Amicode: Set up Julia" do) succeeds, loads Piccolo/MadNLP/CairoMakie/JLD2, and leaves the Manifest byte-identical.Upgrade path for existing users (AC4)
juliaProjectStatus()→current | stale | missing.stalemeans the env was set up before from an older bundled pin (the marker records a different fingerprint, or there's a Manifest with no marker from a pre-marker install).Slow suites (AC3)
test/setup_hermetic_env.tsnow letsAMICO_TEST_JULIA_PROJECTthrough. Every otherAMICO_*/AMICODE_*/OPENCODE_*var is still cleared. The rule lives intest/hermetic_env.tswith a unit test.test/slow_gate.ts(gateSlowSuite), which logs why a suite skipped on stderr.test/slow/pulse_designer_probe.test.tsruns the pulse-designer template's own header (imports + version probe), read from the template and never edited, against the supplied project.Fast guard (AC1/AC2)
test/julia_env_pins.test.tsreads the floors from the template's probe text and asserts the shipped Manifest and[compat]satisfy them, and that every non-stdlib template import is a direct dep. A future floor bump in the template fails this until the env follows.The template itself is untouched (#2174 owns it).
Verification
pnpm --filter amicode test): 348 files passed, 2 skipped; 5840 tests passed.tsc --noEmitclean.~/.amico/julia.AMICO_TEST_JULIA_PROJECT=<fresh instantiate of the shipped env>:pulse_designer_probe✓,template(solve_template.jl via amico run) ✓,verify_harness2/2 ✓,verify_spline_free_phase2/2 ✓calib_chain,mocksoc_rehearsal: skipped, with the logged reason thatAMICO_TEST_REHEARSAL_PROJECTis still cleared by the hermetic setup (see follow-ups)amico runon the shipped env:FINISHED status=completed, F = 0.99959. Piccolo 2.2 prints an optimizer-vs-rollout divergence warning (0.026 > 0.005). That's the template's own behavior, out of scope here.integration(x-gate, h-gate): failed on 2.2 at first. The fixturesolve_common.jlused the rawcallbackkwarg, which is Ipopt-only, and DTO 0.11 defaults to MadNLP, so noAMICODE_ITERwas emitted. Fixed by namingIpoptOptions()in the fixture (the fixture tests the run-dir contract, not solver choice). Now 2/2 ✓.amico run:scores/pasqal-mis/templates/solve.jl: completed, F = 0.9952templates/skeleton_free.jlwith its own commented example authored in: completed, F = 0.99997. Unmodified, it stops withop not defined, which is expected for an author-first skeleton.templates/solve_rydberg_cz.jl(statusexperimental, not tier-1 eligible): fails after the solve with aBoundsErrorin the free-phase scan, which passes a 4×4 goal with a 9-dimsubspacetounitary_fidelity. This predates the bump:unitary_fidelityis identical in Piccolo 2.1.0 and 2.2.0, so it fails on the old env too. Left alone here.solve_template_hp.jl(needs Piccolissimo, which isn't in the shipped env),mocksoc_rehearsal.jl(separate rehearsal env).Follow-ups (not done here)
solve_rydberg_cz.jlfree-phase scan bug (predates this PR, see above).AMICO_TEST_REHEARSAL_PROJECTis still cleared by the hermetic setup, so the two rehearsal suites can't opt in from the shell. Their skip reason now says so.templates/mocksoc-rehearsal/Project.tomlstill pinsPiccolo = "~2.1". It consumes pulses solved on the 2.2 solve env, so the cross-version JLD2 path is unverified until the rehearsal suites can run.🤖 Generated with Claude Code