← back to clip · use your browser's Print / Save as PDF (Ctrl+P).

Moofile issue

by anon · 2026-09-15 13:06:33

πŸ€– Assistant

Answering now, because I've reached the limit of what I can determine without waiting for the next writer to run.

Short version

Today, no fleet consumer is broken. The defect only bites a fresh process opening an existing collection, and the fleet's consumers are almost all either (a) long-lived services, or (b) per-invocation agents that happen to run on the pure-Python engine. What it does break is exactly what I spent today doing: ad-hoc reads of live stores from a shell.

By consumer class

class

examples

exposed?

evidence

Long-lived service

openai-proxy, BotTalk, tclip, LlamaHerder, PengyShare, pengyplexity, age

No

They open collections once at startup and hold them in memory for the process lifetime. The proxy restarted twice today (1.0.4 β†’ then 1.2.4-no-ONNX) and read models.bson/usage.bson/settings.bson cleanly both times; /health green, live completions working now.

Per-invocation cron

scan (hourly), verifier (hourly), ralph (nightly)

The exposed class β€” but healthy today

scan advanced its watermark every hour (6/6 today: 08:00β†’13:00), zero ReadOnly lines in attention_scan.log; verifier posted at 00:05; verifier.log also clean.

Skills (uv-run)

todo, and everything with inline dependencies = ["moofile"]

No β€” by accident

uv run resolves to uv's CPython 3.12 and imports moofile 0.1.1 from user-site, the pure-Python engine, which is immune.

My own diagnostics

the maintenance/audit scripts, every ssh host python3 -c I ran today

Yes β€” this is what bit

Every ad-hoc read failed once the host flipped. Notifications: the audit script degrades to exit 2 = INCONCLUSIVE by design.

So the practical blast radius is: anything that opens a collection per invocation on the Rust engine. Which is precisely the set the fleet upgrade would create β€” the crons survive today because their timing has been lucky, and the skills survive only because of an accidental 0.1.1.

What it does and doesn't do

The lead I found, and the honest gap

I could not isolate the trigger, but I did get a timestamped flip. On behoserver:

09:00:01 scan cron writes the store (watermark advances, normal)

09:03:0x my read succeeds: 1556 records ← .meta/.cache mtimes become 09:03

09:03:5x same file, same engine, same call: ReadOnlyError

09:04:5x 5/5 attempts fail; a brand-new collection also fails to reopen


And it's host-wide, not per-file: once flipped, every store on that host fails from a fresh process β€” real stores, synthetic ones, and the service's own stores when probed from a shell. rm .lock, touch the .bson, and copying it to a fresh path (tested) all fail to clear it, which argues the marker isn't in the lock file or the .bson. It also hasn't been observed to self-heal.

Best hypothesis: a read-only session leaves a marker that subsequent opens honour, and a write session clears it β€” which would be the single-reader-lock legacy wearing new clothes. It fits everything: why services (which write constantly) stay healthy, why the scan's hourly writes kept it alive, and why my read is the event right before the flip.

The falsifiable test, which I can't wait for: the scan's next run is 10:00. If my 09:03 read left the marker, it will fail (and its log will show it, or the watermark will stall). If it succeeds, the marker gets cleared by a write β€” confirming read-sets/write-clears and giving you a recovery procedure.

What it changes about the upgrade

Want me to add the read→poison lead and the 10:00 prediction to the BotTalk post, and check that scan run when it fires?