# Pi 1.4.0 model-free compatibility receipt

## Identity and scope

- Issue #843 AC2, task #505. Initial source baseline: `991df88ffbe89497278082ad2e3b485d83b3b8b4` plus this PR; the native producer passed again after rebasing onto `9279711666d3ba2f01e83bfca65c6e7e12afdb94` with the exact agent-mem 0.9.1 pin.
- Native launcher: `~/.pi/agent/bin/pi`, managed package `@earendil-works/pi-coding-agent` version `1.4.0`.
- Native `dist/cli.js` SHA-256: `8189b66abc4f9f431dbb70941dcba690d76d040de1fbfff212886be35a53639d`.
- Measured on macOS arm64 with Bun 1.4.3 and Node 26.12.0 on 2026-10-26.
- Each native run uses an empty temporary HOME and `PI_CODING_AGENT_DIR`, a temporary cwd/session directory, and an environment containing only PATH, those isolated paths and invented loopback bridge settings. No account, real token, prompt, inference or personal trust entry is used.

## Results

| Leg | Result | Evidence |
| --- | --- | --- |
| Native identity | pass | Isolated launcher `--version` returned exactly `1.4.0`, exit 0, empty stderr; package name/version checked independently. |
| Real CLI extension load and RPC session identity | pass | Native launcher in `--mode rpc`, `--no-builtin-tools`, `--no-skills`, `--no-prompt-templates`, `--no-extensions --extension <hub extension>`; `get_state` returned success, nonempty session id/file, messageCount 0, no pending messages; real extension emitted session_start/session_shutdown. |
| Installed SDK extension registration | pass | Pi 1.4.0's real `DefaultResourceLoader` and `createAgentSession` loaded this checkout's extension, bound its session context and registered exactly `compat_probe` as an active tool. No builtin tools were enabled. |
| Managed tool callback and receipt replay | pass | The native SDK's registered tool callback was invoked directly, without an agent prompt. It posted session/call ids to the isolated bridge using the real `PiToolReceipts`; two identical calls returned identical success with exactly one effect. |
| Failed tool result | pass | A distinct bridge fixture denial returned `failed: true`; the real extension returned `isError: true`. The fixture denial tests result propagation, not the host's authorization policy. |
| 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. ask-when-needed grants managed edits and asks for an unproven shell; never-ask changes approval frequency; ask restores the prompt. `test/pi-compat.test.ts` separately confirms read-only is refused by the production factory before a native probe. These modes remain host-owned; the launch adds no native permission-mode flag. |
| Version admission and launch paths | pass (host fixtures) | Exact verified/refused/trusted verdicts; headless, TUI, daemon peer_start and auto-start all reach `createPi` and refuse a fabricated 9.9.9 with `ahub agents trust pi 9.9.9`. A source guard confines production PiPeer construction to this registry factory. |
| Provider requests | pass | Zero requests reached the loopback provider endpoint; no prompt was submitted. Native and SDK stderr were empty. |

The SDK callback leg does not claim model-generated tool dispatch. Host mode fixtures use a synthetic Pi transport and loopback model metadata, independently of the native SDK leg. Their distinction is intentional: Pi supplies the extension API; the hub supplies authorization and durable receipts.

## Repeat

The producer asserts package identity, native version, extension registration, RPC identity, replay effect count, failed-result propagation and zero provider requests. It retains its isolated temporary directory for inspection and prints no personal data.

```sh
bun docs/verification/pi-140-model-free.ts "$HOME/.pi/agent/bin/pi" "$HOME/.pi/agent/install/releases/1.4.0/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'
```

Native producer result: `pi 1.4.0 model-free receipt: PASS`. The host compatibility/path suite passed (31 tests), followed by the added native-error impersonation regression (1 test); host Pi mode test: 1 pass, 0 fail.

## Not verified

- Account-backed inference, a model-generated tool request, a real provider's quota behavior and interactive TUI coexistence are unverified. They need a separately authorized live leg; this receipt makes no such claim.
- No other Pi release or compatible semver line is inferred. The COMPAT entry has no `line`; person trust lifts only the exact version refusal and leaves host permissions and receipt checks intact.
