38c8d22e5dbb7dd27898f6a353d7e94e80bcdba1
Review found Task 8's prescribed test never mounts PageProvider, so it never exercises loadState -- deleting the repairOrphanNodes call would still leave that suite green. Adds a PageProvider-mounted test driving switchPage into a page with a stored orphaned node, asserting on what loadState hands to actions.deserialize and that console.warn fires. Verified load-bearing: temporarily neutering the repair call fails the new test (ROOT.nodes missing 'stray'), then restored. Also documents the fallback-branch invariant that `fallback` must always be a known-safe constant, per review. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Languages
TypeScript
75.9%
JavaScript
12.3%
HTML
8.6%
CSS
2.6%
PHP
0.4%
Other
0.2%