From 55f93fd987134cba24734b89deeeacfc42af0d2c Mon Sep 17 00:00:00 2001 From: Hare Date: Tue, 7 Jul 2026 05:27:20 +0900 Subject: [PATCH] ticket: record workspace id route implementation evidence --- .yoi/tickets/00001KWWE8E04/item.md | 2 +- .yoi/tickets/00001KWWE8E04/thread.md | 30 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/.yoi/tickets/00001KWWE8E04/item.md b/.yoi/tickets/00001KWWE8E04/item.md index 745cce5a..66cf2a34 100644 --- a/.yoi/tickets/00001KWWE8E04/item.md +++ b/.yoi/tickets/00001KWWE8E04/item.md @@ -2,7 +2,7 @@ title: 'Scope Workspace Browser routes and API by workspace id' state: 'inprogress' created_at: '2026-07-06T19:25:08Z' -updated_at: '2026-07-06T19:55:26Z' +updated_at: '2026-07-06T20:27:15Z' assignee: null queued_by: 'workspace-panel' queued_at: '2026-07-06T19:53:14Z' diff --git a/.yoi/tickets/00001KWWE8E04/thread.md b/.yoi/tickets/00001KWWE8E04/thread.md index fc6edef7..37f89306 100644 --- a/.yoi/tickets/00001KWWE8E04/thread.md +++ b/.yoi/tickets/00001KWWE8E04/thread.md @@ -154,3 +154,33 @@ Implementation routing update: - 完了後は diff / validation evidence を Orchestrator が確認し、別 sibling Reviewer Pod に read-only review を依頼する。`StopPod` は既知の不具合があるため使用しない。 --- + + + +## Implementation report + +Implementation progress report: + +- Coder Pod completed implementation and committed `f6ad9cfc feat: scope workspace routes by id` on branch `work/00001KWWE8E04-workspace-id-routes`. +- Worktree status was clean after commit. +- Changed files include backend `crates/workspace-server/src/server.rs` / `lib.rs`, scoped route/API helpers/tests, sidebar/repository/objective/settings/worker console links, and new SvelteKit route files under `web/workspace/src/routes/w/[workspaceId]/...`. +- Implementation summary: + - Added canonical Browser routes under `/w//...`。 + - Added Browser-facing scoped API routes under `/api/w//...`。 + - Added backend scoped workspace id validation against current immutable backend workspace id。 + - mismatch returns typed sanitized `workspace_id_mismatch` diagnostic with 404。 + - Runtime `/v1/...` APIs were not changed。 + - Frontend links/API calls now use scoped route/API helpers for workspace Browser surfaces。 + - Worker creation console hrefs point at scoped `/w//runtimes/.../console`。 + - Focused backend and frontend tests cover scoped API/mismatch and route/API/link helpers。 +- Orchestrator reran validation in the implementation worktree: + - `git diff --check`: pass + - `cd web/workspace && deno task check`: pass(0 errors / 0 warnings) + - `cd web/workspace && deno task test`: pass(16 tests) + - `cargo test -p yoi-workspace-server`: pass(65 lib tests + 2 main tests) + - `cargo check -p yoi`: pass + - `yoi ticket doctor`: ok +- `nix build .#yoi --no-link` は Cargo.lock / dependency / resource packaging / Nix 変更ではないため未実行。 +- External review will be requested via a read-only sibling Reviewer Pod. `StopPod` は使わない。 + +---