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
2 changes: 1 addition & 1 deletion docs/netlink/goip-parity-events-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
| V385 | 2026-11-25 | EP1-T03 (benchmarks, fuzz seeds) | `BenchmarkWsMonitor` over the EP1 twelve (`-benchtime 10x`: 70-250 µs per row); the four new fuzzers (`FuzzParseNexthopBucket`, `FuzzParseNsid`, `FuzzParsePrefix`, `FuzzParseNewNetconf`) seeded from the corpus's captured bodies and run 8 s each; `FuzzParseNewStats` seeded with the two l3_stats notifications; the full suites; `lint-baseline`, `gofmt`, `netlink-audit` | All pass. The four parsers the ev corpus newly exercises had no fuzz target; each now carries the corpus's distinctive bodies as seeds — the only two real `RTM_NEWNEXTHOPBUCKET` notifications anywhere, the nsid -1 reply, the deprecated prefix's `preferred 0`, the bare `RTM_DELNETCONF` — plus hand-built edges, and the house determinism check (two decodes agree). `mustHex` generalized to `testing.TB` so fuzz setups share it | this commit |
| V386 | 2026-11-25 | EP2 planning (the measured blobs) | every blob shape crafted at the plan's spec and run through three tools: nixpkgs' `ip` (7.2.0), the pinned `iproute2_7_3_0`, and `go run ./cmd/goip` (monitor file, no VM needed); a `runCommand` probe of AF_NETLINK in the nix build sandbox; `iproute2`'s `v7.3.0` tag audited for the bond series (`git merge-base --is-ancestor` on all three commits) | **The bond series is upstream:** `0067cbc8`, `075f1b6f` and `4f49441d` were all applied 2026-10-19 and are in v7.3.0 — the note's status block, corrected here, said "not yet sent". Three plan corrections came out of the measurements: the hionly red case's 7.3.0 print is `256 <>` (the plan said `<active>` — that is the big-endian u8 read; `print_slave_oper_state` names none of 0x100's bits); the hibyte 7.3.0 shape is `319` with a trailing comma, which goip's `addOperState` already prints; and the truncated 1-byte partner attribute prints `63 <full list>` at BOTH versions (7.3.0's u16 read takes the zero padding), so goip's `setPartnerOperState` one-byte arm is a match and the bond note's "decode error, not 63" row is superseded. Two goip render gaps are found and owned by EP2-T02: `state UNKNOWN` on an absent `IFLA_OPERSTATE` (ip prints nothing — the guard at `ip/ipaddress.c:859-860`), and `congctl cubic p` for a CC_ALG payload with garbage past the first NUL (both the V038 padding shape, where goip's subattr walk reads past `rta_len`, and the over-long shape, where `bytes.TrimRight` at `xtcpnl_rtnexthop.go` keeps the interior bytes; `ip`'s `rta_getattr_str` stops at the first NUL). A nested-flagged `RTA_METRICS` is a third divergence (both `ip`s drop the attr; goip prints it) — `parse_rtattr` does not mask the bit. The sandbox probe: AF_NETLINK works in the build sandbox (goip's eager `linkMap` included), but the sandbox carries the host's link indices (`tunl0` is index 2), so the blobs use ifindex 7 and every `dev` prints `if7` deterministically. `rtnl_from_file`'s facts pinned at `lib/libnetlink.c:1315-1368`: no magic, a 16384 buffer, and the malformed message's `@%lu` is `ftell` after the header's sixteen bytes | `04ebf8a2f` |
| V387 | 2026-11-25 | the second sync with `origin/main` | the rebase of the events arc's 14 commits onto `97a660a85` (25 commits in: nsid_assigned and goldenrec shape profiles, the gotc arc with its 224-row tc corpus and its upstream note, redteam phase 3); the full `go test -count=1 ./...`; the workbench's `test_nlcap_batch.py`; `lint-baseline`, `gofmt`, `nix-fmt`, `netlink-audit`, `vm-lib-exp`, `test-goip-docs` | One conflict again — `tools/nlcapgen/main.go`'s usage strings, unioned (`ev` beside the gotc families). The same silent drop bit twice: the error message's family list lost `ev` to the auto-resolution, and the rebase's `--continue` committed a leftover conflict-marker block when only one of the file's two hunks was resolved by hand — both caught by reading the file after, the lesson from the first sync restated: the usage strings come as a pair. The gotc note is adopted into the findings index (52 documents, 21 artifacts, 13 notes), `nix/default.nix` formatted (the arcs left it unformatted), and seven lint-ratchet findings fixed in code, not nolint — four goimports groupings in the arc's test files, `os.Setenv`'s ignored error in the O10 setup, `evFamily` unlambda'd in the families map, and one De Morgan in `TestEvFamily` — the comprehensive tier now reaches this arc's files. The corpus pins held: the gotc rows added no NEWLINK/NEWNSID/NEWPREFIX/NEWNEXTHOPBUCKET messages, so `TestParseLinkPropCorpus`, `TestParseNexthopBucketCorpus`, `TestParseNsidCorpus` and `TestParsePrefixCorpus` are untouched, and the O10 golden still reads 66 rows, 0 differ. Pre-rebase hashes: 256c6be16, a55d304a2, 74b326e21, b9a9fcd05, 9b0668285, 6bb5e7fb9, 0c153957e, 1cfe91dd9, 6a7bb7feb, 4a5087da2, 9e93b6032, d6d7ab04d, 04ebf8a2f, c49bafea8; post-rebase: 8d9b9f7cd, ec9f3f8fc, e1a7e1113, d30a2c22c, 695df269e, 1cf76bab0, d60a4a7fa, 1d59a5b70, b7225a7de, beeaa1c02, b8c384760, 5ac12820e, 7c305102f, 537fd62ac | this commit |
| V388 | 2026-11-25 | the flake's integration checks over the synced tree | `vm-goip-argv-paths`, `golden-records`, `microvm-lifecycle-x86_64`, `vm-xtcp2-ip-listen`, `vm-linkmonitor-rdma/-embedding/-ionic/-ionic-faults`, `vm-xtcp2-scrape-auth`, `tcp-controller-unit/-race`, `nlcap-wait-linkwatch`, `test-go-race`, then `vm-all`; the failing `vm-tcp-controller` kept (`test-tcp-controller-vm --keep=1`) and read from its evidence (`~/.cache/xtcp2-vm/tcp-controller/`): the harness's own step log, agent4's journal, and the agent snapshots | All green but `vm-tcp-controller`, red deterministically at `restart-agent` — `agentReady` timing out on `127.0.0.1:9088/readyz`, connection refused for its full 15s while the treatment agent restarted cleanly and xtcp2 ran on. The bisect that mattered was architectural: the harness polls xtcp2's TCP listener, which the treatment arc (2026-10-25) got from the daemon's built-in default; the listener model (`a739d59cc`, 2026-11-11) moved an unspecified module's default to `/run/xtcp2/metrics.sock` and taught four other fixtures to name their listeners explicitly — this one was missed, and nothing ran the check in the fortnight between (CI runs only the lint ratchet). The fix follows the commit's own pattern: `services.xtcp2.listeners` in the fixture names `serves=health` on `127.0.0.1:9088`, `network=tcp`, `auth=disabled` (the harness sends no token); 8 sentinels pass, `vm-all` with them. The two earlier runs of the same check, one in a worktree at `origin/main`, pinned the breakage as upstream-in-repo, not the events arc's rebase | this commit |
| V388 | 2026-11-25 | the flake's integration checks over the synced tree | `vm-goip-argv-paths`, `golden-records`, `microvm-lifecycle-x86_64`, `vm-xtcp2-ip-listen`, `vm-linkmonitor-rdma/-embedding/-ionic/-ionic-faults`, `vm-xtcp2-scrape-auth`, `tcp-controller-unit/-race`, `nlcap-wait-linkwatch`, `test-go-race`, then `vm-all`; the failing `vm-tcp-controller` kept (`test-tcp-controller-vm --keep=1`) and read from its evidence (`~/.cache/xtcp2-vm/tcp-controller/`): the harness's own step log, agent4's journal, and the agent snapshots | All green but `vm-tcp-controller`, red deterministically at `restart-agent` — `agentReady` timing out on `127.0.0.1:9088/readyz`, connection refused for its full 15s while the treatment agent restarted cleanly and xtcp2 ran on. The bisect that mattered was architectural: the harness polls xtcp2's TCP listener, which the treatment arc (2026-10-25) got from the daemon's built-in default; the listener model (`a739d59cc`, 2026-11-11) moved an unspecified module's default to `/run/xtcp2/metrics.sock` and taught four other fixtures to name their listeners explicitly — this one was missed, and nothing ran the check in the fortnight between (CI runs only the lint ratchet). The fix follows the commit's own pattern: `services.xtcp2.listeners` in the fixture names `serves=health` on `127.0.0.1:9088`, `network=tcp`, `auth=disabled` (the harness sends no token); 8 sentinels pass, `vm-all` with them. The two earlier runs of the same check, one in a worktree at `origin/main`, pinned the breakage as upstream-in-repo, not the events arc's rebase. Amendment (2026-12-03): the events branch's merge of main (`a3cf04042`) kept both sides of this hunk — main had fixed the same miss independently two days later (`1b0bbd2ce`, a `name=health` listener), and the two `listeners` definitions made `packages.x86_64-linux.test-tcp-controller-vm` fail evaluation from the arc's merge (`2818adb76`) through `7ce0f408a8`; nothing caught it because the gate battery and CI both run the individual checks, never a whole-flake evaluation. The duplicate is deleted, keeping this row's `name=prometheus` value — the one the recorded `vm-all` run proved | this commit |
| V389 | 2026-11-25 | EP2-T01: `nlcapgen monfile` | the full `go test -count=1 ./...`; `go vet ./tools/nlcapgen`; the monfile unit tables (`TestMonfileSpec` with its refusal table, `TestMonfilePcap` with the golden bytes and the `-all` walk, `TestMonfilePadding`); `TestMonitorReadFileRoundTrip` beside the pre-existing `TestMonitorFromFile` refusals in `internal/goip`; the guest probe over a fresh workbench boot (`nix run .#nlcap-ws -- up`, free -g and the port check first) — the row's namespace from the `ns-add` recipe, the replay at both ip versions, the plain and `-d` variants, and the root-namespace replay | The delivery filter has one home now: `nlparity.NotificationIndexes` (`pkg/nlparity/nlparity_notifications.go`), the internal/goip replay delegating to it, `TestNotificationIndexes` carrying the table the `replayNotifications` test held (renamed helpers to keep the package's `le32`). `nlcapgen monfile` writes the `.nl` stream both ways — `-spec` (JSONL: type, flags, seq, pid, body hex, and a `why` the reader refuses the line without; unknown fields refused; a length over the reader's 16384 buffer refused at generation) and `-pcap` (the notifications by default, `-all` for the raw stream), each message the nlmsghdr, the body, then zero padding to the 4-byte boundary — `generate_nlmsg`'s shape with the padding spelled out, `rtnl_from_file`'s walk pinned at `lib/libnetlink.c:1315-1368`. The pcap golden: the `evnhb-bucket` row is **3 of 16 messages** — the canary's own `RTM_NEWMULTICAST` (type 56; the plan had misread it as an MDB type by miscounting the enum — the uapi grep settled it), `nexthop_notify`'s `RTM_NEWNEXTHOP` carrying the request's `NLM_F_REQUEST\|ACK\|REPLACE\|CREATE` with the requester's seq and port id (the one notification shape a naive request filter drops, held by the pid corner), and the `RTM_NEWNEXTHOPBUCKET` with `NLM_F_REPLACE` — pinned as bytes and walked back to the capture's own messages with `-all`. The guest probe: the row's namespace reproduced from the `ns-add` recipe (lo 1, nlmon0 2, c0 3), and the replay printed the row's `.out` **byte for byte (222 bytes) at both 7.2.0 and the pinned 7.3.0**. Two plan corrections came out of the probe: the `.out`-matching invocation is **plain `ip monitor file`, not `-d`** (measured, `-d` adds `scope global proto unspec` to the `RTM_NEWNEXTHOP` line at both versions; the row's monitor ran without it), and outside the namespace the same `.nl` prints `3: if3` — the `if%u` fallback measured, the names the T03 sandbox goldens expect. No upstream note owed: the filter's three agree with the `.out`'s three lines at both versions | this commit |
| V390 | 2026-11-25 | EP2-T02: the blobs | the full `go test -count=1 ./...`; `TestMonfileCommittedSpecs`, `TestMonitorBlobs` (15 blobs × 2 knobs, byte-exact against the committed ip goldens), `TestReleaseEnv`; `TestWsMonitor` (the O10 gate, 66 rows 0 differ); `FuzzParseNewRoute` and `FuzzParseNewLink` 8 s each, the former seeded with the three crafted metrics bodies; `go vet ./...`; both pinned ips over every committed blob | Fifteen spec/`.nl` pairs under `internal/goip/testdata/monitor/`, each with `<name>.ip720.out` and `.ip730.out` measured from the two ips, and goip byte-identical to both at the matching `GOIP_IP730` knob — the hionly red case `256 <>` at u16 and `0 <>` at u8, the hibyte `319 <…,>` trailing comma, the P14 `<0,3>` / none / `<0>`. The fixes: the state and mode words presence-guarded (`LinkViewOf`, `ip/ipaddress.c:1040-1043` — the corpus fixtures that modeled link messages without the presence flags gained them, six sites); the CC_ALG decode a C string (`bytes.IndexByte`, never past `rta_len`); the route walk `parse_rtattr`-raw (`WalkRTAttrsRaw`, `lib/libnetlink.c:1541-1557`) with one carve-out — `RTA_ENCAP` accepted flagged, because iproute2's own request builder writes it that way (`rta_nest`, `lib/libnetlink.c:1519-1527`) and the corpus's O3 reads captured request echoes, which the raw walk otherwise dropped (the mpls corpus rows caught it before commit). `render.RenderBondPartnerU8` (default off, the 7.3.0 u16; the knob names the older behavior it switches on) and the `GOIP_IP730` seam setting the whole release-knob set, refusing a value that is neither 1 nor 0. Four plan corrections, all measured: the V038-padding shape never faulted (`WalkRTAttrs` slices `rta_len` exactly — only the over-long shape did); the P14 blobs must carry `IFLA_BROADCAST` (the reason gate tests `tb[2]`, the link's broadcast — without it both ips print ` protodown on ` and no reasons); the route walk's carve-out above; and `TestMain` runs the package's tests at 7.2.0, so the blob tests snapshot and restore the knobs rather than resetting to the compile-time defaults, which clobbered the ambient release for every test after them (the sidecar listings caught it) | this commit |
| V391 | 2026-11-25 | Tier EG planned, measured before written | the live probe in the workbench guest (`evlink-carrier`, three sides, fresh namespaces, the canary, the trigger, a stop); the refusal row's expect record (`rc 1, errno ESRCH, refused_by kernel`); the parity guest's piece check (`goip` via `xtcp2AllPackage`, `xtcp2-nl-ipmon` on the driven guests' PATH, the 7.3.0 pin hiPrio, the save-blobs machinery); the binary probe (`goip -d monitor file` at both knobs over the hionly blob, `256 <>`/`0 <>`) | **goip's live monitor printed `ip`'s lines** — the only differences the addresses derived from each namespace's random veth MAC — so EG1's row kind is a harness question, not a goip gap. The control noise measured as three classes: the canary retry's pair (whichever side the race hits — observed on `ip` and on goip), the random MAC and its solicited-node addresses, and the carrier transient (`state LOWERLAYERDOWN` + `NO-CARRIER` vs `state UP`, one run measuring `ip_a` and `ip_b` catching each) — the last is the D_control the comparator subtracts. The refusal row's rc is the helper's own (`rc=1` when the trigger fails), not the trigger's rc — the plan's "exits the trigger's rc" corrected. Tier EG's execution plan written: EG1-T01 (the row kind — the `Command` table's monitor fields, the row format past its ten fields, the driver's monitor flow, the helper's tool switched by env so the discipline cannot fork), EG1-T02 (the rows), EG2-T01 (the offline rows, `=0` held to the committed goldens), EG2-T02 (the close, answering the kernel-spread and oneshot-retirement decisions). EP2-T03's red-run mechanics corrected for the landed order (V390 landed the fixes first, so the red run is produced in a worktree at `d30a4886c` plus the blob files, naming the three gaps; the green at HEAD), and its docs-check gate made concrete: the blob files count as artifacts, no orphans. Tier UB checked: the four notes, the index (21 artifacts, 13 notes) and the "When a note is owed" procedure all landed in earlier arcs — the phase is EP2-T03 + Tier EG, nothing else | this commit |
Expand Down
4 changes: 0 additions & 4 deletions nix/tests/tcp-controller/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,6 @@ let
"name=prometheus,serves=health,address=127.0.0.1:9088,network=tcp,auth=disabled"
];
linkMonitor.enable = false;
# The fixture's agentReady probes 127.0.0.1:9088/readyz. The default
# listener is a token-protected UDS, so serve health alone on
# loopback TCP, the one place auth=disabled is allowed for TCP.
listeners = [ "name=health,serves=health,address=127.0.0.1:9088,network=tcp,auth=disabled" ];
treatments = {
enable = true;
mode = "standalone";
Expand Down