Skip to content

gate(owner): pin the harness and matcha-maps to sequant 2.20.0 before 3.0 is published #1656

Closed

Description

@admarble

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

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.x dependencies.

Done when

The production executor cannot pick up 3.0 by accident.

Activity

  1. added
    graph-2026-11-simplify
    on Nov 7, 2026
  2. admarble commented on Nov 8, 2026

    @admarble
    ContributorAuthor

    Runner, 2026-11-07: the harness doesn't run npm's 2.20.0 today.

    • which -a sequant → /opt/homebrew/bin/sequant only, a global npm link of the dev checkout (/opt/homebrew/lib/node_modules/sequant -> ~/Projects/sequant). matcha-maps has no local sequant, so npx sequant from there runs ~/Projects/sequant/dist/bin/cli.js. npx --no-install [email protected] --version from the harness also prints 2.20.0 through the same link, because the dev package.json still says 2.20.0.
    • Consequence: the production executor is whatever the dev dist/ was last built from. Today that's 31c6f8bdc, built 2026-11-04 by a vitest global setup. Any npm run build in ~/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 once main's version bumps.
    • Route C, offered for the gate: install the pin once outside the link (npm install --prefix ~/.sequant/pins/2.20.0 [email protected]) and have launch.sh call ~/.sequant/pins/2.20.0/node_modules/.bin/sequant by absolute path. Optionally npm unlink -g sequant so a bare sequant stops 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.
    • Nothing changed in harness or matcha-maps.
  3. admarble commented on Nov 8, 2026

    @admarble
    ContributorAuthor

    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 that dist/ is what the global npm link serves:

    Cause: vitest.global-setup.ts runs execSync("npm run build") before every vitest run. Spec phases run in the main checkout (batch-executor.ts), so any npx vitest a spec agent runs there rebuilds the live binary. The build is there so integration tests can shell out to node dist/bin/cli.js (#851).

    What this means: as long as the harness and matcha-maps resolve sequant through 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 snapshot dist/ and restore it on exit (decision 2026-11-08).

  4. admarble commented on Nov 18, 2026

    @admarble
    ContributorAuthor

    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.)

  5. admarble commented on Nov 18, 2026

    @admarble
    ContributorAuthor

    Done (route C, owner-approved 2026-11-17): admarble/harness d08032a on 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-1 1, AC-2 0, AC-3 2, AC-4 1 (PIN: none beyond the harness). A bare sequant or npx sequant still resolves to the dev link, the 3.0 candidate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    graph-2026-11-simplify

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions