docs(production): standardiserad produktionsberedskap och gap-analys

Lägger docs/production-readiness.md och siax/production-gaps.json enligt SIAX Master Definition of Done. Underlag: git-, kod- och live-evidens 2026-11-11. Nivån är evidensbaserad, inte ett leveransgodkännande.
This commit is contained in:
2026-11-10 09:15:21 +01:00
parent 0fda8cae48
commit 2bee8eb778
6135 changed files with 4 additions and 1718997 deletions
-19
View File
@@ -1,19 +0,0 @@
import { AsyncLocalStorage } from 'node:async_hooks'
import { bindActorStore, type CommitActor } from './actor-context'
/**
* Server-only half of the commit actor context (see ./actor-context for why
* the split exists). Importing this module binds the AsyncLocalStorage into
* the isomorphic registry so getActor() works wherever engine.ts runs on the
* server. Only ever import this from server-side code (pending-operation
* commit paths, API routes): never from anything reachable by a client
* component bundle.
*/
const actorStorage = new AsyncLocalStorage<CommitActor>()
bindActorStore(actorStorage)
/** Run fn with the given actor visible to getActor() across awaits. */
export function runWithActor<T>(actor: CommitActor, fn: () => Promise<T>): Promise<T> {
return actorStorage.run(actor, fn)
}