Repository navigation
docs(events-export): EXD designed against three measured constraints - #395
Merged
Merged
Conversation
The plan's EXD tier, measured in the tree before written (the V391 pattern): three constraints the first shape did not survive. 1. rtnlmon's Handler.Event(ev any) carries no nlmsghdr - the wrapper's nlmsg_seq/nlmsg_pid (the originating process's echo, the 13 note's own trap) vanish at the interface. The design: an optional header-carrying interface (EventHdr(h, ev)); the existing walk holds the header at the dispatch point. 2. Run delivers a startup Snapshot (drain-then-dump resync); the export must not emit a namespace's whole table at startup. The design: the events' handler no-ops Snapshot. 3. The destinations' factories are single-dest - every one reads the record's -dest at build, so a second instance for -eventsDest cannot resolve through the registry as the plan first said. The v1 exporter owns the file sink (the self-test gate's destination); the factory generalization is EXC's measured need, not this arc's refactor. And the namespace question: the events listener needs an in-namespace thread (a socket in the root namespace sees no other namespace's notifications), and netNamespaceInstance's wait-thread hosts one listener - the locality fold when -localityEvents is on. The both-on composition (the union of groups on one socket, the snapshot to the fold alone) is the plan's own "shared listener" follow-up, promoted to v1's design if the second in-namespace thread measures as a cost. Gates: the docs check (67 documents). Generated with [pi](https://github.com/badlogic/pi-mono)
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.
What
The EXD tier's design revision, measured in the tree before written (the events arc's V391 pattern): three constraints the plan's first shape did not survive, now recorded in the plan text and the status doc's decision log.
rtnlmon'sHandler.Event(ev any)carries no nlmsghdr — the wrapper'snlmsg_seq/nlmsg_pid(the originating process's echo, the §13 note's own trap) vanish at the interfaceEventHdr(h, ev)); the existing walk holds the header at the dispatch pointRundelivers a startup Snapshot (drain-then-dump resync) — a namespace's whole table at startup is not eventsSnapshot-destat build) — a second instance for-eventsDestcannot resolve through the registryPlus the namespace question: the events listener needs an in-namespace thread, and
netNamespaceInstance's wait-thread hosts one listener (the locality fold when-localityEventsis on). The both-on composition is the plan's own "shared listener" follow-up, promoted if the second in-namespace thread measures as a cost.Gates
The docs check (67 documents) — green.
🤖 Generated with pi