FE-1261: Recover prepared execution journals - #371
Conversation
PR SummaryHigh Risk Overview
Reviewed by Cursor Bugbot for commit 2d2c774. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2d2c774. Configure here.
| state, | ||
| lifecycleTransitionIds: projectExecutorPetriTransitionHistory(state, plan)?.transitionIds, | ||
| plan, | ||
| }); |
There was a problem hiding this comment.
Stale state skips journal repair
Medium Severity
After preparePetriObservation persists petriObservationPrepared, drive still passes the earlier in-memory state into reconcilePreparedLifecycleJournal. That helper treats the run as not_prepared and skips catch-up, so a lifecycle-ahead journal left by direct steps can still halt as petri_journal_gap instead of being repaired.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 2d2c774. Configure here.



Stack context
FE-1261 is a repair beneath FE-1211's comparison-execution work.
Why
Direct lifecycle tools and superseding runs could leave
run.jsonahead of the prepared Petri journal, halting resumable comparison execution or misclassifying journal authority.What
How to test
npm run test -- srcnpm run buildnpm run check:markdown-linksnpm run check:skillsnpm run check:promoted-run-paths