Whole events, counsel briefs back, a faster SessionStart

This week we stopped hooks from tearing each other's events in the log, got counsel writing briefs again after a month of silence, cut SessionStart's process count, had tribunal ask what to do with work it rejects, started this changelog, and gave the hosted side a home page ahead of opening it.

Plugins

  • Two hooks writing at once no longer tear an event in half. Every plugin appends its events to one shared log. A line longer than 1,024 bytes went out in several writes, so two hooks emitting at the same moment could interleave and leave a line no parser can read. Each event is now written in a single append.
  • Counsel writes briefs again. One torn line in the event log made counsel read the whole log as empty, so since October 24 every brief was skipped as “not enough events”. Counsel now skips only the lines it can’t read. A log it can’t read at all now fails the brief and says so, instead of passing for a quiet week.
  • SessionStart starts fewer processes. Every SessionStart hook runs at once, so each process one starts slows them all down. Bursar now starts 24 processes instead of 38, and with twelve copies starting together its median time fell from 455ms to 298ms. Seven hooks also stopped asking git for what the project cache already knew.
  • Tribunal asks what to do with work it rejects. When a /tribunal run ends rejected or out of retries, it now asks whether to keep the work, discard it, or try again, and records the answer. Discard undoes only what the run changed and leaves files you’d already edited before it started alone. Over time those answers show which rejections people agree with.
  • You can fix a lesson’s text when you confirm it. A lesson’s claim and rationale are written from the session it came from, and the jury judges them as written, so one factual slip could fail a lesson you’d otherwise vouch for. /librarian lessons now lets you replace either one in your own words at confirm, and unconfirm puts the original back.
  • Librarian’s review actions record their project. Accepting, rejecting or vetoing a lesson through /librarian used to log the event without a project, so per-project counts left them out. They carry it now.

onlooker.dev

  • A weekly changelog. You’re reading it. Each week gets its own page under /changelog, with an RSS feed, and the home page links to the latest one.
  • New post: “The hook that logged 624 successes while being killed”, on a SessionEnd hook that hit Claude Code’s deadline for five days while our health log called every run a success.
  • Tables in posts render as tables. Posts never got GitHub-style Markdown, so the first table on the site came out as a paragraph of pipes. They now render, with basic table styles.
  • Glossary tooltips no longer widen the page. A hidden tooltip still took up room, which could push a narrow screen sideways. Hidden tooltips now take no space.

Hosted feed

We haven’t announced the hosted side yet, so here’s where it stands rather than a list of changes.

  • What we built this week. Signing in now lands on a home page that sums up your last seven days: sessions, what each plugin did, and lesson activity. The feed also tells the sessions you started apart from the ones another session or a script started, and leaves those out of your counts while still listing them. Each day’s count on the home page now adds up to the headline number.
  • What’s already there. A sessions feed built only from each session’s envelope (when, which machine, which plugins fired, how many events). Event contents never leave your machine. Next to it is a lesson pool your machines share through onlooker sync.
  • Why it’s quiet. It works, but we want it to be worth a second visit before we point people at it. Most of the work left is on lessons: getting them produced in everyday sessions, and letting a team share them.

Reliability

  • A deploy can’t put older code over newer code. When several merges finished their tests out of order, a deploy for an older commit could run last and roll production back. Each deploy now checks whether a newer commit is already live and skips if so, and the newest commit is redeployed if it would otherwise be left out.

Behind the scenes

We pinned ten archivist and shared-library functions with tests by name, made a timing test measure in milliseconds so it stops flaking, pinned the edge cases of telling spawned sessions apart, and added a one-command local seed that fills every page of a dev stack. We also laid groundwork for lessons that record the versions they were actually seen working on, rather than a model’s argument that versions don’t matter: the lesson format can hold those versions now, and librarian can find most of them from the project itself. Nothing uses that yet.

Update your plugins to pick up the event-log fix. It matters most if you run several plugins at once.