Files
hermes-agent/tests/contracts/_reference/workers
yoniebans d2cbdfa3ad refactor(persistence): running is the only in-flight delegation state
No writer stores a `finalizing` ledger state or emits a `success` completion status: `finalizing` is an in-memory record status only, and completions report `completed`, `error`, `interrupted`, `stalled` or `unknown`. The ledger contract now treats `running` as the one in-flight state for the in-flight read, the finished read, the prune, the orphan sweep and the worker delivery claim, and a worker completion carrying `success` is refused `invalid_params`.

`DelegationState` drops `FINALIZING` and `SUCCESS`, `DELEGATION_COMPLETION_STATUSES` drops `success`, and the reference backend follows. New contract cases pin both rules.
2026-11-17 13:01:56 +01:00
..