US04-02 — Journal Rename State and Preconditions #21

Closed
opened 2026-07-13 13:10:45 +02:00 by domverse · 3 comments
Owner

Source specification: delivery_backlog/stories/US04-02-rename-journal.md

US04-02 — Journal Rename State and Preconditions

Epic: E04

As an operator, I want every rename transition journaled durably so interrupted work
can be diagnosed and recovered without guessing.

Acceptance criteria

  • Plan and item state machines record preconditions, intent, attempts, outcomes,
    timestamps, fencing tokens, and verification evidence.
  • Journal writes occur before filesystem mutations and terminal transitions are
    idempotent.
  • Startup classifies incomplete transitions as resumable, rollback-safe, or manual.

Automated tests

  • State-machine tests cover all valid/invalid transitions and repeated recovery.
  • Migration/repository tests prove durable state after process restart.

Dependencies

  • US04-01, US02-03
Source specification: [delivery_backlog/stories/US04-02-rename-journal.md](https://git.domverse-berlin.eu/domverse/photoanalyzer/src/branch/main/delivery_backlog/stories/US04-02-rename-journal.md) # US04-02 — Journal Rename State and Preconditions Epic: [E04](https://git.domverse-berlin.eu/domverse/photoanalyzer/src/branch/main/delivery_backlog/E04-guarded-renaming.md) As an operator, I want every rename transition journaled durably so interrupted work can be diagnosed and recovered without guessing. ## Acceptance criteria - Plan and item state machines record preconditions, intent, attempts, outcomes, timestamps, fencing tokens, and verification evidence. - Journal writes occur before filesystem mutations and terminal transitions are idempotent. - Startup classifies incomplete transitions as resumable, rollback-safe, or manual. ## Automated tests - State-machine tests cover all valid/invalid transitions and repeated recovery. - Migration/repository tests prove durable state after process restart. ## Dependencies - US04-01, US02-03
domverse added this to the E04 — Guarded Renaming milestone 2026-07-13 13:10:45 +02:00
domverse added a new dependency 2026-07-13 13:11:23 +02:00
domverse added a new dependency 2026-07-13 13:11:23 +02:00
domverse added a new dependency 2026-07-13 13:11:25 +02:00
domverse added this to the Photo Analyzer Delivery project 2026-07-13 13:19:45 +02:00
domverse added the status/backlog label 2026-07-13 13:52:49 +02:00
domverse added status/in-progress and removed status/backlog labels 2026-08-15 14:56:13 +02:00
domverse self-assigned this 2026-08-15 14:56:14 +02:00
Author
Owner

Claimed for implementation on branch us/US04-02-journal-rename-state-and-preconditions.

Claimed for implementation on branch `us/US04-02-journal-rename-state-and-preconditions`.
domverse added status/review and removed status/in-progress labels 2026-08-15 15:04:47 +02:00
Author
Owner

Submitted for review: #67

Tests passed:

  • work_item/scripts/python -m unittest discover -s work_item/tests -v
  • work_item/scripts/python -m pytest tests -q
  • work_item/scripts/python -m pytest tests/unit/test_rename_journal_states.py tests/integration/test_rename_journal.py -q
Submitted for review: https://git.domverse-berlin.eu/domverse/photoanalyzer/pulls/67 Tests passed: - `work_item/scripts/python -m unittest discover -s work_item/tests -v` - `work_item/scripts/python -m pytest tests -q` - `work_item/scripts/python -m pytest tests/unit/test_rename_journal_states.py tests/integration/test_rename_journal.py -q`
domverse added status/done and removed status/review labels 2026-08-15 15:04:52 +02:00
Author
Owner

Completed and merged via PR #67.

Completed and merged via PR #67.
domverse moved this to Done in Photo Analyzer Delivery on 2026-08-16 11:58:48 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: domverse/photoanalyzer#21