[P0] Explicitly migrate pre-v2 durable-effect ledgers #84
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/prolog-rlm#84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Goal
Add an explicit, offline, exclusive migration for non-empty PR #78 effect journals that PR #83 correctly rejects with
legacy_effect_store_requires_migration.This issue is a prerequisite for #79. It does not implement canonical provider/tool/MCP/process adoption and does not close #57.
Threat model
Blindly assigning a v2 namespace to legacy calls can change call/attempt/provider identity, detach observations and lineage, choose the wrong adapter for unresolved work, or make accepted remote work look new. Migration must never cross an external boundary or treat absence of a local observation as proof that nothing happened.
Chosen compatibility model
Operator interface
bin/prolog-rlm.pl -- effect-store migrate --source LEDGER --output LEDGER.v2 [--manifest MANIFEST] [--backup BACKUP] [--in-place] [--json]The manifest is strict, versioned JSON bound to the source digest. Unknown keys, duplicate/conflicting/nonexistent attempt bindings, invalid adapter atoms, observation mutation, identity changes, and incompatible digests are rejected.
Outcomes
Versioned machine-readable reports distinguish: migrated, already_migrated, incompatible, corrupt, ambiguous_adapter, lock_conflict, interrupted, and validation_failed.
Required proof
TDD coverage includes a representative journal emitted by PR #78; observed replay; uncertain/abandoned/retry lineage; exact provider-key preservation; manifest rejection; alias/collision/locking races; crash points with fresh processes and markers (no sleeps); backup restoration; copy/path binding; #53 migrated reconciliation; #54 regression; full effect/CLI/restart regression suites.
Non-goals
References #57, #79, PR #78, PR #83, RLM-RESEARCH-010, #53, and #54.