Runtime cheat sheet
| Task | API / guide |
|---|---|
| Add sources/components | cortex backend install ./host --plan |
| Register a verified dev host | cortex backend register ./host --target target.json |
| Provision trusted dev grants | cortex backend provision ./host --target target.json --principal principal.json |
| Connect host identity | new CortexRuntimeClient({ deploymentUrl, fetchToken, assetHttpUrl }) |
| Submit/start | client.submit(TextSubmitV1), client.start(handle) |
| Observe/reconnect | watchObservation(handle, render), attach(runId) |
| Approve/cancel | approveInput, approveTool, cancel |
| Canonical history | messages(conversationId), listConversations() |
| Profile/search/readiness | getEmbeddingProfile, recall, memoryReadiness |
| Content/media | submitContentJob, submitMediaJob, retained get/list/reconcile/cancel |
| Private bytes | uploadAsset, fetchAsset, createAssetUrl then revoke() |
| React | CortexRemoteTransport from provider /remote with AI SDK 7 useChat |
| Graph worker | Node-only SDK /runtime/graph |
Keep the original request/run/job after uncertainty. IDs select resources and never grant access. Close owned clients and clear protected host views on authority loss. See runtime reference and backend setup.