Constants§
- WORKFLOW_
TTL_ SECS - TTL for expired workflow files (24 hours).
Functions§
- cleanup_
expired - Remove workflow files older than
WORKFLOW_TTL_SECS. - clear_
active - clear_
active_ for_ agent - is_
run_ stale - Whether
runhas been inactive for longer than the stale threshold. The one stale rule, for the store and for both tool gates (workflow::gate). The stand-in for a withheld workflow is never stale: it ends when the stored workflow loads again or is stopped explicitly, not by the passing of time. - is_
withheld_ sentinel - Whether
runis the stand-inwithheld_sentinelbuilds. The one test for it: the store, the stale rule and the tool gate all ask here. The marker is the reserved name pair, which no stored workflow can carry —save_active_for_agentrefuses to write a run that has it. - load_
active - load_
active_ for_ agent - save_
active - save_
active_ for_ agent