Atomically publish one complete per-org adoption batch before Ready.
Atomically publish one complete per-org adoption batch before Ready. - Rensei REST API operation reference.
workerJwtAuthorizationBearer <JWT>Short-lived worker runtime JWT minted by the platform. Claims bind the worker, project, organization, registration, and scopes.
application/json- body
orgId*string1 <= length <= 256hostId*string1 <= length <= 256expectedRevision*string1 <= length <= 4096adopted*array<>items <= 512quarantined*array<>items <= 512tombstoned*array<>items <= 512cleared?array<>items <= 512Complete adoption batch committed.
application/json- response
batch*revision*string^[1-9][0-9]*$adoptionRevision*string^[1-9][0-9]*$durableCorrelation*string1 <= lengthrequestDigest*string^[0-9a-f]{64}$idempotentReplay*booleanreplay?curl -X POST 'https://app.rensei.ai/api/daemon/session-shim/adoption-batches/commit' \ -H 'Content-Type: application/json' \ -d '{ "orgId": "string", "hostId": "string", "expectedRevision": "string", "adopted": [ { "evidence": { "orgId": "string", "sessionId": "string", "hostId": "string", "controllerId": "string", "shimId": "string", "processEpoch": "string", "controllerGeneration": "string", "lastForwardedSeq": "string", "extensions": { "required": [ "carrier_epoch" ], "values": { "carrier_epoch": "string" } }, "observedAt": "string" }, "durableCorrelation": "string" } ], "quarantined": [ { "orgId": "string", "sessionId": "string", "controllerGeneration": "string", "reason": "protocol_mismatch", "ageSeconds": "string", "consumesCapacity": true } ], "tombstoned": [ { "orgId": "string", "sessionId": "string", "hostId": "string", "shimId": "string", "processEpoch": "string", "tombstone": { "schemaVersion": 1, "orgId": "string", "sessionId": "string", "shimId": "string", "processEpoch": "string", "harnessPid": 1, "harnessStartedAt": "string", "exitCode": "string", "lastSeq": "string", "groupReaped": true, "observedAt": "string" } } ]}'{ "batch": { "orgId": "string", "hostId": "string", "expectedRevision": "string", "adopted": [ { "evidence": { "orgId": "string", "sessionId": "string", "hostId": "string", "controllerId": "string", "shimId": "string", "processEpoch": "string", "controllerGeneration": "string", "lastForwardedSeq": "string", "extensions": { "required": [ "carrier_epoch" ], "values": { "carrier_epoch": "string" } }, "preparedCorrelation": "string", "recoveryCorrelation": "string", "observedAt": "string" }, "durableCorrelation": "string" } ], "quarantined": [ { "orgId": "string", "sessionId": "string", "shimId": "string", "processEpoch": "string", "controllerGeneration": "string", "protocolMin": 0, "protocolMax": 0, "reason": "protocol_mismatch", "detail": "string", "ageSeconds": "string", "consumesCapacity": true, "phase": "starting" } ], "tombstoned": [ { "orgId": "string", "sessionId": "string", "hostId": "string", "shimId": "string", "processEpoch": "string", "adoption": { "orgId": "string", "sessionId": "string", "hostId": "string", "controllerId": "string", "shimId": "string", "processEpoch": "string", "controllerGeneration": "string", "lastForwardedSeq": "string", "extensions": { "required": [ "carrier_epoch" ], "values": { "carrier_epoch": "string" } }, "preparedCorrelation": "string", "recoveryCorrelation": "string", "observedAt": "string" }, "durableAdoptionCorrelation": "string", "tombstone": { "schemaVersion": 1, "orgId": "string", "sessionId": "string", "shimId": "string", "processEpoch": "string", "harnessPid": 1, "harnessStartedAt": "string", "exitCode": "string", "signal": "string", "lastSeq": "string", "groupReaped": true, "observedAt": "string", "cause": "completed", "outboxKey": "string", "outboxState": "delivered" } } ], "cleared": [ { "orgId": "string", "sessionId": "string", "shimId": "string", "processEpoch": "string", "controllerGeneration": "string", "disposition": "abandoned", "reason": "acceptance_clear_without_terminal_evidence" } ] }, "revision": "string", "adoptionRevision": "string", "durableCorrelation": "string", "requestDigest": "string", "idempotentReplay": true, "replay": { "kind": "contiguous_readoption", "ofBatchDigest": "string", "batchDigest": "string" }}Persist an exact host-level session restart fence.
Runtime-worker-JWT-only planned-restart coordination mutation. The JWT must remain unrevoked and bound to the named organization and live host; its worker registration may already be deregistered, because a restart fence conserves an existing host rather than granting new work authority. One fence id accepts one exact ordered session set: exact replay returns the same durable revision, while changed bytes are refused. Fence expiry is never release authority.
Read the opaque expected host adoption revision before batch publication.
Read the opaque expected host adoption revision before batch publication. - Rensei REST API operation reference.