provared 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,13 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.2 (28 November 2026)
4
+
5
+ Version 0.9.2 changes no code of the library, in JavaScript or in Python. What changes: the signing page, which sign.prova.red serves from this version's tag; the threat model; and four packages released on the same day, whose entries are below, in the section headed "Not yet released" that holds the other packages' entries, each now naming the version that carries it. No signed byte, label, field's meaning or rule of the format changes.
6
+
7
+ - **Versions.** The library is 0.9.2, in `package.json` and `python/pyproject.toml`. `examples/frameworks/package-lock.json`, the guide and the Python README say 0.9.2. The checker in the checking page has not changed, so the guide's fingerprint stays as it was. Released on the same day: `provared-claude-code` 0.2.0, `provared-connect` 0.2.0, `provared-mcp-executor` 0.5.3 and `provared-gateway` 0.1.1. The Hermes plugin, installed from this repository, is 0.1.1.
8
+ - **The signing page.** For an agent's key set that nothing the page holds vouches for, it asks for the fingerprint of that key set as the agent's own software printed it, the whole of it or at least its first 16 characters, and signs nothing where it does not match. It hands a permission back at once, and closes the window, only for a cancellation or where an earlier permission checked in the window vouches for both the passkey and the key set; any other, a first permission or a renewal with a new passkey or new keys among them, goes back only when the person presses the button, and the window stays open. The entry "The signing page: the window for a permission nothing vouches for" below has the details.
9
+ - **The threat model** describes a first permission taken while the recorder waits, and the feed's proof that `/admit`, and `/renew` with a new passkey, now ask for. It says what that proof keeps out (a program that cannot read the recorder's folder) and what it does not (a program run under the person's own account, the agent among them).
10
+ - **The gateway's change log** no longer says that version 0.1.0 has not been published: it was published on npm on 22 November 2026.
11
+
12
+ ## 0.9.1 (22 November 2026)
13
+
14
+ Version 0.9.1 changes no code of the library, in JavaScript or in Python. What changes: the library's own tests now fail where library code opens a network connection; the guide and the threat model gain two pieces of guidance; and the README and three pages are brought up to date. No signed byte, label, field's meaning or rule of the format changes.
15
+
16
+ - **Versions.** The library is 0.9.1, in `package.json` and `python/pyproject.toml`. `examples/frameworks/package-lock.json` gives the library's version as 0.9.1. The guide and the Python README say 0.9.1. No range changes: the Hermes plugin's `provared>=0.4.0,<0.10` takes 0.9.1. The checker in the checking page has not changed, so the guide's fingerprint stays `486471a5b8f3108d08acaacb96d7c27ceeecf95b93bce8e47721b8872a9b1bbc`. No other package's version changes.
17
+ - **A watch on the network while the library's tests run** (`test/helpers/no-network.mjs`, `test/helpers/no-network-worker.mjs`, `test/no-network.test.mjs`, `python/tests/test_00_no_network.py`, `python/tests/test_zz_no_network.py`). In JavaScript, `npm test`, the test workflow and the publish workflow load the watch before every test file with `--import`; in the publish workflow the only change is to the run line of "Run the tests" in the JavaScript test job, which gains `--import ./test/helpers/no-network.mjs`. The watch adds itself to `NODE_OPTIONS` so that a program a test starts with Node.js, the checker for one, is watched too, and so is a worker started from a file. It watches a socket's connect (which `net`, `tls`, `http`, `https` and `http2` all go through), `http` and `https` `request` and `get`, `http2.connect`, a UDP socket's `send` and `connect`, the name lookups of `dns`, and the global `fetch`, `WebSocket` and `EventSource`; and, from library code, one of those (or `net.connect` or `tls.connect`) handed to `setTimeout`, `setInterval`, `setImmediate`, `queueMicrotask`, `process.nextTick` or a promise's `then` or `catch`, a worker run from a string, and `process.binding` of the network bindings. A call whose innermost frame in the repository is in `src/` or `bin/` is stopped, and its test file fails through the exit code even where the library catches the error. A listener on the process's exit sets the exit code to 1 as it ends where anything was found, after whatever code the program asked for with `process.exit` (shown by a run on Node.js 24.19.0: `process.exit(0)`, `process.exit(2)` and `process.exit(7)` each ended with 1). Each program and worker also writes what it finds to a file that the process which started it reads as it ends, so that the test file that started it fails too, even where its test expects the checker to end with 1. `test/no-network.test.mjs` no longer imports the watch, and fails unless the watch was loaded by `--import` on the command line or in `NODE_OPTIONS`, or where a test file imports it. The watch's opening comment lists what it does not see: code a child Node.js runs from a string, a child started without `NODE_OPTIONS`, code in a worker run from a string that the tests start, a network function handed to any other scheduler, other bindings, and programs that are not Node.js. Left out by design: `net/`, the package's network code, kept apart so that `src/` makes no request; `page/`, the browser pages, which load their own files; and `test/`, whose helpers start servers on this computer and talk to them. In Python, an audit hook (`sys.addaudithook`) watches `socket.connect`, `socket.sendto`, `socket.sendmsg`, the name lookups of `socket`, `http.client.connect` and `urllib.Request`; a call whose innermost frame is in the installed library is stopped with an error that an `except Exception` does not catch, and the last test of the run fails where any was made. The hook is put in place by `test_00_no_network.py`, the file that sorts first, which finds the library without importing it, so a call the library makes as it is imported is watched; a thread that library code starts on a function of Python's own is judged by the library (the watch notes who started a thread both from Python's audit event and by wrapping `threading.Thread.start`, since Python 3.11 raises no audit event when a thread starts). The Python library has no network code of its own, so nothing in it is left out; the tests' own files are. The file's docstring lists what it does not see: native code called through `ctypes`, another program the library starts (a Python one included), a thread a test started, and calls after the last test. Shown to work, each in a copy of the repository, each breach caught and set aside there: a connection at the top of `bin/provared-check.mjs` failed 12 of the 15 tests of `test/cli.test.mjs` and the file (with the watch as first written, 12 passed); a test that expects the checker to end with 1 on the sample book passed with the watch as first written and now fails; a worker that library code starts from a file in `src/` and that connects, passed and now fails; `node --test test/no-network.test.mjs` without `--import` passed 5 of 5 and now fails 7 of 8; a test file that imports the watch fails `test/no-network.test.mjs`; a name lookup at the top of `provared/__init__.py` passed all 142 Python tests with the watch as first written and now fails 1 of 144. All were taken out.
18
+ - **The guide: short documents.** Where it describes the documents a tool's stub names, the guide now says that a document of your own that is short or easy to guess is best fingerprinted over exactly 16 random bytes, fresh for each document, followed by the document, with the bytes kept beside the document and not in the record, so that the fingerprint cannot be reversed by trying likely values. The length is fixed so that the bytes and the document split only one way. Where the action needs the person's approval, the approval's `details` must carry the same salted fingerprint as the stub's, as the checker requires (format description, section 17). It is guidance, not a rule of the format: the checker checks only the form of a fingerprint, and the reserved names of section 27 keep their fixed text. The format description is unchanged.
19
+ - **The threat model: an approval used in two books.** It now says that an approval's single use is shown within one book: the record cannot show that the same approval was not used in another book.
20
+ - **The README.** "What it does not do yet" no longer says that sealing the record is not built: it is, in the guard from version 0.5.0, with the limits the guard's README lists (among them: where the keys that seal are in the guard's own files, whoever can read those files can seal a book of their own; a central sealer must run on the same computer; seals held elsewhere and witnesses are not built); keys held in a key service are still not built. The list of packages names `provared-shopify` 0.1.0, on npm since 21 November 2026, and says the gateway is on npm as `provared-gateway` 0.1.0, since 22 November 2026. The Status section says that the library's own code, in `src/`, makes no network request, that its tests fail if that code opens a network connection while they run, and that two parts kept apart in `net/` do: `provared/net/timestamp`, which asks a time-stamp service, and the network code of the command `provared-headers`, which asks only the Bitcoin nodes named to it (and the computer's name service for a node given by name).
21
+ - **The pages.** The home page and "Provared in three minutes" name `provared-shopify` beside the other packages. The home page, "Provared in three minutes" and "Over the limit" give the library's version as 0.9.1. The home page and "Provared in three minutes" link the gateway on npm, and "Provared in three minutes" names `provared-claude-code` 0.1.1. Nothing else on the pages changes.
22
+
3
23
  ## 0.9.0 (21 November 2026)
4
24
 
5
25
  Version 0.9.0 adds a new, separate module to the library and changes how the central sealer in the library asks a time-stamp hook. What changes for a user: `provared/net/timestamp` (`net/timestamp.js`, with `net/timestamp.d.ts`; a new export of the package) asks a time-stamp service that follows RFC 3161 for a time-stamp over a seal's fingerprint, and checks what it gets back with the library's own `checkStamp`. It is a separate module: `src/` still makes no network request, and no other entry of the package loads it. A program that does not import it is unchanged. In `src/sealer.js`, the `stamp` hook of `openSealer` is now given a second argument, `{when, after}`, the seal's own time and the latest time that a service's time-stamp gave the seal before it (read with `checkStamp`, which asks nobody), and a hook that gives no answer within `signWithin`, or throws something other than a `Refusal`, is now `stamp-not-given`, where it was `check-failed`. `src/types.d.ts` shows the new argument. The Python library has no change of its own in 0.9.0: its version is raised to match, the Hermes plugin's bound is raised, and nothing else in `python/` differs from 0.8.1 but the version its READMEs name. No signed byte, label or field's meaning changes, and nothing else in the library changes.
6
26
 
7
- - **Versions.** The library is 0.9.0, in `package.json` and `python/pyproject.toml`. `examples/frameworks/package-lock.json` gives the library's version as 0.9.0. The Hermes plugin's bound on the library is raised from `provared>=0.4.0,<0.9` to `provared>=0.4.0,<0.10`, so that it takes 0.9.0, and the test workflow's comment on that bound agrees; the workflow's check of the bound passes. The README, the guide, the Python README, the plugin's README and three pages say 0.9.0. The checker in the checking page has not changed since 0.8.1, so the guide's fingerprint stays `486471a5b8f3108d08acaacb96d7c27ceeecf95b93bce8e47721b8872a9b1bbc`. The guard, the gateway and the central sealer ask for 0.9.0 (see "Not yet released"), and 0.9.0 is not yet published.
27
+ - **Versions.** The library is 0.9.0, in `package.json` and `python/pyproject.toml`. `examples/frameworks/package-lock.json` gives the library's version as 0.9.0. The Hermes plugin's bound on the library is raised from `provared>=0.4.0,<0.9` to `provared>=0.4.0,<0.10`, so that it takes 0.9.0, and the test workflow's comment on that bound agrees; the workflow's check of the bound passes. The README, the guide, the Python README, the plugin's README and three pages say 0.9.0. The checker in the checking page has not changed since 0.8.1, so the guide's fingerprint stays `486471a5b8f3108d08acaacb96d7c27ceeecf95b93bce8e47721b8872a9b1bbc`. The guard, the gateway and the central sealer ask for 0.9.0 (see "Not yet released"), and 0.9.0 was published on 21 November 2026, through the workflow.
8
28
 
9
29
  - **The library: `provared/net/timestamp`** (`net/timestamp.js`, with
10
- `net/timestamp.d.ts`; part of `provared` 0.9.0, not yet published). A
30
+ `net/timestamp.d.ts`; part of `provared` 0.9.0, published on 21 November 2026 through the workflow). A
11
31
  new entry of the package, kept apart from the library as `net/`
12
32
  is: `src/` still makes no network request, and none of the library's
