1.5 KiB
1.5 KiB
| title | state | created_at | updated_at | assignee | queued_by | queued_at |
|---|---|---|---|---|---|---|
| Restore Worker without backend profile fetch | closed | 2026-07-13T14:44:12Z | 2026-07-15T16:19:26Z | null | yoi ticket | 2026-07-13T14:45:04Z |
背景
Worker restore は Worker metadata の resolved_manifest_snapshot と session log を authority として復元できる。現状の worker-runtime restore path は fresh spawn と同じ profile source archive resolution を先に実行しており、Runtime restart 時に workspace-server / backend resource endpoint が未起動だと profile archive fetch に失敗して Worker が stale のまま残る。
Active Worker restore では backend profile source fetch を不要にし、metadata snapshot を使って復元する。
要件
ProfileRuntimeWorkerFactory::restore_controllerは active metadata restore の前にrequest.profile_sourceを解決しない。- Restore は metadata の resolved manifest snapshot と builtins loader を authority にする。
- Pending/no-history fallback の fresh recreation が必要な場合だけ、従来通り profile source resolution を行う。
- backend が未起動でも、metadata snapshot を持つ active Worker restore は profile fetch failure で stale にならない。
受け入れ条件
- restore path の active case で
resolve_profile_source_archiveが呼ばれないことをテストする。 - worker-runtime tests が通る。
- Nix build が通る。