Skip to content

Transcript

Reading of harness/docs/client/transcript.md. If this page and that file disagree, the source file wins.

The live TUI transcript watches PEW work. It projects identity, three-state liveness, and ask visibility. It does not mint Work. It does not license BODY. It does not become the archive. The tape names the current object. It shows whether the turn is running, waiting for you, or idle. It pins the ask so a later cell cannot cover it.

Enter and Esc chrome on approved is not this file. That face is shell.md and operate.md. The mechanism is ../runtime/approval.md. The paint DOM replica and Quickdraw grain are ../../packages/quickdraw/docs/grain.md. Constructors live in packages/harness/src/tui/: identity.ts, liveness.ts, work-cells.ts, tape-spans.ts, and tea.ts. Quickdraw widgets have no agent knowledge. Paint never gates the agent loop.

Speech Meaning
Watch Live job. Identity of the current object. Viewport is follow-tail.
Audit After job. JSONL / session document + git. Not the live tape’s job.
Work cell One layout object from one ToolCallJob or ProgrammaticJob (plus inner invocations). Not a chat bubble.
Identity row Collapsed one-liner that names the object: path, command, pattern, expr. Never "Read 1 file". No duration. No +N −M — the Diff is the change.
Glance liveness turnLiveness: running | waiting-for-you | idle. Composer #busy is the admitting RPC, not this.
Cell liveness toolCellState / schemeCellState. Independent of glance, except sealed speech never holds the loop spinner.
Ask approvalQueueHead with approved === null (needsHuman). Durable on the Approvable leaf. Scheme-repl is a sequence, not Approvable.
Loop token ReACTChunk / TurnPromptChunk / TurnCompactChunk. Continuation fuel. Not a tape row.
Ask pin Layout sibling outside the viewport, above the composer. Projection of askPaintHead. Visibility only. No key binding.
Follow-tail Present PaintLocal.tapeAtBottom. Viewport is overflowAnchor: "none". At bottom, present passes a scroll the engine clamps to maxScroll. Any upward move freezes.
Receipt Expanded body of a result that exists. A card of intent without a result is not drawn.

The walk is reactChunks(turn) plus ProgrammaticJob.invocations, as sibling parts. The walk is never walkWork. That list includes judges. Side-channel tools are skipped. Those names are update_metadata and context_need. Compact density keeps every floor-allow call, so the question identity stays on the tape while the job is still open. config.json hideFloorTools restores that omit. The default is off. Comm-first (agent) stays omitted. Remainder never fuses. Remainder is ask, deny, block, judge, and human approved.

Kind Paint?
User prompt yes
CompletionExpectation thought / speech yes when there is a body (ThinkingStream / Markdown). Live thought with text: thinking spinner on that row. Empty live thought is not a tape row. Sealed speech: void gutter — never a loop spinner after seal.
ToolCallJob yes. Folded identity disclosure. edit_file / write_file are open Diff blocks, not disclosures.
ProgrammaticJob yes. Folded identity of scheme_repl + sugarcoat expr(). Inners are sibling rows, not disclosure.children.
ReACTChunk / TurnPromptChunk / TurnCompactChunk no row. Feed turnLiveness / emptyWaitChrome.
Judge completions leftover intern PEW on the leaf. Thought/speech paint when they have a body. Empty live thought is occupancy (wait:pin unless a remainder tool already holds the spinner). Not walkWork.

createAskTapeCut skips askPaintHead and every later tool. The head is the pin, not a folded ? row. A scheme that contains the head still paints the bag. A scheme after the cut is omitted whole. After a human answers a mutate Diff, that job stays askPaintHead until outcomeJson or completed. The suggestion does not drop before the sealed Diff is a tape row. A later needsHuman leaf wins. Cover chrome still follows approvalQueueHead.

if turn == null || turn.closed: idle
if approvalQueueHead != null: waiting-for-you
if hasOpenWork || hasQueuedContinuation: running
else: idle

running does not require workerPresent. Minted Work waiting for an Actor is still running.

