Repository navigation
End a follower whose log is replaced, and trim the event-log page to its explainer role - #1095
Merged
Merged
Conversation
`leaf events --follow` kept its byte offset across a log renamed into place, so it stalled or printed the new file's middle under the old numbering. It now remembers the inode it first opened and ends with the "is gone" error when the log becomes another file or shorter than what it read. Startup counts the lines at or before `--after` without parsing them: at 200k events, first output drops from 0.43 s and 390 MB to 0.04 s and 82 MB. events.md: "Following the log" moves after Admission's dependency paragraph, drops the public-format stability promise (keeping the rule that a reader skips fields and kinds it does not know), and states the exit-1 case. docs/event-log.html: the agent-report and change-feed sections become one sentence each plus a link to the rule, the eyebrow reads "how it works", and the Layers table names what the door stamps and what kinds the log holds. The page test now derives where each captured-log note belongs from the record layout, and the verb-table test compares the Unit and Record columns against the registries as well as the verbs. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/scripts/leaf/event_log.py
leaf-agent
approved these changes
Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refinements from a review of #1075 (
leaf events --follow) and #1091 (the event-log explainer).The follower ends when its log is replaced.
follow_eventskept its byte offset across an inode change. A log renamed into place stalled the follower silently, and a longer replacement would have been printed from the middle under the wrong seqs.<log> is goneerror (exit 1) when the inode changes, when the file is shorter than what was read, or when the file vanishes between the stat and the open.test_events_follow_ends_when_its_log_is_replacedcovers it and times out without the guard.Startup skips parsing what
--afterexcludes. The lines at or before--afterare counted, not parsed. With--after 199999on a log of 200k events, the first event arrives in 0.04 s at 82 MB, down from 0.43 s at 390 MB.events.md.meaning.creates, which Follow a page's event log with leaf events --follow #1075 had cut off from Admission.Page tests.
lf-noteanchors are now derived from the record layout and compared with the page. When regenerated records shift lines, the test fails and prints the values to use.Page prose.
packages.mdandevents.md.Tests. Everyday suite: 1359 passed.
scripts/site.pybuilds 84 pages.leaf version check --renderis clean in light and dark.🤖 Generated with Claude Code