Factory Sessions
Discover, inspect, and control a live Factory Session, including identity, lifecycle, and its relationship to a loaded Factory.
Relationship To A Factory
Every live Factory Session loads one Factory. The live FactoryName fragment is the named Factory identity that session resolves. Teaching embeds show that identity shape from the live Factory schema. Exhaustive FactorySession, Dispatch, artifact, and event contracts live on the full schema, API, and events reference pages rather than on this surface.FactoryName
stringCustomer-facing identifier for one stored named factory. `GET /factory-sessions/~default/factory` may also return the reserved `UNDEFINED` identifier when the active runtime is still the default root factory and no durable current-factory pointer exists. Semantic validation failures return `INVALID_FACTORY_NAME`, including attempts to activate a named factory with the reserved identifier.
- pattern
^(UNDEFINED|[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)$ - minLength
1
Discover Sessions
Session list is the primary liveness check on a running host. Use it to confirm a Factory Session is accepting work before you submit or inspect. An empty list means the host responded but no live session is registered yet. A connection failure means nothing is listening on that host and port—start or attach a factory before retrying.List live sessions on the default local host:
Inspect A Session
Session show reads one live Factory Session projection by session id, including identity and runtime fields for that session. Each live session owns its own runtime state—loaded factory, work, and relative paths. When more than one session exists, submit and work commands must target the intended session id rather than assuming the default.Inspect one live session by id:
Pause And Resume
Pause and resume control one live Factory Session without dropping buffered work. Pause stops automatic progression while the host can still accept inbound submissions; resume restarts processing for that same session id. Apply the control to the intended session, then confirm the outcome by re-reading session status for that same session id.Pause one live session by id:
Resume the same paused session:
Durable JavaScript Session
Durable JavaScript runs are still Factory Sessions. Dynamic workflow is shorthand for a JavaScript orchestrator-backed session—not a separate runtime object. Use a bounded path: validate source without creating a session, start one durable Factory Session, then read status and result for that same session id. Shared inspection nouns—Dispatch, FactoryArtifact, and FactoryEvent—belong to that same Factory Session id across CLI and related surfaces.Validate JavaScript workflow source without creating a session:
Start one durable Factory Session asynchronously:
Read lifecycle status and progress for that same session id:
Read the final or partial result for that same session id: