Skip to main content

Module work_claims

Module work_claims 

Source
Expand description

Whose work claims an agent holds, and giving them back. The agent teardown (sagas/agent_teardown.rs) and the controller watchdog both release an agent’s claims, so the rule and the release live here in the core; server::agent_resources and the teardown re-export them under their old paths.

Functions§

claims_held_by
The agent’s claimed work items (R7).
holds_claim
Same holder rule as the store’s release (HOLDER_BY_UID): by UID when both sides have one, else by name.
release_claims
Release the agent’s claimed work items with reason (each counts as an attempt), so they go back to the pool now rather than when the 120 s lease expires. How many went. Blocking.