# Changelog

## Unreleased

## 0.1.0-beta.29 (2026-11-04)

- Install and `npx` commands in the READMEs and docs name `@latest` instead of `@beta`. Releases publish under npm's `latest` tag, and `beta` was not moved with them: it still pointed at 0.1.0-beta.21 while `latest` was 0.1.0-beta.28, and `@parcha/pi-durable-agent`, `@parcha/pi-git-remote` and `@parcha/pi-agent-learn` had no `beta` tag at all, so their install lines failed. The harness demo's hint for a missing `@parcha/pi-transport` names `@latest` too. `@parcha/agentrun-harness` is not on npm yet (its `latest` is a placeholder), so its README says it is held and installs it from a packed tarball. The README's Render option gives measured memory: a Starter's 512 MB runs about 3 pi agents at once, and Claude Code or Codex runs want a 2 GB instance. The stranger check reads the install line as `@latest`, installs `@latest` with `--registry`, and walks the keyless examples against the registry's `latest`. The release guide drops the step that moved `beta` after a release; `beta` is kept only for older links, with the one-time command to bring it up to a release.

## 0.1.0-beta.23 (2026-10-22)

- The README's install lines for the pi packages name `@1.3.0` (`@earendil-works/pi-ai`, `pi-codemode`, and the adapter's peers `pi-durable` and `chord`), and say pi 1.4 is not supported yet: the peers stop below 1.4.0, so an unpinned `npm install @earendil-works/pi-durable @earendil-works/chord` now ends in ERESOLVE. `pi install npm:@parcha/pi-vision@beta` works with pi 1.3 and 1.4.

## 0.1.0-beta.21 (2026-10-21)

- The report skill holds the summary to its findings: each sentence of the summary restates a finding from the evidence below it with no stronger word, so when a finding says most, part or all but one place the summary says the same, and "none", "all" or "gone" appear only where a finding says so. A caption says only what its own picture shows, in the same measure: a box that holds part water and part land is described that way, never as "completely filled" or "all".
- The README's `pi install` line names the `beta` tag, as its Status section says to install the package, and says what the install adds to pi: the five skills (`find`, `look`, `report`, `transcribe`, `verify`) and no extension or tool.
- The README follows a reader who arrives from npm: "Try it" says the demos live in the repository and gives the `git clone` line and that the build takes a few minutes, the run's printed report path is the file to open, the example list is all eight (`lake-mead` and `market-street` were missing, and `lake-mead` now commits a map key and an elevation record beside its images), and the code-mode excerpt names `@earendil-works/pi-codemode`, which it imports, as a package to install.

## 0.1.0-beta.19 (2026-10-20)

- The `look` skill teaches a series of images of one scene over time: each place the question asks about is its own small box, never a region spanning several named places; a box that answers where something changed marks the change itself, as tight as that area, never the whole place or what did not change; each place's dates are read in order on its own crop, never bisected (a place that dries and refills hides its first change from a bisection) and never inferred from a whole-scene average; a place is dry or gone only when its crop shows none of it, as the eyes say and Jev confirms with a typed question for each crop and date, never from a pixel mask or threshold alone; and the place names come from the run's own files.
- The vision docs, read again as a stranger would. Every page that starts a run says first that every run, free or live, needs `ffmpeg`, `ffprobe`, `pdftoppm` and `pdftotext` on the path (`brew install ffmpeg poppler`, or `sudo apt-get install ffmpeg poppler-utils`), and that the six examples whose files are not committed need `--fetch-sources` on fakes, with each download's size (120 MB to 342 MB). Each example states the default cost cap: a run stops past $1, twice its expected $0.50, unless `--max-usd` sets another. `FAL_KEY` is optional everywhere: with it the agent can transcribe a film's speech; without it, it works from the picture alone. The vision agent's README states what TypeSafe's Jev 1.14 post says about images and boxes (the `TypeSafe-Danger-Zone-Images: true` header, which the runner sends; the box type on `jev-1.14.0` only, which every judgment asks for; both experimental, and less accurate on images than on text) and links it. The Lake Mead and Market Street examples get the same programs, keys and cost section as the others, with their measured live cost and the `--max-usd 2` their runs need. `SETUP-PROMPT.md` checks for a container or a VM first, names every example with its download, and points to console.typesafe.ai/keys. The `look` and `verify` skills tell the user which program is missing and how to install it, and never install it themselves. The pi-vision README opens with what the package does, cuts its status table to one paragraph, and glosses its terms (a look, Jev, the lead, a gateway, fakes) where they first appear.

## 0.1.0-beta.18 (2026-10-19)

- `vision.judge` takes a text judgment: a request with no image, its text in `state`, and `choice`, `noul` or `score` questions. It is for judgments an agent's own words can be put to, such as whether a set of looks' answers states every name, time and number in a claim. A request with no image and a `box` question, an `image` index, no `state`, or an example is still refused before anything is sent. A text judgment sends Jev only the state and the questions, is filed and told like any look (as a look of `text`, with no blocks shown), and its key follows the state, so the same text asked again is read back and other text is asked again.
- The `report` skill grounds the page before it writes it. Each finding, each row and the answer is put to Jev as a text judgment (`vision.judge` with no image): the texts it shows as `claims` and what the looks it cites read as `evidence`, one noul question for each text asking whether the evidence states every name, time and number in it. Every text the page shows is judged (the title, the question, a row's label and text, a picture's alt text and caption, the answer and its key points), against what the looks it cites read and where each cite points. A text that is not grounded stops the script, naming it, and is rewritten from what the looks read, re-cited, or dropped; it is never kept as written. Jev's typed answers in a cited look reach the judge as words (`Jev, asked "Is there a seal on contract.pdf#page=3?": no (0.02)`), so a presence or an absence is stated by a cited yes or no (`decide()` asks Jev and records the look). What was heard is cited to the transcribe look (`hear()`), the only evidence for a said name, time or number. `hear()` also records the recording it heard as covered, so it cannot be listed as not checked. The page is a pure function of that data, and the check renders it again and compares it with `report/index.html`, so a text added to the page by hand is refused. The skill's check refuses any text that was not judged as written. `test/binaries/report-skill.test.mjs` runs the step on a fake Jev port and shows a row with an unread name refused and the same row passing once a look it cites gives the name.
- What an untrusted file can make the host do is bounded: two new refusals and two new defaults, each from a file or an answer the host did not write.
  - A program that poppler runs (`pdftotext`, `pdfinfo`, `pdftoppm`) and that writes more than 64 MiB (the new `PROGRAM_OUTPUT_BYTES`, beside the other caps in `core/limits.ts`) is refused with an `over_budget` miss that names the cap, before its output, its error stream or its image is read. A program that fails with a longer error stream is a failure with its name and exit code.
  - A source path reaches poppler, ffprobe (the probe, and the length of a recording to transcribe) and ffmpeg as an absolute path or with `./` first, so a file named like an option (`-h`) or like an address (`a:b.mp4`) is read as a file. LibreOffice's working directory is resolved against the environment's directory when the call's is relative.
  - `falTranscriber` refuses a job address in fal's answer (`status_url`, `response_url`) that is not on the queue's own origin and under the model's job paths, or that carries credentials, before any request carries the key. The error names the origin and never the key. It is a new error path, thrown before the first poll.
  - LibreOffice converts every document in a profile seeded with `registrymodifications.xcu`: the highest macro security level, no macro of any language, no OLE or DDE content, no link from a document outside the trusted locations (so a picture linked at a web address is no longer requested on load), and no link update on load. A document that depended on a macro, a link or a linked picture converts without it.
  Where the system lets the user cut a process's network (`unshare -rn`, probed once per environment when the provider detects), LibreOffice converts inside such a namespace, with no network; where it does not (Ubuntu 24.04 by default, macOS, a default Docker container) it converts as before, and a conversion never fails for want of isolation. The README says which.
