pikelet-wasm 0.13.0 → 0.15.0

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
@@ -8,6 +8,426 @@ Through 0.6.0 these were published as `pancake-wasm` and
8
8
  packages are pre-1.0: a minor bump may carry breaking changes, and each entry lists them
9
9
  first.
10
10
 
11
+ ## pikelet-wasm 0.15.0 / pikelet 0.15.0 — 2026-11-19
12
+
13
+ `pikelet mcp` and `pikelet query` stop reporting a relevance verdict, and
14
+ `compile` stops fitting one. Measured on a 1,377-article Wikipedia pack,
15
+ the verdict called 278 of 512 unanswerable questions `strong`, and agents
16
+ answered no better with it than without it. What remains is each result's
17
+ distance and `grounding`, which every pack now returns: the question's
18
+ words the best-matching passage lacks. `pikelet query` searches a pack
19
+ from the terminal. `pikelet mcp` no longer stalls: requests run
20
+ concurrently, packs are served as they mount, and a host that stops
21
+ sending times out after 30 s instead of hanging every pack. Crawls stay
22
+ under the seed's path and follow robots.txt, journals are private,
23
+ packs and journal writes are atomic and durable, and remote reads are
24
+ bounded. Packs compiled by earlier releases still verify and serve, and
25
+ the `pikelet-wasm` library still reports their verdicts. Compiling the
26
+ same inputs gives a new identity (no calibration is written, and no
27
+ build time unless `SOURCE_DATE_EPOCH` is set), and a folder source may
28
+ also get new record ids. Both packages move to 0.15.0 together, and `pikelet` requires
29
+ `pikelet-wasm` ^0.15.0.
30
+
31
+ ### Compatibility
32
+
33
+ - **`compile` no longer fits a calibration, and `compact` no longer
34
+ refits one.** New and compacted packs are `unscored` in the
35
+ `pikelet-wasm` library, and their evaluation segment carries no
36
+ `calibration` figures. `compile` still embeds up to 24 golden queries:
37
+ title and content-word questions generated from the corpus, each kept
38
+ only when the finished pack retrieves its source in the top 10, as
39
+ before. `--calibration-queries` is now `--golden-queries` (the old name
40
+ still works; giving both is refused), `--skip-calibration` and `compact
41
+ --no-refit` are accepted, change nothing and are no longer in the
42
+ help, and `--calibration <file>` still embeds a prebuilt asset. Builds skip the 20 to 30 seconds the fit
43
+ took; a 21-chunk corpus now compiles in 9 s. Recompiling a pack changes its
44
+ identity. `append` checks drift only on a chain whose base was
45
+ calibrated by an earlier build; on a base without a fit it no longer
46
+ refuses past 20% of the base's records, needs no `--allow-drift`, and
47
+ prints no drift figures.
48
+ - **`pikelet mcp` and `pikelet query` no longer report a relevance
49
+ verdict.** Search results drop `matchQuality` and `confidence`, the
50
+ response drops its `note` and `unscoredWarning`, and the `search` tool no
51
+ longer takes `showAbstained` (a client that still sends it is not
52
+ refused). Results always ship, including from packs calibrated by
53
+ earlier builds, which carry on unchanged in the `pikelet-wasm` library.
54
+ Each result keeps its `distance` and each section its `grounding`; the
55
+ tool description and server instructions now tell the model to cite only
56
+ a passage that states the answer and to check `grounding.uncovered`.
57
+ `verify_pack` drops `abstentionProbes`, its `calibration` figures and
58
+ the chain's calibration fields, and passes or fails on the golden
59
+ queries alone; `list_packs` drops a chain's `calibrationStatus`. `pikelet
60
+ query` prints each result's distance instead of a verdict line, and
61
+ both describe `grounding.uncovered` as the words the best-matching
62
+ passage lacks, which is what it computes (they said no top
63
+ passage contains them; counting a word as covered when any of the top
64
+ five has it separated unanswerable from answerable questions worse, AUC
65
+ 0.626 against 0.744 on the questions below). The
66
+ reason: on a 1,377-article Wikipedia pack the verdict called 278 of 512
67
+ unanswerable questions `strong`, and Sonnet and Haiku agents answered no
68
+ better with it than without it (`docs/calibration.md`).
69
+ - **Every pack returns `grounding`, and it grades short tokens like
70
+ "v8".** The reader computed `grounding` (which query words the
71
+ best-matching top passage contains and which it lacks) only inside a
72
+ fitted calibrator,
73
+ so an uncalibrated pack or chain returned none. It now grades the top
74
+ five fused passages for every pack, calibrated or not. Tokens holding a
75
+ digit count whatever their length ("v8", "3d"), where three letters
76
+ was the minimum, so "how many cylinders does a v8 engine have" now
77
+ reports `v8` uncovered when the best passage does not mention it. Every word weighs
78
+ the same: the calibrated coverage term discounts corpus-common words,
79
+ and on a calibrated pack `coverage` and the chosen passage can differ
80
+ from before. `matchQuality` and `confidence` are unchanged, since the
81
+ calibrated verdict keeps its own coverage term.
82
+ - **A calibration asset may carry a distance-only `gate`.** When present,
83
+ the library lets it alone decide `matchQuality: "none"`, and the main
84
+ model only separates `strong` from `weak`; a gate that is present but
85
+ malformed makes the pack `unscored`, and readers that predate it ignore
86
+ it. No pack built by a release carries one, and `compile` no longer
87
+ writes calibration, so this matters only for an asset passed with
88
+ `--calibration <file>`. Measurements are in `docs/calibration.md`.
89
+ - **A pack records no build time unless `SOURCE_DATE_EPOCH` is set.**
90
+ `compile` stamped the wall-clock time into the evaluation segment's
91
+ `generatedAt`, so two builds of the same inputs had different
92
+ identities unless `SOURCE_DATE_EPOCH` pinned it. Unpinned, the field is
93
+ now left out, and the same inputs give the same identity by default.
94
+ Builds with `SOURCE_DATE_EPOCH` set are byte-identical to 0.14.0's.
95
+ `evaluation().generatedAt` is absent on unpinned packs.
96
+ - **`pikelet mcp` may answer requests out of order.** Requests are now
97
+ handled concurrently, so a quick call is answered while a slow one is
98
+ still running, and replies can arrive in a different order from the
99
+ requests. JSON-RPC allows this, and clients match replies by id.
100
+ - **Packs that mount late may be named in arrival order.** `pikelet
101
+ mcp` now serves each pack as soon as it mounts. Packs that mount within
102
+ the 2 s grace period are still registered in the order given, so their
103
+ names and collision suffixes are unchanged. A pack that mounts later is
104
+ registered when it arrives: if it shares a manifest or file name with
105
+ another pack, whichever arrived first keeps the plain name (`docs`)
106
+ and the other gets the suffix (`docs-2`), which can differ between
107
+ runs. A shelf entry's `name` stays reserved while its pack is mounting,
108
+ so shelf-named packs keep their names.
109
+ - **A pack whose manifest name is not a plain identifier gets another
110
+ name.** `pikelet mcp` serves a pack under a name made of letters,
111
+ digits, `.`, `_` and `-` (at most 64 characters), the rule journal names
112
+ already follow. A shelf or manifest name outside it is skipped for the
113
+ file name, then `pack`. Such a pack's `pack` argument changes;
114
+ `list_packs` reports the declared name as `declaredName`.
115
+ - **A bare `pikelet` prints the commands instead of starting `create`.**
116
+ The interactive scaffold is `pikelet create`; `pikelet` with flags but
117
+ no command still scaffolds, as the old `npm create` flow did.
118
+ - **A folder source may get new record ids and a new identity.** Files
119
+ are now ingested in a fixed order, sorted by their `/`-separated path
120
+ under the source root by UTF-16 code unit, instead of the
121
+ filesystem's readdir order. Rebuilding a folder on a filesystem whose
122
+ order differed (ext4's is hash order) assigns different ids even with
123
+ no content change, so identities, goldens and ids pinned from an
124
+ earlier build will not match. Layers appended to an existing pack are
125
+ unaffected.
126
+ - **Malformed numeric flags are refused.** `compile --max-pages 12abc`
127
+ or `1.5` (and `--epochs`, `--sentence-windows`) used to truncate to 12
128
+ or 1; `append --max-depth abc` switched the depth limit off; `append
129
+ --max-pages 0` meant 500; a `--reader-drift-limit` outside 0..1 was
130
+ passed on. Each now fails with an error naming the flag and value.
131
+ - **`pikelet mcp` runs no request sent without an id.** A frame like
132
+ `{"method":"tools/call"}` with no id used to run the tool unanswered,
133
+ including `write_note`. Only `notifications/` methods now run without
134
+ an id; a frame with an id and no method gets `invalid request`, and a
135
+ client's own response gets no answer.
136
+ - **A remote read fails when the file's ETag changes.** A 206 whose ETag
137
+ differs (weakly compared) from the one pinned at HEAD or by an earlier
138
+ read, or a 200 without an ETag once one is pinned, throws
139
+ `ARTIFACT_CHANGED` instead of returning bytes that may mix two
140
+ versions of the file.
141
+ - **Crawls with shared navigation reach `--max-pages`.** A link repeated
142
+ on every page took a budget slot from each page; a 60-page crawl of a
143
+ site with a 20-link nav stopped at 26 documents. The same command now
144
+ fetches up to the limit, so it can produce a larger pack.
145
+ - **A chain query on a base that defers its encoder downloads it once.**
146
+ The first `query()` on such a chain now loads the query-interp
147
+ segment (about 25 MiB for MiniLM packs) to verify the calibration it
148
+ scores with, even when the caller supplies the vector.
149
+ - **A `compact()` that cannot rebuild throws `INVALID_VECTOR`**, not
150
+ `INTERNAL_INVARIANT`, and leaves the index searchable (see Fixed).
151
+ - **A crawl stays under the seed's path and follows robots.txt.**
152
+ `--source https://example.com/docs/` followed every same-origin link,
153
+ so it read the blog and marketing pages up to the 500-page cap; it now
154
+ reads `/docs/` and below (seed at the site root for the whole site).
155
+ The crawler reads robots.txt first and follows it (RFC 9309, plus
156
+ `Crawl-delay`): a disallowed seed is refused, disallowed pages are
157
+ skipped, and a robots.txt that answers with a server error stops the
158
+ crawl. Requests are 250 ms apart, and the User-Agent is
159
+ `pikelet/<version> (+https://github.com/mcn92/pikelet)` instead of
160
+ `pikelet/0.1.0`. The same applies to `append --source <url>`. A crawl
161
+ that used to wander may now produce a smaller pack, and takes longer.
162
+ - **Unknown commands and single-dash options are errors.** An
163
+ unrecognised command (`pikelet query` before it existed, `pikelet
164
+ compil`, `pikelet -v`) fell through to `create` and stopped at its
165
+ "Project name:" prompt; it now exits with an error, suggests the
166
+ nearest command, and prints the overview. A single-dash option other
167
+ than `-h` and `-v` was taken as a stray argument and ignored, so
168
+ `compile -o x.pikelet` wrote `search.pikelet`; it is now refused. Flags
169
+ given with no command still start `create`, as before.
170
+ - **`compile` prints less, and labels sizes MiB.** The lexical index size, the rerank sweep, the encoder
171
+ verification vectors and the golden replay now print only with
172
+ `--verbose`. Sizes are computed
173
+ in MiB and were labelled MB, here and in `compact`. When stdout is not
174
+ a terminal (CI, a piped log), the `Embedded N/M chunks` progress line
175
+ prints at most every 30 seconds plus the final count, instead of every
176
+ 16 chunks. Scripts that read compile's output should expect the new
177
+ lines.
178
+
179
+ ### Changed
180
+
181
+ - **`pikelet query <pack> "<question>"`** searches a pack from the
182
+ terminal and prints what the MCP `search` tool returns for the same
183
+ question: each result's title, source, distance and text, then the
184
+ question words the best passage lacks. `--json` prints the tool's response unchanged and `--limit` sets
185
+ the number of results. It takes a file, a URL, a `#<sha256>` pin or a
186
+ layer, like `mcp --pack`. `compile` now ends by naming this command and
187
+ `mcp install` as next steps.
188
+ - **A single file is a source.** `compile --source ./docs/install.md`
189
+ (or `.mdx`, `.html`, `.txt`) compiles that one file; it failed with a
190
+ raw ENOTDIR. The pack is named after the file without its extension.
191
+ - **`mcp install` checks the pack and writes a portable path.** It wrote
192
+ an entry for a pack file that did not exist and exited 0; a missing
193
+ local pack or shelf is now refused and nothing is written. For Claude
194
+ Code, a pack inside the project is written relative to the project, so
195
+ a committed `.mcp.json` works on another checkout; packs outside it,
196
+ and every path in Claude Desktop's config, stay absolute. The server
197
+ resolves relative `--pack`, `--shelf` and `--journal` paths against
198
+ `CLAUDE_PROJECT_DIR`, which Claude Code sets to the project root for
199
+ the servers it spawns, so they mount wherever the server starts; without
200
+ it they resolve against the working directory as before.
201
+ - **`pikelet --version`** (or `-v`) prints the version, `--flag=value`
202
+ works for every flag that takes a value, and `compile ./docs` is
203
+ `compile --source ./docs`.
204
+ - **The unsupported-Node warning is one line**, naming the version and the
205
+ supported range.
206
+ - **Shorter help.** `pikelet --help` is a one-screen overview that leads
207
+ with `compile` and `mcp install`. Each command has its own:
208
+ `pikelet <command> --help`, `-h`, or `pikelet help <command>`. `mcp
209
+ --help` used to fail with "mcp requires at least one --pack", and every
210
+ command's `--help` printed all 176 lines. `compile --help` now also
211
+ lists `--license`, `--calibration` and `--golden-queries`.
212
+ - **NOTICE credits the encoder every pack carries:** the
213
+ all-MiniLM-L6-v2 weights (quantized) and the bert-base-uncased WordPiece
214
+ vocabulary, both Apache-2.0. It named only Pikelet before. Both npm
215
+ packages ship it.
216
+ - **`pikelet-wasm` ships `FORMAT.md`,** the guide to the `.pikelet`
217
+ format (binary structure, embedded encoder, indexes, integrity,
218
+ versioning, compatibility and limits), next to its README and
219
+ CHANGELOG.
220
+
221
+ ### Fixed
222
+
223
+ - **A stalled host no longer hangs a read, or the MCP server.** Neither
224
+ `nodeFetch` nor `httpRangeSource` set a timeout, so a host that accepted
225
+ a request and then sent nothing left the read, and the query behind it,
226
+ pending with no error. Under `pikelet mcp` that stopped everything:
227
+ packs mounted one after another and tool calls ran one at a time inside
228
+ the stdin loop, so one stuck URL blocked every pack, local ones
229
+ included, and the client's `notifications/cancelled` could not be read.
230
+ - `nodeFetch` fails a request whose connection sits idle for
231
+ `idleTimeoutMs` (default 30 s; 0 disables), whether waiting for
232
+ headers or mid-body. A slow body that keeps arriving is not cut off.
233
+ - `httpRangeSource` keeps its own clock over every wait on the host
234
+ (HEAD, response headers, each body chunk), with the same option and
235
+ default, so a browser fetch or an injected transport cannot hang a
236
+ read either. It aborts the request through its signal. Retry sleeps
237
+ are not on the clock.
238
+ - `pikelet mcp` mounts packs concurrently and handles each request
239
+ without blocking the next. A cancelled request gets no reply. A
240
+ journal chain replaced by a write is closed only after calls already
241
+ reading it finish. The per-session limit of 100 notes is now checked
242
+ inside the write queue, so concurrent writes cannot overshoot it.
243
+ - **A slow pack no longer holds up the packs that mounted.** `pikelet
244
+ mcp` answered no tool call until every mount had settled, so one URL
245
+ pack on a stalled host held local packs, and the journal, for up to the
246
+ 30 s idle timeout. Each pack is now served as soon as it mounts, and a
247
+ tool call waits at most the 2 s grace period before serving the packs
248
+ that are ready (longer only while none is). A search across all packs
249
+ names the ones still mounting under `mounting`, with a note that they
250
+ were not searched; `list_packs` lists them under `mounting` too. A call
251
+ that names a pack not yet served waits for the mounts to settle rather
252
+ than reporting it unknown, and so do `get_record` and `verify_pack`
253
+ without `pack` while another pack might still appear. Journal tools
254
+ wait for the journal alone.
255
+ - **`verify_pack` says whether a large pack's lexical index was checked,
256
+ and can check it.** A lexical segment over 8 MiB (the Wikipedia pack's
257
+ is 69 MiB) opens lazily, and its reads are not checked against the
258
+ pack's digest one by one. `verify_pack` left that out and described
259
+ itself as proving the artifact intact. It now reports `lexicalIntegrity`
260
+ and `lexicalVerified`, and with `full: true` streams every lexical
261
+ segment against its digest first (636 ms for the local Wikipedia pack;
262
+ a remote pack downloads the segment); a mismatch is a tool error. The
263
+ reader gains `verifyLexical()`, `info().lexical.verified`, and a
264
+ `lazyLexicalBytes` open option (default 8 MiB; `Infinity` reads every
265
+ segment whole at open). A chain reports both per member and overall,
266
+ and its `verifyLexical()` names the member that fails.
267
+ - **Walking a chain to its base checks each parent's header first.**
268
+ `readMemberManifest`, which reads each hop's manifest when a chain is
269
+ mounted from its head, skipped the header checks the full open makes.
270
+ A manifest length up to the 256 MiB read budget was fetched and
271
+ hashed, a source whose size disagreed with its header was accepted,
272
+ and a manifest that was not JSON failed with a bare parser error. It
273
+ now applies the same 16 MiB cap, plausibility and size checks, and
274
+ reports a malformed manifest as one. It also takes `expectedIdentity`:
275
+ the walk passes the identity each child names for its parent, so a
276
+ located file that is not that parent is refused after its 64-byte
277
+ header, not after its manifest has been downloaded and hashed.
278
+ - **A pack's name can no longer put text into MCP tool descriptions.** The
279
+ name a pack is served under came from its manifest unchecked and was
280
+ written into the `search` tool's description, which clients hand to the
281
+ model as trusted instructions. A pack compiled with a name like
282
+ `docs). SYSTEM NOTE TO ASSISTANT: …` put that text in `tools/list`.
283
+ Names are now held to the identifier rule above.
284
+ - **A journal is private to its owner.** `journal init`, `write_note` and
285
+ `journal compact` created the journal under the process umask, so under
286
+ the usual 022 the directory was 0755 and its notes, `journal.json` and
287
+ chain files 0644: readable by every local user, although the journal is
288
+ documented as private and can hold conversation-derived notes. The
289
+ directory is now 0700 and its files 0600 whatever the umask. Each write
290
+ re-applies the modes before and after it runs, so a journal created by
291
+ an earlier release is closed off by its next note. On a filesystem that
292
+ keeps the old mode after chmod (FAT, a Windows drive mounted in WSL),
293
+ `pikelet` warns once instead of failing. Windows is unchanged.
294
+ - **`compile` downloads the encoder weights to the user cache.** An
295
+ installed `pikelet` fetched the 24 MiB MiniLM blob into its own package
296
+ directory. Under `npx` that is a cache npm purges, and under a global
297
+ install with a root-owned prefix the write failed with only "the download
298
+ failed". The blob now goes to `~/.cache/pikelet/models/all-MiniLM-L6-v2/`
299
+ (`$PIKELET_MODEL_CACHE` or `$XDG_CACHE_HOME` moves it), next to `create`'s
300
+ build encoder. A repo checkout still uses the copy in
301
+ `src/inline-encoder/`.
302
+ - **`pikelet mcp` survives a `null` message.** A line of valid JSON that is
303
+ not a request object (`null`, a number, an array) ended the server's
304
+ read loop, so nothing after it was answered. It now gets an `invalid
305
+ request` error and the server carries on.
306
+ - **A NUL byte in a source document can no longer corrupt record text.**
307
+ Markdown stripping marks protected code with NUL-delimited indexes, so a
308
+ document containing that pattern could pull code from elsewhere into
309
+ the record. NULs are now dropped from the input first. The markers are
310
+ written as `\u0000` escapes rather than raw bytes, so `ingest.mjs` no
311
+ longer reads as a binary file to git, grep and editors.
312
+ - **`append` asks for `--assert-ingest` only once per chain.** On a chain
313
+ whose base predates `corpus.ingest`, the depth-1 layer records the
314
+ operator's assertion and every later layer repeats it (6.1), but each
315
+ later `append` still refused without `--assert-ingest`. It now uses
316
+ the chain's declaration, and refuses an `--assert-ingest` that differs
317
+ from it, since a later layer may not change it.
318
+ - **Packs are written atomically, and `--out` cannot name an input.** The
319
+ writer truncated the output before writing, so a crash or full disk
320
+ left a broken file where a valid pack had been. It now writes a temp
321
+ file, fsyncs it and renames it into place, which needs room for a
322
+ second copy until the rename. `append`, `compact` and `rebase` refuse
323
+ an `--out` that resolves to one of their own input packs, even with
324
+ `--force`; before, it truncated the input while the chain was still
325
+ reading it.
326
+ - **A deferred base's calibration is verified before a chain query uses
327
+ it.** A chain query never embeds, so on a base whose encoder was
328
+ deferred it scored `matchQuality`, the union bloom and the drift
329
+ envelope from calibration bytes not yet checked against the pack's
330
+ identity. An altered calibration region answered normally; it now
331
+ fails hash verification.
332
+ - **Remote reads are bounded and share one fallback download.**
333
+ `httpRangeSource` streams a 206 and cancels it at the first byte past
334
+ its `Content-Range`, instead of buffering whatever the host sent.
335
+ When a host ignores Range, the reads in flight share one full download
336
+ instead of each starting its own (up to 32 at once). A 429 or 503
337
+ without `Retry-After` now backs off (250 ms doubling) instead of
338
+ retrying three times at once. Responses the reader does not consume
339
+ are cancelled, so their connections are freed.
340
+ - **`--supersede` paths resolve against the file that produced each
341
+ record.** With two `--source` roots holding the same relative path,
342
+ a target naming one file was refused as ambiguous. A target naming a
343
+ file under the working directory no longer lands on another root's
344
+ record with the same relative path when that file produced no record.
345
+ - **A failed `compact()` keeps the index usable.** When the engine could
346
+ not rebuild the graph (a zero-norm row in an imported cosine
347
+ snapshot), the wrapper cleared every id mapping, so each later search
348
+ failed with "missing external ID mapping". The mappings are now kept.
349
+ The row still blocks compaction until it is deleted.
350
+ - **Journal writes are durable.** `journal.json` is fsynced before its
351
+ rename, and the journal directory after each rename, so a power loss
352
+ cannot leave an empty `journal.json` or one naming chain files that
353
+ compaction already removed. Each write waits for these flushes.
354
+
355
+ ## pikelet-wasm 0.14.0 / pikelet 0.14.0 — 2026-11-04
356
+
357
+ Asking a URL pack a question an earlier process already asked is now
358
+ mostly local too: `pikelet mcp` keeps the verified rows, records and digest
359
+ pages a query reads in its disk cache, so on the Wikipedia pack over R2 a
360
+ repeated question transferred 178 KiB instead of 1.3 MiB and answered in
361
+ 0.65 s instead of 1.45 s. The cache is now private to its owner (0.13.0
362
+ left it readable by other local users under the usual umask), and two
363
+ processes sharing it no longer mis-index each other's writes. Upgrade if
364
+ you mount packs by URL, and especially if other people have accounts on
365
+ the machine. Packs compiled before this release still verify and serve,
366
+ and compiling the same inputs gives the same identities as 0.13.0. Both
367
+ packages move to 0.14.0 together, and `pikelet` requires `pikelet-wasm`
368
+ ^0.14.0.
369
+
370
+ ### Compatibility
371
+
372
+ - **The cache also holds query reads.** On top of the mount entries (up
373
+ to 2 GiB), URL packs now store what queries read in append-only logs
374
+ under `~/.cache/pikelet/blobs/small`, up to 64 MiB. `--no-cache` still
375
+ turns all of it off, and local packs still never use it.
376
+ - **The cache root becomes 0700.** The first write tightens the store's
377
+ directory to owner-only, including a `$PIKELET_CACHE_DIR/blobs` or a
378
+ directory passed to `diskBlobCache(dir)` that was opened up on purpose.
379
+ Nothing above that directory is touched.
380
+ - **Library callers: close a `diskBlobCache()` you are done with.** A store
381
+ that has served a query entry holds read handles on its log until
382
+ `close()`. Node 26 treats a file handle left to garbage collection as a
383
+ fatal error, so a store dropped without `close()` can end the process
384
+ there. The CLI keeps its store for the life of the process and is not
385
+ affected.
386
+
387
+ ### Added
388
+
389
+ - **Queries use the disk cache too.** With `blobCache`, the verified pieces
390
+ a query reads are stored and served by digest: rerank vector rows (by
391
+ their row digests; format 2), corpus records (by their record digests),
392
+ and the digest pages that verify both (by their page-table hashes). Every
393
+ hit is hash-checked against its key, a truncated row digest of at least
394
+ 128 bits included, and only reads verified on their own use the cache:
395
+ the lazy lexical index never does. `diskBlobCache()` keeps entries under
396
+ 64 KiB in append-only log generations (64 MiB in total by default,
397
+ `smallMaxBytes`; the oldest generation dropped whole, hits rewritten to
398
+ the newest) instead of one file each, and gains `close()`. On the
399
+ Wikipedia pack over R2, asking a question an earlier process already
400
+ asked transferred 178 KiB in 11 requests instead of 1.3 MiB in 29, and
401
+ answered in 0.65 s instead of 1.45 s; a new question costs what it did.
402
+
403
+ ### Fixed
404
+
405
+ - **Generated configs point at a schema that exists.** The configs the
406
+ CLI generates carried a `$schema` URL from before the repository moved
407
+ to `packages/`, which returned 404; it and the schema's own `$id` now name
408
+ `packages/pikelet/schemas/v1/pikelet.config.schema.json`. Configs
409
+ generated earlier keep the old URL until it is edited.
410
+ - **Two processes sharing a disk cache no longer mis-index each other's
411
+ appends.** A store computed a log batch's offset as the file size after
412
+ its append, so another process appending in between left its index
413
+ pointing at the wrong record: about a third of each writer's own
414
+ lookups across three processes. Every hit is hash-checked, so this cost
415
+ refetches, never a wrong byte, and a fresh process re-indexed the log
416
+ correctly. A batch is now read back at its offset before it is indexed,
417
+ and if the end moved, the generation is rescanned to find where it
418
+ landed.
419
+
420
+ ### Security
421
+
422
+ - **The disk cache is private to its owner.** `diskBlobCache()` stored
423
+ entries with the process umask, so under the usual 022 its directories
424
+ were 0755 and its files 0644: readable by other local users wherever
425
+ the parent directories allowed it. Entries hold record text, which for a
426
+ pack of a private repository, a journal, or conversation history is the
427
+ source itself. Directories are now created 0700 and files 0600, and the
428
+ first write tightens the store's root to 0700, which also closes off
429
+ entries a 0.13.0 cache already wrote.
430
+
11
431
  ## pikelet-wasm 0.13.0 / pikelet 0.13.0 — 2026-11-01
12
432
 
13
433
  Mounting a pack over HTTP is much cheaper the second time: `pikelet mcp`