You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sdk: a stale lease error from the local LLM worker kills the whole run, though the kernel already retried the step #560
So when the worker hits a lease error on an attempt the kernel has already expired and retried, the whole run ends as protocol_error and can't be resumed. The retry succeeds in the journal anyway. Seen two ways in relayflows 2.0.29:
Renewal racing completion. A step whose child run journaled step.completed success + run.completed success was reported as lease_conflict: attempt has no active worker lease, and the run died. Intermittent: once in about 50 sequential calls. 00-prove-attempt1-lease-conflict-after-success.txt
Scope
A lease refusal for an attempt the kernel no longer owns shouldn't abort the run. Examples: already expired before execute, lease_conflict / no active worker lease on heartbeat or complete. The kernel owns that attempt's fate (retry, or a completion that already landed). Drop it with a diagnostic (WAITING/warning line); don't close the client.
Any other worker error stays fatal, exactly as today. Fail closed.
The agent worker path (AgentWorker) likely has the same shape. Check it and apply the same rule if so.
Acceptance
A unit test injects a dispatch whose lease_deadline_ms is already past. The run continues, and the kernel's retry completes the step.
A unit test makes stepHeartbeat / stepComplete reject with lease_conflict after the step's journal is success. The run reports success.
A non-lease worker error still ends the run as today (regression test).
Mutation-verified per AGENTS.md.
Related: the root cause of case 1 under concurrency is tracked separately (it's why the dispatch was stale).
Activity
docs(examples): point prompt-lab workarounds at #558, #560, #561
fix(examples): address prompt-lab re-review — CAS publish, OS-release…
feat(examples): prompt-lab — the Prompt Lab product brief as one rela…