fix: durable initial worker admission and exact intent-bound recovery of lost replacements #421
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/durable-worker-admission"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Completes restart recovery for the first worker, not just repeated handovers (Core420). Built-in strategy preparation durably creates metadata-only native/provider history BEFORE recording an opaque intent. No model/tool/MCP startup or fake result; original-task hash only, same execution/session identity, scope checked before/after awaited preparation. Failure leaves NO unsafe intent and remains normally retryable. Loaded target sessions are never opened by a second manager. Existing/malformed/provider-mismatched histories are not overwritten.
For legacy direct executions whose replacement history was already lost, immutable turn:: identifies exact original worker. Read that known history through read-only API only if replacement absent; preserve explicit UNKNOWN intermediate effects and actual-state reconciliation, no guessed sessions, alternate writer, replay grant, policy/stop/expiry bypass or ledger hand edits. Missing BOTH histories remains fenced. Observed this exact empty-replacement/original-file-present condition in two Minerva executions; no business task manually resumed or mutated by maintenance.
Actual multi-process initial-admission test FAILS BEFORE on Core420
a324ff6with Retained execution evidence is empty; FIXED same execution automatically completes after first intent/before first prompt process boundary, no parent/owner resolve. Prior three-process consecutive-restart case remains green. Metadata/no-model/idempotency/fsync failure/unknown-history/foreign-scope tests added. Full2310pass/1existingSkip, typecheck/build/diff green. Requires normal protected exact-head CI and installed verification; no operational success claim yet.