Skip to content

tidy-dataplane-conn: one missing package, two stale promises - #217

Merged
dinstein merged 3 commits into
mainfrom
tidy-dataplane-conn
Aug 7, 2026
Merged

tidy-dataplane-conn: one missing package, two stale promises#217
dinstein merged 3 commits into
mainfrom
tidy-dataplane-conn

Conversation

@dinstein

@dinstein dinstein commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Nightly-tidy slice over the connection half of the data plane — internal/downstream,
mrtr, router, pipeline, ratelimit — and the sections of docs/modules/dataplane.md
that cover them.

Nothing here touches the frozen surface: the gate chain and its order, RouteOf, the
single execution path, or any failure direction.

  • 1. dataplane.md counts nine packages, lists seven, and omits mrtr
  • 2. ratelimit: Admission justifies itself by a stage that was removed
  • 3. downstream: stderrlines promises a first-line drop nothing implements, and a test that does not exist

dinstein and others added 3 commits August 7, 2026 12:45
The layer map opened with "Nine packages, one layer each" above seven bullets,
and internal/mrtr was the one with no bullet — though it has a section of its
own further down. Neither number was right: counting the way the bullets
themselves do, with toolsig and toonenc folded into their parents, there are
eight.

The missing bullet is the half that costs something. This list is where a
reader goes to find which layer owns what, and MRTR input resolution is
exactly the kind of thing someone arrives looking for; absent from the map, it
reads as living inside downstream, which is where its retry loop is but not
its resolution. The new bullet says which half is which.

Docs only.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Two comments in admission.go cited machinery that is gone. The type's reason
for existing was "the 7.2 argument self-heal re-issues the same call with
repaired arguments" — that stage went with the rest of the argument-inspecting
pipeline, and nothing in the tree re-issues a call today: pipeline.Execute
invokes req.Call exactly once, at one line. And Wrap's nil case was explained
by "the wiring can wrap both CallRequest fields", where CallRequest has one
call field.

A justification naming a mechanism that does not exist is worse than none: a
reader who greps for the self-heal finds nothing and cannot tell whether the
single-charge memo is load-bearing or a leftover to delete. It is neither
today — it encodes a rule about agent intent that outlives whichever execute
path is current — and that is what the comment now says.

No behaviour change; the memo, the guard and the tests are untouched.
make ci green.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ments

Two claims in this file were false. stderrTail said "the FIRST line of the
window is dropped when the window is full, because a 4 KiB cut lands mid-line
and half a line in an error report is worse than no line" — no code does that,
at either layer: transport's tailBuffer cuts on a byte boundary, and tailLines
keeps the last n non-blank lines with no notion of a fragment. And tailLines
called itself "unit-tested directly" while having no test at all; its only
reference in the tree was its own definition and its one caller.

The combination is the bad one. This projection is how every handshake failure
and every respawn line reports a dead child, so a reader deciding whether a
crash report can be trusted was reading a guarantee that was not there, backed
by a test that was not there.

tailLines now has the tests, including one that pins the fragment being
reported whole — asserting what the code does, so it is the test that has to
change when this is fixed. Both comments say what holds. dataplane.md carried
the same false sentence and now carries the gap instead, with why closing it
is not a tidy-night edit: tailLines is handed the window's contents and not
its capacity, so plumbing the cap through changes the error text.

No behaviour change. make ci green.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dinstein
dinstein marked this pull request as ready for review August 7, 2026 04:51
@dinstein
dinstein merged commit ec8c6d5 into main Aug 7, 2026
3 checks passed
@dinstein
dinstein deleted the tidy-dataplane-conn branch August 7, 2026 04:56
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