API & Webhooks¶
The API is the product. Any harness — Ford's Lifecycle Harness, OpenEvolve, a human with curl — is a client.
Entities¶
clients, nodes, jobs, runs, digests, content-index, usage
accounting.
Endpoints (sketch)¶
POST /jobs— submit (dedup-checked; returns cached result on hit)POST /images/scan— pre-warm layer scan verdicts (some-trust)GET /images/{digest}— layer list + scan verdictsGET /jobs/{id}— status, queue position, ETAPOST /jobs/{id}/cancel— client-scopedPOST /jobs/{id}/supersede— replace with lineage, inherit queue positionGET /jobs/{id}/wait— long-poll for NAT'd workersGET /jobs/{id}/digest— validated result digest + artifact manifestGET /nodes,GET /nodes/{id}— inventory, digest, health, activityGET /topology— nodes, measured fabric links, named groupsPOST /jobs/match— dry-run: which nodes/groups satisfy resources + constraintsGET /results?...— query by recipe hash, node, config version, workload type
Node-facing (daemon-initiated)¶
GET /work/next— poll for a run assignmentPOST /heartbeats— the minimal trio + statePOST /runs/{id}/digest— submit results (validated beforecomplete)POST /runs/{id}/snapshot— streaming partial artifacts for long jobsPOST /layers/verdicts— report scan verdicts keyed by layer digest
Webhooks (signed)¶
run.queued, run.started, run.digest_validated, run.failed,
node.degraded, node.unreachable, node.returned,
transfer.started, transfer.completed.
Workers without reachable endpoints use long-poll instead of webhooks — never assume inbound connectivity to a client.