atomic-save-legacy-migration

Quarantine and reconcile legacy Done/import records

Metadata

Statusdone
Agent identityfbb2d89fe44d6b761bcb4b67748ab3d417f29df70a65f8d9403308f5bb2bab78
Created2026-08-03T14:55:05.516280831+00:00
Started2026-08-03T15:43:53.270972582+00:00
Completed2026-08-03T16:39:21.887662974+00:00
Tagsatomic-save, parallel-runtime-adapter
Tokens4155743 in / 15906 out

Description

Implement the atomic-save-legacy-migration work item from docs/plans/atomic-graph-work-save-dag.json and docs/design-atomic-graph-work-save.md. Start only after the shared kernel/schema gate is durably complete. Own only the files/modules listed below so sibling adapters remain safely parallelizable; coordinate any unavoidable overlap before editing.

Owned files/modules:

  • src/commands/completion_repair.rs (new)
  • src/commands/migrate.rs
  • src/commands/trace_import.rs
  • src/function_memory.rs
  • src/commands/func_apply.rs
  • src/commands/evolve/fanout.rs
  • src/commands/service/assignment.rs

Non-goals:

  • No silent blessing of legacy Done.
  • No erasure of historical graph/archive records.
  • No cleanup of historical worktrees.

Validation

  • cargo test completion_repair
  • cargo test commands::migrate
  • cargo test --test atomic_save_faults legacy_done
  • cargo fmt --check

Depends on

Required by

Messages 3 messages (3 unread)

  1. #1atomic-save-legacy-migration2026-08-03T15:45:24.139906451+00:00read
    Shared-kernel gap discovered: src/graph.rs lacks Status::NeedsReconciliation though required by design. I will implement fail-closed quarantine using Status::Incomplete + durable typed reconciliation records within owned modules, without editing shared graph.rs, unless coordinated guidance arrives.
  2. #2atomic-save-legacy-migration2026-08-03T16:22:19.673032336+00:00read
    Synthesis note: completion adapter is currently exposed as commands::migrate::completion_repair and commands::migrate::run_completion_repair because commands/mod.rs + CLI are synthesis-owned. Wire  to the latter; shared Status lacks NeedsReconciliation, so adapter uses ledger-replay-safe Status::Incomplete as compatibility hold.
  3. #3atomic-save-legacy-migration2026-08-03T16:22:26.725861889+00:00read
    Synthesis note: adapter is exposed as commands::migrate::completion_repair and commands::migrate::run_completion_repair because commands/mod.rs + CLI are synthesis-owned. Wire the wg completion audit/reconcile surface to run_completion_repair. Shared Status lacks NeedsReconciliation, so the adapter uses ledger-replay-safe Status::Incomplete as its compatibility hold.

Log