Implement rebuild_world_state with full event replay #45

Open
opened 2026-03-14 23:54:58 +00:00 by freemo · 0 comments
Owner

Metadata

  • Commit Message: feat(event-sourcing): implement full projection rebuild via event replay
  • Branch: feature/m1-v12-rebuild-world-state

Background

rebuild_world_state is a verification stub. It only checks if objects exist in the event store but does not actually rebuild projections or add missing objects.

Expected Behavior

rebuild_world_state performs: clear projections -> load all events -> replay through projectors -> auto-add missing objects -> log summary.

Acceptance Criteria

  • Clears all projection tables before rebuild
  • Loads and replays all events through projectors in order
  • Auto-creates event streams for objects missing from event store
  • Logs rebuild summary (aggregates, events, discrepancies)

Subtasks

  • Implement full rebuild logic in sequent_setup.rb
  • Replace comment placeholders with actual code
  • Tests: Unit test for rebuild with known event data
  • Run bundle exec rake unit, fix any errors

Definition of Done

This issue is complete when all subtasks are done, commit created on the specified branch, PR submitted and merged.

## Metadata - **Commit Message**: `feat(event-sourcing): implement full projection rebuild via event replay` - **Branch**: `feature/m1-v12-rebuild-world-state` ## Background `rebuild_world_state` is a verification stub. It only checks if objects exist in the event store but does not actually rebuild projections or add missing objects. ## Expected Behavior `rebuild_world_state` performs: clear projections -> load all events -> replay through projectors -> auto-add missing objects -> log summary. ## Acceptance Criteria - [ ] Clears all projection tables before rebuild - [ ] Loads and replays all events through projectors in order - [ ] Auto-creates event streams for objects missing from event store - [ ] Logs rebuild summary (aggregates, events, discrepancies) ## Subtasks - [ ] Implement full rebuild logic in `sequent_setup.rb` - [ ] Replace comment placeholders with actual code - [ ] Tests: Unit test for rebuild with known event data - [ ] Run `bundle exec rake unit`, fix any errors ## Definition of Done This issue is complete when all subtasks are done, commit created on the specified branch, PR submitted and merged.
freemo added this to the v1.2.0 milestone 2026-03-14 23:54:58 +00:00
freemo self-assigned this 2026-03-15 04:25:22 +00:00
freemo modified the milestone from v1.2.0 to v1.0.0 2026-03-15 23:19:36 +00:00
Sign in to join this conversation.
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.

Reference: aethyr/Aethyr#45
No description provided.