fix: durable initial worker admission and exact intent-bound recovery of lost replacements #421

Merged
karsten merged 1 commit from fix/durable-worker-admission into main 2026-11-13 16:24:45 +00:00
Owner

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 a324ff6 with 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.

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:<execution>:<original-token> 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 a324ff6 with 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.
fix: persist native worker admission before opaque intents and recover exact original history
All checks were successful
decision-interface-ci / full-validation (pull_request) Successful in 2m42s
8b6b4e4ee4
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
harness/core!421
No description provided.