Plan: dependencies, round two - the three bundled upstreams move, the Vertex trio is held by pi-ai’s pin, and the toolchain follows

Closes: #396. Branches: chore/deps-permission-system, chore/deps-subagents, chore/deps-web-access, chore/deps-toolchain, in any order. Status: Done (2026-10-29) — the four MRs merged (permission system 42.0.0, pi-subagents 25.0.5, pi-web-access 0.45.0, the toolchain with Biome 2.6); the pi-vertex SDK trio, typebox, web-tree-sitter and asciidoctor-kroki held, each for its stated reason

Erratum (2026-10-28): tool-surfaces.test.ts does not check the web tools' names (it covers input handling, and nothing in it loads pi-web-access). U3’s contract check is a new test, packages/pi/test/web-tools.test.ts: it loads the distribution’s web-access loader through pi’s resource loader, pins the five tools it registers, and holds every mode’s allow rules, plan mode’s tool list and the Explore and Research profiles to them.

Erratum (2026-10-28): U4 grew, agreed with the operator in conversation. Biome 2.6 formats Markdown by default, and that broke two kinds of file that are read as raw text. The agent definitions' output_schema was JSON inside YAML, read by a hand-rolled JSON.parse, which the formatter’s YAML reflow (trailing commas) defeats. The field-study scenarios' heading # src/calc/init.py became init. So U4 also switches parseAgentContract to pi’s parseFrontmatter (the parser pi-subagents uses), rewrites the three schemas as YAML (pinned exactly by a test), enables markdown.parser.frontmatter, writes that heading as a code span that the harness unwraps, and leaves the scenarios' code blocks as written (a biome.json override). All 18 scenarios parse identically before and after.

Why

pnpm outdated -r on 2026-10-28 lists fifteen rows. Eight are patches or are held on purpose. The rest are the three upstreams @gadhs/pi bundles (packages/pi/package.json, pinned exact: @gotgenes/pi-permission-system 40.1.1, @gotgenes/pi-subagents 23.2.0, pi-web-access 0.37.0) and Biome. The previous round (plans/dependency-update.adoc, done 2026-10-09) set the method this plan reuses: one MR per bundled upstream so each is revertable alone, changelogs read at the target version, the contract tests recaptured from a live run on the packed build, and a release at the end.

Two of the new majors matter to our code. permission-system 41.0.0 changes what a chain link’s allow can do on an external_directory ask, which our judge is a link of and which `judge.ts’s header (lines 7-9) and `security.adoc’s "Two surfaces are excluded from capping by design" bullet (lines 99-104) describe as structurally capped. permission-system 42.0.0 requires zod 4.6.7 for CVE-2023-54404, which is the reason to take 42 and not stop at 41.

TL;DR

Dependency Now Target What breaks, in one line

@gotgenes/pi-permission-system (packages/pi/package.json)

40.1.1

42.0.0

41.0.0: a link’s allow on a bash external_directory ask is honored when the ask carries the nothing-on-disk license (every flagged path names nothing on disk and is not a proven write). 42.0.0: a config array over 1,000 entries rejects the file; zod 4.6.7.

@gotgenes/pi-subagents

23.2.0

25.0.5

23.0.0 was last round. 24.0.0: isBackground on a record reports the current run’s mode. 25.0.0: a second resume is refused while one waits for a concurrency slot. 23.3.0 added a progress line and a timeout to get_subagent_result.

pi-web-access

0.37.0

0.45.0

No tool added, renamed or removed. 0.45.0: the tools' provider argument is a plain string (comma-separated for several), an unknown name is an error; the tool definitions shrink 2.8k → 1.1k tokens; the first session after an update shows the skipped releases' highlights once.

@biomejs/biome

2.5.15

2.6.3

Minor: new rules are nursery (off under recommended); formatter fixes concern parenthesised instantiation expressions. Any new diagnostic is a finding, never a suppression.

vitest, @vitest/coverage-v8, vite, @types/node

5.0.3, 5.0.3, 8.3.3, 26.6.4

5.0.5, 5.0.5, 8.3.5, 26.6.5

Patches.

