# Pi 1.5.2 model-free compatibility receipt

Date: 2026-11-14. Hub task 961 (re-file of hub task 950), Refs #888 and #1447 T6. This repeats the [Pi 1.5.0 receipt](2026-11-03-pi-150-compat.md) for the published `@earendil-works/pi-coding-agent@1.5.2`. Same legs, model-free, no account. The person had already trusted 1.5.2 locally (`ahub status` showed "pi 1.5.2 trusted"); this receipt is what lets the verified set carry it.

**Decision: add `1.5.2` to Pi `verified`.** Every leg passed. No range is inferred: the Pi entry still has no `line`, so `1.5.1` and any other version need the person's `ahub agents trust pi <version>`. Version `1.5.1` was not tested and stays refused.

## Identity and isolation

- Package: `@earendil-works/pi-coding-agent` 1.5.2, installed from the registry into a private npm prefix with a scratch HOME, cache and temporary directory and empty npm user and global config files, with `--ignore-scripts`. The person's `~/.pi` was not touched by the install.
- npm integrity: `sha512-mUWI04rqF1Vd/m1q+Ps1XeWsTXEVvRUnsmRa83I3Dzua0Tx5bYS93imeqtIfrXf7PkkaR6ERz+AuQhIJlom5yA==`, read from the installed lockfile and equal to the registry's `dist.integrity`. The package carries no `gitHead`.
- Native `dist/cli.js` SHA-256: `8189b66abc4f9f431dbb70941dcba690d76d040de1fbfff212886be35a53639d`. This is the same value the 1.4.0 and 1.5.0 receipts record, so the launcher entry file did not change across 1.4.0, 1.5.0 and 1.5.2. The changes are in other files of the package and are exercised by the legs below.
- Host: macOS arm64, Bun 1.4.4, Node 24.18.1, repository at `ef96fa494689770a594bffdf7d3fd110c633c636`.
- The producer ran with `env -i` and only `HOME` and `TMPDIR` in a scratch directory plus a `PATH` to the Node and Bun binaries. Each native leg used an empty temporary HOME and `PI_CODING_AGENT_DIR`, a temporary cwd and session directory and invented loopback bridge settings (token `fixture`). No account, token, prompt or inference.
- Real configuration: SHA-256 of every file under the person's `~/.pi/agent` (excluding sessions, logs, caches, installs and `bin`), the `pi` launcher binaries and the listing of installed Pi releases was taken immediately before and after a second producer run: 20 entries, identical. This bracket covers the Pi side only.

### What the whole-home comparison did and did not show

A first, wider comparison (23,622 files, the Pi side plus everything under `~/.qwen`) took about four minutes either side of a producer run and was **not** identical: three files under `~/.qwen` differed (a chat transcript, the month's token-usage file and one file-history entry), with modification times 07:51:37 (the chat transcript and the usage file) and 07:40:02 (the file-history entry) on the host's clock. The producer started at 07:50:40, so the 07:40:02 entry was created during the first scan itself, before the producer ran, and the scan listed it only the second time. Two Qwen ACP servers were running on the host (one for 17 hours). The producer never starts or reads Qwen, sets `HOME` to a scratch directory, and the `~/.pi` entries inside that same comparison were identical, so I attribute the three differences to the running Qwen sessions. I cannot prove that from the comparison alone: the scan was not atomic and the producer was not the only thing running. The tight Pi-only bracket above is the evidence this receipt rests on for `~/.pi`. The 1.5.0 receipt's "9551 entries, identical" claim for both directories was not reproduced here for `~/.qwen`.

## Results

| Leg | Result | Evidence |
| --- | --- | --- |
| Native identity | pass | `--version` returned exactly `1.5.2`, exit 0, empty stderr; package name and version checked independently. |
| Real CLI extension load and RPC session identity | pass | `--mode rpc` with the hub extension: `get_state` succeeded with a session id and file, `messageCount` 0; the extension emitted `session_start` and `session_shutdown`. |
| Installed SDK extension registration | pass | The 1.5.2 `DefaultResourceLoader` and `createAgentSession` loaded this checkout's extension and registered exactly `compat_probe` as the active tool, with no builtin tools. |
| Managed tool callback and receipt replay | pass | The registered callback was invoked without a prompt and posted to the isolated bridge through the real `PiToolReceipts`; two identical calls returned identical success with one effect. |
| Failed tool result | pass | The bridge fixture denial returned `failed: true` and the extension returned `isError: true`. |
| Host permission modes | pass (host fixtures) | `test/permission-modes.test.ts` "Pi mode grants edits once, keeps shell on the console, and ask restores the console path": 1 pass, 12 assertions. |
| Version admission | pass (host fixtures) | `test/pi-compat.test.ts` and `test/compat.test.ts`: 52 pass, 0 fail, 427 assertions. |
| Provider requests | pass | Zero requests reached the loopback provider; no prompt was submitted. Native and SDK stderr were empty. |

Producer result: `pi 1.5.2 model-free receipt: PASS`, on two runs. The producer is the 1.5.0 one with the version constants and driver file name changed (`pi-152-model-free.ts`, `pi-152-native.mjs`, scratch HOME prefix `ahub-961-`); no assertion was relaxed, and `pi-152-native.mjs` is byte-identical to `pi-150-native.mjs`.

```sh
bun docs/verification/pi-152-model-free.ts <prefix>/node_modules/.bin/pi <prefix>/node_modules/@earendil-works/pi-coding-agent
env -u AGENTHUB_HOME -u AGENTHUB_PROJECT_DIR -u AGENTHUB_STATE_DIR bun test test/pi-compat.test.ts test/compat.test.ts
env -u AGENTHUB_HOME -u AGENTHUB_PROJECT_DIR -u AGENTHUB_STATE_DIR bun test test/permission-modes.test.ts --test-name-pattern 'Pi mode grants'
```

## Not verified

- Account-backed inference, a model-generated tool request, a real provider's quota behavior and interactive TUI coexistence. The SDK callback leg does not claim model-generated tool dispatch.
- Linux and Intel macOS. No other Pi release is inferred, including 1.5.1.
- #1447's live-leg acceptance is not recorded here, so #1447 stays open. #1248's producer gaps stay in #1248.
