bernstein_claim
Claim the next dependency-gated task and receive a verifiable claim receipt for offline audit verification.
Instructions
Claim the next eligible task and return a verifiable claim receipt.
Drives the dependency-gated claim path: a task is offered only when
every id in its depends_on is present in completed_ids. Unlike
a raw claim, the result is a signed, content-addressed claim
receipt the worker holds and can re-verify offline against the audit
chain (bernstein audit verify), not a mutable task projection. A
filter that matches no eligible task returns a signed refusal
receipt - a claim attempt is never a silent skip.
Args:
claimer_id: The claiming worker's identity.
role: Only claim tasks for this role (e.g. backend).
project: Only claim tasks in this project namespace.
capability: Only claim tasks requiring this capability.
completed_ids: Task ids whose dependencies are satisfied; a task
is eligible only when all of its depends_on are listed.
max_attempts: Skip tasks at or above this attempt count.
claimer_card_fingerprint: sha256: fingerprint of the claimer's
agent card key, bound into the receipt.
Returns:
JSON of the signed claim receipt (taskId, granted,
backlogHead, filterDigest, chainHead, receiptHash,
signature, pollToken, ...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| project | No | ||
| capability | No | ||
| claimer_id | Yes | ||
| max_attempts | No | ||
| completed_ids | No | ||
| claimer_card_fingerprint | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |