Upgrading to the 2026-11-24 release
This page lists what you change in your code when you move to the packages released on 2026-11-24.
| Package | What changed | What to do |
|---|---|---|
| Every published package | Many names leave the package roots, with no alias. Some move to another entry of the same package; the rest are removed | Import a moved name from the entry its package's changelog lists. A removed name has no replacement: drop the import |
core | The root carries the names an app imports. The rest move to @flow-state-dev/core/types, and the coding-harness names to @flow-state-dev/core/harness | Import from those subpaths. @flow-state-dev/core/internal is for the framework's own packages |
core | ctx.emit.component and the component item kind are removed. Structured content is a data item | Replace ctx.emit.component(name, data, opts) with ctx.emit.data(name, data, opts), and register its renderer under renderers.data |
core | A flow's reads and a scope's client.derived are removed. defineFlow refuses either key | Declare each one as a view: views: { name: defineView({ scope: "session", block }) }, with an outputSchema on the block |
core | LooseBlockContext is removed | Type helpers with BlockContext. A block's ctx passes to them with no cast |
core | The model resolver's RetryPolicy is ModelRetryPolicy; @flow-state-dev/core/blocks/sequencer exports only sequencer | Rename the imports |
core | The benchmark contract types (BenchmarkTask, BenchmarkAdapter and the rest) leave the root | Import them from @flow-state-dev/testing/benchmark |
core, engine, client, react, orchestration, harness-manager, workforce, workspace, scheduled | Exported names say resource where they said row or collection item for a resource, and task where they said row for a task: useResourceCollectionItem is useCollectionResource, client.resources.listCollectionItems is listCollectionResources, WorkerRow is WorkerResourceState, taskRowView is taskView. Refusal messages change the same noun, and the dispatch refusal "external-dispatcher" is "external-flow-runner" | Rename the imports as each package's changelog lists them, and update code that matches a message or the refusal value |
core | A three-part gateway/provider/model model string fails as an invalid format | Write "gateway:provider/model" |
core | defineFlow throws when two declarations of one state field differ in type or default, and on a .default(() => ...) factory that a block or capability declares, or that sits anywhere in user or org state | Make the declarations agree. Replace each such factory with a static default, or move it to the flow's own session schema |
core | A single resource with runBy and no state projection throws at definition | List the fields the client reads and writes: client: { expose: ["pinned"] } |
engine | The exports are split across the root and @flow-state-dev/engine/host. Host, transport and store-adapter names live on engine/host | Move those imports to @flow-state-dev/engine/host |
engine | createFlowState takes its flows as a list. A keyed record throws | Replace flows: { chat: chatFlow } with flows: [chatFlow] |
engine | The worker option is jobQueue. WorkerAdapter is JobQueueAdapter, and the modes are "enqueue-only", "process-only" and "colocated" | Rename the option, the types and any mode values in your environment |
engine, client, react | Every send names its session. An HTTP send without one is refused with 400 session-required, and runAction throws SessionRequiredError | Pass the conversation's id ((await client.flow(f).createSession()).id), or oneOffSessionId() from @flow-state-dev/core/helpers for a one-off run |
engine, scheduled, node | Flow State fires your schedules itself, and serves the schedule endpoints under /api/flows/:flowKind/schedules on every app. createScheduledTransportAdapter and serveScheduleTicks are removed, and an adapter of yours that registers either schedule path is refused at startup | Delete createScheduledTransportAdapter() from adapters, the serveScheduleTicks call and your own cron routes. On a serverless host, pass a scheduler such as vercelScheduler() |
engine | JSON routes refuse a body not sent as content-type: application/json (415), and a cross-site browser mutation (403) | Send content-type: application/json on every curl or fetch POST to a flow route |
engine, node, next, vercel | In every environment, a host refuses a flow with no principal resolver, which trusts body.userId. serve() throws before it listens on any address other than loopback (127.0.0.1, ::1, localhost). Next, Vercel and Lambda answer each request with a 500 | Give each flow a principal resolver: authentication.resolvePrincipal on the flow, or resolvePrincipal on createFlowState. For local work, bind serve() to 127.0.0.1 or pass allowUnauthenticated: true |
engine | A custom SuspensionStore needs listPendingForUser(query) | Implement it, and run createPendingUserSuspensionsConformanceTests from @flow-state-dev/engine/testing against the store |
engine | The queue and scheduler store profile slots are removed | Delete those lines from a typed profile |
engine | ctx.suspend({ reason: "human_approval" }) and "human_input" throw | Use "user_approval" and "user_input" |
engine | DispatchHandle from a transport host is InboundDispatchHandle, and the bridge's StreamEvent is StreamBridgeEvent. ChildSessionStatus and ChildSessionSummary leave engine | Rename the imports, and import the child-session types from @flow-state-dev/client |
engine | A request stream ends early for a reader more than 4 MiB behind, with no terminal event | Treat a stream that ends without a terminal request.* event as cut off, and resume it from the last event id |
store-sqlite, store-postgres | The registry factories, per-store constructors and schema functions move to a ./host entry | Import them from @flow-state-dev/store-sqlite/host or @flow-state-dev/store-postgres/host. sqliteStores and postgresStores stay on the root |
client | client.flow(kind).read(name, input, { sessionId }) is removed | Call client.view(viewRef(flow, name), input, { sessionId }), or useView in React |
client | ExecuteActionRequestBody, QueryValue and clientPackageMarker are removed | Drop the imports |
react | session.resumeSuspension is session.answerSuspension, and resumedBy is gone from its arguments | Rename the calls, and pass session.answerSuspension to <SuspensionResolverProvider resolve> |
react | buildItemRenderStream is conversationLines(items, turns?, options?). ItemRenderSegment, BuildItemRenderStreamOptions and groupToolCalls are removed | Call conversationLines and draw its ItemLine kinds |
react | The voice primitives move to @flow-state-dev/react/voice, and the workforce panels (Roster, BoardColumns, BoardList, WorkerDetail) to @flow-state-dev/workforce/react | Import them from those subpaths |
react | useSuspensions({ reasons }) throws on human_approval or human_input | Filter on user_approval or user_input |
testing | Benchmarking moves to @flow-state-dev/testing/benchmark, and testBlock replaces testSequencer and testRouter | Import benchmark names from the subpath, and test sequencers and routers with testBlock |
testing | testFlow runs durably by default: a step that stops for a user ends the run suspended | Answer the stop with run.answer(...), or pass durable: false to fail the run as before |
orchestration | The task names leave the root | Import them from @flow-state-dev/orchestration/tasks |
orchestration | The "topological" claim order and topologicalClaimOrder are removed | Use "fifo", the default, or drop the option |
orchestration | withRetiredShapes and heldFromBlocked are removed. A write to a stored task with status blocked is refused unknown-status, and a hold marked "row" is not read as "task" | Before you upgrade, set status held on every stored blocked task, and "task" on every hold marked "row" |
orchestration | A model's createTask with no assignee is refused assignee_required unless the roster claims unassigned tasks | Set claimsUnassigned: true on a roster whose default worker takes them |
patterns | The benchmark adapters move to @flow-state-dev/patterns/benchmark, which needs @flow-state-dev/testing installed | Change the import and install @flow-state-dev/testing |
patterns | /routedSpecialists is /routed-specialists and /eventActors is /event-actors. Names the root re-exported live on their pattern's subpath, and the debate helpers drop their Debate infix there | Import from the kebab-case subpaths and the pattern's own subpath |
patterns | The patterns' building blocks and schemas, such as createLabelFailedReviews, PlanSchema and debateVerdictSchema, leave the root. Each pattern's factory, input schema and config types stay | Import them from the pattern's subpath, such as @flow-state-dev/patterns/supervisor |
workforce | The *_ENTRY constants leave the root | Name each entry by its string: work, onTaskSteered, onMessageReceived, onWorkstreamOpened, onTaskSettled, routeSubscriptionEvent, deliverSubscriptionEvent |
workforce | taskBriefOf, taskBriefMetadata and TaskBrief leave the root | Import them from @flow-state-dev/workforce/browser |
workforce | SUBSCRIPTIONS_RESOURCE, SUBSCRIPTION_CURSORS_RESOURCE, SUBSCRIPTION_INDEX_RESOURCE, MAX_SCREEN_TERMS, screenVerdictsSchema, ListedScreen and SubscriptionCursor are removed | Declare the subscription resources with subscriptionResources. For the shapes, use listedScreenSchema, subscriptionCursorSchema, screenVerdictSchema and SubscribeInput["screens"] |
workspace | LAND_TIMEOUT_MS is removed. A landing defaults to two minutes when LandRequest.timeoutMs is unset | Drop the import |
workforce | reportProblem answers { status, waitsIn?, note?, title?, inbox?, issue? }, not { decision, reportId }. status is words such as "drafting", "waiting in Inbox" or "filed", and issue is { identifier?, url } | Read status, and the optional fields when present |
workforce | WorkforceClientSource takes the client's view and subscribe, not live | Pass those from your client |
workforce | createWorkforceCapability takes roster and inventory. agents and catalog are unknown options | Rename the options |
workforce | The projects collections are written through a flow named "projects" (PROJECTS_FLOW), and checkRepository is a view | Register the project blocks' actions on a flow of that name, and install views: { ...projects.views } |
workforce | Workers on the built-in flows are shown today's date and their skills, and summarize older turns, by default. A worker flow that declares the worker contract's keys by hand, not through workerConfigSchema(), is refused at boot until it adds defaults | Add defaults to a hand-declared worker contract. To keep a worker's old prompt, set defaults: false in its WORKER.md, or turn off one section: defaults: { date: false }, { skillsIndex: false } or { historySummary: false } |
harness-manager | harnessRunChangesRead, harnessReadinessAction and harnessUsageAction are removed | Use harnessRunChangesView, harnessReadinessView and harnessUsageFlow with its usage view |
harness-manager | A coding run's branch starts with the app's prefix, not conductor/ | Set branchPrefix on harnessManager or harnesses |
claude-code | The package has one entry, the root. ./sdk and ./cli are gone, and names say ClaudeCode (SDK_SESSION_ID_KEY is CLAUDE_CODE_SESSION_ID_KEY, listClaudeModels is listClaudeCodeModels) | Import from @flow-state-dev/claude-code and rename as the changelog lists |
claude-code | The @anthropic-ai/claude-agent-sdk peer range is >=0.3.316 <0.4.0, and a version outside it is refused | Install an SDK in that range |
codex, cursor | estimateCodexCost and estimateCursorCost are removed | Read handle.cost from the block's handle |
devtool | getAssetPath() is getDevToolAssetPath() | Rename the call |
bullmq | bullmqWorker is bullmqJobQueue. The schedule entry @flow-state-dev/bullmq/schedules is removed | Rename the call, and drop the schedule wiring: the job-queue processes fire schedules |
vercel | @flow-state-dev/vercel/schedules is removed, and vercelPostgresStores() lists no scheduler capability | Replace the per-schedule cron routes with vercelScheduler() and its one route |
workspace | Child processes the workspace starts get an allowlisted environment, not the host's whole one | Pass any variable a setup or check needs through setup.env or the check's env |
Each package's changelog has the full list of changes:
core,
engine,
client,
react,
testing,
orchestration,
patterns,
workforce,
workspace,
harness-manager,
claude-code,
codex,
cursor,
devtool,
node,
next,
vercel,
bullmq,
store-sqlite,
store-postgres,
scheduled,
contracts,
fsdev,
mcp,
tools,
shift-manager.