All tiny agents
Loops & state

Cancellation Gate

Separate local stop, stale results, and remote cancellation.

What it does

Ask a tool to stop, stop waiting locally, and reject results from an obsolete run. These actions do not prove that an external operation stopped. Dependency-free, Node 22.18+.

The guardrail

Reject results from runs that were already cancelled.

cancellationstale results

Run it

git clone https://github.com/bobbyhalljr/tiny-agent-cancellation-gate.git && cd tiny-agent-cancellation-gate
npm test
npm run demo
Repo
tiny-agent-cancellation-gate
Language
TypeScript
Stars
0
Price
Free