blender-motion-state-inspection
AFaffaan-m/ECC314k近 7 天新增 3,503 个 star
Use when authoring a rig spec member or `rig expand` payload that needs to start a new managed seat from a prior runtime conversation source — `session_source: { mode: fork, ref: { kind, value } }`. v1 supports `mode: fork` with `ref.kind: native_id` for Claude and Codex. The new seat persists a NEW post-fork token; the parent token is NEVER written onto the new seat. NOT for restoring an existing seat or for artifact-backed mental-model rebuild.
session_source is a member-level OpenRig field that declares how a
newly-launched managed seat should derive its initial conversation
continuity from a prior runtime conversation source.
v1 supports one mode: fork — start a new managed seat from a
prior native runtime conversation source without claiming the original
seat continued.
The schema is runtime-neutral; implementation is runtime-specific (Claude and Codex have their own native fork commands).
rig expand payload with session_sourcefork vs rebuild vs resume vs fresh for a new seatseat-continuity-and-handover skillmode: rebuild (see seat-continuity-and-handover for the rebuild surface) — do NOT collapse fork into artifact-backed reentry; the distinction is load-bearing.terminal. Terminal runtime rejects session_source.members:
- id: reviewer-2
runtime: claude-code # or "codex"; not valid on terminal
agent_ref: specs/agents/reviewer.yaml
profile: reviewer
cwd: .
session_source:
mode: fork
ref:
kind: native_id # v1 fork mode supports native_id only
value: "0b0165d7-cb4d-4650-90de-15c0a1ede9e6"
Rules:
mode v1 only valid value: fork.ref.kind v1 supports native_id only. Schema rejects artifact_path, name, last, and artifact_set pre-launch with explicit deferred/weaker/wrong-mode error messages (see packages/daemon/src/domain/rigspec-schema.ts validateSessionSourceFork). Adapter-level refusal exists as defensive handling but should not be reachable in v1 because schema rejects first.value required for ref.kind: native_id in v1 (the only schema-accepted kind). Future-state value semantics for artifact_path / name / last are not active in v1 because schema rejects those kinds pre-launch.rig expand accepts the same shape so dynamically-added members can carry session-source attribution.The primitive does NOT introduce a new top-level command. It flows through existing rig spec and expansion pathways.
session_source is a launch-time input, not a long-lived stateful field:
ref against the runtimeOnce realized, session_source is essentially history. Restoring the
seat later is restore of the new seat, not re-fork-from-parent.
native_id. Action: emit error naming runtime + missing id; do NOT silently launch fresh. (Future-state note: when artifact_path is supported in a follow-up slice, it could become a candidate fallback for Claude; in v1 schema rejects artifact_path pre-launch so no fallback path exists.)ref.kind: artifact_path becomes schema-accepted. v1 schema rejects this kind pre-launch.native_id kinds upfront. Adapter-level refusal exists as defensive handling but is not reached in v1.claude --resume <parent> --fork-session or codex fork <id>) returned non-zero or hung. Preserve runtime stderr; do not record new seat as launched; do not write parent token onto seat.The primitive must NOT report "restored the original agent" or "resumed the original seat" or "snapshot." The correct framing is "forked from source session" / "started from prior conversation source."
Check the actual user-facing outcome and persisted identity; wording alone does not prove the intended continuity was created.
rig fork <source-session> has since shipped as a thin convenience verb that COMPOSES the existing agent-image fork path — this honors the boundary; it is not a divergent primitive. The rule now reads: no NEW fork mechanics outside the spec / expansion / agent-image pathways.)session_source to AgentSpec. It's a member-level launch-time input.restore semantics. session_source creates a seat; restore continues an existing managed seat.| Runtime | Command shape |
|---|---|
Claude (mode: fork + ref.kind: native_id) | claude --resume <parent-id> --fork-session |
Codex (mode: fork + ref.kind: native_id) | codex... fork <parent-id> |
| Terminal | Rejected at schema level |
Mutual exclusion between resumeToken (restore path) and forkSource
(fork path) is enforced at three layers in the daemon.
| Outcome | When |
|---|---|
forked | Fork succeeded; new seat has new native token; parent never written onto new seat |
fresh | Fresh launch (no session_source declared) |
resumed | Restore of existing managed seat |
failed | Resolution or fork failed |
For seat handover over fork composition, the binding outcome is
independent (see seat-continuity-and-handover skill).
A source checkout and the running daemon can contain different implementations. Before an authorized fork, check the target daemon's build identity and support for the requested source. A source or isolated test establishes only that cut's behavior; it does not prove the live runtime uses it.
Record the actual parent history, new seat identity, new continuity token and independent binding outcome. Preserve errors and incomplete results rather than reporting a fresh launch or restored original seat as a successful fork. These checks confer no authority to launch, replace or retire a live seat.
Shipped at openrig c7b6df1 (2026-04-30):
session_source faithfully)rig expand member-inputnative_idresume_token is the NEW post-fork token; parent token NEVER written)continuityOutcome: forked)Deferred:
artifact_path mode (schema currently refuses with deferred message)parent_native_id / created_via for queryable RSI consumer)cross-host-rig-commandsseat-continuity-and-handover skill — sibling occupant-creation primitives (resume / fork / rebuild / fresh) + seat-binding (handover composes with fork)agent-starters skill — composes session_source fork into named reusable starting pointscross-host-rig-commands skill — multi-host fork (deferred)AFaffaan-m/ECC314k近 7 天新增 3,503 个 star
ANanthropics/skills203k近 7 天新增 2,822 个 star
HAharry0703/MoneyPrinterTurbo147k近 7 天新增 1,401 个 star
SHShubhamsaboo/awesome-llm-apps146k近 7 天新增 818 个 star
GAgarrytan/gstack143k近 7 天新增 524 个 star