The heartbeat sits on tape-visible live work. Thought with a body paints thinking on that row. A live tool paints a tool spinner on the question identity. A live scheme paints a tool spinner only while no inner is live or ask. An open inner owns the heartbeat. The bag then paints a sealed ·. A floor row omitted by hideFloorTools is not tape-visible, so it does not swallow the pin. When there is no live work to name (empty completion, ReACT or compact gap, or hidden floor call), occupancy is wait:pin immediately above the omnibox (waiting for response…, bootstrapping…, or the retry countdown). It is not a transcript row. Ask owns that slot. Ask is waiting-for-you. Idle paints no spinner.

toolCellState: "ask" | "live" | "ok" | "fail"
schemeCellState: "live" | "ok" | "fail"

needsHuman paints ask. An open cell with no outcome paints live. outcomeJson.ok === false paints fail. Otherwise the cell paints ok. Human deny and a BODY error both paint fail today. There is no shipped denied cell state. There is no shipped cancelled cell state. Fail identity stays voice at rising prominence. The gutter is the error mark, role error, not a red row. Live identity stays voice at rising prominence. The spinner is the flux mark.

The user sigil is ❯. A sealed tool is ·. A sealed shell is $. Ask is ?. Ask is a pin, not a spinner. Expand keeps that identity mark on the first row. Extra body is a dim ┃ rule. Extra body is a receipt, a script, thought markdown, or a live thought peek. Sealed collapsed thought does not get the bar. Fail is that bar at error plus ghost, not a red row. License chips read policyResult or judgeResult while approved is still null. Floor deny and block are not tape chips. Shell omits the chip.

Parse argsJson. Never invent a file count. A path-shaped object keeps the filename (tailEllipsis). A command, expr, or pattern keeps the start.

name Object Notes
read_file / list_dir path
glob / fff_search pattern / query, plus cwd when set cwd wins; path is the ingest alias
grep pattern, plus path when set
edit_file / write_file path Open Diff. Optional caption to the right of the path (wraps when tight). No +N −M.
apply_edits / plan_edits / sg_plan admitted paths, comma-separated Not a count. Not file bodies.
shell command Gutter $. Status: cwd token (omit .). No exit N — fail is the gutter. No license chip.
scheme_repl sugarcoat expr() Bag is not Approvable.
agent__send / agent__ask spec name Dim status from kernel glance (turnDescription, else active / blocked). Expand: unquoted wrapped prompt, then model. Scheme inners start open.
MCP / pack dim server, bright action — or pretty-mcp telegram Args ride the composer stack at ask, not the row.
fallback invocation() or truncated argsJson still includes name

Disclosure is XOR. Folded shows summary only. Open shows children only. children re-include identity, or expand hides the path. Fold is present-side toggle_fold. Fold is not a Work field.

An optional model-authored description may sit on shell and scheme_repl. On edit_file and write_file it is a path-right token. The wire name is description. The tape field is caption. Missing, empty, whitespace-only, or non-string means omit. The call still runs. Caption is never required.

Paint flattens whitespace, trims, and clamps to 80 Unicode code points. Collapsed shell or scheme identity is the caption XOR the command or expr. Expand always shows the script. The ask stack still shows the command. Consent is not the collapsed row. Caption never feeds policy, hatch, judge-cache, peel-cwd, spawn, or outcomeJson. Do not scrape a leading # in command or expr.

A card is a receipt of a result. It is never a receipt of intent. A live cell has no result card, except a shell ShadowStream tail when tool-tails has a frame for that job. An edit_file or write_file ask Diff sits on the pin. The pin uses hideHeader. The rim already names the file. A sealed mutation stays an open filename plus a Diff. Empty old_string and new_string, or empty content, is not a Diff. A write_file create is empty-old. Overwrite uses host priorContent. edit_file applies the span to that prior so both sides are the file. A span-only replica still paints file-absolute numbers via host priorLineStart (Diff lineStart). Paint keeps change-adjacent lines, 3 of context, and folds the rest. apply_edits ask text is planned (not applied) plus every admitted path. It shows at most 80 Unicode code points of each of the first six replacement bodies, and a 12-hex-character SHA-256 prefix of every complete replacement body. Later bodies are labeled not shown. These fingerprints help distinguish changes with the same displayed head. They are not collision-free identities. They are not a way to review hidden text. Confirmation names the set. It is not a Diff. A sealed apply reads outcomeJson: committed, notWritten, and partial / not_written / committed. plan_edits and sg_plan stay labeled planned, never applied. An interrupted apply with no receipt is unknown, not not_written. Paint uses args and the receipt only. It does not read the current files to invent a before/after. Expand of other tools is Text or Markdown of the observation. There is no tree, no grep list, and no public Code(). Sealed shell stdout and stderr use a square ┌┐└┘ box, not the omnibox ╭╮. The command on expand is shfmt plus bash highlight. It wraps at the column. The last symbol stays. Highlight stays.

