summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/loose-ends.md64
1 files changed, 60 insertions, 4 deletions
diff --git a/docs/loose-ends.md b/docs/loose-ends.md
index 0fb2c984..29cd88fd 100644
--- a/docs/loose-ends.md
+++ b/docs/loose-ends.md
@@ -5,6 +5,32 @@ What is known to be wrong, unfinished or decided and not built, as of
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.
+The work stopped on 2026-11-24 with nothing running and nothing half
+done: what was begun and not merged is whole on a bookmark, named in "Work
+on bookmarks, not merged" below. Nothing of it is pushed.
+
+## Work on bookmarks, not merged
+
+- **Client connections** (`pardes-links-4`, wire 36). A link's lifecycle
+ as one state on both ends; a refusal and a link's last word carry a code
+ beside their words (`wire.Told`), which a client acts on; an Upgrade and
+ a Restore carry their clients' links across, so a client is not cut and
+ joined again; a pair's session keeps a client's view across an Upgrade;
+ the fix of Restore on a release build (below). Its gate was stopped part
+ way: on the tip the Debug suites, process-test by both roads (0 of 146
+ failed) and six soaks (three plain, three as a pair) were green; the
+ ReleaseSafe suites, the window rows, the upgrade rows and the frame gate
+ were NOT run on the tip. `pardes-merge71-ungated` is that line merged
+ onto `main` with its two conflicts resolved (the wire's number, the
+ test's): never built, never run. To land it: a whole gate of the merge.
+- **The pair as the default frontend** (`pardes-pair-14`, on the build
+ before this one: to merge again). A window as a pair (a session and its
+ client in two processes) by default, the own path kept. Not ready by its
+ own bar: a client's key cost 12% more than the own path's (8.48M
+ against 7.57M instructions) measured on a loaded machine, the bar is
+ 5%: what is left of it is frames presented, to count on a quiet
+ machine; and a Restore as a pair passed 8 runs of 10.
+
## Faults known, not fixed
- **Restore on a release build fails one process test.** `process-test`
@@ -13,8 +39,8 @@ An entry leaves this file in the change that settles it.
`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.
+ is written on the client-connection line (`pardes-links-4`: a connection
+ being cut is hung up, never answered with a refusal), not merged.
- **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
@@ -37,8 +63,28 @@ An entry leaves this file in the change that settles it.
second column's tag gutter (measured while testing several clients).
Whether a terminal has another handle for it was not looked at.
+- **A file's markdown tables are cached without the tab's width.**
+ `Tables.current`'s key does not hold it, as the geometry's did not
+ until the view's scroll by rows was fixed: after `Tab` changes, a
+ table's widths can be the old ones until the text changes.
+
## Decided, not built
+- **A pane opens in the view that asked for it** (ruled 2026-11-24).
+ Today an open with no view of its own (9P's `/pane/new` and a `look`,
+ `pardes FILE` typed in a terminal pane) lands in the session window's
+ view whatever client asked: a window's session makes its own view the
+ live one on every event, a wake among them. The ruling: from a terminal
+ pane, the view that typed there last; with no pane of origin, the view
+ of the last input, in a window's session and a terminal's alike.
+- **A terminal's size is the smallest of the views showing it** (ruled
+ 2026-11-24: tmux's rule). Today the view that typed last sizes it: a
+ narrower view sees its rows cut with no mark, a shorter one is panned to
+ the cursor, a larger one shows blanks. The ruling: columns and rows are
+ each the minimum over the views that show the pane; the sizing by the
+ last typist, the cut and the pan (`Pane.pan`) go. It changes the dump
+ and the wire's number.
+
- **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
@@ -53,8 +99,9 @@ An entry leaves this file in the change that settles it.
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.
+ Measured: a view is 130 KB; eight views is one literal
+ (`views.max`), 522 KB more a core and a digest 61% slower with every
+ view open; sixteen also needs the views' masks widened to u16.
- **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
@@ -67,6 +114,9 @@ An entry leaves this file in the change that settles it.
- 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.
+- The same change costs `body-appends` 0.11% more an operation (the
+ tab's width is a word more in the geometry's key: 29 to hash for 28);
+ packing it beside the scroll row's word would give it back.
- 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.
@@ -83,6 +133,12 @@ names; whether the Python harness goes entirely.
## Tests and gates
+- The frame and performance gate against the recorded baseline (`tree7`)
+ now fails by what was accepted: one frame of 77 (frame 76) and eight
+ cells of 121 (`deep-sel`, `body-appends` on a long line). A baseline
+ recorded on this tree clears it.
+- `test/daemon.py --client-resize-real` is skipped where the window
+ build's prefix holds no `pdf.so` (a Debug gate's does not).
- 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.