| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Free.Agent.Bus.Claim
Contents
Description
Mechanical claim gate for a free-agent bus root.
.claim-N files are the authority; the bus post is only the record. Uses check-then-create — the race window is microseconds vs 30s LLM latency.
Claim operations
checkTask :: FilePath -> Int -> IO (Maybe Text) Source #
Who holds task n? Returns Nothing if unclaimed.
listClaims :: FilePath -> IO [(Int, Text)] Source #
List all current claims. Returns [(task number, holder)].
wipeClaims :: FilePath -> IO () Source #
Remove all claim files in the bus root.