Skip to content

docs(events-export): EXD designed against three measured constraints - #395

Merged
randomizedcoder merged 1 commit into
mainfrom
goip/events-export-exd-design
Dec 5, 2026
Merged

randomizedcoder merged 1 commit into
mainfrom
goip/events-export-exd-design

Conversation

@randomizedcoder

Copy link
Copy Markdown
Owner

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.

Constraint The design's answer
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 an optional header-carrying interface (EventHdr(h, ev)); the existing walk holds the header at the dispatch point
Run delivers a startup Snapshot (drain-then-dump resync) — a namespace's whole table at startup is not events the events' handler no-ops Snapshot
The destinations' factories are single-dest (every one reads the record's -dest at build) — a second instance for -eventsDest cannot resolve through the registry the v1 exporter owns the file sink (the self-test gate's destination); the factory generalization is EXC's measured need

Plus the namespace question: the events listener needs an in-namespace thread, and netNamespaceInstance's wait-thread hosts one listener (the locality fold when -localityEvents is 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

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)
@randomizedcoder
randomizedcoder merged commit 4a9a934 into main Dec 5, 2026
1 check passed
@randomizedcoder
randomizedcoder deleted the goip/events-export-exd-design branch December 5, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant