Email me

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.

  1. · Where the Action Actually Happens at F1 GPs AI summary

    • The one-year circuit can’t fail a denominator test, since dividing by one changes nothing. Only the three-year circuit now counts as evidence for averaging checks.
    • Replaced the comparison script. It never compared race_phases, sorted lists the code deliberately orders, and keyed grandstands by the non-unique code. The new one compares every field and requires accepted differences to be declared.
    • Froze the old pipeline’s output in baseline/, pinned to a commit, so validation doesn’t end up comparing the database with itself after cutover. Widened validation from 195 to 525 keys and confirmed the checks can fail.
    • Resolved a suspected unzoned incident (zones 7/7/7 against a total of 8). The zones overlap, so nothing was wrong.
    • Added a source_incidents table: the circuit summary counts spreadsheet rows, not row and section pairs, and one 2023 row with no section could not be recovered from incidents.
    • See Five verification failures.
    Active
  2. · Self-balancing robot AI summary

    • Worked out the real control loop period from the telemetry log: about 12 ms against a nominal 5 ms, from 23-sample blocks of repeated angles overflowing a 32-packet FIFO.
    • Blocking serial output cost about 3.47 ms per 40-character line at 115200 baud, roughly 70% of a 5 ms tick. Printing one tick in twenty brought that down to about 3%.
    • Switched the UART wait from TC to TXE because it is the correct flag. Measured no speedup, since the baud rate is the limit.
    • Confirmed the feedback sign was already correct. The suspected inversion came from describing wheel rotation without recording which side of the car it was viewed from.
    Active
  3. · Automating Garage Dreams AI summary

    • The NZ spelling rule /colou?red/ matched the correct “coloured” and told the revision loop to change it to itself. Split the patterns and added a test that every suggestion passes the linter, which found five more broken rules.
    • A run that published nothing left its log uncommitted, and the dirty-tree check would then have blocked every later run. Every outcome now writes and commits its log, except the dirty-tree abort itself.
    • The revision prompt asked for the smallest possible edit, so a 718-word draft came back unchanged. The prompt now branches: too long means delete sentences or a section, too short means expand from the source only.
    Active
  4. · Where the Action Actually Happens at F1 GPs AI summary

    • Rewrote the global rankings as three SQL queries plus a Python pass. 31 corners and 14 straights matched the old output exactly. The only grandstand differences were nine floating point artefacts the old code had been shipping, such as 14.399999999999999.
    • ORDER BY g.grandstand_id, gv.rowid reproduced the old list ordering with zero differences across 29 grandstands.
    • Grandstand lookups were keyed by code, which is only unique per circuit. Forcing a collision merged two grandstands (28 instead of 29). Now keyed by grandstand_id, changed in a single commit, because the halfway state deleted a grandstand instead.
    • The circuit page, still on the old pipeline, listed two spreadsheet typos as straights that the new rankings page correctly dropped. Fixed the typos in the source workbook rather than rushing the migration.
    • Those typos were cells showing 9-10 that held dates under a d\-m number format. Set them to strings with Text format; database validation went to 0 mismatches.
    • See Migrating by predicted diffs.
    Active
  5. · Automating Garage Dreams AI summary

    • The plan said “split each guide on ##”. 71 of the 85 guides contained no ## at all, and had looked perfect in a browser since the day they were converted: Word’s heading styles had been flattened to bold paragraphs, and four guides from the old WordPress site carried raw <h2> HTML that Markdown passes straight through. Fixed the corpus rather than teaching the pipeline to recognise bold-as-heading.
    • 4,100 bold pseudo-headings promoted on a four-condition heuristic (entirely bold, standalone, no terminal punctuation, 14 words or fewer), each condition tuned against counts from the actual corpus. The no-terminal-punctuation rule alone excluded 630 emphasised sentences. The script asserts the stripped-tag prose is byte-identical before and after, and caught nothing on the real run, which is the point.
    • I had made the same mistake in the opposite direction an hour earlier: grepped for Markdown pipe tables, found none, and reported that the conversion had lost the spec tables. 75 of 85 files had them as raw HTML. Grepping source syntax tells you nothing about the rendered page.
    • Adding a generated cover failed the build on missing alt text, which revealed that a fallback written minutes earlier, to synthesise alt text for exactly that case, could never run. The schema already forbade the state it existed to handle. Deleted it: a fallback that cannot fire is worse than none, because it reads as a guarantee.
    • Two of the 85 “guides” were not guides. One was a classified ad for a Volvo 940 that came with two rims and some seat material. Everything in the source folder had been converted indiscriminately.
    • Found a guide titled as an EP3 Civic Type R whose body is entirely about the EK9, down to the part numbers. Flagged, not fixed, but it matters, because the pipeline derives articles from these, so a wrong guide becomes wrong articles. Nobody has ever proofread the 1.01 million words.
    Active
  6. · Automating Garage Dreams AI summary

    • Threw the first version away. The single-model scaffold became legacy/, and the rebuild starts from a working site with a two-tier content model: long buyer’s guides written by two frontier CLIs that review each other, and short nightly articles drafted by a local model and reviewed by both. Subscription auth throughout rather than per-token billing.
    • The GitHub repo I was about to push to already held the old site’s history, with no shared commit to merge against. Renamed it to garagedreams-legacy rather than force-pushing over it. The local .git had been lost once already and that is not a thing to do twice.
    • The logo was in the DOM and invisible. The SVG carries live <text> in a font the browser never loads, because an SVG in an <img> renders in an isolated context with no access to the page’s fonts. Inlined it and loaded the face; the real fix is re-exporting with the text outlined.
    • Inlining both logos then mixed their colours: white letters in the orange wordmark, an orange R in the white one. SVG <style> blocks are not scoped, and both files had been exported with the same generic .cls-1, .cls-2 class names. Namespaced each at inline time.
    Active
  7. · Self-balancing robot AI summary

    • The register diagnostic now prints each i2cRead return code next to the value. On the bit-banged bus, a zero-initialised buffer made 00 indistinguishable from a failed read.
    • Tracked a dead left motor to uninitialised TIM8 config structs. Channels 1 to 3 read the unset complementary-output fields and channel 4 does not, so only the right motor (channels 3 and 4) ran. Value-initialising the structs fixed it.
    • Swapping the motor connectors could not separate hardware from firmware. Flashing Yahboom’s vendor image onto the same board did: both wheels drove.
    Active
  8. · Where the Action Actually Happens at F1 GPs AI summary

    • First run of the SQL loader: four transcription errors that each failed loudly, and one that didn’t. The incident insert sat inside a loop that skips crash sheets, so is_crash was false for every row while the load reported success. Split the loader into two passes.
    Active
  9. · Self-balancing robot AI summary

    • Ported the MPU6050 DMP driver unchanged, but its FIFO stayed empty. The original called IIC_MPU6050_Init() from board code outside the driver, and without it SCL sat in its reset state.
    • Got printf telemetry working after fixing three silent gaps: the nosys.specs _write stub, newlib fully buffering stdout, and the ST-Link V2 having no UART. Telemetry comes out of the robot’s USB-C port through its CH340.
    • Traced an angle of -2147483648 in every sample to uninitialised floats in the IMU class. That value is what ARM produces when casting NaN to int. The constructor now zeroes the angles and sets the quaternion to identity.
    Active
  10. · Where the Action Actually Happens at F1 GPs AI summary

    • Changed the per-corner average to divide by every race year, not only the years a corner had action. A quiet year is a result, not missing data. Singapore corner 5 went from 3.0 to 2.0.
    • avg_lap still averages only the years present, because a quiet year has no lap. The two rules are separate named functions with docstrings.
    • See A quiet year is zero.
    Active