@anthropic-ai/sdk, @anthropic-ai/vertex-sdk, google-auth-library (packages/pi-vertex)

0.129.0, ^0.20.3, ^10.9.1

stay

pi-ai 1.4.0 (and the workspace’s 1.1.0) pins @anthropic-ai/sdk 0.129.0 exactly, and pi-vertex hands pi-ai an AnthropicVertex built on that sdk: two copies are two class identities. vertex-sdk 1.0.0 and 1.1.0 require @anthropic-ai/sdk >=1.0.0 <2. vertex-sdk 0.20.3 through 1.1.0 pin google-auth-library ^10.2.0. All three flip together, on the day pi-ai’s pin passes 1.0.

typebox

1.3.27

stays

pi-ai 1.4.0 and pi-coding-agent 1.4.0 pin 1.3.27 exactly (the workspace overrides says why).

web-tree-sitter (packages/pi-bash)

^0.26.9

stays

permission-system 42.0.0 still pins ^0.26.9; pi-bash exists to parse exactly as the engine does.

asciidoctor-kroki

^0.18.1

stays

1.0 requires Asciidoctor.js 4, which Antora 3.2 does not bundle (last round’s reason, unchanged).

Design

U1 - permission-system 40.1.1 → 42.0.0 (packages/pi/package.json; packages/pi-modes/judge.ts, judge-wiring.ts, config.ts, security.adoc)

What we use, checked against 42.0.0’s docs (docs/configuration.md, docs/cross-extension-api.md): getPermissionsService(sessionId).registerAuthorizer(name, fn) with a disposer, from a permissions:ready handler; the verdict shape allow / deny(reason) / defer; the config keys the seed writes (permissionReviewLog, authorizerChain, permission). None is renamed or removed. New keys are optional and absent from the seed: promptTimeoutMs (unset: no timer, so nothing changes for a prompt that waits on the human), commandEffects, promptNotifications. SEED_GENERATION (policy-reconcile.ts, 4) does not move: the seed needs no new key. The 1,000-entry cap applies to promptNotifications, piInfrastructureReadPaths, authorizerChain and commandEffects lists; the seed’s longest array is authorizerChain with one entry.

The one behaviour change, 41.0.0 (migration/0882-nothing-on-disk-delegation-license.md): until 40.x, the chain owner turned a link’s allow on an external_directory or path ask into the human’s prompt, which judge.ts’s header states as a guarantee ("even a prompt-injected judge cannot open those"). From 41.0.0, a bash `external_directory ask carries accessIntent.delegationLicense: "nothing-on-disk" when the command parses verbatim, every flagged path is a whole absolute word that names nothing on disk, and none is a proven write (an output redirect, or a commandEffects writer). On a licensed ask a link’s allow is honored, and the review log records authorizer_allow_licensed naming the link. One flagged path that exists withholds the license from the whole ask; a tool’s ask (write, edit) never carries it; the path family takes no license.

Decided (operator, 2026-10-28): honor the license, as upstream designed it. It is the case upstream built it for: a token that only looks like a path (officecli set data.xlsx /Sheet1/B1) reached the human on every call. Our judge already reads the whole command. What changes in the repo: three claims are corrected to say what the license is. judge.ts lines 7-9 ("the chain owner structurally caps a link’s allow on the external_directory/path surfaces to defer - so even a prompt-injected judge cannot open those"); config.ts line 66’s advise comment ("still capped by the permission system’s bounded-delegation checkpoint on external_directory/path"); and security.adoc lines 99-104 ("The chain owner downgrades any authorizer’s allow on path and external_directory to defer … prompts a human in every mode, including yolo"), which becomes: on path, and on an external_directory ask that is not licensed; a licensed bash ask (defined there in one sentence) takes the judge’s allow, logged as authorizer_allow_licensed. Then judge-wiring.ts’s `PATH_SURFACES is re-read against 42.0.0’s src/access-intent/path-surfaces.ts (no change expected; the list is checked, not assumed); normalizeAsk carries delegationLicense into the facts the judge sees, so the trace (ask.verdict) names a licensed allow. Option (b), one line in finalVerdict: a licensed ask’s allow is capped to defer with cappedBy: "nothing-on-disk license", which keeps today’s posture at the cost of the asks upstream meant to relieve. Either way one test pins which it is.

Tests (contract, against the installed 42.0.0): packages/pi-modes/test/judge-wiring.test.ts and judge-wiring-callback.test.ts cite 40.1.1’s shapes in their titles and comments; the citations move to 42.0.0 once re-read, and a shape that changed fails them first. A new contract case in judge-wiring.test.ts: an ask whose accessIntent carries delegationLicense: "nothing-on-disk" yields facts that carry it, and the ask.verdict trace line names it; an ask without it yields facts without it. The seed’s reconcile test (policy-reconcile.test.ts) still passes against 42.0.0’s schema (the advisory names 40’s directional keys, #366; 42 adds none).

U2 - pi-subagents 23.2.0 → 25.0.5 (packages/pi/package.json; packages/pi-modes, packages/pi-agents)

Our couplings, each re-read at 25.0.5:

  1. listAgents()’s record (`helper-cost.ts HelperRecord: type, startedAt, completedAt, lifetimeUsage). 23.4.0 adds resumeRefusal, 24.0.0 isBackground; neither is read. lifetimeUsage’s shape is checked in `src/lifecycle/usage.ts at 25.0.5.

  2. get_subagent_result’s report (`agent-contract.ts REPORT_STATUS, the second line Type: … | Status: …). 23.3.0 added a running agent’s activity, turns and last progress; where the status line sits is read from src/tools/get-result-report.ts at 25.0.5 and the regex moves if the line did.

  3. The spawn’s details (status: "background", agentId), the frontmatter keys (src/config/custom-agents.ts), and max_turns.

  4. resume semantics (25.0.0): a second resume while one waits for a slot is refused. The agents page and the guidance say "resume with the agent ID"; a sentence names the refusal.

The contract fixtures: agent-contract.test.ts’s "results captured from a live run on the packed build" block is recaptured on 25.0.5 the way #361 did (the packed `@gadhs/pi, one Explore spawn, its get_subagent_result text and listAgents() record pasted as the fixture, with the version in the describe title). `helper-cost.test.ts’s 23.2.0 record case gains a 25.0.5 record beside it.

Not fixed by the bump: #480 (emitIndividualNudge does not check that the record is running again) is still present in 25.0.5 (read 2026-10-28); the issue stays open with its upstream draft.

U3 - pi-web-access 0.37.0 → 0.45.0 (packages/pi/package.json; modes.json, the Research agent)

The seeded rules allow the tools by name (modes.json: web_enable, web_search, source_check, fetch_content, get_search_content); 0.38 through 0.45 add providers, modes and settings, no tool. toolActivation’s default is unchanged, so `web_enable still gates the rest. The provider argument is now a string: the Research agent file (packages/pi-agents/agents/Research.md) and the guidance are grepped for a list form and corrected if one is found (none was found in packages/pi-agents/agents on 2026-10-28). The once-only release-highlights notice is upstream’s and is left alone.

Tests (contract): packages/pi-modes/test/tool-surfaces.test.ts is run against the installed 0.45.0; the tool names the rules allow are the check that nothing was renamed, and a rename fails it before any rule is edited.

U4 - the toolchain (root package.json)

Biome 2.6.3, then npx biome check over the workspace: the recommended preset gains no on-by-default rule in 2.6 (the new rules are nursery), and the formatter fixes concern constructs this code does not use, so the expected diff is empty; a non-empty one is read and fixed, never suppressed. vitest and coverage-v8 5.0.5, vite 8.3.5, @types/node 26.6.5. validate is the check.

The release

One minor of @gadhs/pi after the four MRs, carrying #529, #530 and #454 from == Unreleased too. pi moves (bundled deps), pi-modes moves (U1’s facts and trace), pi-agents moves if U2 touches its page. The full rehearsal with a model, then tag, verify, announce.

Failure modes, named

What could go wrong What happens

42.0.0 rejects the seeded config.json on a box

Fail-closed: every ask reaches the human. The seed is validated against 42.0.0’s schema in U1’s tests before the MR lands, and the box’s own /diag names a rejected config.

A licensed allow opens a path a human would have refused

Fail-open, by the operator’s decision, and audited: the review log records authorizer_allow_licensed with the link’s name, and our trace names the license on the verdict. Option (b) above is the one-line revert.

25.0.5’s report moved the status line

Loud: reportStatus returns undefined, which the caller logs before dropping the report (by design, agent-contract.ts), and the recaptured fixture fails first, before any session sees it.

0.45.0 renamed a tool

Fail-closed: a tool no rule names gets no allow, so it asks; tool-surfaces.test.ts fails on the installed package before the MR lands.

Biome 2.6 reformats

Loud: validate shows the diff; it is read, and lands in the toolchain MR alone.

A target is younger than pnpm’s one-day release-age floor

Loud: pnpm install refuses the version. 42.0.0 and 25.0.5 were published 2026-10-28; the floor passes 2026-10-29. Before that, the newest past the floor (41.0.0, 25.0.4) is taken and the plan’s target is reached in the same MR after the floor, or noted as an erratum.

Decisions for the operator

  1. The nothing-on-disk license: decided, honor it (2026-10-28, in conversation). It fits the stated threat model (honest mistakes, not an adversarial judge) and relieves the asks upstream measured. Option (b) stays in U1 as the one-line revert.

  2. The workspace still tests on pi 1.1.0 while the box runs 1.4.0 (pnpm-workspace.yaml overrides; the peer floor and the CI rehearsal pin are held equal to it). Out of this plan: moving the override without the floor breaks the equality a test holds, and moving the floor drops consumers on 1.1-1.3. An issue is filed on approval.

Scope

Units, grouped into MRs

  • MR 1 chore/deps-permission-system: U1. Closes nothing alone; Relates to #396.

  • MR 2 chore/deps-subagents: U2. Relates to #396.

  • MR 3 chore/deps-web-access: U3. Relates to #396.

  • MR 4 chore/deps-toolchain: U4. Closes #396, with the held-back table above copied onto the issue as the deferral record.

Each MR: the bump, the reading named in its unit, its tests, its CHANGELOG.adoc entry, the one doc page for the surface it changes, validate green, and pi-workflow’s suites with GADHS_PI_WORKFLOW_TEST_WS=ssh where pi-workflow’s tests are touched (they are not expected to be).

Out of scope

  • The pi-vertex trio, typebox, web-tree-sitter and asciidoctor-kroki, each held for the reason in the table.

  • The pi host pins (decision 2).

  • commandEffects declarations for our own commands, promptTimeoutMs, toolActivation: "deferred": new tunables nobody asked for.

  • #480’s upstream fix, #459, #450.

Acceptance

  • pnpm outdated -r lists only the held-back rows in the table, each with its reason on #396.

  • validate green; the full consumer rehearsal with a model green before the tag.

  • U1: a test pins the licensed-ask behaviour the operator chose; the seed validates against 42.0.0.

  • U2: the contract fixtures are 25.0.5’s, captured live.

  • U3: tool-surfaces.test.ts passes on 0.45.0.

Evidence outside the repository (read 2026-10-28)

pi-permission-system CHANGELOG 40.1.2 → 42.0.0 and docs/configuration.md (promptTimeoutMs unset by default; the 1,000-entry cap; the nothing-on-disk license and authorizer_allow_licensed; accessIntent.delegationLicense), package.json at 41.0.0 and 42.0.0 (web-tree-sitter ^0.26.9, zod ^4.6.7, peers ≥ 1.0.0); pi-subagents CHANGELOG 23.3.0 → 25.0.5; pi-web-access CHANGELOG 0.38.0 → 0.45.0 and Unreleased; @anthropic-ai/vertex-sdk dependencies at 0.20.3, 0.21.0, 0.22.0 (@anthropic-ai/sdk >=0.115.1 <1, google-auth-library ^10.2.0) and at 1.1.0 (>=1.0.0 <2, ^10.2.0); the installed pi 1.4.0’s pi-ai/package.json (@anthropic-ai/sdk 0.129.0, typebox 1.3.27); Biome CHANGELOG 2.6.0 → 2.6.3.

Edit this page · latest