ticket: remove runtime workspace cwd options

This commit is contained in:
Keisuke Hirata 2026-07-13 18:22:30 +09:00
parent 49f085916e
commit a5e38f5964
No known key found for this signature in database
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,28 @@
---
title: 'Remove workspace and cwd from worker runtime server'
state: 'planning'
created_at: '2026-07-13T09:21:46Z'
updated_at: '2026-07-13T09:22:10Z'
assignee: null
---
## 背景
`worker-runtime-rest-server` は remote Runtime process として backend から URL で操作される。Workspace authority は workspace-server / backend 側が提供するため、Runtime process が `--workspace` / `--cwd` を受け取り、自身で workspace root や cwd を推測する必要はない。
現在の `--workspace` / `--cwd` は、古い local workspace 前提の名残であり、profile source archive / backend resource / working-directory binding による authority 境界と合っていない。
## 要件
- `worker-runtime-rest-server``--workspace``--cwd` option を削除する。
- Runtime-local Worker root は workspace ではなく Runtime-local durable/scratch root から導出する。
- Workdir が materialize された Worker だけが materialized Workdir root/cwd を受け取る。
- Workdirless Worker は workspace filesystem authority を持たないまま起動する。
- Backend-provided profile source / resource endpoint / working-directory binding の経路は維持する。
## 受け入れ条件
- `--workspace` / `--cwd` は help から消え、指定すると unknown argument として reject される。
- `worker-runtime-rest-server``--workspace` なしで起動できる。
- `cargo test -q -p worker-runtime --features fs-store,ws-server` が通る。
- `cargo test -q -p yoi-workspace-server` が通る。

View File

@ -0,0 +1,7 @@
<!-- event: create author: "yoi ticket" at: 2026-07-13T09:21:46Z -->
## 作成
LocalTicketBackend によって作成されました。
---