Commit Graph

18 Commits

Author SHA1 Message Date
Lyon e98b3e2f17 fix: add workbench aggregate event stream (#2064) 2026-06-24 20:04:21 +08:00
lyon 183cf653f4 fix: resequence existing workbench trace migration 2026-06-20 20:43:37 +08:00
lyon 482218f2cc fix: resequence workbench trace migration 2026-06-20 20:34:15 +08:00
lyon 69d5264360 fix: make workbench trace migration idempotent 2026-06-20 20:24:48 +08:00
lyon bad5a478bd fix: recover Workbench terminal outbox projection 2026-06-20 20:12:01 +08:00
Lyon b254c1875e feat: PJ2026-0104010803 P1 durable projection outbox + DB constraints + error visibility (#1754)
DB migration (0001_cloud_core_skeleton.sql):
- Add (trace_id, source_event_id) unique index on workbench_trace_events
- Add (trace_id, projected_seq) unique index on workbench_trace_events
- Add workbench_projection_outbox table with BIGSERIAL outbox_seq

Schema (schema.ts):
- Bump CLOUD_RUNTIME_DURABLE_ADAPTER_SCHEMA_VERSION to v5
- Add workbench_projection_outbox to CLOUD_RUNTIME_DURABLE_TABLE_COLUMNS

Runtime store (runtime-store.ts):
- Add persistWorkbenchProjectionOutbox method
- Add readWorkbenchProjectionOutbox method for SSE cursor replay
- Write outbox rows in writeWorkbenchFacts for trace events and terminal turns
- Outbox write errors are logged, not silently swallowed

Trace store (code-agent-trace-store.ts):
- persistTraceEvent no longer uses .catch(() => {}) to swallow errors
- Projection write errors are logged with traceId/sourceEventId for diagnostics
- Sync errors also logged instead of empty catch block

SPEC headers updated to draft-2026-06-20-p1-zero-split-durable-realtime

Closes #1747
Refs #1742
2026-06-20 19:29:44 +08:00
lyon 6dd02cabc7 feat: add durable workbench facts store 2026-06-20 08:45:51 +08:00
lyon 3f83852f60 fix: persist workbench projection cursor 2026-06-19 21:20:11 +08:00
lyon 063633f8e2 fix: stagger workbench background db scans 2026-06-19 16:54:43 +08:00
lyon 4d62b1be57 fix: reduce durable workbench trace read pressure 2026-06-19 12:30:43 +08:00
Codex Agent 3e7131f6ab refactor: converge hwpod node-ops channel 2026-06-05 17:23:56 +08:00
Codex Agent d6769bf1d3 fix: remove v02 authorization residue 2026-06-05 14:00:13 +08:00
Lyon fc411b00f8 fix: remove legacy device pod grants authority (#906)
Co-authored-by: Codex Agent <codex@hwlab.local>
2026-06-05 12:02:51 +08:00
Codex b7285b30b1 feat(workbench): share account workspace across web and cli 2026-06-01 21:31:26 +08:00
Codex 671303d2b9 feat: add v02 access device pod authority 2026-05-29 02:15:55 +08:00
Code Queue Review 4714e788bc fix: gate durable runtime readiness 2026-05-22 23:38:18 +00:00
Code Queue Review b775aba196 fix: add durable cloud api runtime adapter 2026-05-22 22:44:41 +00:00
HWLAB Code Queue b1d31380cb feat: add cloud api skeleton 2026-05-21 14:39:30 +00:00