From 14e56289391ea95b493c2a20c87f8d88047aa051 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 15 Nov 2026 17:16:08 +0100 Subject: 0.6.0: transcript viewer, turn summary, yolo floor, model/version records - --show renders a session without locking it - status line summarises writes, commands and denials per turn - sessions record harness version; model switches are appended and listed - --yolo refuses $HOME and / unless AGENT686_ALLOW_HOME=1 --- docs/KNOWN-ISSUES.md | 72 ++++++++++++++++++++++------------------------------ 1 file changed, 30 insertions(+), 42 deletions(-) (limited to 'docs') diff --git a/docs/KNOWN-ISSUES.md b/docs/KNOWN-ISSUES.md index 44d9f07..79ce26c 100644 --- a/docs/KNOWN-ISSUES.md +++ b/docs/KNOWN-ISSUES.md @@ -3,66 +3,54 @@ Understood, deliberately not fixed. Each one has a reason, and a note on what would change the decision. -## Concurrent sessions can interleave - -Two processes appending to the same session file will interleave messages and -corrupt the conversation, permanently, because history is never rewritten. -`flock(LOCK_EX | LOCK_NB)` on the session fd at open would refuse the second -process. Not done yet because the failure needs deliberately resuming the same -id in two shells, and the fix is easy to add later. If it ever happens once, -add the lock. - -## `--yolo` has no floor - -`--yolo` approves everything, including in `$HOME` or `/`. There is no check -that the directory is a git repository, so the documented undo does not exist in -some of the places it will run. Refusing `--yolo` outside a repository (or in -`$HOME`) would be a small change; it is deferred because the acceptance test runs -in an empty temp directory. - ## `--list` reads every transcript Listing costs O(total bytes of all sessions), because it parses each header and counts messages. At current sizes this is milliseconds; a 200 MB session file makes it visibly slow. An index or a `--json` format would fix it. -## `edit` loads the whole file +## `edit` still holds the file in memory -`edit` reads the file, matches, and writes it back through a temporary file. On -the 32-bit target a file near the address-space limit fails with an out-of-memory -error rather than a clean refusal. A >32 MB file should be rejected up front with -"too large for edit; use write". +It now refuses files over 64 MiB and files that are not valid UTF-8, with a +message pointing at `bash`. Anything under that is read, spliced and written +through a temporary file, so the peak is roughly twice the file size. On a 3 GB +address space that is fine; the refusal is the guard. -## Editor width is approximate +## `--doctor` fails on an unlisted model -The line editor counts one column per character, so wide (CJK) characters, -combining marks and raw tabs (from a paste) mis-place the caret. The width is -read once per prompt, so a resize mid-edit mis-renders. +If `GET /models` does not list the model id you use (some gateways only list a +subset), doctor exits 1 even though a turn would work. `--doctor --probe`, which +would send a one-token completion, is not implemented; that is what actually +matters. -## No transcript viewer +## Retry budget is fixed -Reasoning is stored beside each assistant message for humans, but the only way to -read it is `cat` on the JSONL. A `--show ` renderer would make auditing a -`--yolo` run practical. +Four attempts, 1 s / 2 s / 4 s, no jitter, no per-status policy. A 429 with a long +reset window will still fail after ~7 s. ## Approval state is per process Restarting the harness re-prompts for the first edit even when resuming a -session. That is intentional (see CONTEXT.md), but it is worth knowing. +session. Intentional (see CONTEXT.md), but worth knowing. -## `--doctor` fails on an unlisted model +## `--yolo` is only floored at the obvious places -If `GET /models` does not list the model id you use (some gateways only list a -subset), doctor exits 1 even though a turn would work. `--doctor --probe` sending -a one-token completion would test what actually matters. +It is refused in `$HOME` and `/`, but a model can still write anywhere by absolute +path once a turn starts, and `bash` can change directory. The floor is a speed +bump, not a sandbox; `bash` has no sandbox by design. -## Retry budget is fixed +## No machine-readable output + +`--list`, `--doctor` and `--show` print for humans. A `--json` shape would let +scripts consume them. + +## Editor gaps -Four attempts, 1 s / 2 s / 4 s, no jitter, no per-status policy. A 429 for a -model with a long reset window will still fail after ~7 s. +Wide characters, combining marks and tabs are now measured correctly, and a +resize starts a fresh prompt line instead of erasing output. There is still no +Ctrl-L redraw and no Ctrl-Z suspend. -## No per-turn summary +## No session garbage collection -The status line reports steps, time, tokens and allowance, but not what changed: -no "3 files written, 5 commands run, 1 denied". For a `--yolo` run that is the -summary you actually want. +A failed first turn leaves a session file that `--list` shows forever. Deleting +files under `~/.local/share/agent686/sessions` is safe; nothing else indexes them. -- cgit v1.2.3