diff options
| -rw-r--r-- | docs/loose-ends.md | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/docs/loose-ends.md b/docs/loose-ends.md new file mode 100644 index 00000000..0fb2c984 --- /dev/null +++ b/docs/loose-ends.md @@ -0,0 +1,92 @@ +# Loose ends + +What is known to be wrong, unfinished or decided and not built, as of +2026-11-24, written down so that none of it has to be found twice. Nothing +here blocks daily use; each entry says where it was seen and what is known. +An entry leaves this file in the change that settles it. + +## Faults known, not fixed + +- **Restore on a release build fails one process test.** `process-test` + on ReleaseSafe, the root-ctl case "Restore asks once about unsaved text, + is answered before it cuts every connection": the request is answered + `Refused`. A request on a connection the Restore is cutting gets an error + in the 200 ms cut window (runtime/9p_io.zig `onServe`). Debug passes, + which is why every gate missed it until the release row was added. A fix + is written on the client-connection line (a connection being cut is hung + up, never answered with a refusal) and lands with that line. +- **A damaged session image can panic the database reader.** The dump + fuzz's image road reaches xitdb's own reader (`switch on corrupt value` + in `HashMap.init`, `readBytesObjectAlloc`, from core `Db.Read`) past its + fixed seeds. pardes's own decoders refuse a damaged dump naming the + field; this one is the dependency's. It wants an Edit in + build/patches.zig and a report beside the other dependency reports. +- **A client that replays after it diverged can overflow an integer.** + `Core.advanceInner` (`due - p.clock.stepped_ns`): seen only by the + soak's witness replaying a client that had already parted. A client that + diverges is dropped and joins again, so a user does not reach it today. +- **A detached session loses the words of an Upgrade that could not + load.** With no frontend of its own, "no build could load" is shown to + nobody; it should reach the log and the next client. +- **After an Upgrade a window says the pointer is inside.** `/status` + read "pointer in" in two windows right after their exec with the pointer + in neither (2026-11-24); one went back to "out" by itself. +- **A client left once across a build whose wire number differed.** Seen + once on the client-connection line, not reproduced. +- **In a terminal client a column's border did not drag** by B1 on the + second column's tag gutter (measured while testing several clients). + Whether a terminal has another handle for it was not looked at. + +## Decided, not built + +- **An addon's panic closes only its pane** (ruled 2026-11-24). Today an + addon's panic is pardes's panic: a crash record is written, the terminal + is put back, and the session ends. The ruling: the pane of the addon + that panicked is closed with its words in the log, the session goes on. +- **A client's send queue bounded by back-pressure.** The session writes + no more than a window W past what the client has read and queues the + rest; a client is cut to a fresh dump only when the queue also passes W. + Designed with a draft on the client-connection line; today a far client + under a flood is cut by the older lag rule, which works. +- **The 200 ms flush before a link is dropped** becomes a wait that each + writer's end wakes, and every other time bound gets one line saying why + real time is right there. Designed, not built. +- **More than four views a session.** A fifth view is refused (the + session's own and three clients, or four clients of a detached one). + What raising the limit costs (the per-view arrays, the digest, the dump, + the wire) is not measured. +- **Help wraps mid-word.** It waits on wrapping at word boundaries, which + no pane has yet. +- **A pane's rectangle inside its column, checked at a load.** A view's + rectangles off its screen are refused; this narrower check is not built + because a pane placed and not yet laid out has an empty rectangle inside + a step, and a dump is written inside a step. + +## Prices accepted (to turn if they are felt) + +- A view's scroll by rows: selecting deep into one 2 MB line costs about + 75% more a frame (it draws the rows the selection is on; the old view + did not show them). Every ordinary key, wheel, page and edit: no dearer. +- One terminal cell of the performance table is 0.14% to 0.16% over its + old count since the change layers; the baseline was recorded again. + +## The structural queue + +Three pieces of organization meant to make whole kinds of fault +impossible to write, each to start with a read-only survey and a plan: +a client's lifecycle as one state with codes on the wire and every time +bound named; what a field of the core costs (the digest, the dump and +the copy declared together); the test harness (the Python daemon tests +moved to the Zig runner, mode by mode). Three questions go with it: the +terminal boundary enforced by type or by a counted list; the codes' +names; whether the Python harness goes entirely. + +## Tests and gates + +- The gui `unit-test` step exits 1 with every test passing: its + performance check reports a baseline recorded by another harness. A + baseline recorded with the current one clears it. +- `test/daemon.py --upgrade --gui` assumes `wayland-0` when + `WAYLAND_DISPLAY` is unset; it should find the compositor's socket. +- `test/daemon.py --window-clients` skips its PDF case when the terminal + build's prefix holds no `pdf.so`. |
