Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs/netlink/goip-parity-events-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
- EP2-T03 is done (V392): `nix/checks/goip-monitorfile.nix`, registered — **15 specs regenerated, 60 replays byte for byte, 4 refusals** green at HEAD, and the red run produced in a worktree at the pre-fix tree (`d30a4886c` plus the blob files and the check): **30 RED lines, every blob at both goip knobs, the two `ip` sides green throughout**, the three gaps in the got/want sizes (the hionly partner `256 <>` vs the 7.2.0 golden's `0 <>`, the `congctl cubic p` rows, the `state UNKNOWN` word). The sandbox's link set re-measured — a plan correction: the sandbox carries its OWN namespace (`lo`, `tunl0`, `ip6tnl0`), not the host's indices; the check asserts the no-sandbox-index rule before the first replay. The refusal row is measured into the check (rc 1, empty stdout, each tool's own complaint, goip's prefixed). The docs check names all 60 blob files (the plan's blob file index; the upstream notes' evidence lines) — the no-orphans rule the upstream index carries, extended to the blob set; and O5/O9/O10 regenerate with no drift. **Tier EP is closed.**
- EG1-T01 is done (V393–V396): the monitor row kind landed in three halves — the `Command` table's fields (V393), the driver's monitor flow with the helper's monitor-only tool split (V394), the comparator's monitor branch (V395) — and the section's gate ran green through the harness three times, every run `GOIP_PARITY_OVERALL_PASS` + `GOIP_PARITY_DRIVER_PASS`; the rows gate (V396) on their first two clean live runs, the ungated surface `addr show dynamic` alone again.
- EG1-T02 is done (V398–V399): the thirteen rows — the EP1 twelve's remainder and the two refusals — landed with the `netnsid` setup step (the nsid rows print the netns name, the driver's NSW), and the section's gate ran twice: the first `GOIP_PARITY_OVERALL_PASS` with thirteen `PASS` and two `WARN`s, both the canary retry's Deleted stanzas on the goip side the attach race hit — the retry prints four stanza shapes (V399's measurement: the mcast stanza, the /32 autojoin stanza, the local route, the IGMP neighbor on 224.0.0.22), not the one V395 knew — and the fixed comparator's rerun clean throughout (fifteen `PASS`, `HYGIENE_PASS`, `CONTROL_NOISY 1` — the all row's unpinned d0 MAC, the corpus's own evseq-mixed pre, mirrored — `UNGATED_CLEAN`). The thirteen stay ungated: they pass clean, the gated set unchanged. O5/O9/O10 regenerated with no drift.
- EG2-T01 is done (V400): the seventeen offline rows — the fourteen crafted blobs at `=1` (the bond partner states, the actor-stays-u8 pair, the P14 reason u32s, the three metrics shapes), hibyte and hionly at `=0` (the only two whose versions print differently, goip held to the committed `.ip720` record — the measurement of record, the guest carrying no 7.2.0 `ip`; T03 gates that knob against the real binary), and the text refusal — plus the pcap corner: `evnhb-bucket.nl`, what `nlcapgen monfile -pcap` writes from the committed capture (notifications only, 3 of 16 messages), with goldens measured at all four sides byte-identical — a plan correction on the record: the render is the corpus `.out`'s lines modulo `-d`'s detail words and the ifname (`if3`, the no-sandbox-index rule's own class; the corpus `.out`'s `c0` its own VM's name). The gate: the section's live run — `GOIP_PARITY_OVERALL_PASS`, thirty-two `PASS` (the EG1 fifteen and the seventeen), `HYGIENE_PASS`, `CONTROL_NOISY 1` (the all row's d0 MAC, EG1-T02's own accepted noise), `UNGATED_CLEAN`; the seventeen stay ungated, one clean run of the two V393's rule wants. The docs check names the corner's four files (the blob file index grows `evnhb-bucket` and `notnetlink`); O5/O9/O10 regenerated with no drift.
- The first tasks left, in order (Tier EG, the plans now in [goip-parity-events.md](goip-parity-events.md#tier-eg-goip-and-the-matrix)):
1. [EG2-T01](goip-parity-events.md#eg2-t01-the-offline-rows) — the offline rows (the blobs through `monitor file`, both tools), the `=0` knob held to the committed goldens.
2. [EG2-T02](goip-parity-events.md#eg2-t02-the-tier-closes) — the tier closes, answering the two follow-up decisions the plan leaves to it (the kernel spread for events; the oneshot's retirement).
1. [EG2-T02](goip-parity-events.md#eg2-t02-the-tier-closes) — the tier closes, answering the two follow-up decisions the plan leaves to it (the kernel spread for events; the oneshot's retirement).

## Contents

Expand All @@ -48,7 +48,7 @@
|---|---|---|---|---|
| [Tier EC](goip-parity-events.md#tier-ec-captures) | the event rows, both versions, verdiff | EC4-T01 | done | V383 |
| [Tier EP](goip-parity-events.md#tier-ep-replay-and-parsers) | O10 and the crafted monitor files | closed at V392 | done | V384–V392 |
| [Tier EG](goip-parity-events.md#tier-eg-goip-and-the-matrix) | the monitor section | EG2-T01 | in progress | V391–V399 |
| [Tier EG](goip-parity-events.md#tier-eg-goip-and-the-matrix) | the monitor section | EG2-T02 | in progress | V391–V400 |
| [Tier UB](goip-parity-events.md#tier-ub-the-iproute2-findings-record) | the three owed notes, the index, the check, the procedure | UB0-T03 | done | V376, DOC035–DOC037 |

## Task checklist
Expand All @@ -70,7 +70,7 @@
| [x] | [EP2-T02](goip-parity-events.md#ep2-t02-the-blobs) | the blobs | done | V390 |
| [ ] | [EP2-T03](goip-parity-events.md#ep2-t03-test-goip-monitorfile) | `test-goip-monitorfile` | done | V392 |
| [x] | [EG1](goip-parity-events.md#tier-eg-goip-and-the-matrix) | the monitor section | done | V393–V399 |
| [ ] | [EG2](goip-parity-events.md#tier-eg-goip-and-the-matrix) | the offline section (outline until EC4) | not started | — |
| [ ] | [EG2](goip-parity-events.md#tier-eg-goip-and-the-matrix) | the offline section | EG2-T01 done | V400 |
| [x] | [UB0-T01](goip-parity-events.md#ub0-t01-the-three-owed-notes) | the three owed notes | done | DOC036 |
| [x] | [UB0-T02](goip-parity-events.md#ub0-t02-the-index-and-the-check) | the index, `test-goip-docs` | done | V376 |
| [x] | [UB0-T03](goip-parity-events.md#ub0-t03-the-findings-procedure) | the findings procedure | done | DOC037 |
Expand Down Expand Up @@ -106,6 +106,7 @@
| V397 | 2026-11-28 | PR 358 review fixes: the monitor gate's exit status and multicast groups | `go test -tags goip_write ./internal/goipparity/` (TestMonitorGateReview, 13 rows; the 8 fix rows fail on V396's comparator); the docs check's unit tests and the docs run; both golangci configs | Three review findings. (1) A monitor row declares its helper rc (`MonitorExpectRC`, 0 by default, 1 for a refusal row): the three sides must agree and equal it, so a killed (137), usage (2) or launch (126/127) failure no longer passes as three agreeing empty outputs (`ErrMonitorExit`). (2) The monitor comparison adds `FacetMcastGroups`, one element per `inet`/`inet6 mcast` stanza with its Deleted, ifindex and device; Presence class, under the same D_control subtraction, so a wrong IPv4 or IPv6 group fails a gated row. (3) The leftover `>>>>>>>` line in docs/netlink/README.md is gone, and the docs check refuses `<<<<<<< `/`>>>>>>> ` lines (a bare `=======` stays legal: it is a setext underline) | this commit |
| V398 | 2026-11-28 | EG1-T02: the thirteen monitor rows and the netnsid step | both full suites (`go test -count=1 ./...` and `-tags goip_write ./...`); `go vet -tags goip_write ./...`; the checks lint-baseline, gofmt, nix-fmt, go-vet, test-goip-docs, test-goip-monitorfile, test-focused-goip, vm-lib-exp, cli-help-smoke-goip-parity; the section's first live run - `GOIP_PARITY_OVERALL_PASS` + `GOIP_PARITY_DRIVER_PASS`, thirteen `PASS`, two `WARN`, `HYGIENE_PASS`, `CONTROL_NOISY 11` | The `Command` table grows the thirteen rows - the EP1 twelve's remainder (`dad`, `route autoconf`, `neigh v4`, `nexthop bucket`, `netconf del`, `rule v4`, `stats l3`, `nsid live`, `prefix route ra`, `acaddress anycast`, `all mixed`) and the two refusals (`maddress esrch`, `nsid eexist`, both `MonitorExpectRC: 1`) - each the ev row's own Setup, Trigger and until-EREs, `Floor 1`, `Canary c0`. The nsid rows print the netns name (goip implements the name walk), so the driver grows the `netnsid` setup step - evSelfID's own shape - and its quoting comments now name the nsid rows' shell-escaped `$`/`"`. TestCommandTable grows the rc rule (every monitor row declares 0 or 1; the refusal rows 1), the thirteen in the ungated set, and the sysctl corner (RA rows 2, netconf-del/anycast/all-mixed 1); `writeCleanMonitorRow` writes the declared rc. The two `WARN`s - `monitor_address_dad`, `monitor_all_mixed` - are one noise: the canary retry's Deleted stanzas on the goip side the attach race hit, the same blocks the neigh and prefix rows' D_control carried on their ip_a sides (4 and 6, `CONTROL_NOISY 11` total). The findings are the comparator's own gap - V395's collapse knew one of the retry's stanza shapes - closed in V399 | `d069d3a11` |
| V399 | 2026-11-28 | the canary retry's four stanza shapes; the section's gate clean | the monitor tests (TestCollapseCanary, TestCompareMonitorWithControl, 15 rows); both full suites; the checks lint-baseline, test-goip-docs, test-goip-monitorfile, test-focused-goip, vm-lib-exp, go-vet, gofmt, nix-fmt, cli-help-smoke-goip-parity; O5/O9/O10 regenerated (`-update-ws-*`), no drift; the section's second live run - `GOIP_PARITY_OVERALL_PASS` + `GOIP_PARITY_DRIVER_PASS`, fifteen `PASS`, `HYGIENE_PASS`, `CONTROL_NOISY 1`, `UNGATED_CLEAN` | The measured fix: the retry's `ip addr del` prints four stanza shapes, not the one V395's collapse knew - the mcast stanza, the `/32` autojoin stanza its RTM_NEWADDR prints, the local route the address brings, and the NOARP neighbor on `224.0.0.22` (the IGMPv3 report group the autojoin solicits, RFC 3376) on the canary device. `collapseCanary` drops every Deleted canary block and keeps the last run of consecutive undeleted canary blocks - the join the helper's loop broke on - which degenerates to V395's keep-last for the link rows' mcast-only shape; `isCanaryStanza` takes the canary device (the IGMP anchor, plumbed through `CompareMonitorWithControl` - the row's `Canary` field) and `isDeletedStanza` reads the `Deleted` prefix under the `all` banner. The join's own rendered text stays compared; the retry's twins go. The V398 capture's four shapes are the fixtures (each monitor kind's retry collapses to its join - the dad, prefix, neigh and all rows) and the two live `WARN`s are regression cases. The fixed comparator, run over the first live run's captured artifacts, passes all fifteen rows with no findings - the neigh and prefix rows' D_control dropped to 0 with it - and the second live run ran clean throughout (the `CONTROL_NOISY 1` is the all row's unpinned d0 MAC, the corpus's own evseq-mixed pre, mirrored; D_control subtracts it). The thirteen rows stay ungated: they pass clean, the gated set unchanged | `23399edcf` |
| V400 | 2026-11-30 | EG2-T01: the offline rows, the section's gate green | both full suites (`go test -count=1 ./...` and `-tags goip_write ./...`); `go vet -tags goip_write ./...`; the checks lint-baseline, gofmt, nix-fmt, go-vet, test-goip-docs, test-goip-monitorfile, test-focused-goip, vm-lib-exp, cli-help-smoke-goip-parity; O5/O9/O10 regenerated, no drift; the section's live run - `GOIP_PARITY_OVERALL_PASS` + `GOIP_PARITY_DRIVER_PASS`, thirty-two `PASS`, `HYGIENE_PASS`, `CONTROL_NOISY 1`, `UNGATED_CLEAN` | The monitor-file row kind: the `Command` table's `Monfile`/`Knob`/`Golden` (the row format's thirteenth field), the comparator's `compareMonfileRow` (the rc rule - agree, then equal the declared one; the stderr rule - rc 0 ↔ empty, rc ≠ 0 ↔ non-empty, never compared; the golden comparison naming the side, the golden and the first differing line; a `-` golden three-side equality, the monitor rows' own shape), `expectedFiles`' goldens per side (the ip sides always `.ip730`, the goip side the record its `Knob` names - the `.ip720` goldens the measurement of record for the `=0` rows, the guest carrying no 7.2.0 `ip`, T03's check what gates that knob against the real binary), and the driver's `capture_monfile_triple` (a fresh namespace per side, the Setup steps, `xtcp2-nlcap mon` running `ip -d monitor file` twice around `goip -d monitor file` at the knob - the first run's `MISSED FLOOR`, the input read against the console's CWD rather than the capture dir, the driver fix on the record). Seventeen rows: the bond partner states (hibyte and hionly at `=0`, the versions' u16 `319 <…,>` vs u8 `63` prints the rows' whole point; the rest `=1`), the actor-stays-u8 pair, the P14 reason u32s, the three metrics shapes (the plan's one padding row measured into all three committed shapes), the text refusal (`MonitorExpectRC: 1`) and the pcap corner - `evnhb-bucket.nl`, `nlcapgen monfile -pcap`'s 232-byte notifications-only write (3 of the capture's 16 messages; `TestMonfileCommittedPcap` the regeneration golden, T03's spec-golden check skipping a `.nl` with no `.spec`), its goldens measured at all four sides byte-identical. A plan correction on the record: the corner's render is the corpus `.out`'s lines modulo `-d`'s detail words and the ifname - ifindex 3 misses in an empty namespace, `if3` (the no-sandbox-index rule's own class), the corpus `.out`'s `c0` its own VM's name. The seventeen stay ungated, one clean live run of the two V393's rule wants; the gated set unchanged | this commit |

## Decision log

Expand Down
4 changes: 4 additions & 0 deletions docs/netlink/goip-parity-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,11 @@ The committed set, the blob file index the docs check names (EP2-T03's gate: eve
- `bond-partner-slow`: `bond-partner-slow.spec` `bond-partner-slow.nl` `bond-partner-slow.ip720.out` `bond-partner-slow.ip730.out`
- `bond-partner-trunc1`: `bond-partner-trunc1.spec` `bond-partner-trunc1.nl` `bond-partner-trunc1.ip720.out` `bond-partner-trunc1.ip730.out`
- `bond-partner-zero`: `bond-partner-zero.spec` `bond-partner-zero.nl` `bond-partner-zero.ip720.out` `bond-partner-zero.ip730.out`
- `evnhb-bucket`: `evnhb-bucket.nl` `evnhb-bucket.ip720.out` `evnhb-bucket.ip730.out` (no `.spec` — the pcap corner's input, the real capture's bytes `nlcapgen monfile` writes, not a crafted spec's)
- `linkpd-0009`: `linkpd-0009.spec` `linkpd-0009.nl` `linkpd-0009.ip720.out` `linkpd-0009.ip730.out`
- `linkpd-0100`: `linkpd-0100.spec` `linkpd-0100.nl` `linkpd-0100.ip720.out` `linkpd-0100.ip730.out`
- `linkpd-80000001`: `linkpd-80000001.spec` `linkpd-80000001.nl` `linkpd-80000001.ip720.out` `linkpd-80000001.ip730.out`
- `notnetlink.txt`: the text refusal's input, a file that is not netlink (no `.spec`, no goldens — the refusal's stdout is empty on every side, the complaint each tool's own)
- `route-metrics-nested`: `route-metrics-nested.spec` `route-metrics-nested.nl` `route-metrics-nested.ip720.out` `route-metrics-nested.ip730.out`
- `route-metrics-overlong`: `route-metrics-overlong.spec` `route-metrics-overlong.nl` `route-metrics-overlong.ip720.out` `route-metrics-overlong.ip730.out`
- `route-metrics-v038pad`: `route-metrics-v038pad.spec` `route-metrics-v038pad.nl` `route-metrics-v038pad.ip720.out` `route-metrics-v038pad.ip730.out`
Expand Down Expand Up @@ -366,6 +368,8 @@ The monitor-file row kind: an empty namespace per side (ifindex 7 misses — the

Gates: every row green or its finding recorded; the committed `.nl` regenerated by the spec golden; O5/O9/O10 regenerated; the full suites; the checks; the docs check naming the pcap corner's committed files.

Done (V400). Seventeen rows: the bond partner states — fast, slow, zero, all, absent, trunc1 and the actor-stays-u8 pair at `=1`, hibyte and hionly at `=0` (the only two whose committed goldens differ across the versions, the u16 partner `319` with the trailing comma vs the u8 `63`, the versions' difference the row's whole point) — the P14 reason u32s (`0x9`, `0x100`, `0x80000001`), the metrics shapes (the plan's one padding row measured into all three committed shapes: nested, overlong, v038pad), the pcap corner and the text refusal (`MonitorExpectRC: 1`, `Golden: "-"` — three-side stdout equality, the complaint each tool's own, never compared). The `Command` table carries the kind's three fields (`Monfile`, `Knob`, `Golden`; `String()`'s thirteenth-field monfile branch, `GoldenName`), the comparator's `compareMonfileRow` (the rc rule — agree, then equal the declared one; the stderr rule — rc 0 ↔ empty, rc ≠ 0 ↔ non-empty, never compared; the golden comparison naming the side, the golden and the first differing line) and `expectedFiles`' nine side files plus the goldens the sides are held to (the ip sides always `.ip730`, the goip side the record its `Knob` names — the `.ip720` goldens the measurement of record for the `=0` rows, the guest carrying no 7.2.0 `ip`; T03's check gates that knob against the real 7.2.0 binary). The pcap corner, measured: `evnhb-bucket.nl` is what `nlcapgen monfile -pcap` writes from the committed capture (notifications only — 3 of the pcap's 16 messages, 232 bytes, `TestMonfileCommittedPcap` the regeneration golden; T03 skips a `.nl` with no `.spec`, the spec golden's own carve-out), and the render is measured at all four sides — the host's 7.2.0 `ip`, the pinned 7.3.0 `ip`, goip at both knobs — byte-identical, but NOT the corpus `.out`'s bytes: `-d` adds `scope global proto unspec` to the RTM_NEWNEXTHOP line (V390's measurement), and ifindex 3 misses in an empty namespace, so the record holds `if3` — the no-sandbox-index rule's own class — the corpus `.out`'s `c0` its own VM's name. A plan correction, recorded: "the same lines as the `.out`" is true modulo the `-d` words and the ifname. The driver: `capture_monfile_triple` (a fresh namespace per side, the row's Setup steps, `xtcp2-nlcap mon` running `ip -d monitor file` twice around `goip -d monitor file` at the knob), the blobs, the text refusal and the goldens copied wholesale to the capture dir before the first row — the first run's `MISSED FLOOR` (the replay's file read against the console's CWD rather than the capture dir) is the driver fix on the record. The gate: `nix run .#microvm-x86_64-goip-parity -- --section monitor` — `GOIP_PARITY_OVERALL_PASS` + `GOIP_PARITY_DRIVER_PASS`, thirty-two `PASS` (the EG1 fifteen and the seventeen), `HYGIENE_PASS`, `CONTROL_NOISY 1` (the all row's unpinned d0 MAC, EG1-T02's own accepted noise), `UNGATED_CLEAN`. The seventeen stay ungated — one clean live run, V393's rule wants two. O5/O9/O10 regenerated, no drift; both full suites; the nine checks and `test-focused-goip` (the one lint finding fixed in code: Render's dispatch chain, a switch); the docs check names the corner's four files (the blob file index grows `evnhb-bucket` and `notnetlink`).

#### EG2-T02 the tier closes

The gates: O5/O9/O10 regenerated, `differs` and `sends` at 0, no row moved away from `same`; the full suites; the checks; the docs. The two decisions the plan's follow-ups leave to EG's close, answered in the task's own ledger row: the kernel spread for events (whether any decoder branch depends on a kernel-conditional attribute first — if none does, the spread is deferred with the reason recorded) and the oneshot's retirement (whether `nlmon-capture` stays as the one baked-in, zero-driver capture; if it goes, `flake.nix`'s header, `nix/README.md`'s fixture table and `docs/netlink/collection.md` name the retirement in the same task).
Expand Down
4 changes: 4 additions & 0 deletions internal/goip/testdata/monitor/evnhb-bucket.ip720.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
3: if3 inet mcast 224.0.0.250 scope global
valid_lft forever preferred_lft forever
id 10 group 1,3/2 type resilient buckets 4 idle_timer 60 unbalanced_timer 1 unbalanced_time 0 scope global proto unspec
id 10 index 0 idle_time 0 nhid 1
4 changes: 4 additions & 0 deletions internal/goip/testdata/monitor/evnhb-bucket.ip730.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
3: if3 inet mcast 224.0.0.250 scope global
valid_lft forever preferred_lft forever
id 10 group 1,3/2 type resilient buckets 4 idle_timer 60 unbalanced_timer 1 unbalanced_time 0 scope global proto unspec
id 10 index 0 idle_time 0 nhid 1
Binary file added internal/goip/testdata/monitor/evnhb-bucket.nl
Binary file not shown.
1 change: 1 addition & 0 deletions internal/goip/testdata/monitor/notnetlink.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is not a netlink file at all, just text
Loading