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
- Planned an explicit armed state controlled over serial, so the motors drive only after an operator command.
- Found that the plan would still not detect a lift: an armed car that is picked up keeps driving.
- Planned reading the encoders on every fresh sample, so counts can no longer pile up while the motors are stopped.
- Active
- The first draft run under systemd failed on a revision call that hit the token cap after 859 visible characters, and the cause is that the model thinks. The server streams reasoning on a separate field, the pipeline discards it, and it still spends the cap and the wall clock. A probe measured 400 tokens and 103 seconds of pure reasoning with no content at all; with thinking disabled the same call took 34 tokens and 8.4 seconds. Ben chose to keep thinking on and raise the cap to 4096, so a truncation message now reports the reasoning characters too.
- Covers became an unattended nightly job: select one missing article, generate, accept, apply, build, commit, push. A push adding a cover record opens a GitHub issue mentioning Ben, delivered by email and confirmed working, and a phone-triggered workflow reverts it. Every side effect is injected in tests, and three of the guards were mutated and watched failing.
- A failed cover run leaves no committed record, so the batch itself carries the state file, so a run killed mid-flight stays marked
startedand counts as a failure. Three failures on one article excludes it from selection rather than letting it burn a generation every night. - Checking the Pi for a leaked API key with
env | grepthrough sudo reported a match that was not there: sudo sets a variable containing the full command line, so grep matched its own text. - The alert path fired correctly and printed “(journal unavailable)”, because the handler unit could not read the journal it was reporting on. The failure path works; the part that tells you what failed did not.
- The first Pi cover recorded model years of 2008-2012 for a car that went on sale in mid-2012. The derivation takes the dominant cluster of years in the article body, and a development history names the announcement, the prototype and the launch, so the cluster is the development period, not the production run. The image came back correct anyway. Left alone deliberately: changing the derivation mid burn-in would muddy the tally it is being measured by.
- Active
- Found that the firmware had no launch gate: lifting the car left both motors at full PWM for a whole 8.5 s capture, because the body stayed inside the ±40° tilt cutoff.
- Found that recovering from a tilt fault was undone by encoder counts that had built up unread. The first sample after recovery read them all at once, and the motor command reached 43402 against a 2600 clamp.
- Added the velocity integral to the telemetry, since it could not be derived from the other fields.
- Active
- A mobile performance pass found the pipeline’s own articles already score 100, which killed the font theory on the spot: the same 176 KB of woff2 loads on the page scoring 100 and the page scoring 91. Only the document varies.
- Lighthouse’s largest single recommendation does not pay. It claimed 1,210 ms from eliminating render-blocking CSS; inlining it removed every render-blocking resource and made the score worse, 93 to 92, because the document grew from 128 KB to 172 KB and the document is the bottleneck. Reverted. What did pay was a high fetch priority and a 768w variant on the cover image, and deleting a font weight nothing referenced.
- Chasing one slow page found 15 cross-origin requests transferring zero bytes: raw WordPress image tags still pointing at the parked domain. Pulling that thread turned up five more classes of migration debris: 1,285 Gutenberg block comments, 97 escaped
target="_blank"attributes, and 68 URLs with markdown escaping inside them, which silently 404s everyyoutu.belink and breaks every affiliate parameter. None of it is schema-invalid, so nothing had ever failed. - 132 bare YouTube URLs across 38 guides now render as click-to-load facades with a real link behind them. The URL parser returns null on anything it cannot parse rather than taking the tail of the string, because with escaped ids in the corpus, a guess would embed a different video than the author linked. The transform runs at render time, so the prose the pipeline reads stays a plain URL with no markup to leak into a prompt.
- A latent bug shipped alongside: the cover-provenance field accepts the whole agent enum, so a human-credited photograph would have rendered “Generated image · Human. Not a photograph of a real car.” over somebody’s cleared press photo.
- Cover videos throw by name when the path resolves to nothing, because Astro’s asset helper validates images only. A dead
<video>renders as its poster and looks completely fine, which is exactly why it would ship unnoticed. Requiring a human author for the field makes the stranded-video state unrepresentable rather than handled. - Seven new corpus assertions were each verified by injecting their own defect and watching them fire by name. Sequential assertions mean one combined injection only ever proves the first one.
- Active
- Added velocity feedback at the kit’s reference gain of 7000. In a restrained capture, seven hand-applied disturbances each rose to a peak and decayed to zero, in both directions.
- A simple estimate of the velocity term,
2n * Kp/100, matched four hardware samples within ~10%, so it can now size gain changes. - Found that the forward command
move_xreaches the motors only through the integral term, so with the integral gain at 0 it has no effect.
- Active
- Two runs died and the machine looked like the obvious suspect at 1.7x slower than the week’s baseline. It was not. Thermal throttling: killed, the throttle bits never set across 1,470 samples. Memory pressure: killed, peak usage was lower than during a build. Throughput degradation: killed by the server’s own per-call numbers, identical to the previous session’s. What actually varied was how many tokens the model chose to emit, 1,057 to 1,483 per call, and at 3.4 tokens a second each extra hundred costs thirty seconds.
- The longest call that survived took 477,824 ms against a 480,000 ms ceiling. Two seconds of margin. The next one went over.
- So the fix bounds the work rather than the clock: the request now carries a token cap, and a response that stops because it hit that cap raises outside the retry path, because truncation is not retryable. The same prompt under the same cap truncates again, and on this hardware that costs another ten minutes.
- The timeout went to fifteen minutes, deliberately generous rather than fitted. Sizing it to the longest call observed has now been wrong three times. With a token cap as the real control, the timeout is a backstop that should almost never fire, and a tight backstop is the same mistake again.
- The next batch drew the identical section that had failed, because a
failedrecord is not a skip and nothing deprioritised it. Same source, same prompt, only the ceiling changed, and it published. A controlled test rather than a lucky one. Three of three published; median wall clock across five published runs is 954 seconds. - A previously recorded finding turned out to be wrong. “Shorter source sections produce more verbatim overlap” rested on three data points; across all seventeen records the correlation is +0.185, the opposite sign, and the three newest near-floor runs produced the lowest verbatim runs on record. The genuine worst case was a 418-word section that reached 29 against a limit of 30. It predates the finding and was missed because only three runs were compared.
- The build peak was measured three times, not once: 907.6, 867.2 and 882.8 MB. A single pass would have reported 867 and been 40 MB light.
- Consecutive runs accumulate heat and swap. Peaks rose 79.6 → 80.7 → 81.8 °C across one batch, with the first active soft-throttle bit ever caught on this machine in a single sample, and swap steps up at every build phase without coming back down. Small, and the only metrics with a trend rather than a steady state.
- The measurement tool needed a group the service account is not in, so the two columns the whole exercise existed to collect came back as errors. Caught mid-run. Moving the sampler to a separate account produced a better design anyway: one continuous trace across consecutive runs shows accumulation that per-run traces would hide.
- Active
- Found why both wheel encoders read near zero:
TIM_ICInitcleared theCC1Sbits thatTIM_EncoderInterfaceConfighad just set. After the fix, hand-spinning each wheel gave counts up to ±190 per window. - Normalised the right encoder’s sign at the hardware boundary. Rolling the car forward now sums to +8,752 counts and backward to −8,036, against −158 and −66 before.
- Found why both wheel encoders read near zero:
- Active
- The Pi now generates, reviews, revises, builds, commits, pushes and publicly publishes on its own. Two articles, one hidden draft and one live, neither touched by a human. 822 and 787 seconds, so “twenty minutes or ninety” resolves to about thirteen.
- Getting there meant two ceilings that both presented as “it timed out”. The first was a hardcoded 120-second request timeout with no override, against measured throughput of 3.4 tokens a second. The second only became visible once the first was lifted: with a non-streaming request the server sends no headers until generation finishes, and Node’s HTTP client abandons the request at 300 seconds regardless of the timeout you set. The error type was the only tell. Switching to streaming makes the abort signal the only deadline. The evidence is three calls pinned at 120.1s, three pinned at ~301s, then a 426-second call that finished.
- The kernel’s missing Landlock turned out not to matter: the reviewer CLI does not use Landlock on Linux. It ships its own bubblewrap and sandboxes with unprivileged user namespaces. The write failed with “read-only file system” rather than “permission denied”, which identifies the mechanism instead of merely observing that something was blocked, and the probe ran the identical write unsandboxed first as a control. The new fragility is that unprivileged user namespaces must stay enabled. A hardening change would break the sandbox silently.
- The deploy key’s write access had never once been exercised, because every previous run was a dry run. Added a
git push --dry-runto the baseline: reaching “Everything up-to-date” proves the service authorised, costs two seconds, and guards against a commit that cannot push and then blocks every run after it. - For a draft-only commit, “the deploy succeeded” and “the deploy never ran” produce identical public output: the page 404s either way and the sitemap is unchanged either way. Nothing in the built site carries a build stamp, so every assertion passes under both readings. A live article self-evidences its own deployment, because the sitemap count moves and a stale build cannot fake that.
- The local model’s characteristic error is deletion, not invention. Twice in two runs it kept a fact and dropped the restrictive clause that made it true: “hurt ride quality” became “hurt performance capabilities”, and “the first all-electric production car past 320 km” became “the first vehicle”. Both reviewers caught both, independently, and named the same missing qualifier.
- Originality overlap rises as the source section gets shorter, because less material means more of the source’s phrasing gets reused. The first near-floor section the pipeline has ever drawn passed while spending 77% of the verbatim budget, within seven words of tripping the gate. The thresholds were fitted on the same 60 drafts they judge, and their own comment says to treat the next batch as the real test. This is that batch.
- The revision loop can trade prose for accuracy. A fix for a factual objection produced “reported that the ride detracted from the car’s ride quality”, which is tautological, and the reviewer’s own pass verdict names the awkwardness before passing it at 8 out of 10. The loop optimises narrowly against the stated objection, and reviewers accept a prose regression once their own point is addressed.
- Found by accident: the site emits no canonical link and no OpenGraph or Twitter metadata on any page, and never has. Same class as the
robots.txtbug: schema-valid, so the build cannot see it, no test covers it, visible only on the deployed site. Every social share of an article currently renders as a bare link, on a site whose entire purpose is publishing articles.
- Active
- Proved the stale-sensor cutoff on hardware with an injected IMU fault: zero PWM was commanded 25 ms after the last fresh sample and the wheels stopped. A clean image then confirmed the shutdown came from the injected fault.
- Raised the balance gain to the kit’s reference of 10200. The car then showed a 0.35 Hz limit cycle, 30× slower than the pendulum mode, which balance-only control cannot stop.
- Fixed a recovery defect found in review: an angle fault did not reset the fresh-sample count.
- Active
- Wrote nine host tests for the stale-sensor motor cutoff before writing the cutoff itself. The suite stood at 27 tests, 20 passing and 7 failing, with the failing ones acting as the specification.
- Found that
VelocityPI::compute()updates its internal state on every call, so even a control output that is thrown away still advances the velocity loop.