Section B• Last verified November 2026
Tasks and Workflows
DAG task scheduling, dependency resolution, agent leases, retries, and verification.
DAG Task Scheduling
Mandate executes tasks via a topological sort of the Directed Acyclic Graph (DAG). Tasks with zero unfulfilled dependencies are unlocked concurrently, allowing parallel agent execution where safe.
Agent Leases & Concurrency
To prevent race conditions, workers acquire atomic leases in PostgreSQL before processing a task. Each lease includes a lease_generation and expires_at timestamp. Stale workers that crash or stall have their leases reclaimed safely without double-spending.
Task Verification & Fingerprinting
When an agent submits task output, Mandate hashes the payload using SHA-256 to produce an immutable result_fingerprint. Downstream dependent tasks can verify the integrity of upstream outputs before proceeding.