d4664b3c1f
The rig-highlight/graph mismatch kept returning because the highlight (a UserDefault) and the working graph (the autosave file) were two separate stores that could diverge — and once an earlier build failed to load and autosaved a fallback Default over the real graph, the divergence was permanent. Fix the class of bug: the loaded rig's id now lives on ShoeGaze.currentRigID and is written *inside* the autosave envelope alongside the graph (one atomic file). RigStore.restore sets it from the envelope (nil for pre-envelope files or a fallback seed); the sidebar highlight reads it directly. The separate UserDefault key, restoreCurrentRig, and persistCurrentRigID are removed. When the app falls back to seeding Default, no rig is highlighted — honest, and it can never mislabel the graph again. 339 tests pass; both app targets build. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>