ticket: remove observation cursor surface
This commit is contained in:
parent
1d7765d9ee
commit
54eaa44681
0
.yoi/tickets/00001KX7838M2/artifacts/.gitkeep
Normal file
0
.yoi/tickets/00001KX7838M2/artifacts/.gitkeep
Normal file
29
.yoi/tickets/00001KX7838M2/item.md
Normal file
29
.yoi/tickets/00001KX7838M2/item.md
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
title: 'Remove worker observation WebSocket cursor surface'
|
||||||
|
state: 'inprogress'
|
||||||
|
created_at: '2026-07-11T00:09:06Z'
|
||||||
|
updated_at: '2026-07-11T00:09:33Z'
|
||||||
|
assignee: null
|
||||||
|
queued_by: 'yoi ticket'
|
||||||
|
queued_at: '2026-07-11T00:09:32Z'
|
||||||
|
---
|
||||||
|
|
||||||
|
## 背景
|
||||||
|
|
||||||
|
Workspace worker observation WebSocket には backend-local `cursor` / `event_id` surface が残っているが、backend replay を削除した後は resume cursor として意味を持たない。Console attach は Snapshot + live events のみで十分であり、未読 output 読み取りが必要な場合は WebSocket cursor ではなく durable output/log 専用 cursor を別設計する。
|
||||||
|
|
||||||
|
## 要件
|
||||||
|
|
||||||
|
- workspace-server の worker observation browser-facing WebSocket から backend-local cursor surface を削除する。
|
||||||
|
- `ClientWorkerEventsWsQuery.cursor` / `BackendObservationCursor` / backend `next_sequence` / `open()` / `store()` を削除または単純な envelope mapping に縮小する。
|
||||||
|
- browser-facing event envelope は Runtime/Worker identity と payload に限定し、存在するなら runtime event id のみを重複抑止用に渡す。
|
||||||
|
- Frontend Console は backend cursor に依存せず、runtime event id で dedupe する。
|
||||||
|
- cursor 付き WS 接続は API surface として提供しない。クエリを無視する設計にせず、不要な型・検証・診断を消す。
|
||||||
|
|
||||||
|
## 受け入れ条件
|
||||||
|
|
||||||
|
- worker observation WS response frame に backend-local cursor が含まれない。
|
||||||
|
- Frontend Console model / route が cursor を保持・利用しない。
|
||||||
|
- backend-local cursor 関連型と cursor malformed/unknown handling が削除される。
|
||||||
|
- Runtime observation cursor は runtime 内部または runtime endpoint だけの概念として残り、workspace-server browser surface には露出しない。
|
||||||
|
- `cargo test`、`cd web/workspace && deno task check`、`cd web/workspace && deno task test`、`nix build .#yoi` が通る。
|
||||||
42
.yoi/tickets/00001KX7838M2/thread.md
Normal file
42
.yoi/tickets/00001KX7838M2/thread.md
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
<!-- event: create author: "yoi ticket" at: 2026-07-11T00:09:06Z -->
|
||||||
|
|
||||||
|
## 作成
|
||||||
|
|
||||||
|
LocalTicketBackend によって作成されました。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- event: intake_summary author: hare at: 2026-07-11T00:09:32Z -->
|
||||||
|
|
||||||
|
## Intake summary
|
||||||
|
|
||||||
|
Marked ready by `yoi ticket state`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- event: state_changed author: "yoi ticket" at: 2026-07-11T00:09:32Z from: planning to: ready reason: cli_state field: state -->
|
||||||
|
|
||||||
|
## State changed
|
||||||
|
|
||||||
|
Marked ready by `yoi ticket state`.
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- event: state_changed author: "yoi ticket" at: 2026-07-11T00:09:32Z from: ready to: queued reason: queued field: state -->
|
||||||
|
|
||||||
|
## State changed
|
||||||
|
|
||||||
|
Ticket を `yoi ticket` が queued にしました。
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- event: state_changed author: "yoi ticket" at: 2026-07-11T00:09:33Z from: queued to: inprogress reason: cli_state field: state -->
|
||||||
|
|
||||||
|
## State changed
|
||||||
|
|
||||||
|
State changed to `inprogress`.
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
Loading…
Reference in New Issue
Block a user