Cleanup items from the July architecture review ("say no to things, delete old paths"). Every deletion candidate was adversarially verified for inbound links, imports, tests, and external consumers before being condemned.
Scope
- Delete
/v2 — duplicate homepage prototype; zero inbound links; its NavBarV2 is imported only by the v2 layout; SearchAutocomplete has zero importers anywhere.
- Delete
src/app/pilot/india-multilingual/_archive_v1/ — explicitly archived v1 implementation, unreferenced (underscore prefix already excluded it from routing).
- Remove four dangling
package.json scripts — test:personality, compare:personality, test:preference, test:self-preference point at CLI files that no longer exist on disk.
- Relocate shared modules out of
src/app/sandbox/ — utils/yaml-generator.ts and utils/json-response-parser.ts (imported by the live analysis viewer, the story API routes, and sandbox auto-create/extend/wiki) move to src/lib/; hooks/useMobile.ts (imported by the shared ui/textarea primitive) moves to src/hooks/. This removes cross-surface dependencies on the sandbox route so the upcoming kill-or-keep sandbox decision is a clean folder-level choice.
Cleanup items from the July architecture review ("say no to things, delete old paths"). Every deletion candidate was adversarially verified for inbound links, imports, tests, and external consumers before being condemned.
Scope
/v2— duplicate homepage prototype; zero inbound links; itsNavBarV2is imported only by the v2 layout;SearchAutocompletehas zero importers anywhere.src/app/pilot/india-multilingual/_archive_v1/— explicitly archived v1 implementation, unreferenced (underscore prefix already excluded it from routing).package.jsonscripts —test:personality,compare:personality,test:preference,test:self-preferencepoint at CLI files that no longer exist on disk.src/app/sandbox/—utils/yaml-generator.tsandutils/json-response-parser.ts(imported by the live analysis viewer, the story API routes, and sandbox auto-create/extend/wiki) move tosrc/lib/;hooks/useMobile.ts(imported by the sharedui/textareaprimitive) moves tosrc/hooks/. This removes cross-surface dependencies on the sandbox route so the upcoming kill-or-keep sandbox decision is a clean folder-level choice.