Repository navigation
Unify addressed replies, author workflows, and UI vocabulary - #2025
Conversation
The real handoff driver must write to the page it owns, regardless of keyed URLs in agent tool output. Journey uses the same state reader; final handoff URLs are checked separately against that destination. Native Codex opening messages count as progress only when the exact input has an active response with text before its first tool, alongside the existing accepted command-start route.
Harness selection lives in the skill; conversation handoff owns initial work and exact final URL. Delivered handling chooses response operations before transport details. Keep author decisions in revision and margin guidance, move terminal setup out of App Server operation, and distinguish a command-hub goal from its Leaf page. Preserve author autonomy, the user’s directions, Leaf soul, response obligations, and service-lifetime qualifiers. Cold staged base/candidate comparisons pass all fourteen samples, including both complete live feedback handoffs; independent prose review has no findings.
Name mixed user inputs updates and generic obligations answers, retaining reply for message-specific obligations. Counts follow canonical obligation units; historical work no longer claims a current turn. Align All pages, Showing vN, Undo and comment box across runtime, glossary, docs and examples. Use native Click error presentation and complete shell-safe initialization advice. Render structured diagnostic values through one JSON formatter, preserving exact identity and truthful false-schema errors without changing validation or wire semantics. Update dependent refusal expectations and exercise both provider-message and structured-object websocket refusals with seat release and retry.
Keep each evaluation ephemeral and nonpersistent while using the installed provider's connection owner. The frozen six-case concurrent run passes with isolated task identity; the configuration regression protects that boundary.
Use the captured delivery address for complete reply authoring. The shared writer uses the live exact-input binding for final custody, retains prepared content through reconnect, and refuses competing provider finals while allowing original-address recovery after interruption. Retry identities only deduplicate. Initial titles and addressed progress starts are atomic message facts; proactive thread replies no longer infer an owed input. Cut over delivery records, canonical folds, instructions, public examples, evaluation consumers and contract snapshots together. Actual rich authors passed twelve transport phases plus interrupted-provider recovery; focused custody regressions and independent final review pass.
Read successful command output through the canonical event schema and observed call interval. Progress and final-reply scoring share that reading and use admitted sequence rather than shell spelling or output order. Report typed receipt refusals through Click while preserving unexpected failures. Integrate captured help, canonical registry output, and scoped response controls.
# Conflicts: # skills/leaf/references/serving-pages.md
Capture the standing logical owner independently of liveness and process generation. Keep prepared author identity and retry separate from provider reservation, admit preparation once at status load, and share exact successful-answer semantics across runtime and eval readers. Remove dead reply/title adapters and port their callers. Controls include delegation, successor release, actual recovered provider history, author retries, incomplete state, and delivered diagnostics.
leaf-agent
left a comment
There was a problem hiding this comment.
The test job fails at npm run check:browser: it reports build/browser/generated/browser-runtime.js.map and build/browser/generated/browser-runtime.manifest.json as stale. This PR changes browser runtime sources, so regenerate and commit those outputs with npm run build:browser before merging.
The test check failed on d7bba05; the approval is withdrawn pending repair and a green run.
leaf-agent
left a comment
There was a problem hiding this comment.
The test job fails on d7bba05 (16 failed, 2,730 passed), so this head is not ready to merge. Several failures involve the contracts this PR changes: test_an_app_server_turn_names_the_untitled_thread_it_answers still observes an unnamed thread, test_wait_repeats_a_stable_transport_neutral_batch_until_ack gets different answer.ref values for one unacknowledged batch, and test_a_removed_subject_keeps_its_thread_open_and_detached rejects the detach with “no current anchor.” The same run also has CLI-output, native-panel, and package-check failures after the base merges. Reconcile those behavior and test contracts on this merged head and rerun the gate before the approval can stand.
leaf-agent
left a comment
There was a problem hiding this comment.
The current test job fails on 8fbc270 (15 failed, 2,741 passed), so I’m withdrawing my approval. The addressed-reply, CLI-output, and native-panel failures raised in the prior review remain. This run also finds that test_completed_record_has_a_render_correction_loop_without_a_seeded_decision observes zero refused checks where it expects one, and test_live_and_archived_readers_ignore_records_with_missing_fields finds no accepted record after writing one. Those contracts need reconciliation on this merged head before the gate can pass.
CI test job failed on 8fbc270: 15 Python tests failed.
Load the canonical JSON formatter only on App Server refusal, preserving the quiet hook's lazy boundary. Score failed tool calls from their structured outcome and name the diagnostic failed_check_calls; a compound call does not establish a refused page check. Port CLI, captured delivery and native section fixtures to their current contracts. Preserve malformed-field admission controls with real envelopes, use both repeated-wait references for progress and final replies, and verify idempotent completion leaves newer input outstanding. Mount the required-panel test scaffold in normal flow so it does not cover the retirement action.
…ions door as it reads Since #2020 admission records a pick's state operation in `meaning.state`, and the projection leaves out a pick that records none. Seed logs are copied verbatim, never admitted, so review-queue, current-proposed-comparison, ship-review and the feature gallery replayed no picks and their replay tests read no answers. Each writer event's meaning is now the one admission stores today, as are the two hand-built events in the margin and gate tests. The version button says "Showing vN" since #2025; the tests that read its exact words follow. The Questions door's accessible name begins with its visible words ("Questions: 2 waiting on you"), which axe's label-in-name rule requires. The projection tests that read the door as withheld when nothing waits now read "Questions: 0", the door standing on every page. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…#2051) The banner treated Threads and the queue differently: Threads was a door on the row that opened a panel on the right, while the queue was a pair of counts beside the status that opened a drawer on the left. This makes them two matching doors to one side panel, and names the two sides of the queue for whose they are. ## What the user sees - **Questions and Threads stand side by side on the banner row**, and both open the right edge at the Threads panel's width. Selecting one while the other stands swaps them in place, with no slide (`auxiliary-surfaces.js`: each surface declares its `edge`). The left edge keeps only the Pages drawer. - **Questions** is what waits on the user (their Asks, thread questions, to-dos and updates to send again); **Tasks** is what the agent has in hand. The door says `Questions: N` and stands on every page, as Threads does; before the log's first answer it claims no count. The agent's `Tasks: N` count beside the status opens the same panel. On a phone the door waits behind More, whose dot and name say "questions waiting". - **`q` / `Shift+q` walk the questions** (was `a`), `g Shift+Q` opens the panel, and its head carries a **Next question** button, as Threads' carries Next unread. ↑/↓ walk the thread titles in the Threads panel, as they walk the Questions panel's rows. - The comment box and the rail treat whichever panel covers the right edge alike (`geometry.rightCover`). - In the `g` sequence, the door to the surface that stands leads the line, so its close stays in reach when the panel narrows it, and other owners' destinations (Resume writing among them) rank before the fixed doors. Internally `task` stays the shared record's name for now; `Task` in the UI means the agent's side. ## Navigating the diff - `runtime/drawers.js`, `queue-panel.js`, `queue-walk.js`, `banner.js`, `banner-toolbar.js`: the door, its seat (row on a desk, More on a phone, rank 107 between Comment on the page and Threads), its words and the walk's keys. - `runtime/auxiliary-surfaces.js`, `thread-panel.js`, `chrome.css`, `theme.css`: the shared edge and the in-place swap. The banner's reserved room grows by the door (37em of actions; the Tasks count's 4em is what `Tasks: 9` measures), which keeps one row at 800px. - `markBannerControl` now paints once a script: an answer that settled the last question and opened the approval used to take More's dot down and put it back in one script. - **Seed logs re-recorded (a `main` break this PR also fixes):** since #2020 admission records a pick's state operation in `meaning.state` and the projection leaves out picks without one, but seed logs are copied verbatim, so review-queue, current-proposed-comparison, ship-review and the feature gallery replayed no picks. Their writer events now carry what admission stores today, and the tests reading the version button's exact words say "Showing vN" (#2025). These are nightly tests, which is why `main` stayed green; they ran here because this branch touches their files. - Tests follow the new keys, names and seats; references, evals, the feature gallery, `docs/how-it-works.html` and the glossary say `q` and Questions. - `notes/what-needs-you/page.html` records the choice (option B, "matching doors, both panels on the right") and the naming decisions. ## Testing `npm run test:runtime` passes, and so does the broad selection apart from failures that also fail on `main` at the merged tip. The browser files the change touches (navigation, controls, chrome contracts, startup, threads, margin, widgets) were run on this branch and on `main` side by side; every remaining failure reproduces on `main` (among them the drafts write-watch cases, the growing-comment aim case, several margin and feature-gallery cases, and the focus-ring sampling case). > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Agents currently reconstruct response addresses and follow separate direct and provider-owned reply paths. This change gives them one complete addressed reply API, routes author instructions through their canonical owners, and makes the UI distinguish saved input, owed answers, thread replies, and observed work.
leaf response reply REFERENCEtakes the deliveredanswer.refand supports rich content, questions, titles, relocation, progress, and failure. Both custody modes use the existing durable writer. The captured logical owner authorizes delegated workers in their own voice across process restarts; a different session supersedes that authorization even after it ends; author retry identity survives provider preparation, completion, and reconnect separately from the reservation. Interrupted providers release custody so the original reference can finish directly; obsolete providers cannot overwrite newer reservations.failed_check_callsdescribes failed whole calls without claiming that a page check was refused.The response contract changes without a compatibility shim. Rich-content lifecycle state lives on the existing provider response binding; the author interface becomes simpler, but this is not a net production-code reduction. Preparing and committing validate different moments because the page and its obligations may change between them. Stored preparation is admitted once at its status-reading boundary; incomplete or incompatible preparation cannot take down completion.
Validation includes 199 focused Python 3.14 integration checks, the prior 112 revision and response integration cases, 44 focused browser cases, all 247 runtime tests, all 83 browser model tests, browser TypeScript, pinned hooks, and reproducible browser output checks. Independent review covered the complete change and each main integration; the navigation integration passed 16 additional boundary probes, and the Python 3.14 integration received an independent cross-owner review. All eleven quality findings are repaired, including worker authority, prepared retry identity, shared successful-answer accounting, delivered-output assertions, the subtractive writer cutover, stored preparation admission, aggregate activity wording, the predecessor-edit contract, the evaluator’s canonical-server and delivery fixtures, lazy quiet-hook imports, and structured tool-outcome diagnostics.
All fifteen failures from the first full CI run are repaired and reproduced controls pass. An independent review of the CI delta found no issues; its production changes remove three lines net. Repeated-wait controls use both emitted references for progress and final replies, prevent duplicate completion, and retain newer owed input. Four coupled browser cases cover close labels, native section panels, and reachable retirement controls.
Both real Codex transports passed twelve response phases and both setup phases with stable-address preview recovery. A separate interrupted-provider run recovered through the originally emitted reference. Instruction comparisons passed 14/14 samples in each arm and both served handoffs met all 19 criteria. Blind desktop and phone use verified Send, mixed input, Queue, Undo, native overlays, and CLI refusal/correction routes. The stable served comparison against main
a245483f8preserves 229 code requests (233 total) and adds 1,212 code bytes before presentation, with no browser errors or layout shifts; elapsed timings are diagnostic. CI runs the full landing and site-delivery gates.