Foundry Reference
FCK API and MCP surface.
Runtime Map
Control boundaryCommand ingress
Public commands, HTTP clients, and MCP tools normalize requests before durable fleet mutation.
- Protocol
- CLI, JSON-RPC, HTTP
- State
- Request scope only
Coordinator boundary
Runs, work rows, leases, host health, endpoint rows, and event ingest cross the coordinator.
- Protocol
/v1/runs,/v1/work/*,/v1/leases/*- State
- Control store truth
Lease execution
Workers poll assigned work, renew lease tokens, execute host-local runtime adapters, and complete rows.
- Protocol
- poll, renew, complete
- State
- Assignment + lease token
Artifact residency
Registry refs resolve to immutable digests; hosts report verified cache residency before placement.
- Protocol
- resolve, prewarm, verify
- State
- Digest + manifest metadata
Event projection
Worker events are accepted after run, work, host, redaction, sequence, and lease validation.
- Protocol
- ingest, replay, tail
- State
- Cursor + outbox rows
Foundry lineage
Agent assets, child runs, population state, promotion records, and lineage inspection stay reviewable.
- Protocol
- plan, run, fork, promote
- State
- Lineage + child run IDs
HTTP
Coordinator APIGET/v1/healthCoordinator health.
GET/v1/fleet/statusAggregate fleet counts from the selected store.
POST/v1/hosts/registerUpsert host identity, labels, capabilities, health, capacity, free resources, and placement ceilings.
POST/v1/hosts/heartbeatRefresh host heartbeat while preserving existing metadata unless supplied.
POST/v1/hosts/residencyAccept verified host artifact/cache residency rows.
POST/v1/artifacts/resolveResolve registry refs to immutable verified digests.
POST/v1/artifacts/prewarmRecord verified artifact residency and optionally commit run artifact manifests.
POST/v1/artifacts/residency/verifyReturn present and missing verified digests for a host.
POST/v1/artifacts/manifestsCommit artifact manifest metadata without storing bytes in control state.
POST/v1/runsCreate a run and optional initial work rows; wave admission may deny before rows are created.
GET/v1/runs/{runId}Read the run-scoped store snapshot.
POST/v1/work/pollLease next matching pending work item for a host or return no work.
POST/v1/leases/renewRenew an active lease by current lease token.
POST/v1/work/completeComplete work by current lease token; stale tokens are rejected.
POST/v1/events/ingestAccept worker event ingest after run, work, host, event sequence, redaction, and lease validation.
PUT/v1/vms/{vm_id}/endpointRegister a VM endpoint for forwarding and exposure metadata.
DELETE/v1/vms/{vm_id}/endpointRemove endpoint metadata during cleanup or reconciliation.
CONNECT/v1/vms/{vm_id}/ports/{port}Forward a run-owned VM port through the coordinator boundary.
MCP
stdio JSON-RPC 2.0initializenotifications/initializedpingtools/listtools/callstructuredContent
doctor mcp_capability_audit
fck_command_plan fck_command_run fck_operation_start fck_operation_inspect fck_operation_logs fck_operation_cancel
targets_list kernels_list kernel_inspect kernel_diff
agent_plan agent_test run_agent_workflow eval_plan eval_run
runs_list runs_inspect inspect_result runs_logs runs_artifacts proof_graph proof_capsule_inspect fetch_artifact rerun_failed
cache_list cache_inspect cache_export cache_import cache_prune registry_list registry_manifest_inspect registry_verify registry_tag registry_gc cache_explain object_manifest_inspect object_artifact_fetch object_cache_explain object_store_policy_explain
install_plan install_status install_apply install_rollback install_teardown workflow_inspect operation_inspect backup_inspect
network_proof_inspect network_recommendations network_policy_explain network_counters network_cleanup_proof kernel_evidence_explain kernel_network_matrix_diff
guard_plan guard_run guard_inspect guard_findings guard_policy_explain guard_verify_bundle guard_fetch_artifact
scenarios_list scenario_inspect scenario_recommendations
agent_compose_config agent_compose_up agent_compose_task agent_compose_ps agent_compose_logs agent_compose_gates agent_compose_down
agent_registry_search agent_registry_resolve agent_registry_inspect agent_registry_verify agent_registry_prewarm agent_registry_pack agent_foundry_plan agent_foundry_run agent_fork agent_lineage agent_population_status agent_child_inspect agent_child_cull agent_promote agent_tournament agent_foundry_proof
checkpoint_create checkpoint_list checkpoint_inspect session_grant session_grants session_inspect session_attach session_fork session_revoke memory_dump
events_replay events_tail nats_status fleet_status fleet_hosts fleet_host_inspect fleet_work fleet_placements fleet_cache_residency host_drain host_undrain cloud_project_list cloud_project_inspect cloud_quota_explain cloud_rbac_explain cloud_admission_check cloud_token_status cloud_token_revoke
desktop_screenshot desktop_ui_tree desktop_find desktop_click desktop_type desktop_hotkey desktop_wait_for_text desktop_launch_app desktop_run_powershell
Args
Required MCP inputsfck_command_plan / fck_command_run / fck_operation_startargv
fck_operation_inspect / fck_operation_logs / fck_operation_canceloperationId
agent_plan / agent_test / run_agent_workflow / eval_plan / eval_runworkflow
runs_inspect / runs_logs / runs_artifacts / proof_graph / proof_capsule_inspect / network_* / events_*runId
fetch_artifact / guard_fetch_artifactrunId path
cache_inspect / registry_manifest_inspect / registry_verifyref
cache_exportdestination plus ref or target; allowMutation: true
cache_import / registry_tag / registry_gc / cache_prunewrite-capable inputs plus allowMutation: true; prune and GC require dryRun or force
agent_registry_resolve / inspect / verifyref
agent_registry_prewarmref host allowMutation: true
agent_registry_packfile allowMutation: true
agent_foundry_plan / agent_tournamentfile
agent_foundry_runfile allowMutation: true
agent_forkparentRunId agentRef allowMutation: true
agent_lineage / agent_child_inspect / agent_child_cull / agent_promote / agent_foundry_prooflineageId, childRunId, runId, targetRef, or reason as operation requires; write tools require allowMutation: true
install_plan / install_status / install_apply / install_rollback / install_teardownfile; mutating lifecycle tools require allowMutation: true
object_manifest_inspect / object_artifact_fetchstoreDir manifestId; fetch also requires name
checkpoint_* / session_* / memory_dumprunId, checkpoint, grantId, name, from, to, or reason
cloud_* / host_drain / host_undrainprojectId, tokenId, action, or host; mutating tools require allowMutation: true
desktop_*host session plus text, x/y, keys, app, or script for specific actions
Schemas
48 contractsTemporalWorkflowEvidenceOperationResultRunRecordRunInspectionRunLogFileProofSummaryLogRecord / LogBundleObjectManifestObjectGeeseFSMountRecordObjectRestoreDrillResultEvidenceIndexScenarioSummaryAgentComposeTaskEvidenceAgentComposeTrustSummaryMCPToolResultFlowSummaryNetworkInspectionNetworkProofSummaryPortForwardSessionExposureRouteGuardDecision / GuardFindingGuardBundleFailureSummaryFailureCapsuleCleanupEvidenceRunCleanupEvidenceKernelCatalogEntry / KernelDiffCacheEntryRegistryCacheTransferEvidenceWorkspaceCacheEvidenceWorkflowCacheEvidenceTimingEvidencePermissionSummaryAgentCatalogEvaluationSummarySnapshotManifestCheckpointManifestSessionGrantMemoryDumpRemoteEvidenceSyncCacheExplanationImageManifestFleetWorkAssignmentFleetPlacementCloudProjectServiceAccountProjectQuotaAdmissionDecision
Events
JSONL streamCommand execution through fck exec or fck shell with target, exit, duration, and evidence logs.
Registration, heartbeat, drain, and offline transitions.
Placement, cache residency, artifact manifests, IPAM rows, capacity pressure, cleanup leak accounting, and wave admission.
Endpoint registration, state updates, abnormal runtime exits, endpoint removal, and cleanup verification.
Native and Envoy route creation, readiness, access summaries, removal, and policy failures.
Session grants, visibility denials, leases, attach operations, restored forks, and revocation decisions.
Remote one-off, Guard, Service Compose, or Agent Compose evidence copied into local .fck/runs.
Cache transfer proofs for registry mirror workflows and cacheable handoff channels.
Execution limits, evaluation policy, and redacted secret-leak evidence.
Evaluation plans, assertions, findings, canary sinks, tool policy violations, degraded collectors, and performance gates.