graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Merge latest v0.0.299 into idle-view Accord fix
justrachbdb3cae208ec
diff --cc CHANGELOG.mdindex 05b4dce2,f5779b9a..91415bf8--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -12,12 -12,8 +12,11 @@@ current is part of cutting a release## Unreleased-- Opt-in Accord Unix 0600 live path behind `presence_chan.postMessage` (`GRAFF_ACCORD=1`); JSONL stays the durable room (ADR 0134).+- Accord Unix 0600 is a standing duplex per live session (`GRAFF_ACCORD=0` opts out); JSONL stays the durable room (ADR 0134). `/debug` reports Accord session count and RSS.- - Engine messaging (idle peer mail, #1007) is the same latch on line REPL, TUI, and `graff acp`. `/debug` reports Accord session count and RSS.+- Engine messaging (idle peer mail, #1007) is the same latch on line REPL, TUI, and `graff acp`.- `#1001`: idle TUI and line REPL start a turn when the durable peer room has new unread mail (one auto-turn per batch; inbox consume resets).+- `#1007`: idle `graff acp` sessions start that same turn; `peer_message` no longer claims delivery waits for a step boundary.- - `#1006`: rendered views sit in the transcript without product chrome; desktop appearance tokens ride the turn (ADR 0135).++- `#1006`: rendered views sit in the transcript without product chrome; desktop appearance tokens ride the turn (ADR 0137).- Live 12-PR board on grok-4.6 SuperGrok (n=3, no SPEC.md): graff / Pi /OpenCode 12/12, grok 11/12 (`#727`), exo 9/12 (gemini + two turbos —diff --cc docs/adr/0137-desktop-appearance-is-a-turn-note.mdindex f4e8692c,00000000..9fb9d959mode 100644,000000..100644--- a/docs/adr/0137-desktop-appearance-is-a-turn-note.md+++ b/docs/adr/0137-desktop-appearance-is-a-turn-note.md@@@ -1,29 -1,0 +1,29 @@@- # 0135. Desktop appearance for drawn pages is a turn-local note++# 0137. Desktop appearance for drawn pages is a turn-local note++Status: accepted 2026-09-17++## Context++`render_html` snapshots run in an opaque origin (ADR 0107), so they cannot read+the desktop's CSS variables. Putting the live palette in `prompt_text` or the+`render_html` tool schema would change the cached prefix / toolset hash on every+appearance switch.++A labeled "Rendered view" card also framed the page in a 620px product well,+so a cream desktop got a dark slab (or the reverse) instead of a figure in the+turn (#1006).++## Decision++On the desktop, resolved appearance tokens (`page`, `surface`, `ink`, and the+rest of the existing token set) ride `session/prompt` as a small turn-local+note. They are not written into `prompt_text` and not into the tool catalog.++A model-drawn page has no product header and no 620px well. Close/open stays a+quiet control. MCP app results keep their own chrome.++## Consequences++A theme switch does not bust the prefix cache. Existing snapshots still have+whatever colors the model hardcoded; new pages can match `--page` / `--surface`.+The opaque frame and CSP sandbox are unchanged.diff --cc docs/adr/README.mdindex f1c1e7a6,b55fddf5..ce809667--- a/docs/adr/README.md+++ b/docs/adr/README.md@@@ -153,8 -153,9 +153,10 @@@ record only when you need the evidence| [0133](0133-clipboard-files-follow-consumer-ownership.md) | Clipboard cleanup requires file ownership and released consumers; age alone never deletes active or saved attachments. || [0133](0133-publication-review-binds-committed-inputs.md) | Proposed: non-draft publication reviews immutable source and observed checks; changed inputs invalidate earlier assessments. |-| [0134](0134-accord-live-jsonl-durable.md) | JSONL is the durable peer room; Accord Unix 0600 is opt-in live behind postMessage. |+| [0134](0134-accord-live-jsonl-durable.md) | JSONL is the durable peer room; Accord Unix 0600 is live by default (`GRAFF_ACCORD=0` opts out). |- | [0135](0135-desktop-appearance-is-a-turn-note.md) | Desktop appearance tokens for `render_html` ride the turn, never the prefix or tool catalog. |+ | [0135](0135-one-shell-tool.md) | Advertise one `shell` tool (`run` / `output` / `kill`); bash names stay dispatch aliases. Not a PTY. |+ | [0136](0136-follow-up-promotes-a-live-shell.md) | A queued follow-up or force-steer promotes a foreground shell; Esc still kills it. |++| [0137](0137-desktop-appearance-is-a-turn-note.md) | Desktop appearance tokens for `render_html` ride the turn, never the prefix or tool catalog. |## When to write onediff --cc docs/rendered-views.mdindex d4f1edbe,f1d232c0..04efce00--- a/docs/rendered-views.md+++ b/docs/rendered-views.md@@@ -8,11 -8,8 +8,11 @@@ nothing opens automatically: the modelthe turn.The view keeps its own inline `<style>` and `<script>`, so a page can be-animated or interactive. Close view / Open view disposes and restores the-frame without touching the conversation.+animated or interactive. It sits in the transcript without a product header+or framed well; a quiet Close view / Open view control disposes and restores+the frame without touching the conversation. On the desktop, the live+appearance tokens ride the turn as a note so a new page can match `--page`- and `--surface` (ADR 0135).++and `--surface` (ADR 0137).## Where the page lives