Updates
What changed recently
Short progress summaries across all my projects, newest first. The detail lives in each project's articles.
Updates are bullet-point summaries generated with AI from my commits and build notes, then checked by me. Project articles and learning notes are written by me.
- Active
- Turned the scheduled monitor off until there is something for it to monitor. It alerted overnight, correctly, that the newest run was 45 hours old, but the staleness threshold is calibrated to a nightly timer that has not been installed yet, so it would have fired every night from now until then and trained the alert into noise before it could matter.
- Corrected a claim that both the workflow and the plan had been making: a failed scheduled workflow does not “email the repository owner”. GitHub notifies whoever last changed the cron, subject to their own notification settings. So whoever restores the schedule becomes the recipient, which has to be a person and not a bot, and a manual dispatch is the only cheap way to confirm the mail actually lands before an unattended night depends on it.
- Fourteen tests fail on Linux and always would have. The test fixture links the real
node_modulesinto a temp directory using a Windows-only junction type; on Windows the OS resolves it invisibly, on Linux it becomes an ordinary symlink, the bundler resolves it back outside the fixture root, and the cache key breaks. The gate written for this stage, “661 tests, 0 fail”, was unachievable on Linux as the code stood, and nobody had ever run the suite on Linux. - The Pi kernel has Landlock compiled out, which is what the reviewer CLI’s read-only sandbox relies on. Found at the probe step before the 5 GB model download, which is exactly why the runbook put it there. The flag is not being dropped: it is a containment boundary around a model-driven process.
- That probe’s own test was defective and got thrown out. It proposed treating a successful CLI response as evidence of sandbox enforcement, but a successful response cannot distinguish enforcement from a silent fallback from the model simply never attempting a write, which is the likeliest outcome since nothing in that prompt asks it to. Same species as the rollback suite that never rolled back.
- Build peak measured properly at last: 739.6 MB on the development PC, 864.9 MB on the Pi, same 138 pages, 2.4x slower. The first build after a cover backfill measured 835.9 MB in 23.4s against a 720 MB, 9.6s steady state, so the image-derivative cost is real, about 100 MB, and sits on the supervised path rather than the nightly one. Measuring the wrong build would have overstated the nightly requirement by that much.
- Two probes on the way to that number were wrong in instructive ways. Starting a process with
-PassThrureturns an object whose exit code is null, which would have let a failed build pass as a measurement; and the peak-memory counter reads zero once the process has exited.
- Active
- The most dangerous thing found all day:
publish:article --provider=stubpublishes. The flag swaps in stub providers and relaxes the CLI preconditions, and that is all it does: the run still builds, commits and pushes. The runbook’s own comment said “no model, no CLIs, no network”, which describes the providers and reads as a description of the run. It must always be paired with--dry-run. - Built the independent run monitor, which is the real gate on putting any of this on a timer. It reads only committed run records, writes nothing, and exits non-zero on any alert so a timer can act on the exit code. A run that aborts before writing a record surfaces as staleness rather than as silence.
- Its ordering comes from the timestamp inside each record, never the filename or the file’s mtime. Filenames are written in local time and the timestamps are UTC, so they disagree across a day boundary, and mtime is rewritten by any checkout and by the sync client on this tree. A test writes records under names that deliberately contradict their own timestamps.
- A
skippedrun is not an alert. It is editorial, it is a normal night, and alerting on it would train whoever reads the output to ignore it. - The off-host copy of the monitor runs on GitHub’s schedule and was verified by dispatching it, not by writing it, because a workflow fails by never alerting, which no local test can observe.
- The alert script confidently reported
result=success exit=0for a unit that had just failed.systemctl showanswers for a unit it has never heard of with defaults rather than an error, so querying the wrong service manager produces a confident wrong alert, which is worse than no alert. - The alert script also shipped non-executable, which would have killed the one component that reports every other failure. The WSL test could not have caught it: it copied the script and made the copy executable, and the mount reports every file as 777 regardless. A test that prepares its subject cannot test how the subject ships.
- A failed prompt attestation discarded a paid generation and was undiagnosable by construction. The error named neither the attested digest nor the expected one, so investigating it meant changing the code and spending another generation. It now reports both, with the model-controlled value escaped and truncated.
- The most dangerous thing found all day:
- Active
- One of four cover prompts kept failing its own integrity check, and it was the only one containing an en dash. The instruction said “read the file”, which PowerShell is free to satisfy with a default-codepage read that decodes UTF-8 as cp1252, so one character arrived as three and a paid generation was discarded every time. The check was right; the read was wrong. The instruction now prescribes the exact command.
- With the read fixed, the dash was still coming back as an ASCII hyphen, same length, one code point for one. Tightening the instruction to forbid normalisation did not stop it across three more renders. The fix was to stop echoing text at all: the attestation is now a SHA-256 digest, which crosses a Unicode serialisation boundary unchanged. Same trust limitation as before, minus a channel that had already failed three times.
- Potential exposure is 331 of 4,285 guide sections with non-ASCII headings. It had never been seen because none of the six articles generated so far happened to contain one.
- A format rule nearly shipped as dead code. Validating “is this 64 hex characters” inside the comparison killed no test when deleted, because an exact digest comparison already rejects every malformed value. Split out with its own error message, both mutations now fail: removing the comparison breaks 5 tests, removing the format rule breaks 2.
- The deprioritise-recently-skipped fix ran for real for the first time and worked: three runs, three different sections, where before run 2 would have re-selected run 1’s section and stalled. Codex was the stricter reviewer in all three.
- First cover under the new recipe derived model years
2002-2010, the whole first generation, which is exactly the fault it was built to fix. Accepted first candidate. - Installed a standing rule: comments say what the code does or why a non-obvious choice was made, and nothing is signed (no attribution trailers, no tool names in commit messages or headers), with an explicit carve-out so provider names used as functional identifiers in code are never renamed.
- Active
- The test failure filed as a flake last week was a real defect: two processes could hold the run lock at once. Measured at 4 failures in 25 rounds. The six-process test that guards it only catches it about one run in six, which is precisely why a previous session shrugged and moved on.
- The mechanism, from an instrumented timeline: both contenders renamed the stale lock aside and both renames succeeded, because they moved different files. One moved the stale lock; the other, still acting on a read it took earlier, moved the first one’s live lock.
renameis atomic per file, and nothing checked that the file being moved was still the file that had been judged. - The first hypothesis was wrong and is worth keeping. Creating a file with
wxpublishes it before the payload lands, and the lock reader mapped both empty and torn reads to “reclaimable”: 2,104 empty and 11,139 torn reads across 17,599 cycles, so that window is entirely real. It is not this bug. Fixing it would have narrowed the failure and left it in place. - The lock is not a file any more. It is an exclusive listening socket on a loopback port derived from the working directory. A lock file outlives the process that wrote it, so it needs a staleness rule, and the staleness rule is where both file-based versions failed. The filesystem offers no compare-and-swap, so ownership is inferred from bytes another process can replace between the read and the act. The kernel owns the port and releases it however the holder dies: no stale state, no reclaim path, no race in the reclaim path. Nothing is served on the socket, so no connection can leave the port unbindable.
- A proposed fix was rejected before it was written. It kept the file, added identity verification after the rename, and carried an acknowledged residual where a lost restore leaves a live holder inside the critical section without owning the published lock. That is the same safety failure through a narrower interleaving, and “unlikely” is not a correctness argument for a lock guarding a working tree, a build and a commit.
- Review found the availability test was vacuous: the client destroyed its own connection, so it passed whether or not the holder destroyed anything. It is now proved by mutation: deleting the handler makes it fail with the right message. A sibling test that searched 400 random paths for a collision was replaced with pigeonhole, where 1001 candidates over 1000 ports guarantee a pair, because a probability of e^-80 is not the same as never.
- The deterministic reproduction is kept in history and deleted from the suite. It drove a temporary seam between the staleness decision and the rename and failed 5 times in 5 runs while the probabilistic test passed beside it. A test of steps that no longer exist is scaffolding, not coverage.
- Active
- Caught a safety defect in the plan for the stale-sensor motor cutoff before it reached the firmware. It printed its
STALEwarning before zeroing the motors, and blocking serial output would have kept them driving for 2.7-3.2 ms. The motor write now comes first. - Measured the worst-case sensor
poll()at 4 ms against the 25 ms stale timeout, about 6x margin, so the timeout now rests on a measurement. - Worked out that the observed shutdown latency will be up to ~35 ms rather than 25, since the check also waits on the poll and the telemetry output.
- Caught a safety defect in the plan for the stale-sensor motor cutoff before it reached the firmware. It printed its
- Active
- The plan’s own recommendation, to take the earliest and latest four-digit year in the article, was measured against the corpus and rejected. It yields
1984-1993for a car built from 1989, because the article opens by mentioning the previous generation’s launch year. The plan had predicted that failure in the abstract; the counterexample was already sitting in the tree. - The guides’ own heading ranges were ruled out too: present in only 32 of 81 guides, and for one car the heading names the facelift years while the article is about the launch.
- What shipped instead: a range declared in the human-written source section wins outright, and the article title is never consulted at all, because the title is model-written and the input type has no field for it. Failing that, take the dominant cluster of years in the body, breaking runs at a gap of more than four years, which is what discards the orphan 1984. The guide heading may veto a derivation it disagrees with, or widen one it agrees with, capped at a ten-year generation.
- Four of five articles now derive their true generation range exactly. The thresholds are fitted to five articles, all three are asserted at their boundary, and the sixth article will be the first genuine out-of-sample test.
- The recipe bump lives on a branch rather than
main, because a version change makes every pending batch un-appliable by design. Keepingmainon the old version leaves the working cover flow working while the new one waits for its visual gate. - Model years are written to a per-candidate sidecar at generation time, keyed by the image’s own hash, and the apply step reads it rather than re-deriving. A missing record is fatal, and one naming a different article aborts the batch before any write.
- Two review passes found eight defects while the test suite was green at 581 the entire time. All four of the first pass’s findings came from reading the code against the corpus, not from running anything.
- The plan’s own recommendation, to take the earliest and latest four-digit year in the article, was measured against the corpus and rejected. It yields
- Active
- A section the reviewers will not pass used to be re-selected every night forever, because the used-set is built only from committed articles and a skip writes none. Recently-skipped sections now sort last: deprioritised, never excluded, since the trigger was a typo in a source guide and burning a section permanently would cost runway for a transient fault.
- The other half of that issue was never real. Four documents said
skippedrun records carry nosourceblock, described as the cheaper and more urgent of the two fixes. They always have carried one: it is set before all three skip paths, and every committed record proves it. The stall was visible in the records the whole time. What is missing is anything that looks at them, which turns a pipeline bug into a monitoring gap, and that is the real precondition for putting this on a timer. - The first cover generated with no human choosing the image came back as a 2001 bugeye Subaru for an article about the 2007 car. Not a bad roll. The prompt gets a title, a heading and a description, and an article identified only as “third-generation” contains no year anywhere. The tally for unsupervised covers is now 1 good, 1 wrong, and the wrong one is precisely the failure no automated check in this repository can detect.
- Ben chose to automate cover approval anyway (apply, then notify) over a pull-request model where nothing reaches the site until he merges. That decision rested on three-of-three accepted first time, and the record is no longer three of three.
- The notification design turns on one constraint: GitHub does not notify you about your own activity. The job authenticates as Ben, so any design where the job opens the issue produces silence. An Actions workflow runs as a different actor, so the bot opens the issue and mentions him.
- The guard that checks the image generator received the exact prompt cannot be a proof, and the code said it was. The CLI runs image generation in code mode, so its rollout records the program rather than the value, and there is no literal to compare against. Kept, renamed to attestation, and deliberately left out of the table of real controls.
- Two tests were vacuous and only mutation found it. One passed with its cleanup code deleted, because the failure it injected fired before anything existed to clean up. Rollback has two kinds of work, restoring what changed and removing what was created, so it needs two injection points, not one.
- Active
- Verified TIM2 counts real milliseconds: 6,212 ms on the MCU against 6,208 ms on a PC stopwatch over 63 telemetry lines (ratio 1.001). Cross-checked a second way against the sensor cadence.
- The battery ADC read between 4.96 V and 13.29 V under motor load on an 8.4 V pack, so the measurement is wrong rather than the pack. Leading suspect is ADC sampling that isn’t synchronised with the 25 kHz motor PWM. Not yet confirmed.
- The low-battery cutoff stays disabled until the reading is understood. Averaging more samples first needs a wider accumulator than
uint16_t.
- Active
- The site published its first article without a human in the loop: drafted locally, passed by both reviewers, built, committed and pushed by the job itself, in 41 seconds. I offered to hand-publish an existing draft instead, to get a live page faster. Ben’s answer was “That is the whole point isn’t it?”, and he was right. The first public page was made by the machine.
- Two runs in a row skipped on the same section, and the reviewer was correct both times. The source guide calls a Honda Integra an “Integrale Type R DC5”, which is a Lancia name, and the model was reproducing it faithfully. The same guide gets it right twice elsewhere. Fixed the guide, and the next run published on the first attempt.
- Two tests went red because the work succeeded. Both asserted the live corpus still listed a particular article as missing a cover, a transient property of live content written down as an invariant. Worse, one of them is supposed to be testing command-line argument forwarding and had used cover status as its payload assertion, so a routine backfill could redden a test guarding something else entirely. Rewritten to prove forwarding in two ways that say nothing about content.
- The deploy-timing check earned its place immediately. The live site still served the old text when first queried, so all five verification assertions would have passed against the previous build and told me nothing.
- First three real covers applied. Original PNGs of 1.9-2.3 MB normalise to 59-70 KB, roughly 30x, and the generator returned two different aspect ratios, so the normaliser is load-bearing rather than incidentally correct. All three were accepted on the first candidate.
- A run aborted in 1.3 seconds because the shell carried stale environment variables pointing at the old model on the wrong port, and it committed and pushed a
failedrun record, which is exactly the documented behaviour. A precondition failure that leaves a trace is the difference between a bad night and a silent fortnight.
- Active
- A pre-implementation review of the workspace plan found a destructible window nobody had noticed. The plan told the operator to stop with a cover applied but uncommitted, and the article pipeline’s startup reconciliation deletes untracked files from the cover directory before it checks for a dirty tree, so a nightly run in that window would delete the new WebP, abort on the modified article, and leave frontmatter pointing at a file that no longer exists. The ignored workspace is safe from this precisely because it is ignored; the applied cover is not.
- A proposed test would have exempted “explicitly labelled POSIX examples” by trusting the fence language, and the project’s own how-to-run block was fenced as bash while containing seven command forms that silently drop safety flags on Windows. The test would have exempted the exact block an operator copies, and reported green. It now requires an explicit label rather than a fence name.
- The argument-forwarding fix was asserted but never proven with a path containing a space, and this repository lives under a directory with a space in its name, so every manifest path has one. Proven properly before the plan was implemented.
- Planned a Claude-calls-Codex image integration and then deferred it, because planning it surfaced two corrections to its own premise: the cover it was meant to generate already existed and was sitting on disk, and the thing actually blocking progress was the argument-forwarding bug, not image generation. Its first step is now a cheap probe that may invalidate the whole plan.
- Adopted a standing rule after nearly losing a plan: plans live in the project’s
plans/folder, never in the editor’s scratch directory. A scratch plan gets a generated name, sits outside the repository, is unversioned and is invisible to every other session.