Two projections of the same Work:

  1. Tape cutoff. askPaintHead and everything after it are not tape rows.
  2. Pin / Diff. The identity pin (ask:pin) sits between the viewport and the composer, outside the viewport. Occupancy wait (wait:pin) sits immediately above the omnibox when the tape has no live progress. Ask owns that slot (waiting-for-you). An edit or create Diff is the viewport’s last child (ask:diff) and squeezes when the clip cannot hold it. Rim-named work omits the identity line. No Diff and a named rim means nothing extra (askPinWorthPainting). MCP and shell never mount a pin. Options and the command ride the composer stack. Spawn does not cover. There are no Allow or Deny buttons. There are no keys. Cover owns Enter and Esc.

askPaintHead is approvalQueueHead when one exists. After a human answers a mutate Diff, the same job stays the paint head until BODY writes a result. That Diff is edit_file or write_file with a real Diff. Cover Allow and Deny do not wait. needsHuman is still the cover predicate. A later needsHuman leaf wins the pin. Question overlays (#callback) are composer-owned. They are not UAC. Glance stays running. The pin stays off.

The product viewport is overflowAnchor: "none". Present owns tapeAtBottom and tapeScroll. At bottom, the frame passes a scroll the engine clamps to maxScroll. Wheel over the tape writes the present offset. PageUp and PageDown write the present offset. Picker wheel stays picker. The viewport is not overflowAnchor: "auto". That path ignores scroll every frame. The name of that path is force-pin. The ask pin is ask visibility while following. It is not a frozen running mark.

These will be re-proposed. The failure is in the name.

Alternative Failure
Pretty Diff / grep / code / tree widgets as the default live tape Identity lost behind chrome. Diff is for mutations and the ask pin.
Spinner on last assistant speech for the whole ReACT loop Sealed speech looks live while tools run.
Composer #busy as loop liveness #busy is the admitting RPC. It goes false while findRunningTurn() is live.
Waiting-for-you painted as a thinking gerund Permission wait looks like thinking.
overflowAnchor: "auto" as follow-tail Engine force-pins every frame. Freeze on upward move dies.
Count-only collapse (Read 1 file, Ran 3 commands) Operators wanted less body; vendors removed the name.
Disclosure children = body only Expand hides the path (XOR).
Distinct denied / cancelled cell states toolCellState maps every ok: false to fail. Do not claim a deny paint that is not in code.
Caption as policy / hatch / classifier evidence A pretty sentence must not lift a deny.
Caption replacing the command with no expand path Collapse hid the identifier. XOR keeps argv on expand and on ask.
Duration on identity rows Spinner is the live mark. elapsedLive is the loop pulse / thought cluster, not the object name.
Paint ack / “continue when painted” Collapsed panels must not throttle BODY.
Bind Enter on the pin to allow Cover owns the write. The pin is visibility.
walkWork for tape parts Leaks judges onto the ReACT watch surface.
TUI as SSoT / frozen Ctrl+O dump Archive is the session document. Fold is watch UX, not redaction.
Public Quickdraw ToolCall() / Code() Agent knowledge would leak into QD. Syntax stays internals.
Mutation-ledger pane Identity rows are the projection. No second PEW type.
Drop the Diff pin when approved is written The change vanishes, then the sealed Diff remounts; a late pin + tape Diff doubles the block.
Doc Role
operate.md Operator keys
shell.md Client duties, empty-draft law
../canon/grain.md Causal spine
../runtime/approval.md LICENSE WHEN
../runtime/session-job.md Session / Job graph
../../packages/quickdraw/docs/grain.md Paint substrate