Repository navigation
Closed
Labels
graph-2026-11-simplifygraph-2026-11-simplify: sequant 3.0 cut to the measured shape (D-1..D-8, 2026-11-03)
Description
Epic: graph-2026-11-simplify Tier: mechanical Execution: owner Blocked by: #1645
Problem
Owner precondition of 2026-11-03: pin downstream before publishing 3.0. ~/Projects/harness/scripts/launch.sh:24 runs nohup npx sequant run … unpinned inside the matcha-maps checkout, which has no sequant dependency, so the first launch after 3.0 is published would run 3.0 against a production repo. sequant-landing, workout and workout-admin declare "sequant": "^2.17.0", which 3.0 does not satisfy. Founding doc §4, OQ-5.
The gate
- Artifact reviewed: the diff in
admarble/harness(and, on route B, inadmarble/matcha-maps). - Question the owner answers: which route, A or B, and is its diff right?
- A: the harness launches
npx [email protected] run …, and its CLAUDE.md names the pin. matcha-maps is unchanged. - B: matcha-maps gets
"sequant": "2.20.0"as an exact devDependency. Tried on 2026-11-03 in a scratch worktree: the lockfile change bumped es-toolkit 1.47.0 → 1.53.1, qs 6.16.0 → 6.17.1 and string-width 8.2.2 → 8.3.0, which ship to production, so the diff is reviewed then.
- A: the harness launches
- Reject route: a wrong diff is reverted in its own repo; 3.0 waits (gate(owner): release sequant 3.0.0 —
/releasemajor frommainafter the smoke and the pin;nextfirst,lateston the owner's word #1657).
Acceptance Criteria
- AC-1: The harness launches the pinned 2.20.0 install by absolute path (route C). Evidence:
grep -c '/.sequant/pins/2.20.0/node_modules/.bin/sequant' ~/Projects/harness/scripts/launch.sh→≥ 1(reworded 2026-11-17 with the owner's consent, route C) - AC-2: No unpinned launch remains in the harness scripts. Evidence:
grep -rnE 'npx sequant( |$)' ~/Projects/harness/scripts | wc -l | tr -d ' '→0 - AC-3: The pin is pushed. Evidence:
git -C ~/Projects/harness show origin/main:scripts/launch.sh | grep -c 'pins/2.20.0'→≥ 1(reworded 2026-11-17 with the owner's consent, route C) - AC-4: The owner named the other repos that need a pin, or none (OQ-5). Evidence:
gh issue view $(gh issue list --label graph-2026-11-simplify --search 'tracker' --state all --json number --jq '.[0].number') --json comments --jq '[.comments[].body|select(test("^PIN: "))]|length'→≥ 1
May touch
admarble/harness: scripts/launch.sh, CLAUDE.md. Route B: admarble/matcha-maps package.json and package-lock.json.
Non-Goals
- Any change in sequant's tree.
- Repos with
^2.xdependencies.
Done when
The production executor cannot pick up 3.0 by accident.
Metadata
Metadata
Assignees
Labels
graph-2026-11-simplifygraph-2026-11-simplify: sequant 3.0 cut to the measured shape (D-1..D-8, 2026-11-03)
Activity
admarble commentedon Nov 8, 2026
Runner, 2026-11-07: the harness doesn't run npm's 2.20.0 today.
which -a sequant→/opt/homebrew/bin/sequantonly, a globalnpm linkof the dev checkout (/opt/homebrew/lib/node_modules/sequant -> ~/Projects/sequant). matcha-maps has no localsequant, sonpx sequantfrom there runs~/Projects/sequant/dist/bin/cli.js.npx --no-install [email protected] --versionfrom the harness also prints2.20.0through the same link, because the devpackage.jsonstill says 2.20.0.dist/was last built from. Today that's31c6f8bdc, built 2026-11-04 by a vitest global setup. Anynpm run buildin~/Projects/sequant, including a vitest run there, changes it. Route A as written (npx [email protected]) doesn't pin while the link exists and its version reads 2.20.0. It only starts fetching npm's 2.20.0 oncemain's version bumps.npm install --prefix ~/.sequant/pins/2.20.0 [email protected]) and havelaunch.shcall~/.sequant/pins/2.20.0/node_modules/.bin/sequantby absolute path. Optionallynpm unlink -g sequantso a baresequantstops meaning the dev build. AC-1/AC-2's greps would then read the absolute path. That needs an AC rewording here if you choose it.admarble commentedon Nov 8, 2026
Runner, 2026-11-08: why the harness's binary moves, and why the pin is needed before 3.0
Two spec phases in this graph rebuilt
~/Projects/sequant/dist/mid-run, and thatdist/is what the globalnpm linkserves:7337cdd39, identical to31c6f8bdcin src/, bin/ and package.json, so no harm was done.--model-ladderand--escalate-efforton run and ready, their settings and docs; old logs and settings still load #1647's spec, on 2026-11-08, at 09:56:16 local. The source wasa5bba3067, so the binary carried feat(run): the quality loop halts on a second consecutive AC_NOT_MET — its own counter, no ladder needed; maxIterations stays 3 #1646's repeat halt and fix(run)!: no label adds thetestphase to a phase list the user or detection chose — remove the UI-label insertion indeterminePhasesForIssue(closes #1631) #1649's removed label insertion until the run's exit step restored the snapshot (manifesta43cb0fa20cce9f7, verified).Cause:
vitest.global-setup.tsrunsexecSync("npm run build")before every vitest run. Spec phases run in the main checkout (batch-executor.ts), so anynpx vitesta spec agent runs there rebuilds the live binary. The build is there so integration tests can shell out tonode dist/bin/cli.js(#851).What this means: as long as the harness and matcha-maps resolve
sequantthrough the link to this checkout, every run that tests in the main checkout can change what production runs. Route C (an absolute-path install under~/.sequant/pins/2.20.0) removes the dependency. Until it lands, graph runs snapshotdist/and restore it on exit (decision 2026-11-08).admarble commentedon Nov 18, 2026
PIN: none beyond the harness
(Owner's answer to OQ-5, relayed from the runner session on 2026-11-17. sequant-landing, workout and workout-admin declare
"sequant": "^2.17.0", which 3.0 doesn't satisfy, so npm won't pick 3.0 for them. matcha-maps has no sequant dependency; the harness pin (route C,d08032a) covers its launches.)admarble commentedon Nov 18, 2026
Done (route C, owner-approved 2026-11-17):
admarble/harnessd08032aon main runs/Users/tony/.sequant/pins/2.20.0/node_modules/.bin/sequant(npm's 2.20.0, outside the global link). ACs, run verbatim: AC-11, AC-20, AC-32, AC-41(PIN: none beyond the harness). A baresequantornpx sequantstill resolves to the dev link, the 3.0 candidate.