DidWork
v0.1.4Independent outcome evidence to verify completion and guide agents through authorized recovery
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
did_verify
Independently verify that an intended outcome is actually true. Sends claim fields (including private repository identifiers, branches and commit SHAs), optional subject/account labels and tool profiles to the configured DidWork API (default https://api.didwork.sh). DidWork reads provider state without modifying it, but authenticated verification creates a DidWork record containing the claim, verdict, timestamps and evidence, which may include provider response data. Verification evidence is retained under the account plan (Free: 7 days; Pro: 365 days). Keyless http.ok does not store a verific…
| Parameter | Type | Description |
|---|---|---|
expected * | object | The claim's expected fields. For github.commit_in_branch use { repository: 'owner/repo', branch: 'main', commit: 'full-sha' }; for stripe.refund use { payment: 'pi_123', amount: 4999 }. |
type * | string | Claim type, e.g. 'stripe.refund' or 'http.ok' |
account | string | Which connected account to verify against, by the label the user gave it in the console (e.g. 'acme'). Omit to try every account connected for the provider. |
subject | string | Optional caller-side reference id |
tools | array | The tools that performed the work, as profiles from did_inspect_tool or { name, capabilities } records. Recorded on the receipt as caller-reported context (what the tools could affect); the verdict do… |
wait | boolean | false = return a pending verification immediately and poll with did_get |
did_get
Fetch a verification by id (poll a pending async verification).
| Parameter | Type | Description |
|---|---|---|
verification_id * | string |
did_verify_contract
Verify a reviewed version 2 outcome contract. Pass the requirements unchanged; never remove or weaken requirements to obtain a pass. The caller must load the contract from the trusted source. DidWork records caller-supplied provenance, independently gathers claim evidence and returns a run. Reuse the same idempotency_key after an interrupted request. A verified run covers only its required checks. Requires an API key. Sends claim fields (including private repository identifiers, branches and commit SHAs), optional subject/account labels and tool profiles to the configured DidWork API (default…
| Parameter | Type | Description |
|---|---|---|
contract * | object | |
idempotency_key * | string |
did_get_run
Read an outcome run by id. Running, failed and unknown are not completed success. Poll running checks; diagnose failed or unknown checks, repair within existing authorization, then verify a fresh run. Continue useful work without weakening the contract.
| Parameter | Type | Description |
|---|---|---|
run_id * | string |
did_list
Recent verifications for this API key — the developer log, evidence included.
| Parameter | Type | Description |
|---|---|---|
limit | integer |
did_watch
Continuously re-verify a claim on an interval (e.g. '10m', '1h'). DidWork notifies the webhook_url on the first run and on verdict transitions. Plan limits apply: a free key may run one watch, hourly at most ('1h'), and a shorter interval or a second watch is refused with 402 watch_cadence_requires_pro or 402 watch_limit_reached. Pro keys run unlimited watches down to '5m'. If a watch is refused, say so — do not retry at the same cadence. Sends claim fields (including private repository identifiers, branches and commit SHAs), optional subject/account labels and tool profiles to the configure…
| Parameter | Type | Description |
|---|---|---|
expected * | object | The claim's expected fields. For github.commit_in_branch use { repository: 'owner/repo', branch: 'main', commit: 'full-sha' }; for stripe.refund use { payment: 'pi_123', amount: 4999 }. |
type * | string | |
account | string | Which connected account to verify against, by the label the user gave it in the console (e.g. 'acme'). Omit to try every account connected for the provider. |
every | string | Interval like '10m', '1h', '1d' (default 1h) |
webhook_url | string |
did_watches
List active watches with their last verdicts.
did_unwatch
Stop a watch by id.
| Parameter | Type | Description |
|---|---|---|
watch_id * | string |
did_usage
Verifications performed, by month.
did_inspect_tool
Capability Trust: before calling an agent tool with real-world consequences (money, email, deploys, deletes, permissions), ask what it can actually affect. DidWork statically analyses the tool implementations in a project — MCP server.tool / registerTool handlers and did.tool() declarations, TypeScript/JavaScript only — and returns a capability profile per tool: evidenced capabilities (e.g. financial.refund, communication.external, data.delete) each backed by file:line evidence, a risk level (low/moderate/high/critical/unknown), a separate confidence level, and a status: verified (profile…
| Parameter | Type | Description |
|---|---|---|
max_depth | integer | Project-internal calls to follow from each handler (default 8) |
root | string | Project directory to inspect (default: the directory the host launched the server in) |
tool | string | Tool name for the full profile; omit for the summary |