docs(opencode): add instance context migration plan (#22529)

This commit is contained in:
Kit Langton 2026-04-15 10:57:58 -04:00 • committed by GitHub
commit 5fc656e2a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,6 +13,10 @@ Use `makeRuntime` (from `src/effect/run-service.ts`) to create a per-service `Ma
Rule of thumb: if two open directories should not share one copy of the service, it needs `InstanceState`.
## Instance context transition
See `instance-context.md` for the phased plan to remove the legacy ALS / promise-backed `Instance` helper and move request / CLI / tool boundaries onto Effect-provided instance scope.
## Service shape
Every service follows the same pattern — a single namespace with the service definition, layer, `runPromise`, and async facade functions: