Plan: every dependency current - the workspace tests on the pi the box runs, the permission system and helper runtime move thirteen and four majors, and the toolchain follows
Closes: #359 (M1: host, SDKs, docs pipeline and small bumps; units U1, U5, U7), #360 (M2: permission system; U2), #361 (M3: helper runtime and web access; U3, U4), #362 (M4: toolchain; U6), #363 (the release). Branches: chore/deps-host, chore/deps-permission-system, chore/deps-helpers, chore/deps-toolchain, in that order. Status: Done (2026-10-09) — released in 0.101.0; three held back as planned; #364, #365, #366 filed along the way
Erratum (2026-10-09): M3 lands before M2. permission-system 40.1.1, which carries a gating fix 40.0.2 lacks (commands inside time ( … )), is younger than pnpm’s one-day release-age floor until 2026-10-09T07:25Z, and nothing in M3 depends on M2.
Erratum (2026-10-09): web_enable also gets an allow rule beside `web_search’s in auto, plan and manual: a helper’s call is forwarded to the parent and decided by those rules.
Erratum (2026-10-09): there is no Research contract test, and nothing of ours reads a web tool’s isError, so 0.37.0’s change reaches only the model and gets no test. The cost claim’s fixture is a 23.2.0-shaped record through the listAgents fallback; the live run priced all three helpers exactly through our own ledger.
Erratum (2026-10-09): the battery’s yield tool imported @sinclair/typebox, which no manifest declared and only pi-subagents 19.3.5 brought in; it now imports typebox, declared at the root.
Erratum (2026-10-09): M4 also lands before M2, for the same release-age reason; runner and dependency changes still never share an MR, which is what the order protected.
Erratum (2026-10-09): no repo tooling passes -t (the task runner and the battery do not); vitest 5’s ` > ` join reaches only a hand-typed substring filter, which still matches, so no contract test is added. vitest 5 writes no .vitest/ directory under our config, so nothing is ignored.
Erratum (2026-10-09): under the seeded policy every call but a helper’s harness tools is already an ask and both path surfaces are allowed, so majors 31-40 change what is inside an ask, not whether there is one; the modes page says that instead of "more asks reach the judge". 40’s directional path keys (path_read and the rest) also join the reconcile advisory for excluded surfaces, with a regression test.
Erratum (2026-10-09): since 28.0.0 an authorizer deny reaches the model as "The 'gadhs-mode-judge' authorizer denied this call", not "The user denied"; the attributeDeny comment, its test’s copy of the sentence and the tuning page’s troubleshooting row follow. The captured ask exposed a pre-existing defect (a bash ask’s command copied into path), filed as #366 and left out of this MR.
TL;DR
| Dependency | Now | Target | What breaks, in one line |
|---|---|---|---|
|
0.87.0 |
1.1.0 |
Nothing at runtime: the box has run our code on 1.1.0 for weeks. Types may: |
Our peer floors on pi (every package manifest) and the CI rehearsal’s pin |
≥0.87.0 (≥0.85, ≥0.75); rehearsal 0.87.0 |
≥1.1.0; rehearsal 1.1.0 |
A consumer on pi < 1.1 can no longer install; the two bundled gotgenes packages require ≥ 1.0, and 1.1.0 is the only pi this code has run on. |
|
27.0.1 |
40.1.1 |
Our API surface is unchanged; six majors change which asks are raised. |
|
19.3.5 |
23.2.0 |
Agent files lose precedence over a caller unless |
|
0.25.0 |
0.37.0 |
Tools hide behind |
|
^0.116.0, ^0.17.1 |
0.129.0 exact, ^0.20.3 |
pi-ai 1.1.0 pins the sdk at 0.129.0; one copy or two class identities. |
|
5.9.3 |
7.0.2 (fallback 6.0.x) |
The native compiler: no API, stricter defaults; our tsconfig is already NodeNext with |
|
4.1.11 |
5.0.3 + explicit |
|
|
3.1.15, 1.3.0 |
3.2.1, 1.6.0 |
Antora exits 2 when its log-failure threshold trips. |
|
^1.3.7 → 1.3.36 |
override 1.3.27 |
pi-ai 1.1.0 pins 1.3.27 exactly; two copies otherwise. |
|
26.3, 4.9, 2.5.10 |
26.6, 4.10.1, 2.5.15 |
Patches and deprecations only; 4.10.1 fixes fake-timer interplay. |
|
^0.26.9 |
stays |
The permission engine pins |
|
^10.9.1 |
stays 10.x |
|
|
0.18.1 |
stays |
1.0 requires Asciidoctor.js 4, which Antora does not bundle; its own changelog says keep 0.18.x with Antora. |
|
- |
not in scope |
Box and CI tools, not dependencies; pnpm 12 rejects unknown workspace settings and is noted for a later issue. |
Order. Four MRs. M1 (U1 + U5 + U7) first: everything that is "match the host’s pin" or a patch bump, with nothing to design, and the gotgenes majors require pi ≥ 1.0 in the workspace. M2 (U2) and M3 (U3 + U4) next, each a dependency whose behaviour changes and whose live check is its own. M4 (U6, the toolchain) after them, so a test that moves is a dependency’s doing, not the runner’s. One release after all four.
Verification that is not "it compiles". task validate per unit; consumer-sim per unit (it packs @gadhs/pi, installs it as a developer would, and loads it in pi); after U3, a live session on the packed build exercising the judge, a rule deny, a helper and its result (below); after U4, plan-mode web search. The eval gate is not rerun: no rubric changes.
Design
U1 - the host pins and the small ones
-
pnpm-workspace.yamloverrides: the four pi packages to1.1.0, the version the box runs (its rule, #195: "bumped with the box, on purpose"). Addtypebox: 1.3.27, pi-ai 1.1.0’s exact pin, for the same reason. -
Peer floors to
>=1.1.0on pi-coding-agent and pi-ai in every package (pi,pi-modes,pi-workflow,pi-vertex,pi-remote,pi-agents,pi-guidance): 1.1.0, not 1.0.0, because the CIrehearsejob (.gitlab-ci.yml) installs the floor exactly and a distribution test asserts the pin equals@gadhs/pi’s floor - the rehearsal exercises the minimum host the package claims, and the only pi this code has run on is 1.1.0. So the override, the floor and the rehearsal pin move together to 1.1.0 in one commit (the test fails on a floor bump that leaves the pin behind; that is its job). The project-conventions page’s sentence on floors says why. The two runtime floor checks whose message names 0.87 (the judge’s and the reviewer’s) keep their check and say `>=1.1.0. -
@types/node26.6,fast-check4.10.1,@biomejs/biome2.5.15 at the root. -
Then
tsc --noEmitagainst 1.1.0’s types in every package, and fix what moved. Expected small: the code already runs there. -
minimumReleaseAge: a version younger than pnpm’s floor is not taken silently -pnpm addwritesminimumReleaseAgeExcludeon its own (a known pitfall); the diff ofpnpm-workspace.yamlis read before every commit, and the stalepi-web-access@0.25.0entry there is removed in U4.
U2 - the permission system, 27.0.1 → 40.1.1
What we use is unchanged, read from 40.1.1’s source: getPermissionsService(sessionId) → registerAuthorizer(name, fn) with a disposer (judge-wiring.ts registerOnReady); the permissions:ready event with { sessionId } (now also adjudicatesLocally, additive); the verdict shape (allow, deny with a reason, defer); the config path and keys (permissionReviewLog, authorizerChain, permission) - nothing renamed or removed, only optional keys added, so the seeded config.json on every box stays valid and SEED_GENERATION (policy-reconcile.ts, 3 today) does not move for this unit. The parser pins are identical (tree-sitter-bash ^0.25.1, web-tree-sitter ^0.26.9), so pi-bash stays put.
What changes is behaviour, and it is read before the first smoke, not discovered in it: 31 (paths in for/case operands gated), 34 (a redirect’s target checked before the file exists), 36 (computed arguments withdraw find/fd/sort’s read claim), 39 (the Pi-infrastructure read bypass covers harness entries only, not all of `~/.pi/agent), 40 (a bash rule written with an absolute path matches its relative spelling). Each means more asks reach the judge or more rule matches; none loosens. The modes page’s judge section gains a short "what the permission system asks since 40" list.
One contract to pin: the judge’s extractFullCommand reads the whole command out of the ask’s evidence. 40.1.1 also carries accessIntent.askingUnits per unit. A fixture test is added from a payload captured live on 40.1.1 (consumer-sim session, one deferred ask), so the shape we parse is the shape that ships.
U3 - the helper runtime, 19.3.5 → 23.2.0
-
locked(21.0.0): an agent file’smodelandthinkingno longer beat a caller’s. The three seeded agent files (Research supplied as the exemplar; Explore and Verify have the same frontmatter shape) gainlocked: [model, thinking]: the battery argued those choices, and a caller may still setmax_turnsorrun_in_background. pi-agents' seeding rewrites managed files on update, so every box gets it. -
Two new child tools (21.3.0):
ask_parentandnotify_parentare added to every child whatever itstools:. A child’s asks go to the parent’s chain, where every tool resolvesaskunder the seeded"*": "ask", so a headless helper would fail closed on its first question. They joinyieldinDEFAULT_PERMISSION_CONFIG(bootstrap.ts) asallow, with the same reasoning in the comment;SEED_GENERATIONbecomes 4, andtask policy-diff --writecarries it onto a box that was seeded earlier (the seed never overwrites by itself). -
The record and the events (20.1.0, 23.0.0): turn count and limit now live in
turnBudget {used, maxTurns?, phase}; the transcript path isoutputFile;subagents:child:completedcarriesturnBudget;LifetimeUsageis unchanged. Our wiring reads the result text for the transcript path (yield-tool.tstranscriptPathIn) andlifetimeUsagefor cost; the report text changed in 21.7.0 and 21.9.0 (compact results, the model named). Fixture tests are built from a real 23.2.0 result captured live, fortranscriptPathInand the cost claim. -
Turn budget (23.0.0):
max_turnsminimum is 2 and a run that is still calling tools at the ceiling endsaborted. Our agents set nomax_turns;subagentPolicyis checked for one, and the docs say whatabortednow means. -
Permission forwarding is unchanged: the child’s chain is vacant and its asks reach the parent’s, where our judge sits. 21.9.1 ("children stop inheriting the parent’s tool list and rules") is prompt text only (its ADR 0011), not permission. The delegation gate (
subagent-gate.ts) compares declared profiles and is untouched;ask_parent/notify_parentare harness tools that reach nothing. -
Provider inheritance (20.0.0): children replay the parent’s
pi.registerProviderregistrations, which is how our Vertex models already reach helpers; nothing to do but keep the live check.
U4 - web access, 0.25.0 → 0.37.0
-
Since 0.31.0 a fresh session registers one tool,
web_enable, and the four real tools appear when it is called (toolActivationdefaultautosince 0.34.0). An allowlist that names only the four leaves them unreachable.web_enablejoins plan mode’stoolsin the mode definitions, the seeded agents'tools:where they name a web tool (Research, supplied, and Explore), and the matchingsubagentPolicyprofiles. -
The config file moved to
~/.pi/agent/web-search.json(0.29.0); a legacy~/.pi/web-search.jsonis still read when the new one is absent (0.30.0). The tuning page says both. -
0.37.0 marks a failed tool call
isError: true; the Research agent’s contract test gets a failing-search case. -
The
minimumReleaseAgeExcludeentry for 0.25.0 is removed.
U5 - the Vertex SDKs
-
@anthropic-ai/sdkpinned exactly 0.129.0, the version pi-ai 1.1.0 pins: we hand anAnthropicVertex(which extends that sdk’s base client) into pi-ai’sstreamAnthropic, and two sdk copies are two class identities (the one deliberate double cast inanthropic.tsexists because of this).@anthropic-ai/vertex-sdkto^0.20.3(its range is>=0.115.1 <1; its client options are byte-identical to 0.17.1’s).google-auth-librarystays 10.x (above). The contract tests and pi-vertex’s live test are the check; 0.19.2’s "never send ambient first-party credentials to provider endpoints" is watched in the live run.
U6 - the toolchain
-
vitest 5 + coverage-v8 5,
viteadded as an explicit dev dependency (now a required peer). Known work:clearMocksis on by default (tests that read call history across tests);vi.mock/vi.hoistedinside a function now throw;test.sequentialis gone (concurrent: false);-tmatches names joined with ` > ` (the task runner and the battery pass-tsubstrings, which still match); coverageinclude/excludenow match relative to the root with no "contains" - every package’s reported file set is compared before and after, and a threshold moves only for a file-set reason, said in the commit. Reporters write under.vitest/(gitignore). -
TypeScript 7.0.2, through 6.0 first inside the unit: install 6.0, clear every deprecation with no
ignoreDeprecations, then 7.0.2. 7 has no compiler API (nothing here imports one), defaultstypesto[](ours is explicit), requiresmoduleResolutionnodenext/bundler (ours is NodeNext) androotDirexplicit for emit (we do not emit). Fallback, stated now: if 7.0.2 cannot check this tree for a reason that is 7’s (a bug, a missing option), the unit lands on 6.0.x and files the blocker; it does not silence anything to get to 7. -
CI installs
pnpm@11; unchanged by this unit (its pi pin moved in U1).
U7 - the docs pipeline
@antora/cli and site-generator 3.2.1 (exit code 2 when the log failure threshold trips: the docs CI job’s expectations are checked), @gadhs/orchard-docs-ui 1.6.0 (its own changelog read at implementation; it is the agency’s theme), asciidoctor-kroki stays 0.18.1. The docs job builds the site in CI; the branch’s pipeline is the check.
The release
One release after M4: every package’s peer floor moved, so every package re-publishes. @gadhs/pi 0.101.0: a minor, as this repository versions a change in what is refused (pre-1.0), with the release note saying plainly that the permission system now asks in more places and that pi ≥ 1.0 is required.
Failure modes, named
|
M1 does not land until it is clean, with no suppression. A move too large for M1 is its own issue and M1 stops at the floors. |
A seeded policy on a box stays at generation 3: fail-closed |
A helper’s |
The permission system asks in a place it did not: fail-closed |
That is the judge’s job; the asks go through the rubric as any ask does. The list in the modes page says where to expect it. |
A helper’s result text changes shape again: fail-open to a floor |
|
|
Plan-mode web search would return no tool; M3’s live check calls it before landing. |
vitest 5 moves a coverage number: fail-closed |
The threshold is not lowered; the commit names which files entered or left the measured set and why. |
TypeScript 7 cannot check the tree: fail-closed, bounded |
The unit lands on 6.0.x with the blocker filed; 7 is not forced. |
Decisions for the operator
-
Three stay back on purpose:
web-tree-sitter(match the engine),google-auth-library(match vertex-sdk),asciidoctor-kroki(Antora cannot load 1.0). Each is one line to flip when its reason goes away. -
pnpm 12 and Node are out of scope. They are tools on the box and in CI, not dependencies of the packages. pnpm 12’s unknown-setting check deserves its own issue.
-
Peer floors go to pi ≥ 1.1.0 everywhere, not 1.0.0 and not only where forced: the rehearsal installs the floor exactly, and 1.1.0 is the one pi this code has run on.
-
locked: [model, thinking], notlocked: true, so a caller can still bound a helper’s turns or background it. -
Four MRs, one release at the end: the units with nothing to design travel together; the two governance dependencies and the toolchain stay separately reviewable, and one release is one install for you.
Scope
Units, grouped into MRs
M1 chore/deps-host:
-
U1 host pins, floors, rehearsal pin, small bumps;
tscclean; validate; consumer-sim. Tests: the existing distribution test (contract: pin = floor) is the guard; a regression test is added only iftscagainst 1.1.0 finds a behaviour, not a type, that moved. -
U5 sdk 0.129.0 exact, vertex-sdk ^0.20.3 in pi-vertex’s manifest; the existing contract tests through pi-ai’s real
streamAnthropic(contract) and pi-vertex’s live test. -
U7 antora 3.2.1, docs-ui 1.6.0; the docs pipeline on the branch is the check (contract: the site builds with exit 0 under the new threshold rule); no unit test, the pipeline is the test.
M2 chore/deps-permission-system:
-
U2 permission-system 40.1.1; validate; consumer-sim; a live session:
judge_register.okin the debug log, one rule deny, one judge ask allowed, one deferred ask whose payload is captured as theextractFullCommandfixture (contract test). The modes page’s "since 40" list.
M3 chore/deps-helpers:
-
U3 subagents 23.2.0;
lockedon the three agents; seed generation 4 with the two tools and the reconcile; fixture tests fortranscriptPathInand the cost claim from a captured 23.2.0 result (contract); a regression test that a helper’sask_parentis allowed by the seed; live: a Verify helper runs, its bash reaches the parent’s judge, its result and cost appear;task policy-diff --writeon this box, recorded. -
U4 web-access 0.37.0;
web_enablein the allowlists; the Research contract test’s failing case; live:web_searchin plan mode and from the Research helper. Tuning page.
M4 chore/deps-toolchain:
-
U6 vitest 5 (+
vite), coverage-v8 5, TypeScript 6.0 → 7.0.2; every suite green; coverage file sets compared;.vitest/ignored. Tests: every existing suite is the test (regression: the same assertions under the new runner); one new contract test that the task runner’s-tfilters still select their tests under the ` > ` join.
Then:
-
Close: each MR carries
Closes #Nfor its issue; after each merge, one line on the issue with the merge SHA and anything deferred. The release issue closes onrelease verify. -
Release
@gadhs/pi0.101.0 with the note above;release verify. -
Docs: project-conventions (floors), modes (since-40 list;
abortedhelpers;ask_parent/notify_parentin the seed), tuning (web-search.json path), local-dev (toolchain versions), packages page (the gotgenes versions); CHANGELOGUnreleasedper MR.
Out of scope
-
pnpm 12, Node; any use of pi-subagents' new features (child codemode,
ask_parentfrom our agents' prompts) - follow-ups. -
Rubric changes; a battery or field-round rerun (the operator’s).
-
Any dependency of the model battery’s own tooling beyond the root dev dependencies.
Acceptance
-
pnpm outdated -rlists only the three held back, each with its reason in this plan. -
task validateandconsumer-simgreen on main after M4; every package’s coverage at or above its floor. -
On the packed build: the judge registers; a rule deny, a judge allow and a queued defer behave as before; a Verify helper runs under the judge, with its cost on the trace line; plan-mode
web_searchanswers; pi-vertex’s live test passes. -
task policy-diffreports no drift on this box after--write. -
release verify 0.101.0: 8 packages, pins exact.
Evidence outside the repository (read 2026-10-08)
Each changelog and source file is cited by URL on the unit’s issue when filed; the facts the design rests on: permission-system 40.1.1 src/service.ts (getPermissionsService, registerAuthorizer), src/service/permission-events.ts (permissions:ready {sessionId, adjudicatesLocally}), docs/configuration.md (config path and keys unchanged since 27.0.1), package.json (peers ≥1.0.0 from 37.0.0; tree-sitter pins identical to 27.0.1), CHANGELOG majors 28-40; pi-subagents 23.2.0 CHANGELOG (21.0.0 locked, 21.3.0 ask_parent/notify_parent, 21.9.1 with ADR 0011, 22.0.0 pi ≥ 1.0, 23.0.0 turn budget), src/config/custom-agents.ts (frontmatter keys; output_schema is ours, ignored there), src/lifecycle/usage.ts; pi-web-access 0.37.0 CHANGELOG (0.29.0 config path, 0.31.0 web_enable, 0.34.0 toolActivation: auto, 0.37.0 isError); pi-ai 1.1.0 package.json (@anthropic-ai/sdk 0.129.0 and typebox 1.3.27 exact); vertex-sdk 0.20.3 package.json (google-auth-library ^10.2.0) and client.d.mts; TypeScript 7.0 and 6.0 announcements; vitest 5 migration guide; asciidoctor-kroki 1.0.0 CHANGELOG ("keep using 0.18.x with Antora"); Antora 3.2.0-rc.1 CHANGELOG (exit code 2).