Evidence Policy
Read or author a task's evidence policy (protocol v0.2 V9b, GET|PUT /evidence/policy/:task_id — one route, two methods, so one tool). action=get evaluates the pinned policy against the evidence ledger so far: whether it is usable and satisfied, and its progress (read tier). action=set authors/updates a policy in your org's namespace when definition is given (definition.require is a non-empty array of requirement objects; definition.min_count, when set, must be an integer from 1 through definition.require.length) or, when definition is omitted, pins the task to an existing active policy_id (write tier).
Request
- Base URL: https://app.tascan.io/api/v1
- URL: https://app.tascan.io/api/v1/evidence/policy/{task_id}
- Auth: HTTP bearer
Path parameters
Query parameters
get = GET (evaluate, read tier). set = PUT (author/pin, write tier).
action=set only, required: lowercase letters/digits/underscore/dot, starting with a letter, up to 80 chars, e.g. loto_v1.
action=set only: optional version for a new/updated policy definition (default 1). Ignored when only pinning an existing policy.
action=set only, optional: policy definition to create or update — require (array, required), min_count, window, any_of, allow_fallback. Omit to pin the task to the existing active policy_id instead.
Response
Success. JSON body: { data: ... } or an error object { error, message }.
Changes
No recorded changes to this operation across all 1 revision of this API.