13
33
  other entries loads it. `askForStamp(fingerprintBytes, {address,
@@ -160,6 +180,538 @@ Version 0.8.1 changes how the library reads one kind of time and what the signin
160
180
 
161
181
  ## Not yet released
162
182
 
183
+ - **GitHub checks on the release branch** (`integrations/claude-code/`, `.github/workflows/tests.yml`). Nothing a person sees changes.
184
+ - *The linter's five findings.* In `recorder.mjs`, `admitWaiting` checks the thumbprint it is given with a fixed pattern (letters, digits, "-" and "_" only) and its length (at least `least` characters, at most 43), where it built a pattern from `least`; it takes and refuses the same thumbprints. In the tests: `admit-rules.test.mjs` writes the right-to-left override, the line separator and the zero-width space of its hostile text as `\u` escapes, so the text sent is the same; its check that a character is shown as `\u` escapes, and the check of the warning's time in `renew.test.mjs`, no longer use a pattern with a repeat inside a repeat, and match what they matched; in `waiting-admit.test.mjs` the callers stop on an `AbortController` the test aborts, where they read a variable the linter could not see change.
185
+ - *The uploader's dependencies.* The recorder's tests load `connect/handover.mjs`, whose dependencies were not installed on GitHub, so one test failed there. The recorder's job in the `javascript-packages` matrix now installs `connect/package-lock.json` (`npm ci --ignore-scripts --no-audit --no-fund`) before its tests. A new job, `connect`, installs the same and runs the uploader's own tests, as its `npm test` does but without hiding warnings, then fails on any warning but the expected one. No job ran the uploader's tests before.
186
+
187
+ - **The recorder beside Claude Code: a first permission through the feed, the first part** (`integrations/claude-code/`, in `provared-claude-code` 0.2.0).
188
+ - *One owner of the port.* A new module, `port.mjs`, makes the recorder's one HTTP server and listens once. Its request listener runs 0.1.1's checks (`Origin`, `Sec-Fetch-Site`, `Host`, then the feed's own requests, then `Content-Type`), moved out of `startService` into one function, `portChecks`, and then hands the request to the handler in place, which the owner can swap in one step. The feed is made once, by the owner. `startService` takes a new option, `on`, the owner of a port that listens already: it then takes that owner's feed, makes no server and does not listen, and gives back its handler. Without the option it makes its own owner and listens, as before. A new module, `waiting.mjs`, holds the waiting recorder's handler and `startWaiting`: `GET /status` answers `{ waiting: true, version, agentKeySet, sealer, waitingPermissions, feed, started, folder }`; `POST /before` refuses every call with `no-permission-yet`; `POST /record`, `/seal`, `/renew` and `/new-book` are refused (409, `no-permission-yet`) and nothing is written; `POST /stop` stops it; its feed lists no book. `package.json` lists both files. New tests, in `test/waiting-port.test.mjs`: the cases of `test/local-port.test.mjs` against the waiting recorder (each route, `/admit`, `/renew` and `/stop` among them, refuses a web page's request, before its body is read, and every file in the folder is unchanged; the feed's routes refuse it and give no session; the feed's reader is answered and lists no book), and its own clients are answered. `test/local-port.test.mjs` passes unchanged.
189
+ - *The feed's proof on `/admit`, and on `/renew` with a new passkey.* Both handlers check such a request with the feed's own check of a question with a body (`feed.mjs`, `conversation`, now also given out as `checkQuestion`), after the port's checks and before anything is done: the question must be asked in a conversation the recorder began, with the feed's token from the folder, proved over `POST <path>` and every byte of its body, and each question once; the answer carries the recorder's proof. No new label, layout or derivation. Without the proof the request is refused (401) and nothing is written. `/renew` with a passkey already trusted, and `/stop`, take no proof, as before. `admit-passkey`, and `renew` or `use` with `--new-passkey` while the recorder runs, ask through the feed's reader, which checks the recorder's proof on the answer; where the token file cannot be read they say so, and take nothing. New tests, in `test/admit-proof.test.mjs`: without a proof, refused and nothing written; with the token's proof, answered with the recorder's proof; a proof made for another path, another method or another body refused; a question sent twice refused the second time; the waiting recorder's `/admit` needs the proof too; the three commands say so where the token cannot be read. Each failed before the change. Changed tests: two in `test/renew.test.mjs` and one in `test/handover.test.mjs` that sent such a request with no proof now send it with the feed's reader, as the commands do.
190
+ - *Shared hand-over checks.* The checks of a permission handed over that need no permission in force (a start no more than 300 seconds ahead, looked at before the passkey; a sound permission with a valid passkey signature; this agent's key set; not ended; not from a retired passkey; signed at the expected signing address; and, where a passkey is admitted, signed by that passkey) move out of `handOverRenewal` into one function, `handOverChecks`, which the full recorder and the waiting recorder both call. The full recorder's answers do not change: today's hand-over tests pass unchanged.
191
+ - *The hand-over while the recorder waits.* The waiting recorder's feed takes a first permission handed over (`{ kind: 'renewal', slip }`): after `handOverChecks`, with no passkey trusted, it keeps it in `waiting-permissions.json` (`addWaitingPermission`, one for each passkey, the one that starts latest) and answers `refused` with the new code `waits-for-yes`, the passkey's thumbprint and the permission's fingerprint; where one from the same passkey that starts no earlier waits already, it keeps nothing and answers `refused` with the new code `not-kept`, which is final. It never writes `slip.json`, the list of trusted passkeys or a book. A permission for other keys (`other-agent`), signed at another address, starting more than 300 seconds ahead (`starts-later`), ended, or not sound, is refused and not kept; a cancellation is refused with the new code `nothing-in-force`. One record is taken at a time. New tests, in `test/waiting.test.mjs`: a sound first permission waits and none of those files is written; each of those permissions, and a cancellation, is refused and nothing is kept or written; `/before`, `/record`, `/seal`, `/renew` and `/new-book` refuse and write nothing while a permission waits. Each failed before the change.
192
+ - *The admit rules* (`admitWaiting`, `POST /admit`). `POST /admit` now takes `{ fingerprint, thumbprint, take }`: the recorder takes the permission from its own waiting list by fingerprint, worked out from each permission itself, and never from the request; a request that carries a permission is refused (`not-understood`), and a fingerprint that does not wait is refused with the new code `no-such-permission`. `take: false` checks only. `{ fingerprint, thumbprint, decline: true }` declines. `admit-passkey`, exported as `admitWaiting`: with no argument it only lists what waits; for a passkey this computer does not trust it takes the thumbprint, or at least its first 16 characters (`ADMIT_THUMBPRINT_LEAST`; 96 bits, out of reach of trying keys until one starts alike), matched exactly and case-sensitively at the start of the thumbprint worked out from each permission, and its words say to paste it from the signing window, not from the application; where the start matches more than one passkey, nothing is taken and it asks for more characters; where none matches, it says how many others wait and points to saving the permission from the signing window as a file. It shows the permission and asks the person to compare its fingerprint with the signing window's. It asks only where its input is a terminal: from a pipe or a file it says so and takes nothing. Only a typed `yes` takes; only a typed `no` declines, and the declined fingerprint is remembered as `declined` in `waiting-permissions.json` (at most 64, `MAX_DECLINED`, the oldest left out first) and refused from then on with the new code `declined`, by both recorders; anything else leaves it waiting. The command no longer writes the waiting list: a check that fails leaves the permission waiting, and the command says why; the running recorder takes a permission out once taken or declined, and leaves out one that has ended when it writes the list. New tests, in `test/admit-rules.test.mjs`: a kept permission swapped for one of the same wording from another passkey is not admitted with the person's thumbprint; a permission sent in the request, or a fingerprint not waiting, is refused; `take: false` and a check that fails drop nothing; a start under 16 characters, in another case, or matching two passkeys takes nothing, and the first 16 characters take; no argument only lists; input from a pipe takes nothing; only a typed `no` declines, and the declined permission is refused afterwards. Before the change none of them passed (the command was not exported, and its rules were not there). Changed tests, whose behaviour this changes: four in `test/handover.test.mjs` (the person's answers are typed at a terminal, so the tests give them to `admitWaiting` directly; a check that fails now leaves the permission waiting instead of dropping it; the words where nothing waits from the passkey named; the recorder asked by fingerprint), and one in `connect/test/handover.test.mjs` (its `yes` is typed at a terminal, given to `admitWaiting` directly).
193
+ - *Taking a first permission, and the switch to the full recorder* (`waiting.mjs`, `port.mjs`). The waiting recorder's `POST /admit`, with the feed's proof, in this order: one at a time (a second, while one runs, is answered 409 with the new code `busy`, and nothing is changed); the waiting recorder still in place (else `not-waiting`) and the folder still fresh (else `not-fresh`, nothing written); the permission from its own waiting list by fingerprint (else `no-such-permission`); `handOverChecks` with that one passkey admitted, then `startService`'s own checks on the slip, all before anything is written (`take: false` stops here: `would-take`); the list of trusted passkeys written as exactly this one passkey, with a new mode of `writeTrusted`, `replace`, that does not read or keep a list left in the folder; `slip.json` (`placeSlip`); the full recorder built with `startService`'s `on`, on the same port and feed, which writes the slip as the book's first line; the full recorder put in place by the port's owner in one step, with nothing closed and nothing listening again; and only then `taken`. Where the start fails, what this attempt wrote is put back (the trusted list, `slip.json`, and a `book.jsonl` that holds only that first line), the recorder stays waiting, the permission waits, and the answer is `refused` with the new code `not-started` and the reason. A `decline` takes the permission out of the list and remembers it, as in the full recorder. A record handed over that waited its turn behind the admit is passed on, once the full recorder is in place, to the full recorder, which answers it by its own rules: a cancellation of the permission just taken is `taken` (its test, in the same file, failed before the change). `freshFolder` says whether a folder is fresh (see the next item) and what stands in the way. New tests, in `test/waiting-admit.test.mjs`: after `yes` the book's first line is the slip, the trusted list is that one passkey, `/status` names the slip at once and a call inside it is allowed, and the feed's conversation holds; `taken` comes only once `/status` names the slip; two admits at once leave one passkey trusted and answer the other `busy`; a trusted list put in the folder while an admit runs is replaced, not merged; a start that fails (the book cannot be written) answers `not-started`, leaves no slip and no trusted list, and the permission waits; tool calls sent throughout the switch are each answered, refused or allowed, and none finds the port closed; in the waiting recorder a check drops nothing, a permission in the request or from another passkey is refused, and a declined permission is refused when handed over again. Each failed before the change.
194
+ - *A fresh folder* (`start`, `ensure`, `use`). The recorder waits only in a fresh folder (`freshFolder`): the agent's keys are there, and none of `slip.json`, `book.jsonl`, a kept book (`book-<n>.jsonl`), a kept slip (`slip-<fingerprint>.json`), `trusted-passkeys.json` or `held-cancellations.json`; `waiting-permissions.json` may be there. `startWaiting` refuses any other folder, naming what stands in the way. `start` in a fresh folder starts the waiting recorder; in any other folder it starts the full recorder, which still refuses to start without a slip. `ensure` starts the recorder in a fresh folder too, and where the recorder that answers waits (`waiting: true`), it says so, with what to do next, instead of taking it for one that runs with a permission; in a folder that is neither fresh nor holds a slip it still starts nothing. `use <file>` while the recorder waits stops it, waits until the port is free (10 seconds at most), says so, and then takes the file as it does where nothing runs. The words of `init`, the start of a session and `status` for the waiting state are not changed yet. New tests, in `test/fresh.test.mjs`: each of those six files stops the waiting start, and `waiting-permissions.json` alone does not; `ensure` starts the waiting recorder in a fresh folder and says that it waits, and starts nothing in a folder that is not fresh and holds no permission; `use <file>` while the recorder waits stops it and takes the file, and the full recorder then runs under it. Each failed before the change.
195
+
196
+ - **The recorder beside Claude Code: a first permission through the feed, put right after review** (`integrations/claude-code/`, `connect/`, in `provared-claude-code` 0.2.0 and `provared-connect` 0.2.0). Each new test failed before its change.
197
+ - *A record handed over while a first permission is taken.* It waits its turn behind the admit, as before, and is then passed on to the full recorder now in place, which answers it by its own rules: a cancellation of the permission just taken is taken, and the permission is cancelled. Before, it was refused with the code `not-waiting`, which the uploader does not hand over again, so a cancellation could be lost until the uploader was started again. The uploader (`connect/handover.mjs`) now hands over again a record refused `not-started` (the recorder still starting). Tests: in `test/waiting-admit.test.mjs`, the test of records handed over during the switch now expects this; in `connect/test/handover.test.mjs`, one new test.
198
+ - *A permission the waiting recorder does not keep.* Where one from the same passkey that starts no earlier waits already, the answer is now refused with the code `not-kept`, which the uploader does not hand over again, and no longer `waits-for-yes`, which said that this one waits. Test: one new, in `test/waiting.test.mjs`.
199
+ - *Two checks of the admit now tested.* In `test/waiting-admit.test.mjs`: a folder that is no longer fresh when the admit comes (a file of held cancellations put there after the hand-over) is answered `not-fresh`, with nothing written; an admit that reached the waiting recorder before the switch, and whose body arrived after it, is answered `not-waiting`, and the other passkey is not trusted. The code does not change; each test fails with its check taken out.
200
+ - *`use <file>` while the recorder waits.* The file is read and checked first, and the waiting recorder is stopped only once it passes; a file that is refused leaves the waiting recorder running, and the words no longer say it was stopped. The file is checked again once nothing runs, before it is put in place. The port is taken as free only where two questions in a row go unanswered, not one. After `ensure`, `use` asks whether what answers still waits: if so, it stops it and starts the full recorder, and where that fails it says that every tool call is still refused (since the fixes to the words of the waiting state below, each tool call it checks), with how to restart, and ends with 1, instead of saying that the recorder runs and checks each call. Tests: three new, in `test/fresh.test.mjs`, two of them against a stand-in on the port.
201
+ - *An admit stopped between its two writes.* `ensure`, in a folder that holds no permission and is not fresh, now names the files that stand in the way and says to put the signed permission in place with `use <the saved file>`. Where a start after `yes` fails, each file written for it is removed with the same retry, for up to ten seconds, that the recorder uses when it writes its files on Windows, instead of in one attempt. Tests: one new in `test/fresh.test.mjs`, one new in `test/waiting-admit.test.mjs`.
202
+ - *The options for tests.* The waiting recorder's `serviceOptions` can no longer replace the folder, the port's owner, the signing addresses or the clock the full recorder starts with. Test: one new, in `test/waiting-admit.test.mjs`.
203
+ - *`renew <file>` while the recorder waits.* With or without `--new-passkey`, it now says that no permission has been signed yet and the recorder waits for its first one, so there is nothing to renew, and points to `use <the saved file>` and `admit-passkey`. With `--new-passkey` it said, wrongly, that the recorder did not prove it holds the feed's token. Test: one new, in `test/fresh.test.mjs`. In the full recorder, one value now decides both whether `/renew` needs the feed's proof and whether a new passkey is taken; what it does is unchanged.
204
+ - *What `admit-passkey` shows.* Every value it prints from a permission (the label, the address, the agent, what it may do, the limits, the purpose, the times), and the recorder's words about it, now has each character that does not print written as an escape such as `\u001b`: controls, line breaks among them, format characters such as the marks that turn text right to left, and line and paragraph separators. Before, they reached the terminal as they were, and could move the cursor and write over what was shown. Test: one new, in `test/admit-rules.test.mjs`; the test helper `signSlip` can now set the label and the agent's name.
205
+
206
+ - **The recorder beside Claude Code: a first permission through the feed, put right after the second review** (`integrations/claude-code/`, in `provared-claude-code` 0.2.0). Each new test failed before its change, unless it says otherwise.
207
+ - *A stop only for a recorder that waits.* `POST /stop` with the body `{"waiting": true}` stops only a recorder that waits for its first permission, and the recorder decides it in one step. The full recorder refuses it (409, `stopped: false`, the new code `not-waiting`) and goes on. The waiting recorder refuses it with `busy` while it takes a permission (`admit-passkey`), and with `not-waiting` where the full recorder is in place by the time the body is read; otherwise it stops. A `/stop` with any other body, or none, stops either, as before. The port's checks of 0.1.1 come first, as for every request. `use` now asks its stops this way. Before, it stopped whatever answered: where a permission was taken with `admit-passkey` between its question and its stop, it stopped the full recorder, and said, untrue, that it had stopped the one that waited. Now, after a refusal, it reads the status again: where the full recorder answers, it goes on with it, as with any recorder that runs; where a permission is still being taken, it asks again, for up to 10 seconds, and then ends with 1 and says to run it again in a moment. Tests: three new in `test/waiting-admit.test.mjs` (the waiting recorder answers `busy` during a held admit, the admit then completes, and the full recorder refuses with `not-waiting` and keeps running, behind the port's checks; a waiting recorder with no admit still stops, which passed before too; `use` during a held admit goes on with the full recorder once it is in place), and one in `test/fresh.test.mjs` (`use` goes on with the full recorder after it refuses the stop).
208
+ - *`use` decides from the status `ensure` was given.* `ensure` now hands back, with its code, the status of what answered, and `use` decides from that whether the recorder waits, instead of asking once more and taking no answer for "does not wait". Where `use` asks again later and gets no answer twice in a row, it ends with 1 and says that it is not known whether the recorder still waits, and to run `status`. Tests: two new in `test/fresh.test.mjs`, against a stand-in on the port: questions left unanswered before and after the one `ensure` asks (before, `use` said the recorder runs and ended with 0); a stop refused and then two questions unanswered. One more new test, of what was already built: `use` ends with 1 and says every tool call is still refused (now: each tool call it checks) where what answers still waits after it was stopped and the recorder started again; it fails with that branch taken out.
209
+ - *Questions answered while a failed start is put back.* Where a start after `yes` fails and a file written for it is held open by another program, the waiting recorder still tries each removal again for up to ten seconds, but now waits between tries with a timer (`untilFreeLater`), and no longer holds its one thread: `/status` and other questions are answered meanwhile, and a stop asked by `use` is refused with `busy` until the admit has ended. Before, nothing was answered for up to ten seconds a file, and `use` could take the recorder for gone. Test: one new, in `test/waiting-admit.test.mjs`: while a removal is refused for 2 seconds, `/status` is answered within 1 second of the first refusal (before the change, after 2,029 ms).
210
+ - *What `admit-passkey` shows, made clearer.* Each text it prints from a permission, and each of the recorder's messages, is now shown between quotation marks, as JSON writes a string, so that where it begins and ends is seen; the quotation mark and the backslash within it are escaped, so text typed as `\u001b` no longer reads like an escaped control. Beside the characters escaped before, it now escapes every space but the plain one (the no-break and ideographic spaces among them), characters that are ignored when shown (`Default_Ignorable_Code_Point`: the Hangul fillers, variation selectors, the combining grapheme joiner), and private-use and unassigned code points. A code point past U+FFFF is written as two escapes, as in JSON, instead of `\u{…}`. A limit or a condition is shown as its JSON text, escaped the same way. In `recorder.mjs`, `printable` and its comment now stand above `admitWaiting`'s comment, and a new `printableJson` does the same for JSON text. Tests: two new in `test/admit-rules.test.mjs`, one for the quotation marks and the backslash, one for each new kind of character. Changed tests, whose words this changes (the quotation marks): one in `test/admit-rules.test.mjs`, two in `test/handover.test.mjs`, one in `connect/test/handover.test.mjs`.
211
+ - *A test of the recorder's messages in `admit-passkey`.* One new test in `test/admit-rules.test.mjs`, of what was already built: a stand-in for the recorder, over the folder's feed and with its proof, answers each question with a message full of controls, marks that turn text right to left, separators, blank-looking and private-use characters, quotation marks and a backslash; in each of the four places the command prints such a message, it is shown escaped and between quotation marks. It fails with the escaping taken off any one of the four. Of the fields of a permission, the library holds the address and the website name, the actions, the limits, the conditions, the never list, the services' ids and both times to a narrow form, so they cannot carry such text; the label, the agent's name and the purpose, which can, were tested already.
212
+ - *What `status` prints.* `status` still prints the recorder's status as JSON, but every character that `admit-passkey` escapes is now written as a JSON escape (`\u009b`) wherever it stands in that text: in the agent's name and every other text from a permission or from what answers on the port. JSON escapes only the controls below U+0020 itself, so before, C1 controls, DEL and the marks that turn text right to left reached the terminal as they were. The output is still JSON, and reads as the same values. Test: one new, in `test/fresh.test.mjs`.
213
+
214
+ - **The recorder beside Claude Code and its uploader: a first permission through the feed, the second part** (`integrations/claude-code/`, `connect/`, in `provared-claude-code` 0.2.0 and `provared-connect` 0.2.0). Each new test failed before its change, unless it says otherwise.
215
+ - *The uploader's pause where the recorder has no book* (`connect/upload.mjs`). Through the feed, a round that finds no book in force, as while the recorder waits for its first permission, comes back at once, and the uploader asked the recorder for its books again at once, without end. It now waits 25 seconds (`NO_BOOK_PAUSE_MS`, as long as a round with nothing new already waits at the recorder) before the next round, or less where the engine says that the book's content changed, the same wake the hand-over rounds use. The rounds are in a new exported function, `feedRounds`, which `main` runs; the uploader gives `bookInForce()`. Tests: five, in `connect/test/pause.test.mjs`, on the test's own time: against a feed with no book, and against one with a kept book but none in force, the uploader asks for its books no more than twice in 30 seconds (before the change, 50 times, where the test stops it); the pause ends at the wake; with a book in force there is no pause (passed before too); a round that fails for now waits the retry time, and one that fails for good ends the rounds (passed before too).
216
+ - *The feed's route `GET /agent`* (`feed.mjs`, `port.mjs`, `recorder.mjs`, `waiting.mjs`). Both the full and the waiting recorder answer it with `{ agent: { name, keys }, fingerprint }`: the agent's public keys, worked out at the start from the agent's key file (`loadAgentKeys`), never the file; the name of the starting permission (`Claude Code`), as in the link `init` prints; and the key set's fingerprint (`keySetFingerprint`), as `init` prints it. A new exported function, `agentKeySetAnswer`, makes it; a handler gives it to the port's owner as `agent()`. The answer is proved as every answer of the feed is, and without the feed's proof the question is refused (401). It takes nothing after its name (400) and GET only (405). The feed makes the answer afresh, and gives it only where each key holds public members only (`kty`, `alg`, `crv`, `x`, `pub`, each a string; `publicKeySet`, `PUBLIC_KEY_MEMBERS`); a key with any other member, a private one among them, is never given: the answer is then 500, proved, with no key in it. Where no handler is in place yet, it answers 503. A feed made without the new option `agent` does not know the route, as an earlier recorder's did not. The feed's reader gains `agent()`, which gives `{ given: false }` for an earlier recorder's 404 with no proof, and reads nothing in it; its errors for an answer with no proof now carry the answer's `status`. New tests, in `test/agent-route.test.mjs`: in each recorder, the public key set and its fingerprint, proved, with no private member and none of the private parts of the agent's key file in it; refused without a proof, and with the proof of a reader that does not hold the token; nothing after its name, and GET only; a key set with a private member is never given (it also fails with only the check of the members taken out); the answer while no handler is in place, and a feed that does not know the route.
217
+ - *The uploader reads the key set* (`connect/upload.mjs`, `connect/agent.mjs`). `feedClient` gains `agent()`: from an answer with the recorder's proof, `{ given: true, agent: { name, keys }, fingerprint }`, in the form a new module, `agent.mjs`, reads (`readKeySet`: a name of 1 to 200 characters; 1 to 8 keys, each with `kty` and public members only, each a value of base64url letters; at most 8,192 characters as JSON; made afresh, and set aside whole where anything else is there). Where an earlier recorder answers with its own 404, which carries no proof, it gives `{ given: false }` and reads nothing in that answer; the conversation is begun again at the next question, as after any answer with no proof. Any other answer with no proof, or one not in that form, is refused (`feed-error`), and nothing in it is used. `package.json` lists `agent.mjs` and exports it as `provared-connect/agent`. New tests, in `connect/test/agent-feed.test.mjs`, against the recorder's own feed: the key set read, proved; an earlier recorder's 404 is "not given", nothing in it used, and the books and their lines are still read (it fails with the rule for the 404 taken out); a key set in an answer without the proof is never used; a proved answer with a private member, or a fingerprint not in its form, is not used; the form of the key set.
218
+ - *The agent note* (`connect/agent.mjs`, `connect/handover.mjs`, `connect/upload.mjs`). A note of its own, `{ version: 1, agent: { name, keys } }`, sealed under the book's key with the book's id bound in, as the note of outcomes is (`sealAgent`, `openAgent`), under the bound context `"<namespace>/agent/v1" ‖ 0x00 ‖ object id (16 bytes)`, made with the engine's `frameContext` and `label` as `outcomesContext` makes its own (`agentContext`). It binds no key epoch: it opens with the book's current key only, and a note sealed under an earlier key does not open. A key set not in the form `readKeySet` reads is never sealed, and a note not in its form opens to nothing. `bookSide` gains `putAgent`, which sends `provared-put-agent` with the book's id, the append capability and the sealed note, and waits for `provared-put-agent-ok` or `provared-put-agent-failed`, as `putOutcomes` does for its note. A new `createAgentNote` reads the key set from the recorder at each hand-over round, before the records, and puts the note where its text differs from the last one put; a put that fails is tried again at the next round, and said once. Where the recorder does not give its key set (an earlier version), it says once "update the recorder to fill in the agent's keys by itself", puts nothing, and uploading goes on as before. An application server that does not take `provared-put-agent` refuses it, and the put then fails and is said once. The note is not proved to be the uploader's: anyone given a read-only link to the book holds the key it is sealed under. New tests, in `connect/test/agent-note.test.mjs`: the bound context's bytes; seal and open; a note for one book does not open for another, nor under an earlier key; a note of outcomes does not open as an agent note, nor the reverse; the note is put once, and again only when it changes; a put that fails is tried again and said once; nothing is put from an answer the feed client did not take, nor from a key set with a private member; what `putAgent` sends; against an earlier recorder's own feed, nothing is put, it is said once, and every line is still uploaded. Before the change the file did not load (`agent.mjs` had none of these).
219
+ - *One conversation at a time* (`connect/upload.mjs`, `feedClient`). With the agent note, the uploader asks the recorder's feed for the key set while its first round of lines asks for the books. Each question that found no conversation began its own, and one could then be asked in a conversation another had just replaced. Now questions asked at once wait for one conversation, begun once, and each is asked and checked in the conversation it began with; one that loses it meanwhile is tried again later (`feed-busy`). Before, with the agent note in place, tests of the command in `connect/test/feed.test.mjs` failed: in the run that found it, two (a garbled state did not stop the long run within 20 seconds; a refused token ended with a crash of the process on Windows instead of exit code 1), and in a later run with the fix taken out, only the second; they pass unchanged now. New test, in `connect/test/agent-feed.test.mjs`: the key set, the books and the lines asked at once begin one conversation (before, more than one).
220
+ - *What the uploader hands over again, and how many* (`connect/handover.mjs`). `AGAIN` gains `waits-for-yes` (a first permission waits on the agent's computer for the person's thumbprint and `yes`) and `nothing-in-force` (a cancellation came while no permission was in force), so both are handed over again a minute later, and a cancellation the person signed reaches the recorder once a permission is in force. In a round, at most one new permission for each passkey is handed over: of those the recorder has not answered for good, the one that starts latest (of two that start alike, the first kept), as the waiting recorder keeps one for each passkey. The passkey is read from each permission's content, not checked (the recorder checks it), with the members of its key in order; a permission whose passkey cannot be read is its own. New tests, in `connect/test/handover-again.test.mjs`: both codes are handed over again, and not within the minute; with three permissions from one passkey and one from another, only the latest of the first and the one of the other are handed over, the earlier ones never while the latest waits, and the next by its start once the latest is answered for good; two that start alike, and permissions whose passkey cannot be read. Each failed before the change. The existing tests of `connect/test/handover.test.mjs` pass unchanged.
221
+
222
+ - **The uploader: the second part, put right after review** (`connect/`, in `provared-connect` 0.2.0). Each new test failed before its change.
223
+ - *The records no longer wait for the agent note.* A hand-over round (`handOverRound`, new and exported, which `main` runs) now hands the records kept with the book over first, and puts the agent note after them. `bookSide.putAgent` now waits for its answer itself (`SERVER_ANSWER_MS`, 20 seconds) and takes the server's own refusal of a message it does not know (`{ type: 'error', reason: 'unknown-type' }`, with the message's id) as a refusal at once. Before, while the application's server did not know `provared-put-agent`, every round waited the whole 20 seconds for the note before it handed anything over, so a cancellation the person signed reached the recorder 20 seconds late at every round. The uploader now says, once, that the server does not take the agent's keys yet. Tests: two new, in `connect/test/agent-note.test.mjs`: against a server that answers `unknown-type`, the put is refused within 2 seconds (before, after 20) and nothing is left listening; the records are handed over before the note is begun, and do not wait for it.
224
+ - *One kept record no longer keeps a passkey's others back* (`connect/handover.mjs`, `connect/upload.mjs`). Of the new permissions from one passkey, the one that starts latest is handed over first, as before; where its hand-over fails (no answer from the recorder), the passkey's next, by its start, is handed over in the same round, and so on. A record larger than the recorder's feed takes (`FEED_MAX_HAND_OVER_BYTES`, 256 KiB, as `feed.mjs` has it) is no longer sent: `feedClient.handOver` refuses it with the new reason `too-large`, in words that say so, and the round counts it as answered for good, with the new code `too-large` in the note of outcomes. Before, such a record, kept with the book with the person's passkey and a later start by whoever can write the book's content, was the only one of that passkey handed over, failed at every round ("does not carry the recorder's proof", which was not the reason), and kept the person's real permission from ever being handed over. Tests: two new in `connect/test/handover-again.test.mjs` (where the latest's hand-over fails, the next is handed over in the same round; a record too large is not sent, not even a hello, is answered `too-large` for good, and the passkey's next is handed over), and one new in `integrations/claude-code/test/handover-shadow.test.mjs`, against the real waiting recorder: with a record of over 256 KiB beside it, the person's first permission waits on the computer after the first round (before, nothing was handed over in any round). Each failed before the change.
225
+ - *Words that were ahead of the code.* The comments of `connect/agent.mjs` no longer say that the application's page opens the note or that the person compares the fingerprint in the signing window: neither is built yet (they now say so), and what guards the agent is the recorder, which takes no permission for other keys. The comment on the feed's requests in `integrations/claude-code/port.mjs` names `GET /agent`. The entry on one conversation at a time above says which tests failed in which run. (The words of `agent.mjs` changed with the first item; no code changed here.)
226
+
227
+ - **The signing page: the window for a permission nothing vouches for, and the fingerprint the person gives** (`page/sign-page.js`, `page/sign.html`; on sign.prova.red from v0.9.2).
228
+ - *Which permissions go back at once.* A permission is handed back at once, and its window closes a second after the page that asked says it kept it, only where an earlier permission checked in the window vouches for both the passkey that signs and the agent's key set: its passkey signature checked, its passkey the one that must sign (a checker then refuses any other), and its key set the same as the new one's (a true renewal; `handedBackAtOnce`, new and exported, which is given only whether the permission is vouched for). A cancellation goes back at once too, as before. Staying open after "kept" is the default of the hand-back, and only a cancellation or a vouched-for permission asks for the window to close. What the page that asked calls its request decides nothing: a "renewal" whose earlier permission is for other keys, for another website or by another passkey is treated as a first permission is. This changes what renewals did before.
229
+ - *Handed back on a press.* Every other permission with an address to go back to is no longer handed back as soon as it is signed. Straight under the status the window shows the passkey's thumbprint, the permission's fingerprint and, for Claude Code, the command `provared-claude-code admit-passkey <thumbprint>`, with the words "Signed. Copy the thumbprint and the permission's fingerprint below now: this window is the one place they can be trusted. On the agent's computer, give the thumbprint to your agent's software, and check that the permission's fingerprint it shows is the one here. Then press the button to hand the permission to the application." The focus goes there, not to the button. The window hands the permission back only when the person presses "I have copied them: hand the permission to the application", and only where the page has not gone back to its first step since it was signed. Before that press nothing is sent to the page that opened the window, so closing the window early sends nothing. The file is offered from the signing on. Where the page was not opened as a window, the same press then offers the way back by a link, as before.
230
+ - *The window stays open.* After the page that opened it says it kept such a permission, the window no longer closes itself, and says "Kept by the application. Keep this window open until the agent's computer has taken the permission." Whether it stays open, and the answer it waits for, are settled when the permission is handed over, whatever the window's address becomes afterwards.
231
+ - *The warning for a key set new to this device.* For every key set this device has not signed for and no earlier permission vouches for, it now says that this is expected for a new agent, and asks the person to compare the fingerprint with the one the agent's software printed on the agent's computer (for Claude Code, the one `init` printed), never with the application or another page (`newAgentWords`, new and exported). Where the request carries a checked earlier permission for another key set, the warning does not say that this is expected: it says that these are not the keys of the permission being renewed, and to go on only if the person changed the agent's keys themselves.
232
+ - *The fingerprint given before signing for a key set new to this device.* Wherever that warning stands (a request of any kind, or a page opened from a `#permission=` link), `sign.html` shows one field with the warnings, and the page signs only once the person has given the start of the fingerprint, at least 16 characters (`FINGERPRINT_START`), or the whole of it (`fingerprintStartRefusal`, new and exported). It takes the last run of 16 to 43 fingerprint characters (letters, digits, `-` and `_`) in what was pasted, so that the whole line `init` prints can be pasted. That run must match the start of the fingerprint of the key set in the permission exactly, with upper and lower case told apart. Where what was pasted holds no such run, the page says so and asks for the fingerprint alone. An empty field, fewer than 16 characters or a start that does not match signs nothing: no passkey is made or asked, and the page says why. The field's label asks for the fingerprint the agent's software printed, to be copied there after this window has opened, and to be checked in the box against what was printed. A key set this device has signed for, or one an earlier permission vouches for, needs no field. What is typed is not kept, and is cleared when the page goes back to its first step.
233
+ - *While the page is filled in from its address*, "Read the permission" is off until the request is settled, and where the page is changed meanwhile, nothing of that request is kept to sign with. The checks of a request give back what they found, and the page keeps it, with the request, only where that filling of the page is still the current one and nothing changed meanwhile, so a request overtaken by a newer address leaves nothing of its own behind. The fingerprint of the key set is worked out before the passkey is asked, so nothing waits after the last check for a change.
234
+ - *Cancellations* are handed back at once and their window closes after "kept", as before.
235
+ - Tests.
236
+ - New, in `test/sign-page.test.mjs`:
237
+ - which records go back at once;
238
+ - the fingerprint's start. Taken: the whole fingerprint, 16 and 30 characters, the same with spaces and line breaks around, the whole line `init` prints, and the last of two runs. Refused: empty; 1 and 15 characters; another key set's start; a letter in the other case; a start shifted by one; a right run followed by a wrong one; a space or a zero-width space inside; one character too many; too short a run among words;
239
+ - the warning's words, in both forms.
240
+ - New, in `test/sign-window-review.test.mjs`, in a browser:
241
+ - a first permission is signed only with the fingerprint given: an empty field, 15 characters and a wrong start each sign nothing, and the whole line `init` prints signs. Nothing is sent before the press. The thumbprint, the fingerprint and the command are shown straight under the status, with the focus there. The file is offered before and after the press. The key set signed is the one whose fingerprint was given, and the window stays open after "kept";
242
+ - closing the window before the press sends nothing;
243
+ - a first permission for a key set this device knows needs no field, and is still handed back only on the press;
244
+ - a true renewal (the same passkey and keys) is handed back at once, with no field and no press, and the window closes;
245
+ - a forged "renewal", the person's own earlier permission for other keys, is warned that these are not the keys of the permission being renewed, is asked the fingerprint (an empty field and a wrong start sign nothing, and the passkey is not asked), goes back only on the press, and its window stays open;
246
+ - while a new request's earlier permission is being checked (held by the test), "Read" is off; a press of it and typing in the box leave nothing of that request to sign with, and the page says so. It fails with either line of that rule undone ("Read" turned off at the start; giving up where the page changed meanwhile);
247
+ - a page opened from a `#permission=` link asks the field (an empty field and a wrong start sign nothing);
248
+ - after signing and before the press, a new address takes the page back, and a forced press of the hand-over button sends nothing;
249
+ - a new address after the hand-over, before "kept", neither closes the window nor changes the answer awaited;
250
+ - a new link in the address after reading cannot be signed, and the fingerprint given for the earlier keys does not sign the new ones.
251
+ - The tests written with the first build failed before it, with two exceptions: the true renewal's, which keeps the earlier behaviour, and the new link's, whose rule was already built (it failed only for want of the field). For the tests added after review, each of these rules, undone by one line, fails a test:
252
+ - the field for every kind of request;
253
+ - the field for a `#permission=` link;
254
+ - the guard of the hand-over button;
255
+ - whether the window stays open, settled at the hand-over;
256
+ - the answer awaited, settled at the hand-over;
257
+ - the rule of which permissions go back at once;
258
+ - the last run of what was pasted;
259
+ - the focus.
260
+ - Changed tests, whose behaviour the design changes:
261
+ - in `test/sign-window.test.mjs`: the new permission's test (the fingerprint given, the press, and the window now stays open); the test of a page not opened as a window (the fingerprint and the press before the way back); and the renewal of a permission whose passkey belongs to another website. Its key set is new to the device, so an empty field and a wrong start are refused and then the fingerprint is given, and nothing vouches for its passkey, so it now goes back only on the press and its window stays open;
262
+ - in `test/sign-window-review.test.mjs`: P1, P4 and the test of an answer from another window (the fingerprint and the press; the last now waits for "Kept by the application" where it waited for the window to close).
263
+
264
+ - **The recorder beside Claude Code: `init` starts the recorder that waits, and the words of the waiting state** (`integrations/claude-code/`, in `provared-claude-code` 0.2.0).
265
+ - *`init`.* After it makes the keys and writes the hooks (or none), `init` starts the recorder in the background where the folder is fresh (`freshFolder`), through `ensure`'s own start, so that it waits for the agent's first permission. It then prints the fingerprint of the agent's key set, says that the signing window asks for it (the whole of it, or at least its first 16 characters), and gives the steps: open the application, make a book, run its one line on this computer, approve what the agent may do in the signing window, keep that window open, then `admit-passkey` with the thumbprint the signing window shows (at least its first 16 characters) and a typed `yes`. It no longer prints the link to the signing page. `init --link` prints the link, the fingerprint and the `use <the saved file>` step, and also starts the recorder that waits, so either way works; `--link` and `--no-hooks` combine, and any other argument prints the usage text and ends with 2, writing nothing. Run again in a fresh folder, `init` leaves the recorder that answers as it is, and says that it waits. Where the folder is not fresh, `init` starts nothing, changes nothing in the record but keys it had to make (which it names, saying that a permission in place does not name the agent's new keys), and says what is there: a permission in place (with `ensure` to start the recorder, or that the recorder runs with it), or the files that show a permission was taken here (with `use <the saved file>`). Where the start fails (what answers on the port is not this folder's recorder waiting for its first permission, or nothing answers within 20 seconds, counted for the whole start), the keys and hooks stay, `init` says what failed and to run `ensure`, and ends with 1. The usage text says all of this.
266
+ - *The words of the waiting state.* `ensure` and `status` (on the standard error, beside the JSON, which stays JSON) say the same steps where the recorder that answers waits, with `use <the saved file>` as the other way. The start of a session, where the agent's keys are there and no recorder answers, now runs `ensure`, which starts the recorder that waits in a fresh folder and says the steps; with no keys it still points to `init`, whose words now say that it starts the recorder, with `init --link` and `use` as the way without the application. The hook's refusal of a tool call while the recorder waits now says that no permission has been signed yet and gives the same steps in short, instead of calling the call "outside the permission the person signed"; with no recorder running, it points to `init` where the agent's keys are not made yet, and to `ensure` where they are.
267
+ - Tests. New, in `test/init.test.mjs`: `init` in a fresh folder leaves a recorder answering `/status` with `waiting: true`, prints the fingerprint the library gives and the steps, and no link; run twice, one recorder, the first; `init --link` prints the link, the fingerprint and `use`, and the recorder waits too, in either order of the switches, and a wrong argument writes nothing; where a permission is in force, nothing is started and every file in the folder is unchanged, and with the full recorder running it runs on with its book unchanged; a folder that is not fresh is named; a start that fails, against another recorder's answer and against a port that answers nothing, is said, names `ensure`, ends with 1 and leaves the keys and hooks; `ensure`, `status` and the start of a session say the steps, and the start of a session starts the recorder that waits; the hook's refusal while waiting, and with no recorder, with and without keys. All ten failed before the change. Changed tests, whose behaviour the design changes (`init` alone prints no link, and starts a recorder that each test must stop): in `test/signing-link.test.mjs` and `test/setup.test.mjs`, `init` became `init --link`; in `test/plugin.test.mjs`, `init --no-hooks` became `init --no-hooks --link`, the next command looked for is `admit-passkey`, and the test stops the recorder; in `test/review1.test.mjs`, the `disableAllHooks` test stops the recorder.
268
+
269
+ - **The Hermes plugin and the guard print the fingerprint of the agent's key set** (`python/integrations/provared-hermes/`, `mcp-executor/`, in `provared-mcp-executor` 0.5.3 and the Hermes plugin 0.1.1), which the signing window asks for before it signs a permission for keys it has not seen.
270
+ - *Hermes.* `hermes provared init` prints "The fingerprint of the agent's key set: …", worked out with the Python library's `key_set_fingerprint`, and one line saying that the signing window asks for it (the whole of it, or at least its first 16 characters). New tests, in `tests/test_init.py`: the printed value is the fingerprint of the keys `init` made, and the same when it runs again; for the keys of the shared test file `test-vectors/seal-key-sets.json` ("an agent's key set"), which the JavaScript library writes, the printed value is the one the JavaScript `keySetFingerprint` gave. Both failed before the change.
271
+ - *The guard.* `provared-mcp-executor keys` prints, on the standard error, the fingerprint of each agent's key set with `keySetFingerprint`, whether or not a central sealer is set, and says that the signing window asks for it; where a central sealer is set, the same line says that the sealer is told it too. Before, it printed the fingerprint only where a central sealer was set. Tests: in `test/newcomer.test.mjs`, the test of `keys` now expects two lines on the standard error, the second the fingerprint the library gives (it expected one line before, and fails without the change); in `test/http-cli.test.mjs`, the fingerprint of each of the two agents (fails without the change).
272
+
273
+ - **The recorder beside Claude Code: a test of the first permission from end to end** (`integrations/claude-code/test/end-to-end-first-permission.test.mjs`, test code only): `init` run as a command leaves a recorder that waits; a feed reader reads `GET /agent` and hands over permissions of the same wording from passkeys A and B, which both wait; `admit-passkey` alone, or with `yes` from a pipe, takes nothing; A's first 16 characters and `yes` take A's, and B's still waits and is not taken; the first call inside is allowed and recorded, one outside is refused; `seal` and `check` pass, the book names A only and the trusted list holds A only. It fails where the waiting recorder takes a permission without the thumbprint and `yes`. `test/world.mjs` gains an optional time limit and settings for the commands it runs, and `within`, now shared with `test/waiting-admit.test.mjs`.
274
+
275
+ - **The recorder beside Claude Code: fixes to `init`, `ensure` and the words of the waiting state, after a review** (`integrations/claude-code/`, in `provared-claude-code` 0.2.0).
276
+ - *Other keys under the recorder that waits.* Where the agent's keys were made again while the recorder that waits ran, `init` and `ensure` now compare the fingerprint of the key set in its status (`agentKeySet`) with that of the keys in the folder. Where they differ, they say that the running recorder holds other keys than the ones just printed (`ensure`: than the folder's), that the signing window will say they do not match, and to restart it with `stop` then `ensure`; they give no steps, stop nothing, and end with 1. The start of a session says the same. Before, they said the recorder waited for this agent and ended with 0.
277
+ - *One time limit.* `ensure`, and `init` through it, keep to 20 seconds in all, on the monotonic clock: the question to the port, the start and the wait for an answer. Where the port is held by a program that takes the connection and never answers, the question ends with that time, no recorder is started, and they say so and end with 1. Before, each question could wait 60 seconds and up to 80 were asked. The start of a session keeps its own 27 seconds, now on the monotonic clock too.
278
+ - *What is refused while the recorder waits.* The words of `init`, `ensure`, `status`, `start`, `use`, the start of a session with no keys yet, and the waiting recorder's answers no longer say that every tool call is refused: each call the recorder checks is refused, and the hook never asks it about a question to the person, the plan, the list of tasks, a skill, a search for tools or the end of the conversation, which go ahead (`NOT_RECORDED`, in `actions.mjs`).
279
+ - *The key files.* The agent's and the recorder's key files are made only where there is none (`wx`, as the feed's token is). Where another run made the file meanwhile, its keys are read, so two `init` runs at once print the same fingerprint.
280
+ - *A permission in place.* `init` checks that what answers on the port names this folder; where it does not, it says so, names `ensure`, and ends with 1, instead of saying that the recorder runs with the permission. Where `init` made keys in a folder that is not fresh, it names them, and says that the permission in place does not name the agent's new ones; it no longer says that nothing in the record was changed.
281
+ - *The fingerprint.* `init` and `keys` print the same words: the signing window asks for the fingerprint to be pasted; copy it from the terminal only once the signing window has opened, and check that the box then shows the one printed. `keys` no longer says to compare the two.
282
+ - Tests, in `test/init.test.mjs`: each of these, and `init` counting no start where what answers names this folder but does not say `waiting: true`, and printing no steps where the recorder did not start. Each fails with its fix undone, but the test of two `init` runs at once, which can pass by chance without it; two makings of the key files at once in one process fail without it every time. `test/fresh.test.mjs` stops a recorder that two of its tests did not expect, and fails if it still answers.
283
+
284
+ - **The guard's Docker recipe for claude.ai shows the fingerprint of each agent's key set** (`mcp-executor/recipes/claude-ai/compose/start.mjs`, in the repository's recipe, from the guard 0.5.3). The steps the start prints while the guard waits for its permission now give, for each agent, the fingerprint of its key set, worked out with the library's `keySetFingerprint` from the keys in `permission-entries.json`, and say that the signing window asks for it, to be copied once the window has opened. Before, the start ran `keys` and kept its standard error, so nothing showed the fingerprint. Where the file cannot be read, the steps say so and not to sign without it. Tests, in `test/recipe-compose.test.mjs`: `nextSteps` with and without the file, and the start from an empty folder shows the fingerprint of the keys it made (fails without the change).
285
+
286
+ - **The documents of the first permission through the feed, and the last words of "every tool call"** (`integrations/claude-code/`, `connect/`, `mcp-executor/`, `python/integrations/provared-hermes/`, `docs/threat-model.md`, in the packages named, and in `provared` 0.9.2 for the threat model). The recorder's README says that `init` starts the recorder that waits in a fresh folder and prints the fingerprint and the steps with no link, `init --link` the link; that the signing window asks for the fingerprint, copied once it has opened; `admit-passkey` with the thumbprint from the signing window and `yes`; the waiting state in `ensure`, `status`, the start of a session and the hook, and which calls are refused; the 20 seconds of a start; the one port and the feed's proof on `/admit` and `/renew` with a new passkey; and the commands table, the plugin's section the same. The uploader's README says what it hands over again (`waits-for-yes`, `nothing-in-force`), the agent note and the pause with no book. The guard's README and its claude.ai recipe say that `keys` and the start always give the fingerprint of each agent's key set, which the signing window asks for; the Hermes plugin's README that `init` prints it. The threat model's section on the slip says that for a first passkey the thumbprint and `yes` typed by the person are the only guard, what a program on the same computer can and cannot do, and what the fingerprint check in the signing window protects against and what it does not. In the recorder's messages, a permission not yet in force, the start of a session where the recorder does not start or a settings file is too large, the hooks in force twice, the plugin installed beside `init`'s hooks, and the plugin that cannot run now say that each tool call the recorder checks is refused (or would check, where it does not run), not every one; the start of a session where the recorder does not start names the kinds never asked about. Message text only; the four checks of these words in `test/plugin.test.mjs` read the new words.
287
+
288
+ - **The gateway's `keys --agent` prints the fingerprint of the agent's key set** (`gateway/`, in `provared-gateway` 0.1.1). On its standard error, worked out with the library's `keySetFingerprint`, in the guard's words: the signing window asks for it, the whole of it or at least its first 16 characters, and it is to be copied only once the window has opened. The gateway's README says so. Test: `gateway/test/cli.test.mjs` (fails without the change).
289
+
290
+ - **Hermes's `init` and the guard's `keys` say to copy the fingerprint only once the signing window has opened** (`python/integrations/provared-hermes/`, `mcp-executor/`, in `provared-mcp-executor` 0.5.3 and the Hermes plugin 0.1.1). Both now add the recorder's `init` sentence: "Copy it from here only once the signing window has opened, and check that what the box then shows is the one printed here." Tests: `tests/test_init.py` and `test/newcomer.test.mjs` read it word for word (both fail without the change).
291
+
292
+ - **The words around the fingerprint, made the same everywhere** (`integrations/claude-code/`, `mcp-executor/`, `gateway/`, in `provared-claude-code` 0.2.0, `provared-mcp-executor` 0.5.3 and `provared-gateway` 0.1.1, and in `provared` 0.9.2 for the threat model). The steps that `ensure`, `status` and the start of a session repeat now say to copy the fingerprint only once the signing window has opened and not to sign if the window says it does not match. The guard's `keys` and the gateway's `keys --agent` add "If the window says it does not match, the keys it holds are not this agent's: do not sign.", as the recorder's `init` and Hermes's `init` say. The threat model says that keeping out another account's program holds where the recorder's folder is the default one under the person's home: on Windows the token file takes the folder's access list, and an administrator can read it anywhere. Tests: `test/init.test.mjs`, `mcp-executor/test/newcomer.test.mjs` and `gateway/test/cli.test.mjs` read the words (each fails without the change).
293
+
294
+ - **The recorder beside Claude Code: `status` where the recorder that waits holds other keys** (`integrations/claude-code/`, in `provared-claude-code` 0.2.0). Where the agent's keys were made again while the recorder waited, `status` now says on its standard error that it holds other keys than the folder's, with both fingerprints and the cure (`stop`, then `ensure`), as `init` and `ensure` do, in place of the waiting steps. Its JSON and its exit code (0) are unchanged. The README says so. Test: `test/init.test.mjs` (fails without the change).
295
+
296
+ - **The recorder beside Claude Code: the hooks in force twice** (`integrations/claude-code/settings-hooks.mjs`, in `provared-claude-code` 0.2.0). The message now says that each tool call the recorder checks, not each tool call, would be asked about and recorded twice: the plugin's hook refuses only those, and the tools the recorder is never asked about go ahead. Word-for-word checks in `test/plugin.test.mjs` and `test/renew.test.mjs` now read that message and three others changed earlier in this release (a permission not yet in force, a settings file too large at the start of a session, the plugin installed beside `init`'s hooks); each fails with the earlier words.
297
+
298
+ - **`provared-mcp-executor` 0.5.2 (published by hand to npm on 23 November 2026): a security fix, and the faults found by the check against the MCP TypeScript SDK's advisories of October 2026.**
299
+ - **Upgrade notes: what a user may notice after 0.5.1.**
300
+ - A body over 4 MiB is refused (413): the default `bodyLimit` was
301
+ 10 MiB. Set `bodyLimit` to take larger ones.
302
+ - One agent's bodies in flight together, and the upstream's answers
303
+ the executor holds for it, are each held to `waitingBytes` (32 MiB):
304
+ past it a request, or an answer, is refused with 503.
305
+ - A message of more than 100,000 elements is refused (over HTTP with
306
+ 400, over stdio with JSON-RPC error -32600), on every transport, and
307
+ no setting changes the number. A tool server's
308
+ answer of more is not read: it is handed on as it came, and the
309
+ call's receipt says the answer could not be read. But a `tools/list`
310
+ answer of more is answered with an error (-32603), unless
311
+ `hideUnlisted` is false and `allowTasks` true: a list of many tools
312
+ may pass that limit.
313
+ - Without `allowTasks`, an answer to `initialize`, `server/discover` or
314
+ `tools/list` that holds a result is read and written out afresh, to
315
+ take the offer of tasks out of it; one that holds no result is
316
+ handed on as it came.
317
+ - In front of an upstream, tasks are refused until `allowTasks` is
318
+ true: every `tasks/` request, a request with `params.task`, and a
319
+ subscription that names tasks. The upstream's offer of tasks is not
320
+ handed on (`capabilities.tasks`, and the 2026-07-28 tasks extension
321
+ in `capabilities.extensions`), and that extension is taken out of
322
+ what an agent declares, so a tool server that follows the
323
+ specification answers a call at once.
324
+ - `allowTasks: true` is a settings error unless the settings name
325
+ exactly one agent: with more, the executor does not start.
326
+ - In front of an upstream with more than one agent, a GET stream
327
+ without a session is refused (405): there, an agent gets no
328
+ list-change notices on such a stream, and cannot resume a broken
329
+ stream by a GET with no session.
330
+ - An agent's response is refused (400) unless it answers a request the
331
+ upstream sent to that agent, under the same session, once.
332
+ - `Last-Event-ID` is dropped unless it names an event the executor
333
+ gave that agent.
334
+ - A `notifications/cancelled` cuts a call only under the call's own
335
+ session.
336
+ - A session the upstream opened under one OAuth connection is answered
337
+ 404 under another connection of the same agent; the client begins a
338
+ new session.
339
+ - The security advisory: https://github.com/provared/provared/security/advisories/GHSA-2frr-c2h5-hcwc
340
+ - **Versions.** 0.5.2 in `package.json`, its lockfile and `server.json`
341
+ (both fields); the `npm pack` file name in the README. The root
342
+ README, the home page and "Provared in three minutes" name 0.5.2 as
343
+ the guard's version, and the home page's "What is new" has an entry
344
+ for it. Both recipes build 0.5.2: their `package.json` files name it,
345
+ and their lockfiles were made from npm after 0.5.2 was published, with
346
+ npm's hash
347
+ (`sha512-MCN+r5eYBDQu8VvW8hNyZMSA/l+wiXsNRmv8JlLiYXRhxfY0CoSj0DV3Pg/6UNCy/1U1N54Jf+rTp2M8q0p4gA==`);
348
+ `node tools/release/check-recipe-lock.mjs --registry` passes. The
349
+ claude.ai recipe's README, the Dockerfile's comment and the Docker
350
+ check's examples name 0.5.2. Still asks for `provared` 0.9.0.
351
+ - **What one agent's messages may hold (F1).** With 0.5.1 each request
352
+ was bounded (a body of 10 MiB, no batch, 256 levels of nesting, 256
353
+ requests in flight for an agent) but nothing bounded the number of
354
+ elements in a message, nor what one agent's requests held together, and
355
+ a request kept its message as read until the upstream answered. So one
356
+ signed-in agent could, with requests inside every limit, end the
357
+ executor ("JavaScript heap out of memory") for every agent: six 10 MiB
358
+ requests of one-item lists at once with a heap of 1 GiB, and two 10 MiB
359
+ tool calls with the heap the claude.ai recipe's container gives (likely:
360
+ measured with the same limit, not in the container); or stall every other agent's
361
+ answers for seconds at a time. Now: the bodies of one agent's requests
362
+ in flight may hold `waitingBytes` together (new setting, default 32 MiB,
363
+ as the gateway's), each counted from its declared length or its first
364
+ byte until its request has been answered, past which the request is
365
+ refused with 503 and read no further; a message of the agent's of more
366
+ than 100,000 elements (list items and member names, `MAX_ELEMENTS` in
367
+ `jsonrpc.mjs`, a fixed number that no setting changes) is refused
368
+ before it is read (over HTTP with 400, over stdio with -32600),
369
+ counted in the one walk of the text that also finds its depth; a
370
+ request that only passes through lets go of its message as read once
371
+ it has been sent on (measured: a held request of 383 KiB of small
372
+ objects kept about 850 KiB of the heap in place of 3.1 MiB); and `bodyLimit` is
373
+ 4 MiB by default, the SDK's, in place of 10 MiB. The claude.ai recipe's
374
+ settings take bodies of 1 MiB. One agent's messages are read one at a
375
+ time, each in a turn of the event loop of its own: read back to back,
376
+ 30 messages of 1 MiB with 95,000 member names each held the thread for
377
+ 9 to 11 seconds while another agent's ping waited; now that ping waits
378
+ for about one of them for each step of its own exchange (measured on
379
+ Windows: 0.6 to 0.9 seconds, each read 0.16 seconds). On Linux this
380
+ does not hold: in the same test another agent still waited 7.3
381
+ seconds. That is a known limit; the test runs on Windows only. Tests: `test/limits.test.mjs`.
382
+ - **Tasks in front of an upstream (F2).** With 0.5.1 every request but a
383
+ tool call passed through unchecked, under the executor's one
384
+ credential, so an upstream that keeps tasks for its caller rather than
385
+ for a session let one agent list another's tasks (`tasks/list`), take
386
+ its result (`tasks/result`) and cancel it (`tasks/cancel`), with
387
+ nothing in that agent's book and no line in the log. Now tasks are
388
+ refused unless the new setting `allowTasks` is true: a `tasks/` request
389
+ with JSON-RPC error -32601, a request that asks for a task
390
+ (`params.task`) with -32602, each under the request's id with 200, as
391
+ the executor's other refusals of a request it has read, and nothing is
392
+ sent. With
393
+ `allowTasks` (which now needs exactly one agent: see below), each task
394
+ is held to the agent whose call made it:
395
+ `tasks/get`, `tasks/result` and `tasks/cancel` for another agent's task
396
+ are refused and not sent, `tasks/list` comes back with the agent's own
397
+ tasks alone, and an event that names another agent's task is dropped
398
+ from its streams. `Last-Event-ID` goes on only where it names an event
399
+ the executor gave that agent, so an upstream that replays a stream by
400
+ event id alone no longer replays one agent's stream to another. The
401
+ README says that to the upstream all agents are one caller. Tests:
402
+ `test/tasks.test.mjs`; two tests of a fast stream in
403
+ `test/http.test.mjs` now open the made-up upstream's fast stream by its
404
+ session, since a `Last-Event-ID` no event gave is no longer sent on.
405
+ - **Two sessions of one agent in front of an upstream (F3).** With 0.5.1
406
+ a call in flight was held by the agent and its id alone, so a second
407
+ session of the same agent was refused a call under an id in flight in
408
+ the first, and its `notifications/cancelled` for that id cut the first
409
+ session's call, whose receipt then said the agent had cancelled it.
410
+ Now, where a request names a session, a call is held by that session
411
+ and its id, as in front of a local program, and a cancellation under a
412
+ session names a call of that session only. No other agent could do
413
+ either. Test: `test/upstream-sessions.test.mjs`.
414
+ - **A session outlived its OAuth connection in front of an upstream
415
+ (F4).** With 0.5.1 an upstream's session was remembered for the agent's
416
+ name alone, so after a second approval of the same agent, the new
417
+ connection could go on under a session the first connection had begun,
418
+ if it knew the session's id. Now the session is also held to the
419
+ connection it was begun under, as in front of a local program: used
420
+ under another, it is forgotten and answered 404. Test:
421
+ `test/upstream-sessions.test.mjs`.
422
+ - **The recipe `agent-with-a-shell` (F5).** Its stand-in tool server read
423
+ the whole of any body, with no limit, before it checked the token; now
424
+ it checks the token first, refuses a body over 4 MiB (413) and reads
425
+ no further. The recipe installed the guard 0.3.0 by name, with no
426
+ lockfile; now it installs 0.5.2, the version the claude.ai recipe
427
+ builds, with `npm ci` from `guard/package-lock.json`, whose hashes are
428
+ the claude.ai recipe's, npm's own (`npm ci` from npm's registry
429
+ passed with it on 23 November 2026; with the 0.5.1 lockfile,
430
+ `npm ci --offline` from a local cache passed, and the recipe's set-up
431
+ of the guard gave settings that 0.5.1's `check` reads with no
432
+ problem). The SDK
433
+ (1.32.2) is installed the same way, with `npm ci` from the recipe's
434
+ `package-lock.json` (95 packages, each with npm's hash), made from
435
+ npm's registry. The recipe has not been run since. Test:
436
+ `test/recipe-shell.test.mjs` runs the stand-in server with a made-up
437
+ stand-in for the SDK.
438
+ - In front of an upstream, the upstream's answers to an agent (up to
439
+ 16 MiB each, 256 at once) were outside the agent's byte budget, so one
440
+ agent could make the executor hold gigabytes of answers it did not
441
+ read. Now what the executor holds of them for one agent is held to
442
+ `waitingBytes`, counted apart from the agent's bodies: past it a JSON
443
+ answer is refused with 503 (a call is recorded with its outcome not
444
+ known) and a stream is closed; other agents go on. Test:
445
+ `test/limits.test.mjs`.
446
+ - In front of an upstream that keeps no sessions, the upstream's own
447
+ requests and notifications on a GET stream could reach whichever agent
448
+ had opened one, and any agent's response under a request's id went on
449
+ to the upstream, so one agent could answer a request sent to another.
450
+ Now, with more than one agent, a GET without a session id is answered
451
+ 405 and does not reach the upstream; and an agent's response goes on
452
+ only where it answers a request of the upstream's that the executor
453
+ handed on to that agent, under the same session, once (the last 1,000
454
+ for each agent); any other is refused with 400. Tests:
455
+ `test/upstream-streams.test.mjs`; the tests that opened GET streams
456
+ with two agents now open them under a session.
457
+ - Tasks of the 2026-07-28 revision, an extension the client declares and
458
+ the server decides on, were not covered: with the default settings a
459
+ call became a task that its own agent could then not fetch, and
460
+ another agent could subscribe to it (`subscriptions/listen` with
461
+ `notifications.taskIds`) and be given its result. Now, without
462
+ `allowTasks`, the extension is taken out of what is sent on, so the
463
+ upstream answers at once; a subscription that names tasks is refused
464
+ and not sent; and a call answered with a task all the same has its
465
+ outcome not known. With `allowTasks` (one agent only: see below), the
466
+ flat handle
467
+ (`result.resultType` `"task"`, `result.taskId`) is learnt from any
468
+ answer, `tasks/update` is served to the task's agent alone, a
469
+ subscription goes on only where every task it names is the agent's,
470
+ `notifications/tasks` of another agent's task is dropped, and a task
471
+ named in answers to two agents is neither's. The README now says
472
+ which revisions are covered. Tests: `test/tasks.test.mjs`.
473
+ - With tasks not allowed, the upstream's offer of tasks still reached the
474
+ agent, so a client could be asked by the upstream to call a tool as a
475
+ task, which the executor then refused. Now, without `allowTasks`, the
476
+ answer to `initialize` or `server/discover` loses `capabilities.tasks`,
477
+ and each tool in a `tools/list` loses `execution.taskSupport`. Test:
478
+ `test/tasks.test.mjs`.
479
+ - A tool server's answer of many small elements (15 MiB of one-item
480
+ lists) ended the executor at the claude.ai recipe's heap, once read:
481
+ the limit of 100,000 elements held only for the agent's messages. Now
482
+ it holds for the server's too, on every transport: past it, the answer
483
+ is not read; a call's is handed on as it came, its receipt saying the
484
+ answer could not be read; and a `tools/list` that is to be filtered is
485
+ answered with an error. And a call sent on unchecked
486
+ (`"unlisted": "forward"`) kept its message as read until the upstream
487
+ answered, as requests did before F1 (measured: 3.1 MiB held for
488
+ 383 KiB of text); now it lets go of it once sent. Tests:
489
+ `test/limits.test.mjs`.
490
+ - Sentences that were not true, or no longer, are mended: the SDK's
491
+ lockfile in `agent-with-a-shell` (above), DESIGN's word that a GET with
492
+ no session id passes (it is refused with 405 where there are several
493
+ agents), X112's list of the executor's statuses (the new 405, the two
494
+ 503s, the 400 for a response not asked for, and ids counted by session
495
+ where one is named), and the README on what `waitingBytes` counts
496
+ (bytes as they came; the memory they take is several times that).
497
+ - Seven parts of these fixes could be taken out with no test noticing.
498
+ Each was given a test that fails without it; one of those tests was
499
+ later removed with the one-agent rule (below). They are: the session
500
+ in the key of
501
+ a cancellation (`test/upstream-sessions.test.mjs`, whose step had come
502
+ after the call it was to cancel had ended); methods and `params.task`
503
+ in other capitals (`test/tasks.test.mjs`); a message that ties itself
504
+ to another agent's task (its test removed, as below); the session in the key of an answer to
505
+ the upstream's request (`test/upstream-streams.test.mjs`); the budget
506
+ given back when an unread answer's connection closes
507
+ (`test/limits.test.mjs`, which skips where the computer's connection
508
+ takes the whole answer at once, as Windows does; on Linux it runs and passes); the claude.ai
509
+ recipe's `bodyLimit` (`test/recipe-compose.test.mjs`); and `npm ci`
510
+ for the SDK in `agent-with-a-shell` (`test/recipe-shell.test.mjs`).
511
+ - `test/recipe-shell.test.mjs` did not load on a clean checkout, where
512
+ nothing is installed: it named the library before `local-library.mjs`
513
+ was loaded. It now loads that file first. A new test,
514
+ `test/test-files.test.mjs`, loads every test file with the library kept
515
+ out of `node_modules`.
516
+ - `allowTasks: true` is now a settings error unless the settings name
517
+ exactly one agent, because several agents share one caller at the tool
518
+ server, so one agent could reach another's task. With several agents,
519
+ tasks are refused as without `allowTasks`. The code that holds each
520
+ task to its agent is kept. The tests of tasks with `allowTasks` now use
521
+ one agent; the three checks that need a second agent (a message tied to
522
+ another agent's task, another agent's notifications, a task named to
523
+ two agents) have no test, since those settings no longer start. Test:
524
+ `test/tasks.test.mjs`.
525
+ - With `allowTasks`, a client of the 2026-07-28 revision could not fetch
526
+ its task: it must send the task id in the `Mcp-Name` header on
527
+ `tasks/get`, `tasks/update` and `tasks/cancel`, and the executor
528
+ refused (400) any `Mcp-Name` on those methods. Now `Mcp-Name` there is
529
+ checked against `params.taskId` and sent on; one that differs is still
530
+ refused with 400 and not sent. Test: `test/tasks.test.mjs`.
531
+ - Without `allowTasks`, the 2026-07-28 offer of tasks still reached the
532
+ agent (`capabilities.extensions["io.modelcontextprotocol/tasks"]` in
533
+ the answer to `server/discover`), so a client could call a tool that
534
+ needs a task and get the server's error. Now that extension is taken
535
+ out of the answer to `server/discover` or `initialize`, as
536
+ `capabilities.tasks` already was; other extensions are kept. Test:
537
+ `test/tasks.test.mjs`.
538
+ - Taking the offer of tasks out made the executor answer with its own
539
+ error (-32603) where the upstream's answer to `server/discover`,
540
+ `initialize` or (with `hideUnlisted` false) `tools/list` was a page
541
+ that is not JSON, such as an older server's 404. Now an answer that
542
+ holds no result is handed on as it came, with its status, as before.
543
+ A `tools/list` that `hideUnlisted` filters is answered with the error
544
+ as before. Test: `test/tasks.test.mjs`.
545
+ - Where the tasks extension was taken out of a request that is not a
546
+ call, the request was written out afresh and its numbers changed
547
+ (`[1.0,1e2,0.1000000000000000055,-0]` went on as `[1,100,0.1,0]`, and
548
+ `1e400` as `null`). Now every number goes on as the agent wrote it.
549
+ And where the offer of tasks was taken out of an answer, a number
550
+ where an object was looked for (`capabilities`, `extensions`, a tool's
551
+ `execution`) went on as `{"rawJSON": ...}`; now it goes on as
552
+ written. Test: `test/tasks.test.mjs`.
553
+
554
+ - **The recorder beside Claude Code, `provared-claude-code` 0.1.1: a web page cannot use its port.** With 0.1.0, a web page open in a browser on the same computer could ask the recorder to take a permission, trust a passkey, write a receipt for a call that never happened, or stop. 0.1.1 refuses what a browser sends for a web page, or under another website's name, on every route of the recorder's port, and for it reads and writes nothing. 0.1.0 is affected, and updating is not enough on its own: a recorder already running keeps the code it started with until it is restarted. After updating, restart it once, with both commands on one line so that no tool call falls between them: `provared-claude-code stop; provared-claude-code ensure`. With the Claude Code plugin, they are `node <the plugin's folder>/plugin.mjs stop; node <the plugin's folder>/plugin.mjs ensure`. A tool call does not start the recorder: while it is stopped, tool calls are refused, until `ensure` or the start of the next Claude Code session (with the plugin) starts it. From 0.1.1, `ensure` and the start of a session say so where the recorder that answers is not the version installed, with these commands; they do not stop it.
555
+ In `integrations/claude-code/recorder.mjs`, every route, the feed's four (`/hello`, `/books`, `/lines` and `/hand-over`) among them, first refuses, before it reads the body, a request with an `Origin` header, with a `Sec-Fetch-Site` header other than `none`, or with a `Host` other than `127.0.0.1:<port>` (on port 80, `127.0.0.1` alone as well, as a client sends it there), and answers 403. Every route but the feed's then refuses, with 415, a POST whose `Content-Type`, read before the first `;`, trimmed and in any case, is not `application/json`. The port is kept once the recorder listens, so a request that came before the port closed (`close()`, or `POST /stop`) is still answered and its call recorded. Where the file `feed-token` holds no token, the feed's answer no longer names the folder, whose path names the person's account; the recorder's status still gives it. The status gives the package's version, from its `package.json`, as `version`. The hook, the recorder's commands, the feed's reader in `feed.mjs` and the uploader in `connect/upload.mjs` already sent all of this; the tests that ask the recorder directly, in `integrations/claude-code/test/` and `connect/test/`, now send `Content-Type: application/json` too, and three requests that `test/handover.test.mjs` writes by hand now name the port in `Host`. Any program on the computer can still use the port, as before; the README says so, in "What the record shows, and what it does not". `package.json`, its lockfile and `.claude-plugin/plugin.json` say 0.1.1, and the README names 0.1.1 where it names the version. New tests, in `test/local-port.test.mjs`: each route, with each of those headers wrong in turn (`Sec-Fetch-Site` of `same-site` or any value but `none`, a `Content-Type` that only names `application/json` after a `;`), is refused, the trusted passkeys, the permission in force and every file in the folder are unchanged, and the recorder still runs; a POST is refused with its body never sent; the feed's four routes refuse such a request and give it no session and no proof, and the feed's reader is still answered; a call whose request came before `close()` or `POST /stop` is answered and recorded; on port 80, `Host: 127.0.0.1` is taken (where port 80 can be taken); `ensure`, with an earlier recorder answering, says so and stops nothing. In `test/feed.test.mjs`, the feed's answer where its token file holds no token names no folder; in `test/plugin.test.mjs`, the start of a session says so where the recorder that answers is an earlier version. With any one of the checks taken out, a test fails. Published on npm on 22 November 2026, with the advisory GHSA-cj2m-rqh6-5984.
556
+
557
+ - **The gateway countersigns with a key set of its own** (`gateway/`,
558
+ `provared-gateway` 0.1.0, on npm since 22 November 2026). Where the settings give the
559
+ gateway its own keys (`gateway`) and an agent's slip names them in `with`
560
+ for an upstream's service, the gateway countersigns each call to it that
561
+ it lets through, with the library's `countersign` (format description,
562
+ section 6), keeps its own tagged copy of the agent's calls apart from the
563
+ book (`gateway/copy.mjs`), and `provared-gateway compare` holds the copy
564
+ against the book, as the MCP executor's does. `provared-gateway keys
565
+ --gateway` makes the key file and prints the slip's `with` entries. The
566
+ package lists its new files, asks for `provared` 0.9.0 exactly, and has a
567
+ change log of its own (`gateway/CHANGELOG.md`). The library does not
568
+ change.
569
+ - **The gateway after the review of its countersignature** (`gateway/`,
570
+ in 0.1.0). The gateway has a `with` entry of its own (`gateway`
571
+ by default), which every receipt of an agent whose slip names it then
572
+ names, so that its countersignature no longer reads as an upstream's. Its
573
+ own copy, not the journal, decides at a start what happened to a call: a
574
+ call the copy shows as sent and not finished waits for the administrator,
575
+ a journal line the copy does not hold is never given a stub, and a stub
576
+ found in the book settles a call only where it is the call the copy shows,
577
+ countersigned. `compare` holds each receipt's content and countersignature
578
+ against the copy, reports more than one receipt for a call, and agrees
579
+ only where the book is fully checked and within its slips. Unknown
580
+ settings are refused. Details in `gateway/CHANGELOG.md`. The library does
581
+ not change.
582
+ - **The gateway after a re-check of those fixes** (`gateway/`, in 0.1.0). With a copy, only the copy's own `set-aside` line sets a call
583
+ aside: a call that the file beside the journal names and the copy shows
584
+ open stops the agent and is listed (`set-aside-not-in-copy`). A journal
585
+ line the copy lacks is passed over where the book holds the stub that is
586
+ that call, so a gateway first given keys, or one whose copy was lost, is
587
+ not stopped by calls whose receipts are sound. `compare` checks the
588
+ countersignature of a stub written at a later start. A found stub needs
589
+ the gateway's countersignature wherever its slip names the gateway's id
590
+ with keys, not only its present keys. `acknowledge` looks at the book
591
+ again before each stub, so trying again writes none twice. After a second
592
+ re-check, `acknowledge` first makes sure the book file holds the book in
593
+ memory, as the guard does, so a failed write of that file is never
594
+ followed by a call settled from a stub only in memory; the README says to
595
+ settle open calls before changing the gateway's `id`, and that a call
596
+ whose `set-aside` line the copy could not take comes back at the next
597
+ start. Details in `gateway/CHANGELOG.md`.
598
+ - **`provared-mcp-executor` 0.5.1 (published by hand to npm on 22
599
+ November 2026): the MCP executor after the same review.** Review 3.4 of
600
+ the gateway's countersignature found the same gaps in the executor. The
601
+ executor still asks for `provared` 0.9.0, exactly.
602
+ - **Versions.** 0.5.1 in `package.json`, its lockfile and `server.json`
603
+ (both fields); the `npm pack` file name in the README. The README says
604
+ the guard is listed in the MCP Registry, without naming a version. The
605
+ root README, the home page and "Provared in three minutes" name 0.5.1
606
+ as the guard's version, and the home page's "What is new" has an entry
607
+ for it. The recipe (`recipes/claude-ai/compose/`) builds 0.5.1: its
608
+ `package.json` names it, and its lockfile was made from npm after 0.5.1
609
+ was published, with npm's hash
610
+ (`sha512-j36/cBjICI7o0YxmpfB78l27fZ+MpSFzpgAX3JpjrJ2VHgoUPBdIjKZnHbdssP6sFO63OygLGNwbuN41T2xuJw==`);
611
+ `node tools/release/check-recipe-lock.mjs --registry` passes. The
612
+ recipe's README, the Dockerfile's comment and the Docker check's
613
+ examples name 0.5.1, and the README no longer says the build waits for
614
+ the version to be on npm. The release check's test reads the version
615
+ from the recipe's `package.json`, so it need not change with each
616
+ version.
617
+ - **A receipt found in the book at a start** settles a call the copy
618
+ shows as sent and not finished only where it is the only receipt naming
619
+ the call, it is the call the copy's `sending` line shows (the same
620
+ permission, action, amount and service; the line's documents first,
621
+ then only `provared.tool-result`, `provared.error`,
622
+ `executor.written-late` or `executor.acknowledged`), and, where the
623
+ permission names the executor with keys, it carries a valid
624
+ countersignature. It was taken on its `executor.call` document alone.
625
+ Any other receipt is not written into the copy as the executor's: the
626
+ log says `receipt-not-matching`; over stdio the executor does not
627
+ start, and says so; over HTTP that agent's calls are refused; the call
628
+ is listed for the administrator (`receiptsMissing`, with `inBook`) and
629
+ can only be set aside. The same holds when the administrator
630
+ acknowledges a call whose receipt has reached the book since the start.
631
+ A `found-in-book` line now records whether the receipt was
632
+ countersigned and the countersignature's fingerprint. (`executor.mjs`,
633
+ `copy.mjs`.)
634
+ - **`compare`** holds each receipt it matches against the copy's
635
+ `sending` line (and the documents its `done` line holds), and against
636
+ the countersignature the copy records: a receipt that is not the call
637
+ sent goes to `differs` (each entry now says `why`: `another stub` or
638
+ `not the call sent`); a countersignature missing, not valid, or another
639
+ than the one recorded goes to the new list `countersignatures`; more
640
+ than one receipt for a call goes to the new list `moreThanOne`. The
641
+ summary gains `countersignatureProblems` and `moreThanOneReceipt`, and
642
+ `agree` is false where either is found. `notInCopy` now lists every
643
+ receipt the copy does not know, where before only one for each call
644
+ was kept. (`compare.mjs`.)
645
+ - **`compare`, a receipt written at a later start** (found by a re-check
646
+ of these fixes). Where the copy's `done` line names no receipt and says
647
+ it was countersigned, the receipt in the book must carry a valid
648
+ countersignature; otherwise it goes to `countersignatures` and `agree`
649
+ is false. Before, that branch checked none, so a one-sided receipt put
650
+ into the book for such a call was `matched` and `compare` agreed.
651
+ (`compare.mjs`; the README's "The copy, and comparing it with the
652
+ book"; a test in `test/review5.test.mjs`, with and without the
653
+ countersignature.)
654
+ - **`compare` is stricter in 0.5.1 than in 0.5.0.** `agree` is now true
655
+ only where the book was also fully checked and is within its slips, as
656
+ the gateway's `compare` asks; before, a book outside its slips (a
657
+ receipt under another service, say) or one this computer could not
658
+ fully check still agreed where the copy matched. Such a book now ends
659
+ `compare` with code 1, and `onlySetAside` is false for it, as in the
660
+ gateway. The summary gains `bookFullyChecked` and `bookWithinSlips`,
661
+ and `book` gains `withinSlips`. (`compare.mjs`; the README's "The copy,
662
+ and comparing it with the book"; two tests in `test/review5.test.mjs`.)
663
+ - **Tests** (`mcp-executor/test/review5.test.mjs`, 5): a receipt found at
664
+ a start with other arguments, one-sided, or one of two; one that is the
665
+ call, countersigned; a countersignature taken off or swapped; a receipt
666
+ that is not the call sent; and two receipts for one call, with and
667
+ without another fault. Two more for the administrator's acknowledgement:
668
+ a receipt that reached the book after the start (the executor wrote it,
669
+ and its copy could not say so) settles the call where it is the call
670
+ sent, countersigned; one without the countersignature the permission
671
+ names does not, and the call waits to be set aside.
672
+ - **Three tests that failed now and then** no longer rest on timing they
673
+ do not control. "A seal the sealer signed whose answer never came"
674
+ (`test/central-sealer.test.mjs`) raced the executor's own retry two
675
+ seconds after a failure: on a busy computer the seal was added before
676
+ the test had looked, and it found calls taken. The stand-in sealer now
677
+ holds the executor's questions until the test has looked. "A program
678
+ that is not reading" (`test/http-local-faults.test.mjs`) measured
679
+ "refused at once" on the system clock with a bound of two seconds
680
+ against a timeout of three; it now measures on the monotonic clock,
681
+ with a bound of ten seconds against a timeout of twenty. "An answer of
682
+ the program to nothing in flight" waited five seconds; it now waits up
683
+ to thirty. In every test, `until` (`test/world.mjs`) measures its limit
684
+ on the monotonic clock, so a system clock put forward no longer ends a
685
+ wait at once; and a test's slip lasts a day, not an hour, so a clock put
686
+ forward by more than an hour no longer ends it under a running test.
687
+ - **Documents.** The executor's README ("A call the executor was sending
688
+ when it stopped"; "The copy, and comparing it with the book") and
689
+ DESIGN.md (sections 7 and 8) say so.
690
+ - **`files.mjs` is the gateway's again, byte for byte**, as
691
+ `test/same-files.test.mjs` requires: it takes the gateway's line that
692
+ describes a key file of the gateway's own, which the executor never
693
+ makes. The test failed from the gateway's countersignature commit on.
694
+ - **The home page for businesses.** https://prova.red now opens for businesses that use AI agents a lot: what the guard does, how it works with claude.ai, when it keeps the tools' credentials from the agent, what a record does not prove, and how to try it. The developers' material follows, under "For developers". No code changes.
695
+ - **The pages and READMEs name the guard 0.5.0 as current.** The README, the
696
+ home page and the three-minutes page say the guard is at 0.5.0, and the
697
+ home page's "What is new" has an entry for it. The guard's README says the
698
+ MCP Registry lists 0.5.0 since 21 November 2026, and the recipe's README, the
699
+ design notes and this change log say that 0.5.0 (by hand to npm) and 0.9.0
700
+ (through the workflow) were published on 21 November 2026. Text only.
701
+ 0.5.1 replaces this wording: see its entry.
702
+
703
+ - **The lockfiles carry what npm published.** The guard's lockfile
704
+ (`mcp-executor/package-lock.json`) and the recipe's
705
+ (`mcp-executor/recipes/claude-ai/compose/package-lock.json`) now give
706
+ `provared` 0.9.0 and, in the recipe's, `provared-mcp-executor` 0.5.0, as
707
+ published on npm on 21 November 2026, each with the hash npm gives:
708
+ `sha512-rLql7z1btN6FL+bDIkv1TwCp+ARm98FAU6q2+Exz7hCYvecw/ir3qGU/CPACoNrfXTEYKCY7W3SYyBgs+f1yqA==`
709
+ for the library and
710
+ `sha512-0qIyZIUEDLrjTRlFIpemqKBPLBBXQ4uyC6Kg4W74zgU4yzdFPEkAk9LmUbQu56pSftUmEQQCJei2fGB43OUtDQ==`
711
+ for the executor. The provisional mark (`package-lock.provisional.json`)
712
+ is gone, and `node tools/release/check-recipe-lock.mjs --registry` passes.
713
+ The recipe's tests now expect no mark and a hash on every entry.
714
+
163
715
  - **Static analysis passes again on the executor.** Nine warnings in
164
716
  `mcp-executor` were checked and found to be false alarms: two loops whose
165
717
  condition changes in a callback, six patterns that cannot match the same
@@ -174,9 +726,9 @@ Version 0.8.1 changes how the library reads one kind of time and what the signin
174
726
  the examples, the documents or the tests. Left out of the settings,
175
727
  nothing is asked and nothing changes. No signed byte, label or field's
176
728
  meaning changes; a checker answers as before.
177
- - **The library: `provared/net/timestamp`** is part of `provared` 0.9.0 (not yet
178
- published), and its entry is under 0.9.0 above.
179
- - **The executor** (`mcp-executor/`, part of 0.5.0, not yet released):
729
+ - **The library: `provared/net/timestamp`** is part of `provared` 0.9.0 (published on 21 November 2026 through the
730
+ workflow), and its entry is under 0.9.0 above.
731
+ - **The executor** (`mcp-executor/`, part of 0.5.0, published by hand to npm on 21 November 2026):
180
732
  `recorder.stamp`, `{address, timeout}`, with the same rules, any
181
733
  other member refused (X298). Each seal the executor signs is sent to
182
734
  it. Not beside `recorder.sealer`: a central sealer asks for its own
@@ -204,8 +756,8 @@ Version 0.8.1 changes how the library reads one kind of time and what the signin
204
756
  `stampProblem` (X303).
205
757
  - **Versions.** The sealer and the gateway ask for `provared`
206
758
  `>=0.9.0 <0.10.0`, and the executor for `0.9.0` exactly, the first
207
- version with `provared/net/timestamp` (0.9.0 is not yet published; the
208
- lockfiles' entries for it have no hash until it is). Installed
759
+ version with `provared/net/timestamp` (0.9.0 was published on 21 November 2026 through the workflow; the
760
+ lockfiles now carry npm's hash, as the first entry above says). Installed
209
761
  with an earlier version, a program whose settings give `stamp` is
210
762
  refused at its start, in words that say so: the refusal looks for the
211
763
  client, not for a version number.
@@ -295,7 +847,7 @@ Version 0.8.1 changes how the library reads one kind of time and what the signin
295
847
  - **Not tested:** a seal the book does not take with its time-stamp,
296
848
  since the time-stamp is checked before it is offered.
297
849
 
298
- - **`provared-mcp-executor` 0.5.0 (not yet released).** Six pieces of
850
+ - **`provared-mcp-executor` 0.5.0 (published by hand to npm on 21 November 2026).** Six pieces of
299
851
  work on the executor, each below with its own choices: the fixes of
300
852
  0.4.2 carried over to every transport, with a re-check of the local
301
853
  program; the findings of an independent review of the local program;
@@ -1483,8 +2035,8 @@ Version 0.8.1 changes how the library reads one kind of time and what the signin
1483
2035
  does; a time-stamp signed by any other is not kept
1484
2036
  (`stamp-not-given`, naming who signed it), and the seal goes in
1485
2037
  without it. The library's `askForStamp` and `stampService`
1486
- (`provared/net/timestamp`, part of `provared` 0.9.0, not yet
1487
- published) take `authority` and pass it to `checkStamp` as `trusted`;
2038
+ (`provared/net/timestamp`, part of `provared` 0.9.0, published on 21 November 2026
2039
+ through the workflow) take `authority` and pass it to `checkStamp` as `trusted`;
1488
2040
  `stampAuthority` reads it. Whether or not it is given, a seal that
1489
2041
  carries a time-stamp answers `stampedBy`, the fingerprint of the
1490
2042
  certificate that signed it, in the `seal` answer (executor,
package/README.md CHANGED
@@ -30,8 +30,14 @@ software on protocol version 2025-11-25 only, with every program on one
30
30
  computer; on the newer 2026-07-28 it has met only a test server of its
31
31
  own. The agents' secrets travel in the clear unless something else
32
32
  encrypts the connection to the guard, and so does the tool server's
33
- credential if the tool server is reached by plain HTTP. Sealing the
34
- record and keys held in a key service are designed but not built. And it
33
+ credential if the tool server is reached by plain HTTP. Keys held in a
34
+ key service are designed but not built. Sealing the record is built, in
35
+ the guard from version 0.5.0, with limits that [its README](mcp-executor/README.md)
36
+ lists: among them, where the keys that seal are in the guard's own files,
37
+ whoever can read those files can seal a book of their own; a central
38
+ sealer, a separate program that holds those keys, must run on the same
39
+ computer as the guard; and seals held elsewhere and witnesses are not
40
+ built. And it
35
41
  proves nothing about a tool the agent can reach without
36
42
  it: the tool's credential must be taken away from the agent. It keeps
37
43
  the credential, and its own keys, from the agent only where the agent
@@ -105,8 +111,8 @@ checker:
105
111
  AI, and [an example](examples/frameworks/) for the Vercel AI SDK.
106
112
  - **[The gateway](gateway/README.md)**, for agents that act through web
107
113
  interfaces: it stands in front of each system an agent uses, holds
108
- that system's credential and receipts each call. In the repository,
109
- not yet on npm.
114
+ that system's credential and receipts each call. On npm as
115
+ `provared-gateway` (version 0.1.1, since 28 November 2026; first published on 22 November 2026).
110
116
 
111
117
  ## The checker, and the sample record
112
118
 
@@ -251,6 +257,11 @@ each part protects against, is in
251
257
  (`npm install -g provared-mcp-executor`), which stands between agents and a tool server, holds the server's
252
258
  credential, and countersigns
253
259
  each receipt with keys of its own.
260
+ - **A tool server behind the guard, on npm with its own README:**
261
+ [provared-shopify](integrations/shopify/README.md) (version 0.1.0, on
262
+ npm since 21 November 2026), a small MCP server for one Shopify store's
263
+ Admin API, made to run behind the guard. It has been run only against a
264
+ made-up Shopify, in its tests.
254
265
  - **[The pages at prova.red](https://prova.red/)**: the checker's answer
255
266
  for the sample record, a worked example for developers, and the same
256
267
  in plain words for a reader who does not write code.
@@ -271,7 +282,7 @@ each part protects against, is in
271
282
 
272
283
  ## Status
273
284
 
274
- **The library at version 0.9.0 and the guard at 0.4.2, both drafts.**
285
+ **The library at version 0.9.2 and the guard at 0.5.3, both drafts.**
275
286
  Published as they are, by one author in their
276
287
  own time, built with AI tools since 3 October 2026; fixes as time
277
288
  allows. The code has been through more than 80 rounds of review by AI
@@ -284,6 +295,13 @@ other than the author has reviewed it yet.
284
295
  That is an invitation. The format may still change.
285
296
  Every published version stays on npm and the Python Package Index, so a
286
297
  record made with one version can always be checked by that version.
298
+ The library's own code, in `src/`, makes no network request: its tests
299
+ fail if that code opens a network connection while they run. Two parts
300
+ kept apart in `net/` do: `provared/net/timestamp`, which asks a
301
+ time-stamp service and is loaded only by a program that imports it, and
302
+ the network code of the command `provared-headers`, which asks only the
303
+ Bitcoin nodes you name (and, for a node given by name, your computer's
304
+ own name service).
287
305
 
288
306
  Questions, faults and suggestions: hello@prova.red, or
289
307
  [issues on GitHub](https://github.com/provared/provared/issues).
package/docs/guide.md CHANGED
@@ -6,7 +6,7 @@ Everything about the format, the library, the checker, the stub writer beside an
6
6
 
7
7
  ## Status
8
8
 
9
- **Version 0.9.0, a draft.** Published as it is, by one author in their
9
+ **Version 0.9.2, a draft.** Published as it is, by one author in their
10
10
  own time; fixes as time allows. The format may still change, so do not
11
11
  rely on a draft record staying checkable.
12
12
 
@@ -153,7 +153,7 @@ be loaded from anywhere. The tool prints the file's SHA-256 fingerprint,
153
153
  so that a copy can be compared with it. (Tried on 8 October 2026 in the
154
154
  three browser builds this repository is tested with, and on 13 October
155
155
  2026 in Chrome 155, Edge 155 and Brave 155.) The file for
156
- version 0.9.0 is attached to the release on GitHub. Its SHA-256
156
+ version 0.9.2 is attached to the release on GitHub. Its SHA-256
157
157
  fingerprint is
158
158
  `486471a5b8f3108d08acaacb96d7c27ceeecf95b93bce8e47721b8872a9b1bbc`.
159
159
 
@@ -763,6 +763,26 @@ not a promise. The numbers `0` and `-0` share a fingerprint, as RFC
763
763
  though the tool has run and its stub is in the book. `recordTools`
764
764
  names no agent software, and works with any function.
765
765
 
766
+ A document of your own, under a name that does not begin `provared.`,
767
+ is fingerprinted as you choose: the checker checks only that its
768
+ `sha256` has the form of a SHA-256 fingerprint in base64url. Where such
769
+ a document is short or easy to guess (a yes or a no, an account number,
770
+ a small sum), take its fingerprint over exactly 16 random bytes, fresh
771
+ for each document, followed by the document, and keep those bytes beside
772
+ the document, not in the record. The length is fixed so that what was
773
+ fingerprinted splits into bytes and document only one way: were it free,
774
+ the 16 bytes followed by the document "no" would be the same bytes as 17
775
+ bytes (those 16 and "n") followed by the document "o". Whoever holds the
776
+ document and its bytes can work the fingerprint out again; whoever holds
777
+ only the record cannot find the document by trying likely values. Where
778
+ the action needs the person's approval, the approval's `details` must
779
+ carry the same salted fingerprint as the stub's, since the checker
780
+ requires the two to be the same (format description, section 17). This
781
+ is guidance, not a rule of the
782
+ format, and a checker cannot see whether it was followed. It does not
783
+ apply to the reserved names (below, and format description, section
784
+ 27), whose text is fixed so that another system's log can be matched.
785
+
766
786
  [examples/frameworks/](https://github.com/provared/provared/tree/main/examples/frameworks) in the repository shows
767
787
  `recordTools` beside a JavaScript agent framework, the Vercel AI SDK
768
788
  (`ai`, version 7). The SDK's own tool calls the recorded tool from its
@@ -91,6 +91,70 @@ follows the checking steps of the Web Authentication standard.
91
91
  section 6b. Slips should still be short-lived.
92
92
  - Who the issuer is. The slip proves which key signed, not whose key it
93
93
  is.
94
+ - **Which passkey a recorder trusts first.** The recorder beside Claude
95
+ Code (`integrations/claude-code/`) can take its first permission
96
+ through its feed, handed over by the application's uploader, while it
97
+ waits in a fresh folder. The application's server can put a permission
98
+ signed by any passkey where the uploader reads, and the uploader hands
99
+ it over: the recorder keeps it waiting
100
+ (`waits-for-yes`) and takes nothing by itself. For a first passkey,
101
+ with no earlier passkey to compare with, the only guard is the person:
102
+ they copy the passkey's thumbprint from the signing window, not from
103
+ the application, give it to `admit-passkey` on the agent's computer
104
+ (the whole of it, or at least its first 16 characters, 96 bits), compare
105
+ the permission's fingerprint it shows with the signing window's, and
106
+ type `yes` at a terminal there. A permission from another passkey is
107
+ caught only by the thumbprint the person copied, and an older one of
108
+ the person's, put there again, only by the fingerprint. The person must see `sign.prova.red` in the window's address
109
+ bar: a hostile application could open a look-alike window at another
110
+ address, which could show a stranger's thumbprint. The server can also
111
+ hold the person's permission back, or push it out of the waiting list
112
+ (eight at most) with strangers' permissions; the command then says so,
113
+ and the file saved from the signing window still works (`use <file>`).
114
+ Tests: `integrations/claude-code/test/admit-rules.test.mjs`,
115
+ `waiting.test.mjs`, `waiting-admit.test.mjs`,
116
+ `end-to-end-first-permission.test.mjs`.
117
+ - *A program on the same computer.* A web page in a browser cannot use
118
+ the recorder's port: every route refuses a request that names a web
119
+ page or another address (`local-port.test.mjs`, and
120
+ `waiting-port.test.mjs` for the recorder that waits). The two routes
121
+ that would make the recorder trust a new passkey (`/admit`, and
122
+ `/renew` with a new passkey) ask for the proof of the feed's token,
123
+ which is in the recorder's folder (`admit-proof.test.mjs`). So a
124
+ program that cannot read that folder cannot have a passkey trusted.
125
+ That keeps out a program run by another standard account where the
126
+ folder is the default one under the person's home. The token file is
127
+ written for its owner only; Windows does not apply that, and there
128
+ the file takes the folder's access list, so a folder named with
129
+ `PROVARED_CLAUDE_CODE_DIR` elsewhere may be open to other accounts.
130
+ An administrator can read it anywhere. Any program
131
+ run under the person's own account can read and write the folder,
132
+ and so can always make the recorder trust a passkey, with nobody
133
+ typing anything. The agent is such a program. That `yes` must be
134
+ typed at a terminal raises the bar for the command; it does not stop
135
+ a program that drives a terminal, nor one that asks the recorder
136
+ directly with the token. The evidence that holds is a checker that
137
+ names the person's own passkey (`--issuer`). Any program can still
138
+ ask the recorder to stop, which only fails closed: each call the
139
+ recorder would check is then refused.
140
+ - *The fingerprint check in the signing window.* For a key set new to
141
+ the device, the signing page as this repository holds it
142
+ (`page/sign-page.js`) signs only once the person has pasted at least
143
+ the first 16 characters of the fingerprint of the key set in the
144
+ request, and they match exactly (`test/sign-page.test.mjs`,
145
+ `test/sign-window-review.test.mjs`). It protects against a key set
146
+ replaced by the server or the application, where the person pastes
147
+ the fingerprint the agent's software printed on the agent's computer.
148
+ It proves only that what was pasted is the start of that fingerprint,
149
+ not where it came from: the application can write its own key set's
150
+ fingerprint to the clipboard in the click that opens the window. So
151
+ the words ask the person to copy the fingerprint on the agent's
152
+ computer only once the window has opened, and to check what the box
153
+ shows against what was printed there. It does not protect a person
154
+ who pastes what the application gave them, nor one who signs anyway.
155
+ A key set the device has signed for before, or that a checked earlier
156
+ permission vouches for, is not asked about. `sign.prova.red` serves
157
+ that copy from version 0.9.2.
94
158
  - Against a page that has the passkey sign a record dressed as a sign-in,
95
159
  where the passkey's website name (its `rpId`) serves anything but the
96
160
  signing page. A passkey signs only a challenge, and the challenge for a
@@ -248,7 +312,9 @@ keys it gives.
248
312
  An approval for one action cannot be moved to another action, another
249
313
  amount, another service, another document or another slip. In a whole
250
314
  book it cannot be used twice; single pages of a Show cannot show a second
251
- use, and say so. A3 cannot forge a countersignature, so where the slip asks
315
+ use, and say so. An approval's single use is shown within one book: the
316
+ record cannot show that the same approval was not used in another book.
317
+ A3 cannot forge a countersignature, so where the slip asks
252
318
  for one, an action the other side did not confirm shows as outside the
253
319
  slip. A4 cannot be made to seem to have refused or to have stated terms:
254
320
  both need its keys.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "provared",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Proof of what an AI agent was allowed to do, and what it then did. A passkey-signed permission with limits a machine can check, a signed receipt for each action, and a free checker. Evidence, not a verdict.",
5
5
  "author": "Pavel Izmaylov",
6
6
  "license": "Apache-2.0 AND CC-BY-4.0",
@@ -75,7 +75,7 @@
75
75
  "node": ">=24.7"
76
76
  },
77
77
  "scripts": {
78
- "test": "node --disable-warning=ExperimentalWarning --test \"test/**/*.test.mjs\"",
78
+ "test": "node --disable-warning=ExperimentalWarning --import ./test/helpers/no-network.mjs --test \"test/**/*.test.mjs\"",
79
79
  "check": "node --disable-warning=ExperimentalWarning bin/provared-check.mjs",
80
80
  "headers": "node bin/provared-headers.mjs",
81
81
  "demo": "node --disable-warning=ExperimentalWarning demo/server.mjs"