Skip to main content
A manager agent plans a job and hands parts of it to worker agents. Each worker should hold exactly the authority its part needs, for the time the job takes, and nothing the manager does not itself hold. When the job ends, one revocation should remove every worker’s authority at once.

The policy

runnable

The code

runnable file=main.py

What the agent sees

Omitting constraints: in the second delegation was refused, not inherited: a slice that names no replica limit would have authorized what the manager’s own grant caps.

The receipt

runnable
Every refusal is an AUTHORITY_DENIED event naming the grant it failed against; the delegation and the revocation are DELEGATION_CREATED and DELEGATION_REVOKED, with who did each.

When an AMBIGUOUS appears

A scale call that timed out may have applied. Read the deployment’s replica count, then ctrlrun resolve scale:prod-eu:checkout:6 --committed or --failed. A worker whose grant has since been revoked cannot retry either way; the resolution is the manager’s or a human’s.

Next