Validation Workflows¶
The verifier service runs workflows on a DSL server and acts on their results.
Submit an application¶
curl -X POST http://verifier:8080/api/v1/applications/submit -H "Content-Type: application/json" -d '{
"entity_type_id": "<id>",
"payload": {"gpu": "a100", "region": "eu"}
}'
The workflow of the entity type receives application_id, entity_type_id and payload. It returns
{"passed": true, "details": {"score": 92, "actions": [{"type": "approve"}]}}
If the workflow fails, the application does not pass.
Actions¶
| Type | Effect |
|---|---|
notify |
Posts the result to target, or to VERIFIER_NOTIFIER_URL |
approve, reject, escalate |
Posts the decision to <VERIFIER_CENTRAL_ENDPOINT>/api/v1/decisions |
Events¶
POST /api/v1/events/ingest accepts events with capability_id, source and payload. They are queued and handled by the entity type's event workflow.
DSL server¶
| Request | Purpose |
|---|---|
POST /dsl/deploy |
Deploy a capability check. Returns uri |
DELETE /dsl?uri= |
Remove it |
POST /run |
Run: workflow_uri, input, slot_type (free or pinned), wait_for_result, central_endpoint, job_endpoint |
VERIFIER_DSL_SERVER_URL names the server. Entity type and capabilities are loaded from the deployer at start and refreshed every minute.