- A program `vision.transcribe` starts (ffprobe, for a recording's length) gets the child environment `read`'s programs get: the host's `env` option, or by default only what `inheritedEnv()` copies, and never the rest of the host process's environment. `vision.see` and `vision.judge` are handed the same environment. Before, a code-mode global ran its programs on the environment the host handed it as it was, and pi's environments give a program all of `process.env`.
- A derivation kept in the derive directory (a PDF's text, a rendered page) is used again only when it holds the bytes this process kept there. The directory is shared with whatever runs in the environment, so a file written or changed there by anything else is no longer taken as the document's text or the page's image: the derivation is made again from the source and kept again. A file an earlier process left is made again once, after a restart, and used again from then on.
- The `find` skill drops its spend guards: the "request budget" section and its host-cap framing, `maxJudges`, the per-step `budgetUsd` and every `stopped: "budget"` path with the reserve of three requests, and the request counting that served only them. The search strategy stays: a coarse pass of 40 frames, halving around the candidate, then the three-frame check. Each score and each completed check is still saved as it comes, so a run cut short asks nothing twice, and the price of the search is still reported. How much a run may spend is the host's single dollar stop, not the skill's. The report skill says a unit Jev could not judge is one hit by an error, or by TypeSafe's rate limit after its retries, not by a cap. Each completed halving answer's price is saved as it comes.
- A Jev request rate-limited to the end of the runner's retries (`http`, HTTP 429) is filed as a `look_failed` miss that cost nothing ("Jev failed: rate limited, ..."), so the run's cost stays known.
- The `report` skill's check holds the page to an allowlist, the same one the recording format uses: only its elements and attributes (plus every `aria-*` and `data-*`), `meta` only as a charset or a viewport, and a `style` attribute read as CSS under the style element's rules (after its comments and escapes: no `url()`, `@import`, `data:`, `javascript:`, `expression(`, `behavior` or `-moz-binding`). An `svg`, a `button`, an `on...` handler or a `srcdoc` is refused, and the refusal names the tag and the attribute. A row of a row-shaped answer may carry `boxes` (the same `{ id, at, look }` as a picture's), and its thumbnail then shows the marks (a small sheet, the marks without a label); the skill says to take the thumbnail at the second of the boxed look, so the box and the frame are one moment. It also says a count over rows is stated as what was logged, never as the film's true total unless every moment was looked at and the page says so, and that a row's text says what the look saw beyond its label.
- Every finding, row and the answer of a report carries `data-ground`, the key of the `vision.judge` look that judged its texts and each text's claim id (`<look key>:t0 <look key>:t1`), and the report skill's check counts a verdict without a look key as not judged: a verdict comes only from the judge's answer, never from the script. When Jev cannot be asked (a cap, an error) the unit gets no verdict and the page's Not checked lists exactly which units were not judged, by count and id, with the reason ("49 units: rows r55 to r102 (48 rows), the answer: not judged: ..."), and the check refuses a unit that is neither judged nor declared. A boxed row's thumbnail is about 10rem wide with the row's second and text aligned to its top. The skill also says text stays text (never words as a picture), and that a detail nobody asked for (a number painted on a car, a sign's words) goes on the page only when a crop of it was read and agrees with the first reading. `data-ground` follows each current text's own claim id, so a reordered or dropped text never leaves an entry tied to the old order; a judge look whose receipt is unavailable declares its unit like any other the judge could not be asked about; and a second grounding pass starts afresh.
- The `report` skill's "Not checked" lists only what no look of the run covered: a page, a window of a film, a file the run did not look at. Each item is `{ file, pages or t: [from, to], why }` with `why` one of "not looked at", "out of budget" and "could not be read", so it never states a finding, a presence or an absence ("pages 2 and 4 do not contain the marks"), which need their look and cite. The check refuses an item that a look of the run covers (a page it looked at, a window a cited moment falls in, a file it looked at) and an item that is not in that shape, and the section is left out when the list is empty. `look()` and the new `cover()` record what the run looked at.
- The `report` skill's check refuses a frame, a poster or a thumbnail of a film whose mean brightness is almost black (under `MIN_LUMA`, 16 of 255, measured with ffmpeg's `signalstats` through the shell), naming the file and its brightness, so a chapter frame or a clip poster cut at a film's black opening is cut again a second or two on. A page, a crop and a photo are the document's or the photo's own and are left alone. The `find` skill scans a long film coarsely and keeps its Jev requests in one budget: a coarse pass of 40 frames (it was up to 300) and halving around the candidate, with `maxJudges` (120) in the task counting every request of the scan, the halving and the check (a kept answer is not one), the scan and the halving stopping three short of it so the check always has its three, and a step that reaches it stopping with `stopped: "budget"` and its `requests`. A 47-minute film is searched in about 50 requests, far under a host's cap of 200.
- The README names the `report` skill beside `look`, `transcribe`, `find` and `verify`, and its status table has rows for the skill and its check. It points to `examples/vision-agent`, the one agent any question about a set of files goes to, and to the examples beside it, as the place to start; the root README's pi-vision rows do the same. The vision agent's README says that Jev reads images and answers box questions as TypeSafe early features whose format and limits can change, that the runner sends the header that turns them on, and that a TypeSafe key is needed because the runner refuses images and boxes through OpenRouter. The README opens with what the package is, a free `npm run demo:vision -- examples/document-check`, the keys and programs a live run needs, and the pi-durable host it runs inside, before any term the reader has to learn. Every example README lists its free path, its keys (the lead model's, `TYPESAFE_API_KEY` for every live run, `FAL_KEY` only for speech), its programs and its download, and the cost and time one measured live run took where there is a measurement.

## 0.1.0-beta.17 (2026-10-18)

- A look says when its model call began and which tool call it ran under, so a timeline can draw the call as a bar under that tool call. `LookEvent` and the record's `facts` gain `startedAt` (epoch milliseconds, taken when the request to the eyes, to Jev, to the speech model or to a recording's source began) and `parentToolCallId` (the id of the tool call the look ran under, from the new optional `CallContext.toolCallId`; it is `parentToolCallId` and not `toolCallId` because a tool's own events already carry `toolCallId` as their own call's id). The pi-durable adapter sets `CallContext.toolCallId` from pi's id for the tool call, so a look a script makes through `vision.see`, `vision.judge` or `vision.transcribe` is under the tool call that ran the script, and a look the guard makes is under the tool whose result held the image; a host with its own context sets it itself. A failed look carries both in `MissEvent.record`, a request that threw included. A look that made no request (a native look, an answer read back from a memo, a judgment Jev's port refused before it sent anything, such as a state over the host's limit, which now files a cost of 0 as any unsent look does) has no `startedAt`; a caller that names no tool call leaves `parentToolCallId` out; such a look files exactly as before. A receipt's header gains `startedAt` and `parentToolCallId` lines when a record has them.
- `MissEvent` carries the failed look's `record`: the `LookRecord` the guard, `read`, `vision.see`, `vision.judge` and `vision.transcribe` filed for it (`status` `failed`, a `body` that says why, `facts.key`, and in `facts` what the eyes charged: `cost_usd`, tokens, null when the price is unknown, absent when a request threw). A look the host's sink files nothing for, such as a screenshot no tool named, reached `onMiss` with `receipt: null` and nothing to file, so a failed look the eyes still charged for was missing from the host's looks and its cost. A host that keeps looks files the record like any other; a host that ignores it is unchanged. A miss made before any look (the host's own setup failing) has no record.
- The `report` skill ships in the package (`skills/report/SKILL.md`, beside `look`, `transcribe` and `find` under `pi.skills`): how an agent ends a run with its own report, `report/index.html`, one script-free page that opens on the answer and its few key points, folds the routine detail and shows the evidence for every finding and a thumbnail for every row of a row-shaped answer: a document's page with the mark boxed and a close crop of the mark (`crop()` computes the crop and the box in it), a film moment's frame and a short clip of its window, a photo with what it shows boxed and captioned. Each picture has a caption that says what it shows and why it matters; only a duplicate or a picture that shows nothing its claim says is dropped. The page's text is the agent's own plain sentences drawn from the looks' answers, never an answer pasted: the check refuses markdown markers (`**`, `##`, a `* ` list mark, backticks) in any visible text outside `code` and `pre` and names the element. Every cite of a page of a document has that page embedded (`documents`, one entry for each document), and the check refuses a page cite with no embedded page. A document the run read is embedded as page images with every found mark outlined and labelled, linked both ways to its finding, and the PDF is linked at `#page=N`. A film is shown by its moments: one short clip for a window with that window's opening frame as its poster, and a frame, never the clip again, wherever the window comes back. When the question names a shape (minute by minute, page by page, a table) the answer is that shape, one cited row for each unit, and the page never states a name, place, time or number the run did not read. Every document or photo it cites, under about 3 MB, is copied into `report/` and cited by its name there, a film stays outside and is cited by its own name with its look, and nothing is ever written with `../`. Cites are links in the file's own address (`#page=N`, `#t=a,b`, `#xywh=percent:x,y,w,h` or `pixel:`), labelled with that number and carrying the key of the look they rest on in `data-look`. Pictures and clips are re-encoded without metadata and held to a size budget, and the page loads nothing from the network. The skill is six pieces of code for code mode and a check to run before the agent stops. `test/binaries/report-skill.test.mjs` runs the pieces on a film, a PDF and a photo the test builds, checks the page and its files, and shows the check refusing each fault.
- The `transcribe` skill ships in the package (`skills/transcribe/SKILL.md`, beside `look` under `pi.skills`): strip a long video's audio once, cut it in ten-minute chunks, transcribe each in code mode with `vision.transcribe` (the host's speech-to-text model; its key and its price stay with the host), write one `transcript.tsv` of start, end and words in seconds of the whole video (each video in its own folder under `.hear`, emptied when a different recording takes its path), and search it with `rg` to cite `file#t=seconds`. Each chunk's rows are kept beside it, so a chunk is sent once and a run cut short pays for nothing twice; files are renamed into place only when complete (a failed write never is), a different `CHUNK` cuts the audio again and drops the old rows, and the transcript step stops at a chunk with no rows rather than leave a piece of the video out.
- The `verify` skill: whether a PDF has each mark a checklist names (a seal, a signature, a stamp, a number, two numbers that must agree), answered yes or no with the mark's box on its page, cited as `file.pdf#page=N&xywh=percent:x,y,w,h`. The checklist is a JSON file (the kinds of page, and per mark a short name, its question, its box and what it looks like when it is there), so another kind of document is another file, not other code. Two code-mode programs: every page rendered through its crop box (the page PDF.js and other viewers show, so a box in percent of the render is a box in percent of the page) and one `vision.judge` request a page for its kind and each mark's noul and box; then each mark kept from the page where Jev is surest, its box only when the noul says it is there, two marks that must agree cut out larger and asked side by side, and a yes-or-no table. No new function.
- A video read by a lead that takes images but not video now goes to eyes that take video as one clip with its sound (the file within the eyes' inline budget, or the `from_s..to_s` window), the same as for a lead that takes no images; the lead reads the eyes' answer in place of 8 frames. Frames stay for eyes that take no video and for a host with no eyes, and a lead that takes video still gets the video itself. For a host this is one eyes request per video read, filed and kept like any look: on a measured set it cost about $0.001 for an 8 s window, $0.005 for 60 s and $0.02 for 5 min at list price, where the lead's own 8 frames had cost $0.0002 to $0.006. When no such clip can be made, a file or window over the eyes' inline budget among them, this lead is shown its own 8 frames as before; a lead that takes no images still gets the `over_budget` miss that names a shorter window.
- The `find` skill finds a thing by Jev's noul alone (0.8 or more), and calls its box `loose` when Jev's confidence in the box is under 0.6 instead of failing the find: asked about the same frame for the same thing, Jev drew the same box each time with a confidence anywhere from 0.31 to 0.83, so a confidence bar failed a correct answer at random.

  A passing find whose box has no size (so no fragment) is cited at its second alone, with `noBox`. When a phrase is heard more than once, the skill picks the hit the question means by the rows before and after each hit and its place in the recording (each hit now carries `place`, percent of the way through), prefers the event itself over a recap, title, preview or replay, watches the candidates when the words cannot decide, and says which it picked and why.
- The `find` skill names each search by one word (letters, digits and dashes, like `.find/umbrella`), and its first step refuses any other name before it asks anything: the folder goes into every path and shell command as it is, so a name with spaces or quotes broke the paths the steps handed to `vision.judge`.
- A miss reason no longer carries the host's absolute paths. An error from the file system, a program, a provider or a model route names the directory the host ran in (`ENOENT: no such file or directory, lstat '/srv/run/work/shots/gone.png'`, `spawn /usr/local/bin/pdftotext ENOENT (cwd /srv/run/work)`), and that line reached the model, the filed record, the host's `onMiss` and the error `vision.see`, `vision.judge` and `vision.transcribe` throw, so a published recording held a machine's directories. `firstLine` and every miss now cut an absolute path (POSIX, drive-letter or `file:` URL) to its last part: `lstat 'gone.png'`, `spawn pdftotext ENOENT (cwd work)`. `nodeVisionEnv`'s own errors cut the paths they name (an error's `path` and `dest`) exactly, whatever the directories are called. A relative path, a link (cut to its origin and path as before) and the slashes of `and/or` or `3/4` are untouched. A bare request path such as `POST /v1/messages` in a provider's error is also cut to its last part.
- The PDF engines (pdf.js for text, PDFium for pages) now run in a child process of their own, with the same time, heap and pixel caps, no environment variables and no output. A file that made an engine run out of heap past the point where V8 can still stop a worker thread used to abort the whole host process; it now ends the child, and the call is an `over_budget` miss. A host that cannot start a child process gets a `needs` miss for the PDF engines.
- Every name the package exports has a doc comment: `createVisionExtension`, `piAiEyes`, `VisionOptions`, `VisionHandle`, `Provider`, `EyesAnswer`, `LookRecord`, `EvidenceSink`, `VisionEnv`, `MissCode`, the providers, the transcribers' option types, the test kit and the rest, 86 in all. An editor shows them on hover and the published declarations carry them. `test/api-docs.test.mjs` fails when an export of any entry has none, naming it.
- The README installs from npm with `@beta` and no longer tells a reader to build a tarball, says plainly that pi-vision is a pi-durable extension that needs a pi-durable host (a plain `pi install` loads only the skills, and the `vision.see` they call is not defined there), that it is ESM only and what it needs (Node 22.19, Photon for images, ffmpeg for video), and names pdf.js as what `unpdf` runs. Every code sample in it declares what it uses: the programs run and print what the README shows, and the host excerpts type-check, in `test/readme.test.mjs`; a code block added to the README is a failure there until the test names it. The stranger spec checks the README's install line.

## 0.1.0-beta.16 (2026-10-18)

- The `find` skill: when a phrase is said in a long video, and the second a thing is first seen and its box, for cents. A phrase comes from the `transcribe` skill's transcript alone: every time it is said, each with the rows around it, so the agent picks the one the question means and names the others. A thing that is seen is found coarse to fine: the transcript's words or chapter titles narrow the search to windows, `vision.judge` scores a frame every few seconds, the span is halved to a minute, `vision.see` watches that minute with its sound and names the second, and `vision.judge` checks that frame and the seconds either side and draws the box: `film.mp4#t=1024&xywh=percent:31,6,49,52`. Each step's price, when to stop (found, likely, not found, budget) and one code-mode program a step; no new function.
- `vision.judge`, a code-mode global beside `vision.see` (`handle.judge(env, call)`, described to the model by `VISION_JUDGE`): Jev answers typed questions about images in one request: `choice`, `noul`, `score` and `box`, with their probabilities or a box and its confidence. The images (paths read like `see`'s, or image blocks) go in `state.images` by reference, named by their fragments; `examples` are images the questions' instructions or criteria name by reference (classification by example); `state` adds fields of the script's own. A box answer also has `fragment`, its region as `#xywh=percent:` of its image, mapped back through the fit and through a crop's own region. Each judgment is kept before it is filed and told, on the conversation like `see`'s looks, so a call run again, or a new call after a cut one, pays and tells once, at the price the judge gives (an unknown one filed as unknown). A judgment that cannot be made is filed as the medium it was about, like `see`'s misses. A host passes Jev as `VisionOptions.jev`: `{ judge, model? }`, `judge` being what `@parcha/agentrun-jev`'s `createJevRunner` returns; pi-vision hands it each image as PNG or JPEG bytes and asks `jev-1.14.0` unless `jev.model` names another. `allow` is asked with `tool: "vision.judge"`.
  - `fitImage` takes a Jev-shaped profile: `minEdge` (a smaller image is grown, else padded, and `content` says where its pixels are; a tile under it is padded too), `formats` (the types kept as they are) and `baseline` (a progressive JPEG is re-encoded); a processor with only `prepare` is held to them too; `imageHeader` says when a JPEG is progressive. Jev's limits and model are `JEV_*` constants.
  - The `look` skill gains Jev patterns as code: classify every page or frame, Jev before and after the eyes, classify by example (words and an example together), presence and box, tiles then a box, and a box's edges checked. Its window cut adds `-fflags +bitexact`, so a WebM window cut again is the same bytes and its paid answer is found again.
- `vision.transcribe`, a code-mode global beside `vision.see` (`handle.transcribe(env, call)`, described to the model by `VISION_TRANSCRIBE`): one audio or video file in, its words with their start and end in seconds out, with the provider, the model, the price and the receipt. The host picks the speech-to-text model in `VisionOptions.transcriber` and holds its key; `@parcha/pi-vision/transcribers` builds fal's queue (`falTranscriber`, fal's own `Key` auth or a gateway's bearer key), ElevenLabs' (`elevenLabsTranscriber`, `scribe_v2`) and OpenAI's (`openAiTranscriber`, `whisper-1`), each answering in one word shape. A file over the provider's limit is an `over_budget` miss that names it, and never words without times: a model that answers with text alone (OpenAI's `gpt-4o-transcribe` models, refused before any request) is an `unsupported` miss. Each transcript is filed and told in a look's shape as tool `transcribe` (`LookRecord.tool` gains `"transcribe"`; its body the words as rows of start, end and words), priced per audio minute (unknown when no price is known, never $0), and kept, so asking again pays nothing.
  - The kinds gain `audio` (MP3, WAV, Ogg, FLAC, M4A, told by their bytes); `allow` is asked with `tool: "vision.transcribe"`.
  - `./testing` gains `fakeTranscriptionFetch` (each provider's documented request and answer) and `SENTINEL_TRANSCRIBER_KEY`.
- The `look` skill cuts a video window by encoding it without B-frames, not by stream copy, so its second 0 is the window's start for every decoder: a copy starts at the keyframe before the window, and a decoder that ignores the edit list counted its seconds from there. The bitexact flags still make the same window the same bytes, from an MP4 or a WebM. Its PDF pages render with `-cropbox`, the area a citation's `#xywh=percent:` is of, not the whole sheet with its margins.

## 0.1.0-beta.15 (2026-10-16)

- `read` of a video on a lead that takes no images, with eyes that take video, gives the eyes the file or the asked window as one clip within their inline budget. Before, the eyes got 8 frames by seek. Eyes that take no video still get frames, and a lead that takes images or video still sees the video itself as before.
  A window cut from a video keeps its sound: a stream copy keeps the audio track, and the one re-encode carries it as mono AAC at 48 kbit/s.
- A paid look is kept on the conversation, not only on the tool call that paid for it: the pi-durable adapter keeps a tool call's `vision:look:<key>` answers and `vision:told:<key>` marks in a conversation document (`vision.kept`), committed right after the answer, so a later call of the same conversation that asks the same finds it. On a host whose code-mode tool is not replay-safe, pi never runs a cut call again: a kill after the eyes answered and before the look was filed made the next script ask and pay again, and the first payment never reached the host. Now that call reads every answer back at $0, tells the host once of a look whose filing was cut, and again as kept of one it was already told. An answer or mark already kept on the call's task, where these memos lived before, is read from there and never paid for again, so a replay-safe call a crash cut before an upgrade still reads back what it paid for. A hook's memos (the guard's) stay on its task.
- A look that misses is filed as what it was about. A `vision.see` miss about one medium (a video over the eyes' budget, a video the eyes do not take, an image that will not fit, a path that does not read) names that medium as the agent named it, its kind, the SHA-256 of its bytes and the page or window its name cites. Before, the record had an empty path, kind `image` and the hash of no bytes. A miss before any medium is read names the request's media, kind `unknown` and no hash. A `read` miss of a page or a video window carries that page or window, as a look of it would.

## 0.1.0-beta.14 (2026-10-16)

- Breaking: `look` is not a tool, and its exports are removed (`LOOK_TOOL`, `ToolContract`, `JsonSchema`, `VisionHandle.tools`, `install.look`, and the caps `LOOK_PAGES_PER_CALL`, `LOOK_FRAMES_PER_CALL`, `LOOK_MAX_USD`, `LOOK_CONCURRENCY`); no version built `look`, so only a host that imported these names changes, and it passes its own caps where it wants one (`plan(facts, selector, limits, "ask", { pages, frames })`, `priceLook(..., capUsd)`), since there is none by default.
  - An agent looks at many pages, a long video or many images by writing code. `handle.see(env, call)` is `vision.see`, a global for a host's code-mode sandbox (`globals: [vision.see(api.env, await callContext(api, context))]` with pi-codemode), described to the model by `VISION_SEE`. It takes `{ ask, paths?, images?, fragments? }`, reads paths through the call's environment, fits each image to the eyes' limits, packs the images into as few requests as the eyes take (`packRequests`, which the guard uses too), and returns `{ text, model, costUsd, receipts, kept? }`: the text has one part a request when there are several, each headed by its fragments and receipt, and `receipts` holds one receipt a request, in order. Each request is a look filed and told once, its answer kept as the call's memo, so a call run again after a crash pays and tells once. A look that cannot be made throws `SeeMiss` with its miss code. `allow` is asked with `tool: "vision.see"`, and events name it.
  - The `look` skill ships in the package (`skills/look/SKILL.md`, declared under `pi.skills`): many PDF pages with pdftoppm, a long video by frames with ffmpeg, many images, a cropped region, and installing poppler or ffmpeg.
- Accept pi 1.3: the `@earendil-works/pi-durable` and `@earendil-works/chord` peer ranges now end below 1.4, with the floors unchanged (1.0.4, and 1.1.0 for `@parcha/pi-browser`). pi 1.3.0 pins its own packages to exact versions, so an install is all 1.2 or all 1.3; CI runs every package's whole suite on a 1.3.0 family as well as on 1.2.0.
  - On pi-ai 1.3, a tool call whose arguments are not a JSON object reaches no tool: pi-durable refuses it and shows the model the text it sent. A durable node's `submit` then spends none of its submissions. Before 1.3 the tool ran with `{}`, so `submit` answered with the schema's violations and counted one submission.
- A `vision.see` call that its code-mode script stopped (a deadline or an abort) files no miss and tells `onMiss` nothing: a path read that failed because the call was cancelled was filed as an `unreadable` miss of that file. The call now rejects with the stop's reason. The eyes request already stopped with the script, on pi-codemode 1.1, 1.2 and 1.3 alike: nothing is kept, filed or told for a request stopped before its answer, and the same call asked again pays once.

## 0.1.0-beta.13 (2026-10-14)

First release of `@parcha/pi-vision`, versioned with the other packages of the repository it is published from (the release PR dates this section and gives it the workspace version).

- The package's skeleton: every entry and module its interface declares; parts not built yet throw `NotBuiltError`.
- The model contract: `read`'s media arguments and the description hosts already ship, held string for string by a snapshot test; `withReadMedia(tool)`; the `look` tool's schema and description (registered by no adapter yet); the static section; the miss codes.
- The host contract's types: `VisionOptions`, `VisionHandle`, `Eyes`, `Limits`, `EvidenceSink` and `LookRecord` (pi-browser's sink shape), `ImageProcessor` and `PreparedImage` (pi-durable's), `Provider`, `SourceProvider`, `Part`, `Plan`, `Fit`, `LookEvent`, `MissEvent`; `VisionEnv`, a structural subset of pi-durable's `ExecutionEnv` that pi-durable's environments satisfy as they are.
- Budgets: the default profile and every budget as a named constant with its source; `resolveLimits(model, host)` reads a pi-ai model's `inputLimits` and combines them with a host's route limits.
- The planner: `plan(facts, selector, limits, mode)` turns a source into the parts to send, each with the fragment it covers and its pixel and byte budget, and states what it reduced (`as_is`, `downscaled`, `tiled`, `sampled`, `windowed`, `text_only`, `refused`) with the numbers. Pages render at `min(150, floor(72 * maxEdge / long edge in points))` dpi; a long image or page is cut into overlapping tiles of at most 1,568 px; nothing is shrunk under 1,200 px on its long edge, and what would be is refused with `over_budget` and the sizes. A look's requests (`lookRequests`) and its price before the first request (`priceLook`, refused over $0.25 unless the host sets its own cap) come from the plan.
- Fragments: `#page=3`, `#page=1-37`, `#t=60,90`, `#xywh=percent:x,y,w,h`, built and parsed.
- `./testing`: fake eyes (scripted answers, a ledger, a sentinel key), a fixture directory and a PNG writer, and the provider conformance suite with a fake provider that proves it.
- The leak check, in `./testing`: sentinels (a fake eyes key, and a signed link whose signature and token are each found alone), `LeakScan`, which searches results, details, receipts, derived names and bytes, memos and errors for them in every form a leak takes, and `limitViolations`, which holds a result's images to the route's limits the way the guard does (edges, bytes, count, a quarter of the request, a route that takes no images).
- Video: `probeVideo`, `videoFrames` (frames found by seek, never an fps filter over a long span), `videoClip` (a window by stream copy, else one re-encode at 1280 px and 6 frames a second, stopped at the inline budget: never the whole file), `videoAsIs` (a file within the inline budget, no program run), `videoWindow` and `describeVideo`, each returning its result or a typed miss; `ffmpegProvider()` runs ffmpeg and ffprobe through the environment, opens only local files in real video containers, and keeps nothing it derives. Without ffmpeg every operation but `videoAsIs` is a `needs` miss.
- `read`'s media half (`readMedia`): the kind from the file's first bytes, arguments checked and a strict route's zero values dropped (`withoutStrictDefaults`), each kind served by its reader, a document's text paged like a file, a recording read by handle through its source, and what cannot be done as a miss with a failed receipt; `readsAsText` for a host's read-only check. The guard (`guardResult`): every image block fitted to the lead's limits or withheld, never kept unfitted, then shown natively when the lead takes images (`Limits.image.native`: the model's own `input`, or the host's word) or answered by the eyes, the answer kept as the call's memo before the result, the blocks of one unit (`details.media.units`: an image's tiles, a read's pages, a video's frames) looked at together in requests of at most the eyes' images, unit ids that do not match the blocks dropped and said (`units_dropped`), every look filed (`receiptFacts`: `original`, `shown`, `shown_blocks`, `shown_bytes`, SHA-256, key, tokens, price). Eyes on pi-ai (`piAiEyes`): one request a look, thinking never off, cut at 120 s, usage and a price from the model's rates (null when it has none).
- The package's own readers (`PACKAGE_KINDS`), `read`'s default: an image fitted or tiled with the sentence that maps it back; a PDF's text with page marks and its scans named, or its pages rendered at the planner's dpi with their text layer beside them; office documents and spreadsheets read with nothing installed, saying what is not shown; a video as frames by seek, or for a lead that takes video the file or a window cut from it. The readers use the providers and the image processor the host passes, as passed; what none of them can do is a typed miss. A result's images in all are held to a quarter of the request (re-encoded smaller, else looked at by the eyes, else withheld), and the eyes are asked within their own image count and request bytes. A cause's first line (`linkSafe`) keeps only a link's origin and path, in a miss, a receipt, an event and a provider's detection.
- A look or a miss at an image the guard met names the tool the model called: `LookEvent.tool` and `MissEvent.tool` are a string, pi's call name through the pi-durable adapter and `CallContext.tool` for a caller of `fit` or `guardResult` (`callContext(api, context, tool)` sets it for a host's own tool), and `read` when a caller names none. With no path in the result, the event's `source` and the record's `args.path` are `a <tool> result`, and `a tool result` when no tool is named.
- `VisionOptions.scope` gets the host's conversation id as a string; the pi-durable adapter passes pi's own `ConversationId` second, which pi's documents and `harness.snapshot` take. In that adapter a `scope`, `eyes` or `limits` callback that throws gives a media `read` a `look_failed` miss that `onMiss` hears of, and a plain text file still reads; the guard still removes the images it could not check.
- A source `read` holds in memory reaches its reader from memory, and is written into the environment only when a program that names its path runs (poppler, ffmpeg), once a read: an environment that refuses writes still reads images, PDFs and office documents.
- The pi-durable adapter writes a result's blocks under both `output` (pi-durable 1.2) and `content` (1.0 and 1.1), and reads `output`, else `content`: on 1.2 a result with only `content` reaches the model empty, and the guard would never see another tool's images. `piResult` returns both keys.
- A cancelled read leaves nothing behind: its temp directory, and a derivation or a document's text it was putting in place, are removed with a context of their own, since pi's environments refuse every operation once the call's signal is aborted. Every cleanup in the package follows that rule.
- A tool call cut by a crash and run again no longer reports a look as paid twice, nor pays a recording's reviewer twice. A look whose answer is read back from the call's memo (`vision:look:<key>`, so this attempt asked nothing) has `LookRecord.facts.kept: true` and the receipt line `kept: true`, whether or not its host was told before. `LookEvent.kept` is `true` only when the host heard of the look in an earlier attempt (the guard keeps `vision:told:<key>` once the look is filed and `onLook` has returned, and nothing when `onLook` throws, so the pi-durable adapter now passes the host's `onLook` through as it is): do not charge it again. A look read back whose host was never told reaches `onLook` without `kept` and is charged once; a call cut after `onLook` returns and before that memo is kept reaches `onLook` again without `kept` (at least once). A recording read by handle keeps its source's answer the same way, so a rerun asks the reviewer once. The result's `usage` still carries every look once, since pi counts a result's usage only when it commits that result.
- It depends on `unpdf`, `@hyzyla/pdfium`, `fflate` and `@xmldom/xmldom`. `@earendil-works/pi-durable` and `@earendil-works/chord` (1.0.4 to 1.2.x), `@earendil-works/pi-ai` (`*`: the host's copy, as Pi's package guidance asks of a package that imports it) and `@silvia-odwyer/photon-node` are optional peers. The package is developed on pi 1.1.0, and its suite also runs on pi 1.2.0 and on 1.0.4, each with one copy of every pi package. sharp is passed in by a host, never a dependency or a peer, so its LGPL code stays out of the package's dependency graph.
- A failed look's record says what it cost, so one miss no longer makes a run's cost unknown. A miss filed before any request to a model (no eyes, eyes that take no images or no video, an image over a limit, every miss of `read`) has `cost_usd: 0`, `tokens_in: 0` and `tokens_out: 0`. Eyes that answered with no text file that answer's tokens and price, and a recording whose source answered with no text files that answer's price and `provider` (`kept: true` when it was read back). A request to the eyes, or a recording's source, that threw may have been billed: its record has no `cost_usd`.
- A live eyes check, `node packages/pi-vision/test/live/eyes.mjs`, runs the built package as a host composes it (`read` and `fit` from `./durable`, eyes from `./eyes/pi-ai`) against a real model: a scanned letter whose identifier the eyes must read exactly, page 2 of a two-page PDF read with `page`, and the receipts (each paid look priced with tokens, a miss with no eyes at $0). It runs on a maintainer's machine with a key, never in `npm test` or CI. `PI_VISION_LIVE_EYES` names the model as pi-ai's catalog does, the key is the variable pi-ai reads for the provider, and `PI_VISION_LIVE_BASE_URL` points it at a gateway. Its last line is `ok: pi-vision live eyes passed` or `not ok: <step>: <reason>`.
  - `npm test` and `npm run test:binaries` take `--concurrency N` (after `--`) or `TEST_CONCURRENCY=N` to cap how many test files run at once; the flag wins, a value that is not a positive integer exits 2 with the reason, and unset keeps Node's default.
