Repository navigation
Conversation
Four things ate tool calls in a session that used the skill end to end.
The skill told the agent to build its commands from `${CLAUDE_SKILL_DIR}`,
which is substituted only in a command's `allowed-tools` frontmatter, never in
a skill body. The variable arrived empty, and the documented fallback ("beside
this file") is unresolvable, because a rendered skill body carries no path to
be beside. Recovering it took six calls and ended in a guess between two
cached plugin versions.
Claude Code appends every enabled plugin's `bin/` to PATH, so `bin/colloquy`
makes the script reachable by name. That also retires the `IX="uv run …"`
idiom, which broke outright in fish: no word splitting there, so `$IX init`
tried to exec one file whose name was the whole string. The shim supplies
Playwright on seeing `--render`, keeping the wheel off every serve and wait,
and `cli(prog_name="colloquy")` makes the usage lines say the name that's on
PATH.
`note` already runs the lint and refuses a failing version, so the workflow's
separate `check` step was a redundant call on every version. The section that
carried it wedged two unlike things together: a mechanical lint, and a
read-the-page checklist of judgment calls. They're now three named passes,
lint through render gate through human read.
The screenshot step went with it. It was framed around clipped diagrams, which
`check` already covers, so it read as duplicating the lint and got dropped the
moment Chrome went flaky. The failure a browser uniquely catches is a mermaid
body that doesn't parse: the lint validates the element, never the notation
inside it. `check --render` already caught it via the widget's fail-soft box,
which a new test pins, driving it through the shim from an unrelated cwd.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The Setup paragraph conflicted: main moved the page directory to ~/.local/state/colloquy/pages/, this branch replaced the sentence that followed with the `colloquy` command paragraph. Kept main's XDG text and dropped its trailing pointer to interact.py, which now lives in this branch's `command not found` fallback.
Owner
Author
|
Closing: this repo lands branches with
|
max-sixty
added a commit
that referenced
this pull request
Sep 9, 2026
The notification playground previously spent most of a short first viewport on repeated framing, and its configuration stopped at an instruction rather than proving the promised agent workflow. This change compacts the example around one question, gives the attention preset honest content, and makes the selected configuration describe a concrete local artifact and where its revision will appear. The integration test drives the existing request lifecycle end to end: a reader sends a configuration, the host picks it up, the agent writes and captures `deployment-notification.html`, the page exposes that source beneath the original configuration, and an anchored reader comment produces a second artifact revision with a receipt. The test also covers the replaceable configuration seat, source visibility, preserved anchoring, and the updated file contents. The catalog preview is refreshed at `max-sixty/leaf-assets@357127280030c3a81425483f1c44fc152d29c7c6`, and the completed #2, #4, #6, #8, #9, and #17 backlog entries are removed while preserving the deferred evaluation work. Verification: `uv run pytest tests` (944 passed), `uv run pre-commit run --all-files`, rendered light/dark and short-window checks, standalone export, and two context-blind Sol usability passes. > _This was written by Codex on behalf of max-sixty_
This was referenced Sep 14, 2026
max-sixty
pushed a commit
that referenced
this pull request
Sep 18, 2026
`notes/workspace-followups.md` has been presenting finished work as the plan since 9 September. It opens with "Start #2, #3 and #4 as one coordinated contract batch; run the review-queue simplification #8 alongside it" — all four of those shipped that week — and carries thirteen briefs, each with a live "Next task" and "Done when", for work `TODO.md` dropped as complete. This removes them and leaves the six `TODO.md` still links: #11, #14, #19, #20, #22 and #23. The trim follows the convention #666 set and the reason `CLAUDE.md` gives for it: a note is never a second specification for shipped behavior. #666 removed #6, #7, #16 and #17 the same way, rewriting the two `Owner / dependencies` lines in surviving briefs that named them; it simply did not reach the rest. Each removal is evidenced by the commit that took the item out of `TODO.md`, not by a reading of the current code: | Brief | Removed from `TODO.md` by | | --- | --- | | #1, #3, #5 | [`0f7f06a6`](0f7f06a) — "Completed workspace items #1, #3, and #5 are removed from `TODO.md`" | | #2, #4, #8, #9 | [`28b5da99`](28b5da9) — "the completed #2, #4, #6, #8, #9, and #17 backlog entries are removed while preserving the deferred evaluation work" | | #13, #15 | [`6df40353`](6df4035) — "closes three bounded workspace follow-ups" | | #10, #12 | [`c9eaa2c6`](c9eaa2c) — the continuation cue and the adaptive Threads placement | | #18, #21 | [`e46c8b93`](e46c8b9) — the monitoring workspace and its package-owned root | Alongside the briefs, three group headings are now empty and go; the `Suggested work packages` table loses the rows whose whole scope landed; and four cross-references that named a removed ID are rewritten — #14's dependency on the Threads-placement experiment, #20's ordering behind #8, and the two sentences in `Reproduction record` and `Browser evidence` that pointed at briefs no longer here. #14 needed more than a rewritten pointer. The experiment it waited on was settled in two steps, and only the first removed an ID: [PR #520](#520) kept the adaptive placement and deferred the modal-focus work to #24, which landed in [PR #536](#536) as inertness, dialog semantics and focus containment for a covering workspace. That is the surface #14 exists to verify, so its `Done when` — "Avoid imposing a modal focus trap on a nonmodal panel" — described the containment #536 shipped as the defect to avoid. It now states the containment the shipped modality requires, and the dependency line names both settlements. The dated evidence sections themselves stay. They are the record of what was read in a browser on 8 September, not a plan, and the note's own header scopes them to that date. No test covers `notes/`, and this changes no behavior, so there is nothing to regress. `pre-commit` passes on the file; the `TODO.md` → note anchors all still resolve, and no surviving text references a removed ID. --------- Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Sep 26, 2026
…delivery eval an ack reading and a mid-turn case (#1240) Two follow-ups to #1238's benchmark survey. **`verify-site-local.sh` becomes `verify_site.py wrangler`.** The shell script started `wrangler dev` with prewarm off, polled it, ran `verify_site.py`, and printed the Worker log on failure, which is the same lifecycle `local_adapter()` already ran in Python for the `local` target. Both targets now share `serving` (start, wait for readiness, terminate) and `logged` (collect output, print it beside any failure). CI, `publish-site`, `AGENTS.md`, `scripts/AGENTS.md`, and `/developing-leaf` call the new target. It also removes its own containers once wrangler exits: `wrangler dev` 4.130 stops each session's container but leaves its `proxy-everything` sidecar running, and no later run reclaims it, so each local run used to leak about three running containers. To tell its containers from those of another `wrangler dev` of this Worker (such as `npm run dev` in `worker/`), the run serves under a Worker name of its own, `lv<pid>`, which workerd puts in every container's name. Verified with real runs through Docker, including one beside a stand-in container named like another run's, which survived. **The delivery eval gets a sharper per-comment reading and a mid-turn case.** "Actions before ack" read 1 in every run because the one action was always the expected read of the wait's output, so it had no range. It is replaced by `ack`, the seconds from the delivery reaching the agent to its pickup (the agent's own share of pickup time), and `extra`, anything run before `leaf wait --ack` other than that read. Cases: - `idle`: a comment after the setup turn ends, then a second once that turn has ended, which only arrives if the ack re-armed the wait; - `mid-turn`: a comment posted while the setup turn runs, which the Stop hook carries in. The children now run with `--include-hook-events`, each stream record carries the time it was read, and `ROUNDS` drops to 2. One A/A round (same plugin in both arms): | session | route | pickup | reply | ack | extra | |---|---|---|---|---|---| | base idle #1 / #2 | notification | 6 s / 5 s | 9 s / 8 s | 5 s / 5 s | none | | head idle #1 / #2 | notification | 5 s / 5 s | 11 s / 8 s | 5 s / 4 s | none | | base mid-turn | Stop hook | 10 s | 13 s | 6 s | read two references first | | head mid-turn | Stop hook | 8 s | 13 s | 4 s | none | On idle comments nearly all of pickup is the agent's own time; the notification lands within a second of the comment. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 22, 2026
…ver it again if the turn ends first (#3591) Max's decision #2 on the overnight report: confirm a Claude Code hook delivery at the turn's next hook (option B), so an update the turn never read is delivered again. ### The defect Claude Code reads a hook's output only once every hook of that event has exited. Escape before then drops it. Leaf's hook recorded the receipt as it returned, so the update read Picked up while no model had seen it, and nothing offered it again. Reproduced on Claude Code 2.1.308 with the new journey steps below, against the base: - **A resolve** whose wake Escape interrupted never reached the agent (no hook context carried it within 120 s). - **A comment handed over at a tool boundary** (PostToolBatch) in a turn a wake opened was not answered within 150 s. Escape cancelled the boundary's hooks and ended the turn ("turn ended in error"), and no watch or nudge followed. This also settles the TODO's untested guess that PostToolBatch shares the window. - On 2.1.308, Escape during a wake's prompt hooks makes Claude Code submit the queued wake again at once. On the base the retry carried only a reminder, so an owed comment still got answered, but an update that owes nothing was lost. ### What changes - **Handover and receipt are separate again.** A Claude Code hook records only the opened pickup, so the page shows the update as delivered at once, as before. The turn's next hook records the receipt (`delivery.confirm_turn`). That hook is PreToolUse before a `leaf` command, PostToolBatch, or Stop, and each runs only after the model has read the context. Pi's extension commits a hook's context itself, so its hooks still record the receipt with the pickup (`Harness.commits_hook_context`). - **One rule decides re-offering.** `delivery.deliverable` leaves out what a hook handed into the owner's still-open turn (`awaiting_receipt`). Once that turn reads ended, the update is deliverable again, by the same path #3272's re-offer to a new owner uses. A turn ends when Stop closes it without confirming, or when Claude Code's record reads idle after an interrupt (`activity.claimant_turn`). It is also deliverable again when a prompt opens the turn again. Claude Code reuses Leaf's turn id after an Escape, so a handover counts only from the turn's latest opening (`handed_into_turn`). That is how a resubmitted wake's prompt hook hands it over anew. No new event kind or record is added: the opened pickup is the handed state, and the existing receipt is the confirmation. - **The re-offer reaches a session with no watch.** An interrupted turn runs no hook. The page's server already reads Claude Code's record every presence interval, so when it reads an interrupted turn holding such input and no watch, it nudges the session (`presence.nudge_interrupted`, called from `server_rows`). A watch from before the turn wakes for the input itself. As it wakes, the watch marks the ending as messaged (`session.woke_after`), so the server doesn't also nudge in the moment before the woken turn starts. An earlier journey run of this branch caught that double wake. - **"Picked up" becomes "Delivered"** in every visible string, and "Waiting for pickup" becomes "Waiting for delivery". Under the new contract, Leaf knows it delivered the update into a turn, and it delivers the update again if that turn ends unread. The protocol ids (`pickup` events, stage `picked_up`) are unchanged, so this needs no protocol bump. The glossary records the stage id, and the docs, references, examples, corpus and kernel follow. - The TODO entry for this decision is removed. ### Tradeoff A turn interrupted after the model read a handover but before any confirming hook ran gets that update again in its next turn. For example, the user presses Escape during the agent's first non-`leaf` tool call. The agent may then see the update twice. Leaf doesn't run a hook before every tool, because each one costs a process start. ### Checks - `leaf-dev journey claude-code` passed every step on this branch, including three new ones. `dropped`: Escape during a wake's prompt hooks, with a second prompt hook sleeping 6 s, and the comment is delivered again and answered. `withdrawn`: the same for a resolve, which reaches a hook's context. `boundary`: Escape during a PostToolBatch in a woken turn, and the server's nudge brings the comment back, which is answered. On the base, `withdrawn` and `boundary` fail as described above. The `--hooks-module` arm named in the decision no longer exists, since #3540 removed the module's watch, so the plugin's module loaded in this one run. - Hook cost from the journeys' debug logs: PreToolUse before a `leaf` command went from a median of 145 ms (base, n=15) to 169 ms (n=18) under a loaded host. PostToolBatch had a median of 253 ms on the base and 222 ms here. - New `test_a_handover_its_turn_never_confirmed_is_offered_again` covers an owed comment and a resolve. They are handed over, the turn is read as interrupted, both are deliverable again, the row publisher nudges, a renewed prompt hands them over again, and PreToolUse confirms. Tests that read the cursor right after a handover now read the pickup and confirm with a later hook. Model, process, runtime and snapshot tests covering hooks, waits, receipts, activity and the CLI pass. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 22, 2026
…in a turn of its own (#3596) Max's decision #3a on the overnight report: when a Claude Code turn ends still owing a page answer, end it on its answer and remind the agent in a turn of its own (option A). ### The defect Leaf's Stop hook continued a turn that still owed an answer to a delivered update, telling the agent which update it owed. The agent then wrote one more message, usually a short note about the comment. Claude Code's focus view shows only each turn's last message, so that note stood in place of the answer the turn had written. In Max's sessions of 10–19 October this was 9 of the 65 Stop continuations; #3256 had already moved the late-input cases to a turn of their own. ### What changes - **Stop ends the turn on its answer** where a watch follows the turn (`Harness.watches_between_turns`: Claude Code at its terminal, Pi with a UI). `hook_transport.stop_continues` no longer counts response debt there. Under plain `--print` and on Codex, where no watch wakes a later turn, Stop still continues the turn as before. A page Leaf could not re-vendor still continues the turn. - **The watch wakes a turn of its own for the reminder** (`session.left_owed`, `activity.left_owed`). After a Stop closes the turn, the watch wakes for each owed answer that turn didn't start and that no prompt has named since the update's delivery. It wakes the same way #3256 wakes for late input. That turn's prompt hook names the owed answer with its exact ref, as every prompt already does. The wake line says the page has an update still owed an answer, rather than new input. - **The record that Leaf reminded is the prompt's existing pickup, with no new record.** When a prompt re-presents an update already received and still owed, the prompt hook records an opened pickup without the update's `answer.ref` (`pick_up_acknowledged`). `delivery.reminded` reads that pickup: a ref-less pickup after the newest delivering one means a prompt has named the update since its delivery. This is the same pickup record #3591 (decision #2) reads as handed but unconfirmed. So a turn that ends still owing the same answer wakes nothing more, whether the reminder came from the watch's turn or from a prompt the user typed. A new delivery of the update, as when it changes hands, starts over. - `leaf wait` and the Codex adapter keep their watch passes as they were: `session.read_watch_pass`'s default still wakes only for a batch. - The TODO entry for this decision is removed. ### Checks - New `test_a_turn_ends_on_its_answer_and_a_turn_of_its_own_names_what_it_owes`: a prompt hands a comment over, and Stop ends the turn with no output. The watch wakes with the owed-answer line, the next prompt names the comment, and when that turn ends still owing it, nothing more is owed a wake. On main, the first Stop continues the turn instead. - `test_agent_sees_the_complete_interaction_recovery`'s snapshot now shows a Stop with no output, the watch's reminder wake, and the reminder in the next prompt, where it used to show the reminder in the Stop hook's output. - Tests whose subject is what Stop says when it holds a turn now run under plain `--print` (`printing`), where it still does. Two monkeypatched policies take the new keyword. - `leaf-dev journey claude-code` gains a `deferred` step. The user's own turn, told to leave Leaf's comments for later, is handed a comment at a tool boundary and ends on its answer, with no Stop hook continuing it. The step checks that the user's turn closed with the comment unanswered, that no Stop hook output named it, and that a later prompt named it before it was answered. The full journey passed every step on this branch. In `deferred`, the user's turn ended on "done", and the woken turn answered the comment 35 s after it was sent, with one wake row and no empty one. The journey's row count now counts a wake as filled when its prompt carries a reminder (`ATTENTION_OPENING`) as well as a delivery. The `--hooks-module` arm named in the decision no longer exists, since #3540 removed the module's watch, so the plugin's module loaded in this one run. - Model and process tests covering hooks, waits, receipts, activity, workflows, Codex and the hooks module pass. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
pushed a commit
that referenced
this pull request
Oct 22, 2026
) This adds a TODO entry for a follow-up to Max's decision #2 on the overnight report (#3591). After an interrupted tool boundary, #3591's re-offer delivers a comment twice. #3591 offers a Claude Code handover again once its turn ends with no later hook. That is right for the prompt hook, where Escape drops the prompt and Leaf's context with it. On Claude Code 2.1.308, though, Escape during PostToolBatch's hooks keeps Leaf's context in the conversation. In one `leaf-dev journey claude-code` run (its `boundary` step), the transcript held the comment in both the PostToolBatch context and the nudged turn's prompt context, and the agent wrote that it "came in twice". A turn interrupted after the model read a prompt's delivery, but before any confirming hook ran, gets that delivery twice as well. The entry records the finer fix: offer an update again only when a prompt hook handed it over, and after an interrupted tool boundary remind the agent of what it owes instead. No code changes. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Nov 6, 2026
…ge; travel goes to a passage's first drawn line Placement re-placed a thread only where a change touched the text nodes its last successful match stood in, so what a resolution depends on beyond those nodes went unheard. In Chromium and Firefox, on 58753e4: - words a script took out of a marked phrase and, in a later task, put back left it unmarked (#1); - a second copy of a quote written in its section, with no context to tell the two apart, left the first marked (#1); - a word prepended inside a declared shadow stage a passage runs into left both pieces marked, since the native walker never reached the page's piece before it (#2); - an element inside a passage made contenteditable, which fences it, left it marked, since the watcher reported only text writes and child lists (#3). Each was a mark a fresh resolution rejects, or one it finds that wasn't painted. The page's index of quotes (passages.js, `trackQuotes`) now holds what a quote's resolution depends on: every copy of each quote the threads name, placed or not, and the words a resolution read beside a copy to tell copies apart (`near`). Copies are found by hashing their letters, so one pass over the page finds every quote's copies, where a pattern apiece searched the whole page, once per thread (#4). Between readings the index is carried through the span the two readings differ in (`changedSpan`), which compares the readings themselves, so text, edges, fences and the order the walk reads the page's trees in all count, by the reading's own rules: copies outside the span stand, shifted past it, and the span plus the widest quote's letters before it is searched again. The words watcher no longer interprets which nodes a change touched; it says the reading changed, and which text nodes a change wrote or took out, whose live ranges the DOM moved even where the page then reads the same. Placement places again, after the script, the threads whose quotes the index says changed (`quotesChanged`) and those whose text nodes were rewritten, placed before or not. `runsOn`, the native walker and the per-reading, per-section regex cache go. A thread that comes to stand where the last paint marked nothing for it, and didn't choose to (a resolved thread, a drawing), is painted by a presentation, since only a paint of the page knows where it falls among the marks (anchor-paint.js, `replace`). Overlapping copies still collapse into the first. What changes: the regex's lead consumed its text whether or not the rest of the quote followed, so a lead that failed, or crossed a fence, hid a real copy starting inside it; now only a copy does. This reaches only quotes that overlap themselves. Step 0, a paragraph holding N marked passages, toggling a leading space (Chromium): - origin/main (6cc574a): the edit searches nothing and its next presentation searches each quote over the whole page: 32/512/1,600 searches, 24k/6M/59M characters, 4.8/127/1,077 ms. The merge base (6b3159d) is the same. - 58753e4: the edit runs those searches (reviewer's measure 0.5/7.5/42 ms). - Now: 0 searches; the edit takes 0.75/2.5/6.4 ms, which at 1,600 is re-placing the 1,600 threads whose node the edit rewrote. Pointer moves: 1.17 to 1.27 ms at 512, 3.29 to 3.32 at 1,600; the scaling page's 1,600-section edit 9.0 to 7.1 ms, moves 1.58 to 1.44. - Each script task that changes the page's words now builds the page reading once, for the index to compare: 0.3/2.2/6 ms at 32/512/1,600 sections. A counter redrawn every frame far from any mark costs 1.5 ms more a frame at 512 sections and 5 ms at 1,600. - A presentation on the 1,600-mark paragraph still takes about 0.9 s, on main too: the inventory keys each passage's row by reading its whole block (`passageRow`). - B, threads placed again over 80 moves beside a counter: 0 at 32 and 512 marks. Where travel lands (#5, #6). `passageStart` read a passage's first line down the page, so in vertical-rl it returned one character and `t` left the column at y 765-1165 in a 900 px window, and it took the first segment even where it draws no box, so `t` left a passage whose first words are display:none at y 1,685. It now takes the first segment the browser draws a box for and reads its line along the block axis of its writing mode. Tests, each failing on 58753e4 in Chromium and Firefox: - test_a_mark_whose_words_a_script_puts_back_is_marked_again (#1); - test_a_marked_phrase_a_script_writes_again_is_marked_no_more (#1); - test_words_a_script_puts_inside_a_passage_s_shadow_stage_unmark_it (#2); - test_a_passage_a_script_makes_editable_inside_is_marked_no_more (#3); - test_travel_to_a_thread_shows_the_first_line_its_passage_draws, vertical and hidden start (#5, #6). Runtime: a kept quote answers each of nine changes as a fresh pass does, and the quotes the index says changed are those whose answer did; a change beside a told-apart copy changes its quote. Each fails with the window search, the fence or segment comparison, or the `near` check taken out.
max-sixty
added a commit
that referenced
this pull request
Nov 6, 2026
…ote the whole message Review of 121f260..26d4f4a found four costs and gaps. Choices naming [x, a], [x, b] and so on each made a family of their own, since a family was keyed by everything its actions named. Restating x and moving it between owners then revisited every family at every move: warm `saved_after` took 1,207 ms at 1,600 choices and saves. A family is now keyed by what its actions name that a version has restated (`events._Family`), reached through a trie in the order versions first restated each element (`_Node`), so one set is one family however its actions reached it. What no version has restated yet decides nothing, so choices naming x and options of their own share one family until a version restates one of those options; then the actions naming it move to the family that names it too, the fewer of the two parts moving (`InForce._regroup`). A containment compared each restated element's two chains of holders by searching both for every ancestor, quadratic in depth. It now finds the owners that gained or lost the element once per element, and reads only those some family watches. The line's quote read a message from the log with its words alone, so a message holding a widget quoted its prose ("Choose:") and an image-only comment quoted "". It now reads the message from its thread, as the thread reads it: `thread/messages.js`'s `messageWords`, which `threadName` also reads, counts a widget's words through the message's captured body and an image by its alt text, else Image, as its control is named. An image-only comment quotes "Attached image". A message's words at an earlier save come from the thread's rewrites, which the published thread record now carries. The line also indexed the whole log at every presentation, with or without a comparison, and subscribed the ⇄ entry's label to every accepted log change. It now reads nothing while no comparison shows, and while one does, only the threads of the messages it quotes, through the thread index (`thread/state.js`, `threadNamed`). `h` landing on a change whose block a waiting comment stands on opens that comment's thread over the margin at main's merge base as well (6b3159d): the same card at the same place, so this branch doesn't cause it. Tests, each failing on 26d4f4a: moving a restated element judges as often whether 10 or 100 choices share it (300 against 3,000 judgments); a containment wrapping every option once more reads chains in proportion to their depth (554,400 reads at depth 80 against 43,200 at 20, before); a waiting message holding a widget quotes its words; an image-only comment quotes "Attached image" on a served page, in Chromium and Firefox; with no comparison the line reads nothing of the log. Measured, 26d4f4a then this tree, this process: review #2, 1,600 choices of [x, o_i], x restated, moved each save, warm saved_after: 100/400/1,600: 4.6/70.1/1,206.9 ms -> 0.6/2.2/9.6 ms one move of x, 10/100/1,000/10,000 choices sharing it: 5.2/46.5/499.4/6,285.8 us -> 1.3/1.3/1.4/1.7 us review #5, 1,600 restated options under 10/40/80/160 wrappers, an outer wrapper added and dropped, per containment: 2.49/18.70/65.63/211.86 ms -> 1.25/3.44/7.12/12.23 ms review #7, the line read with no comparison, 100,000/400,000 events: 3.91/25.14 ms -> 0.000/0.000 ms per presentation The earlier growth cases keep their growth; those whose versions restate an element for the first time across many actions pay for moving them between families: n single choices of n options, n saves (100/200/400): 0.38/0.82/1.74 ms -> 0.79/1.46/2.92 ms one multi-select action of n options, n saves (50/100/200): 0.089/0.162/0.311 ms -> 0.112/0.227/0.475 ms one save, 1 multi-select action naming 400/800/1,600 options: 0.31/0.59/1.38 ms -> 0.60/1.11/2.25 ms a restated option moving into a fresh owner each save (100-1,600): 0.5/1.1/2.3/4.8/10.8 ms -> 0.6/1.3/2.7/6.2/11.9 ms a restated option alternating between two owners (100-1,600): 0.5/1.1/2.3/4.8/10.2 ms -> 0.6/1.2/2.5/5.2/11.0 ms InForce, 6,400 restated options and containments each moving two: 14.5 ms; per containment at 400-25,600 options: 1.7-1.9 us
max-sixty
added a commit
that referenced
this pull request
Nov 6, 2026
…members Review of 2d92121 found the line quoting from today's threads, and three walk costs and a stale watcher that grow faster than the page. The browser read a waiting message from its thread as it reads now, so a comment taken back after the version went live quoted "", a rewrite taken back lost its words, and a kept placeholder quoted "Deleted message", though the server named the right message. The comparison answer now carries, with each message, the words it had where it waited (`saved_after`: `said`'s `text`, and whether the message is a `suggestion` or `drawn`), and the browser reads them as a thread reads a whole message (`messageWords`), so it reads no thread at all: marking an unrelated thread read no longer reruns the line or rebuilds the thread index (review #7's remainder). A user's message carries no markup, since the browser's door refuses it, so a message's words are all it holds. The published thread record no longer carries the rewrites the last round added for this. A split partitioned every slot its family had ever held, taken-back choices included: with 64,000 undone choices and 252 splits it took 62.6 ms. Each family now keeps its live members in log order, and a split partitions those (16.1 ms, flat in the undone). A containment found each element's changed owners once, but each family it moved asked the chain again for its threshold, N families times an N-deep chain: 203.6 ms at 6,400 ancestors. The walk now reads each element's holders as a set once per containment (`_Holders`), which `_holds` reads as it reads a containment (6.0 ms). A family whose last action was taken back kept watching its elements, so with 6,400 such families each move of an element cost 2.3 ms. A family is dropped when it empties, and its node takes a new one if an action returns (0.0 ms). Tests, each failing on 2d92121: a comment taken back after the version went live is quoted in its words, on a served page and in the answer; a split reads as much after 10 undone choices as after 100; moving a restated element out of an owner at every depth of its chain reads holders in proportion to the depth; once every choice is taken back, moving the element judges nothing. Measured, 2d92121 then this tree, this process, least of three: splits, 252 of them after 1,000/16,000/64,000 undone choices: 16.8/27.8/62.6 ms -> 16.2/16.4/16.1 ms x chosen at every depth of a 400/1,600/6,400-deep chain, moved out, one containment: 1.03/12.55/203.63 ms -> 0.29/1.26/6.01 ms 400/1,600/6,400 empty families naming x, per move of x: 0.12/0.52/2.30 ms -> 0.00/0.00/0.00 ms review #2's shared x, warm saved_after at 1,600: 9.5 ms; per move 1.4-1.6 us review #5's wrappers at depth 160: 12.7 ms per containment The growth cases keep their growth, within 16% of 2d92121: n single choices of n options, n saves (100/200/400): 0.72/1.34/2.80 ms -> 0.67/1.40/2.84 ms one multi-select of n options, n saves (50/100/200): 0.106/0.209/0.449 ms -> 0.118/0.229/0.494 ms one save, one multi-select naming 400/800/1,600 options: 0.53/0.98/2.12 ms -> 0.61/1.16/2.47 ms fresh owner each save, 1,600: 11.7 -> 12.0 ms alternating owners, 1,600: 10.5 -> 11.2 ms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four friction findings from a session that used the skill end to end. The task cost ~24 tool calls where ~9 were the actual job.
The path to
interact.pytook six calls to findThe skill built its commands from
${CLAUDE_SKILL_DIR}. That variable is substituted only in a command'sallowed-toolsfrontmatter, never in a skill body:YQr()in the CLI applies the replace toallowed-toolsalone. So the variable arrived empty and the command was broken. The documented fallback ("the script lives atscripts/interact.pybeside this file") can't be acted on either, because a rendered skill body carries no path to be beside. Recovering it meant afindfor SKILL.md, which surfaced two cached plugin versions, then readinginstalled_plugins.jsonto pick between them.Claude Code appends every enabled plugin's
bin/to PATH, unconditionally and whether or not the directory exists.bin/colloquymakes the script reachable by name, so the skill's examples resolve nothing.The
IX="uv run …"idiom broke in fishfish doesn't word-split variable expansion, so
$IX init <dir>tried to exec a single file nameduv run /Users/…/interact.py. A variable-based idiom is the wrong shape when the skill can't know the shell. Every example is now the literal command.The shim adds
--with playwrighton seeing--render, which keeps the wheel off everyserve,wait, andnote, andcli(prog_name="colloquy")makes the usage lines say the name that's on PATH.notealready lints, so the separatecheckstep was a wasted call every versionThe skill said so itself and still listed
checkas its own numbered step. That section wedged two unlike things together: a mechanical lint, and a read-the-page checklist of judgment calls that is genuinely valuable. They're now three named passes, lint through render gate through human read, with the checklist intact.The screenshot step was framed around the wrong failure
It asked for a shot to confirm diagrams aren't clipped, but
checkalready asserts nothing overflows the column, so it read as duplicating the lint and got dropped the moment Chrome went flaky.The failure a browser uniquely catches is a
cq-diagramwhose mermaid body doesn't parse: the lint validates the element against the registry and never the notation inside it. Confirmed by probe.check --renderalready fails on it through the widget's fail-soft box, so the step is gone and the render gate's description says what it covers. A new test pins that, drivingcheck --renderthrough the shim from an unrelated cwd, which also exercises the shim's own path resolution and its Playwright branch. Removing--with playwrightfrom the shim makes it fail.Checks
80 tests pass. Verified by hand: the shim under fish, via PATH from an unrelated cwd, through a relative path from a subdirectory, and with unicode and spaces in arguments.
🤖 Generated with Claude Code