From 401533d0afc694b990e07371a6301944624d9c7b Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Fri, 11 Sep 2026 23:14:17 +0200 Subject: [PATCH] =?UTF-8?q?chore(pql):=20file=20T-3=20=E2=80=94=20stream?= =?UTF-8?q?=20the=20synthesis=20phase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TTFT equals wall time today: nothing streams until the three-phase pipeline completes, so desklock's time-to-first-word is the full pipeline (14.9 s mean, measured 2026-09-11). Workspace D-60 names streaming synthesis a first-class goal of the serving rework. Co-Authored-By: Claude Fable 5 --- .pql/changelog/ticket_idmap/2026-09.sql | 1 + .pql/changelog/tickets/2026-09.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 .pql/changelog/ticket_idmap/2026-09.sql create mode 100644 .pql/changelog/tickets/2026-09.sql diff --git a/.pql/changelog/ticket_idmap/2026-09.sql b/.pql/changelog/ticket_idmap/2026-09.sql new file mode 100644 index 0000000..cfdda85 --- /dev/null +++ b/.pql/changelog/ticket_idmap/2026-09.sql @@ -0,0 +1 @@ +INSERT INTO ticket_idmap (record_id, ticket_id, created_at, updated_at, deleted_at, hash, canonical_version) VALUES ('06G94KC9XM3PW91C6B7VJA6VRM', 'T-3', '2026-09-11 21:09:10.267', '2026-09-11 21:09:10.267', NULL, 'a1ccf4d118877c230dffb961a7531cb4', 2) ON CONFLICT(record_id) DO UPDATE SET ticket_id=excluded.ticket_id, updated_at=excluded.updated_at, deleted_at=excluded.deleted_at, hash=excluded.hash, canonical_version=excluded.canonical_version WHERE excluded.updated_at >= ticket_idmap.updated_at; diff --git a/.pql/changelog/tickets/2026-09.sql b/.pql/changelog/tickets/2026-09.sql new file mode 100644 index 0000000..3463720 --- /dev/null +++ b/.pql/changelog/tickets/2026-09.sql @@ -0,0 +1 @@ +INSERT INTO tickets (record_id, type, parent_record_id, title, description, status, priority, assigned_to, team, decision_ref, created_at, updated_at, deleted_at, hash, canonical_version) VALUES ('06G94KC9XM3PW91C6B7VJA6VRM', 'story', NULL, 'Stream the synthesis phase — TTFT equals wall time today', 'Nothing streams until steward-orchestrate-synthesize completes, so desklock''s time-to-first-word is the full pipeline (TTFT mean 14.9s, max 26.2s — measured 2026-09-11, workspace note cladmin/agent/notes/2026-09-11-serving-baseline.md). Stream the synthesis phase out as it generates: a first-class goal of the serving rework independent of KV reuse (workspace D-60). The backend now streams /v1 SSE natively (llama-gen).', 'backlog', 'high', NULL, NULL, NULL, '2026-09-11 21:09:10.253', '2026-09-11 21:09:10.253', NULL, 'f7d31ca4fe747835a32744c310f51674', 2) ON CONFLICT(record_id) DO UPDATE SET type=excluded.type, parent_record_id=excluded.parent_record_id, title=excluded.title, description=excluded.description, status=excluded.status, priority=excluded.priority, assigned_to=excluded.assigned_to, team=excluded.team, decision_ref=excluded.decision_ref, updated_at=excluded.updated_at, deleted_at=excluded.deleted_at, hash=excluded.hash, canonical_version=excluded.canonical_version WHERE excluded.updated_at >= tickets.updated_at;