Skip to content

docs(events-export): plan TODO-SOON 14 - the events export path (EXM-EXU) - #391

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

randomizedcoder merged 1 commit into
mainfrom
goip/events-export-plan

Conversation

@randomizedcoder

Copy link
Copy Markdown
Owner

What

The plan for §14 — the last open piece of the events arc: the five parsed rtnetlink event families (link, addr, route, neigh, rule) leave the process. Plan-only PR: no code, no captures; docs/netlink/events-export.md + events-export-status.md, the index rows, and the §14 pointer.

Grounding

Everything upstream of an export exists in the tree, each cited in the plan:

  • the parsers (ParseRtnetlinkEvent, the five families), the listener (pkg/rtnlmon, the §13 close), the first consumer (-localityEvents);
  • the destination registry, the record path's envelope thresholds (rows/bytes/cycle), the bounded drop-oldest queue, the s3 staleness timer;
  • the ClickHouse DDL + ProtobufList row type + Kafka engine table + per-version MV fan-out + errors MV, and the clickhouse-pipeline self-test flavor.

What is missing is §14's own list: the proto (the 2100–2500 blocks — §14 names four; fib_rule_hdr → 2500 is the fifth, added after §14 was written), the ClickHouse table + MV, and a destination whose policy is measured, not copied.

The arc

Tier Work
EXM the constants measured from the committed event corpora (the 7_1_4 boot flood, the 66 ev rows, the 15 crafted monitor files) + the test that pins the measured shape
EXP proto/xtcp_netlink_events/v1/ — a message per family (kernel member spelling, presence as an explicit has_ bool), the NetlinkEvent wrapper + oneof, the Envelope; round-trip over every committed event pcap and crafted blob
EXD a second rtnlmon consumer behind -eventsEnable/-eventsDest (off by default), flushing on rows, bytes, time or shutdown; the self-test's rtnl flavor grows the file-destination gate
EXC the events table + MV on their own topic (the record's xtcp topic untouched), the epoch constant the self-test reads from the Go source (the §11 lesson)
EXU §14 RESOLVED, the two deferral passages unwound, the versioning rules extended

Gates

Docs check (66 documents now), test-goip-docs, netlink-audit, nix-fmt — green.

🤖 Generated with pi

…EXU)

The plan for the last open piece of the events arc: the five parsed
rtnetlink event families (link, addr, route, neigh, rule) leave the
process. Everything upstream of an export exists in the tree - the
parsers (ParseRtnetlinkEvent, the five families), the listener
(pkg/rtnlmon, the 13 close), the first consumer (-localityEvents), the
destination registry, the record path's own envelope thresholds, the
ClickHouse DDL + protobufList + kafka + MV, and the clickhouse-pipeline
self-test flavor. What is missing is 14's own list: the proto (the
2100-2500 blocks - 14 names four; fib_rule_hdr -> 2500 is the fifth,
added after 14 was written), the ClickHouse table + MV, and a
destination whose batching and flush policy is measured, not copied.

The arc's shape:
- EXM: the constants measured from the committed event corpora (the
  7_1_4 boot flood, the 66 ev rows, the 15 crafted monitor files) - the
  flush interval, the rows/bytes caps, the queue depth - with a test
  that pins the measured shape. The record path flushes on rows, bytes
  and the poll cycle; events have no cycle, so the time interval is the
  one genuinely new trigger.
- EXP: proto/xtcp_netlink_events/v1/ - a message per family, kernel
  member spelling, presence as an explicit has_ bool (the events' render
  semantics depend on presence; the record proto never needed it), a
  NetlinkEvent wrapper with a oneof, and the Envelope batch container;
  round-tripped over every committed event pcap and crafted blob.
- EXD: a second rtnlmon consumer behind -eventsEnable/-eventsDest
  (off by default, the -localityEvents precedent), flushing on rows,
  bytes, time or shutdown through the existing Destination registry
  unchanged; the self-test's rtnl flavor grows the file-destination
  gate and reads the boot's own numbers back.
- EXC: the events table + MV on their own topic (the record's topic
  untouched), the ProtobufList row type, the errors MV, and the events
  epoch constant the self-test reads from the Go source (the 11
  lesson).
- EXU: 14 RESOLVED, the two deferral passages unwound (coverage-
  expansion's "its own design document", coverage-status's "unresolved
  and deliberately unscoped"), the versioning rules extended.

Index rows added; TODO-SOON 14 carries the pointer. Gates: the docs
check (66 documents now), test-goip-docs, netlink-audit, nix-fmt.

Next free evidence: V403, DOC038.

🤖 Generated with [pi](https://github.com/badlogic/pi-mono)
@randomizedcoder
randomizedcoder merged commit 0f22b16 into main Dec 5, 2026
1 check passed
@randomizedcoder
randomizedcoder deleted the goip/events-export-plan branch December 5, 2026 05:38
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