Skip to content

fix(reconcile): skip unsafe journals - #68

Merged
terrytan95 merged 1 commit into
mainfrom
terry-fix-stale-journal-scan
Aug 6, 2026
Merged

fix(reconcile): skip unsafe journals#68
terrytan95 merged 1 commit into
mainfrom
terry-fix-stale-journal-scan

Conversation

@terrytan95

Copy link
Copy Markdown
Owner

Description

Fixes LIVE SCAN falling back to demo data when a verified historical journal references an Agent root that is no longer configured. Journal validation now filters unsafe historical records at the shared verifiedJournals() boundary, preserving their files while preventing maintenance from aborting.

Key Changes

  • Validate every stored journal operation before treating a journal as verified
  • Reuse the existing safety assertion and existing read failure filtering

Verification & Testing

  • yarn test electron/skill-reconciler.test.ts — 17 passed
  • Live v0.1.5 currently reproduces Journal path is outside the configured roots; local signed reinstall and LIVE SCAN verification will follow merge

Impact & Risk

Unsafe historical journals are ignored rather than exposed through Activity or maintenance. No journal files are deleted and no database migrations or environment variables are required.

A completed journal from an older plan format can fail current path validation. Filter those journals before maintenance so one stale record cannot block the live inventory scan.
@terrytan95
terrytan95 merged commit 8e67f02 into main Aug 6, 2026
1 check passed
@terrytan95
terrytan95 deleted the terry-fix-stale-journal-scan branch August 6, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant