Plan: dependencies, round three - the workspace moves to pi 1.5.0 with its floor, pi-web-access to 0.46, the toolchain’s patches
Closes: #697. Relates to: #396 (round two, whose method this reuses), #195 (the floor guard), #691 (the @smithy/core deprecation, which pi-ai 1.5.0 may or may not clear). Branches: chore/deps-pi-1.5, chore/deps-web-access-0.46, chore/deps-toolchain-3, in that order. Status: Done (2026-11-02) — the three MRs merged (pi 1.5.0 with its floor and CI rehearsal, pi-web-access 0.46.0, the toolchain’s patches) and shipped in 0.153.0; typebox, the pi-vertex SDK trio, web-tree-sitter and asciidoctor-kroki held, each for its stated reason
Why
pnpm outdated -r on 2026-11-02 lists eleven rows. Three are the pi runtime the box runs ahead of the workspace (the overrides hold 1.1.0; luchs runs 1.5.0 since today, with @gadhs/pi 0.152.0 working on it). One is a bundled upstream (pi-web-access 0.45.0 → 0.46.0). Four are toolchain patches. Three are held (the pi-vertex SDK trio and web-tree-sitter, with typebox and asciidoctor-kroki, below).
TL;DR
| Package | From | To | Why, and what to watch |
|---|---|---|---|
|
1.1.0 |
1.5.0 |
The operator’s choice: tests, floor and rehearsal move together. Three breaking changes since 1.1.0 touch extensions (U1). |
|
0.45.0 |
0.46.0 |
Additive: four opt-in search and fetch providers, a smaller MCP tool definition, PDF text returned, a proxy kept across reload, mixed-case Content-Type. No tool renamed: |
|
2.6.3, 26.6.5, 3.2.1, 3.2.1 |
2.6.4, 26.6.6, 3.2.2, 3.2.2 |
Patches within their ranges; |
|
1.3.27 |
stays |
pi-coding-agent 1.5.0 still pins 1.3.27 exactly (its manifest, read today); the override follows pi-ai’s pin by design. |
|
0.129.0, 0.20.3, 10.9.1 |
stay |
pi-ai 1.5.0 still pins |
|
^0.26.9 |
stays |
permission-system 42.0.0 still pins |
|
^0.18.1 |
stays |
2.0.0 wants |
Design
U1 - pi 1.1.0 → 1.5.0, floor and rehearsal with it (pnpm-workspace.yaml; packages/*/package.json peers; .gitlab-ci.yml)
The overrides move the four runtime packages to 1.5.0 and the lockfile follows (pnpm install). The peer floors >=1.1.0 become >=1.5.0 in pi, pi-modes, pi-workflow, pi-remote, pi-ssh, pi-vertex, pi-agents, pi-guidance (both pi-ai and pi-coding-agent where a package names both). The CI rehearsal installs @earendil-works/pi-coding-agent@1.5.0; `distribution.test.ts’s equality holds it to the floor.
The runtime guards (judge.ts, reflection-review.ts) test a capability, normalizeContext, not a version: they stay, and their messages still name >=1.1.0 as the pi-ai that first had it, which remains true. Only the peer range tells npm the floor.
Three breaking changes since 1.1.0, each checked against the tree on 2026-11-02:
-
1.2.0:
before_agent_startalso fires forsendMessage(…, { triggerTurn: true }), as amessageType: "custom"event with noprompt. Our four handlers (session-wiring.tsthe system prompt composition,pi-ssh/extension.tsthe remote prompt,helper-worktree.tsthe remote’s kept work,subagent-wiring.ts’s `startRun) readevent.systemPromptor onlyctx, which both kinds carry, and none readsprompt. The subagent wiring’sstartRunclears the yield-reminder state per run, which a custom-message run is too: correct. No change; U1’s test is the whole suite on 1.5.0. -
1.2.0: the session counts as busy while a run starts;
sendUserMessagerequiresdeliverAsthen. EverysendUserMessageof ours is eitherisIdle()-guarded withdeliverAs: "steer"otherwise (judge-wiring.tslines 686, 871, 904, 960; pinned bytest/judge-wiring*.test.ts), always steered (repeat-guard.ts:111;test/repeat-guard.test.tsrecords the options), or pi-remote’s prompt path, which already refuses without a behaviour when not idle (commands.ts:454, pi’s own words;pi-remote/test/commands.test.ts).sendMessagequeues into a starting run, which is what the monitor, job and detach notices want. -
1.5.0: tool argument validation on
@earendil-works/pi-schema. No tool of ours usesType.Refine,Type.BigInt,Type.Undefined, codecs orFormat.Set(grep, today). Validation messages change wording; a test asserting TypeBox’smust be numberwould fail. The suite run finds any.
Also in the diff: pi 1.5.0 honours a saved "Do not trust" for a project without trust-requiring resources (isProjectTrusted() was true before); setActiveTools keeps the order of tools that stay active; pi.exec caps output and reports truncated. Each is the safe direction for us; a test that depended on the old behaviour is corrected, never loosened.
What this round does not adopt, each an issue if wanted: the blocked option on inline ctx.ui.custom() for our approval screens; pi.changelogPath so @gadhs/pi’s notes show after `pi update; pi.exec’s `maxBuffer.
U2 - pi-web-access 0.45.0 → 0.46.0 (packages/pi/package.json)
Exact pin moves; the lockfile follows. 0.46.0’s changelog (read from the tarball today) adds four providers used only when named (cloudflare, searchapi, tabstack, Exa as a fetch fallback) and fetchContent.curl; none is on by default and none changes a tool name, so modes.json’s allow rules and the Explore and Research profiles stand. `web-tools.test.ts loads the distribution’s loader and pins the five tools: the contract check. modes.adoc’s web section needs no change. The Research agent (`packages/pi-agents/agents/Research.md) names the five tools and no provider (read today), so 0.46’s new providers leave it correct; nothing to change there.
U3 - the toolchain’s patches (root package.json, lockfile)
pnpm update @biomejs/biome @types/node @antora/cli @antora/site-generator within their caret ranges; validate (lint, typecheck, every suite) and the docs build as CI runs it (npx antora antora-playbook.yml, `.gitlab-ci.yml’s pages job) are the check. Biome 2.6.4’s patch notes are read before the bump; a new lint rule firing is fixed at its site or, if it is a false positive, discussed, never suppressed.
Risks
| Risk | Mode | Mitigation |
|---|---|---|
A seat on pi < 1.5.0 runs |
Fail-closed, loud: npm’s peer check refuses the install (the floor), or pi-modes' guard throws at load |
The release note says |
A behaviour change hidden from the suites |
Silent |
The suites on 1.5.0 are the proof the workspace lacked; the battery is the operator’s and is not run. A day’s use on luchs after the release is the second net, as it was for round two. |
pi-schema’s messages reach the model in a different wording |
Silent: a model retries differently |
Nothing of ours parses those messages; the judge reads the tool call, not pi’s validation text. |
pi-web-access 0.46’s new providers are reachable by name |
Fail-open: a search spends on a provider nobody configured |
Each needs its own key; without one it errors, as the changelog says. No key is added. |
Scope
Named above but not handed to the cold reviewer (each exists in the tree; the claims about them were read today): the seven other peer package.json (pi-modes, pi-workflow, pi-remote, pi-ssh, pi-vertex, pi-agents, pi-guidance), packages/pi-workflow/reflection-review.ts, packages/pi-modes/{helper-worktree,subagent-wiring,judge-wiring,repeat-guard}.ts, packages/pi-remote/commands.ts, packages/pi-modes/modes.json, packages/pi-agents/agents/Research.md, docs/modules/ROOT/pages/modes.adoc, antora-playbook.yml, CHANGELOG.adoc, and the three test files named in U1.
Three MRs, in order; each unit one commit, validate green, consumer-sim 17/17 after U1 since it installs the packed packages onto the pinned pi. The round ends with one release, 0.153.0, whose note says to update pi itself first.
U1 (chore/deps-pi-1.5)
pnpm-workspace.yaml overrides; eight peer floors; .gitlab-ci.yml rehearsal pin; pnpm install. Whatever the suites find on 1.5.0, fixed in the same MR with the cause named. CHANGELOG.adoc Unreleased, Changed: the floor is pi 1.5.0, and pi update (not only --extensions) is needed on an older seat. project-conventions.adoc’s `peerDependencies bullet, which names >=1.1.0 as the one floor, says 1.5.0. Relates to #697.
U2 (chore/deps-web-access-0.46)
packages/pi/package.json; pnpm install; web-tools.test.ts green. CHANGELOG.adoc Unreleased, Changed. Relates to #697.
U3 (chore/deps-toolchain-3)
pnpm update for the four; validate and the Antora build green. CHANGELOG.adoc Unreleased, Changed (repo only). Closes #697, with the hold table copied onto the issue as the deferral record.
Erratum (2026-11-02): pi 1.5.0 was 12 hours old at U1, inside pnpm 11’s one-day minimum release age, so pnpm install added exact-version minimumReleaseAgeExclude entries for its eight packages to pnpm-workspace.yaml. They admit only the tarballs this box already runs as its global pi. They are kept, as 0.25.0’s was, and go stale tomorrow; the next dependency round removes them.
Erratum (2026-11-02): the suites on 1.5.0 found one break. pi-ai renamed the stream option telemetryContext to telemetry and added identity, so pi-vertex’s Claude route, which mirrors pi-ai’s own option builder (#406), forwards both. A contract test now compares that list with the builder itself.