graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
docs(release): cut v0.0.282 notes from yxlyx #674 #693 #694
Cursor Agent23422550d820
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 10149a92..787c3efd 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,17 @@ The release workflow uses a tag's section here as its release notes (ahand-written `docs/releases/<tag>.md` wins if present), so keeping this filecurrent is part of cutting a release.+## v0.0.282 (2026-08-31)++- Next cut after v0.0.281 landed on main (`#670`). Headline is+ yxlyx's three open product PRs: atomic paste spans (`#674`),+ terminal Codex WS API errors (`#693`), and recoverable HTTP+ client generations (`#694` / ADR 0048).+- `#694` numbered its record 0042; that slot is already TUI claims+ screen (`#666`). The TLS-generation decision is **ADR 0048**.+- `#277` (Streamable HTTP OAuth / Smolify) and `#200` (idle+ localhost servers) stay parked — Smolify is not a core MCP.+## v0.0.281 (2026-08-29)- Next cut after tagged v0.0.280. Headline is the **hardlink**diff --git a/docs/releases/v0.0.282.md b/docs/releases/v0.0.282.mdnew file mode 100644index 00000000..ca2dcbae--- /dev/null+++ b/docs/releases/v0.0.282.md@@ -0,0 +1,69 @@+# v0.0.282 (2026-08-31)++Next cut after [v0.0.281](v0.0.281.md) merged to main (`#670`). The+headline is three yxlyx product PRs that were open against the old+main tip: atomic paste spans, terminal Codex WS errors, and+recoverable HTTP client generations.++281 stays published as-is. This is not a retag. No GitHub tag until+asked; download / notarization ids land after the build.++## Atomic pasted-text placeholders (#674 / #673)++The composer used to store a long paste body out of band and represent+it with ordinary editable text. Submit searched for the exact display+string and replaced every match, so Option+Backspace chewed the marker+word by word and a typed lookalike could resurrect a hidden body.++`readline` now owns a semantic paste store: each collapsed+`[Pasted text #N +L lines]` chip is a positional span. Navigation and+deletion treat it as one unit. Expansion happens only for a live span+and consumes its identity, so a typed lookalike stays literal. History+replay drops identity (history has no hidden body to restore).+`readline_replay.zig` holds history replay so `readline.zig` stays+under the 600-line ceiling.++## Codex WS `type:error` is a terminal API response (#693 / #692)++Codex sends a useful `type:error` frame and then closes the socket.+Graff recognized only two special codes as terminal; a generic error+waited for another frame, treated the expected close as transport+loss, discarded the API body, and redialed. Users saw `Bad Request`+and the fullscreen TUI replaced the failure with an API-key row.++Every authoritative Responses `type:error` is now a terminal API+response. A bounded single-line `provider/code/message` diagnostic+rides `last_api_error` (no raw envelope). A stale+`previous_response_id` rebuilds full input exactly once. Generic+deterministic API errors return immediately and do not consume the+WS-retry / SSE-fallback ladder.++## Model HTTP client generations (ADR 0048 / #694 / #691)++`TlsInitializationFailed` at `std.http.Client.request` happens before+a `Request` exists, so the #177 connection-poison path cannot mark+anything closing. Retrying the same launch-owned client left every+later TUI turn failing until process restart.++Model HTTP constructors lease an active launch-level generation. A+construction TLS failure retires that generation and publishes a+prewarmed replacement. In-flight callers keep the retired generation+through reference-counted leases; later retries resolve the original+launch pointer to the replacement. The original launch client is never+reclaimed by the manager (unrelated launch consumers still hold its+pointer). WebSocket transport stays independently managed.++`#694` recorded this as ADR 0042. That number is already TUI claims+screen on main. This cut remaps the record to **0048**.++## Parked++`#277` (Streamable HTTP OAuth / Smolify) and `#200` (idle localhost+servers) stay inventory in [yxlyx-leftovers.md](../yxlyx-leftovers.md).+Smolify is not a reserved core MCP.++## Tests++This cut keeps the 281 floor (**1804**, slack 25) and adds the paste+span, Codex WS error, and HTTP-generation suites. The ratchet is+bumped only after `zig build test` reports the new total.diff --git a/docs/yxlyx-leftovers.md b/docs/yxlyx-leftovers.mdindex dc5b6714..e24fa4e3 100644--- a/docs/yxlyx-leftovers.md+++ b/docs/yxlyx-leftovers.md@@ -2,6 +2,10 @@What still exists in this repo versus what is parked. No new product mode.+Landed on [v0.0.282](releases/v0.0.282.md): `#674` atomic paste spans,+`#693` Codex WS `type:error`, `#694` HTTP client generations (ADR 0048).+Still parked below.+| Issue | In this repo today | This cut || --- | --- | --- || [#321](https://github.com/justrach/codegraff/issues/321) `/doctor` | Goal/todo slice shipped: `/doctor` in `src/doctor.zig` + `commands_misc` dispatch. Checks: `GOAL_STATE`, `GOAL_TODO_EPOCH_MISMATCH`, `STALE_GOAL`, `TODO_EPOCH_ABOVE_GOAL`, `COMPLETION_GATE_ARMED`. Read-only; JSON via `toJson`. | Landed earlier. **Parked:** session-lease, owned-job, listener, and aggregate-budget findings (`DUPLICATE_WORKTREE_OWNER`, `STALE_SESSION_LEASE`, `ORPHANED_OWNED_JOB`, …). Those need a durable job/session registry `doctor.zig` refuses to fake. |diff --git a/src/cli.zig b/src/cli.zigindex 8288118a..bde8e014 100644--- a/src/cli.zig+++ b/src/cli.zig@@ -21,6 +21,11 @@ const harness_version = root.harness_version;pub const changelog_text =\\What's new\\──────────+ \\0.0.282+ \\ • pasted-text chips are atomic spans — a typed lookalike stays literal (#674)+ \\ • Codex WS type:error is a terminal API response; last_api_error stays (#693)+ \\ • request-construction TLS failure rotates a leased HTTP client generation (ADR 0048)+ \\\\0.0.281\\ • -p / --json skip learn auto-init — no 132M graff-pinned copy (ADR 0044)\\ • SuperGrok SWE 5/6 in 205s / 6.5s CPU (was 4/6 in 456s / 230s)diff --git a/src/libgraff.zig b/src/libgraff.zigindex f54d9d15..5108379b 100644--- a/src/libgraff.zig+++ b/src/libgraff.zig@@ -76,7 +76,7 @@ export fn graff_acp_create(new_seed: u32) void {session_id = null;seed = if (new_seed == 0) 1 else new_seed;engine.cancel_flag.store(false, .release);- engine.implementation_version = "0.0.281-core";+ engine.implementation_version = "0.0.282-core";}export fn graff_acp_feed(len: usize) i32 {