@@ -8,38 +8,40 @@ MODEL: GPT-5.4
88REASONING: high
99
1010COMMAND:
11- Implement PR_03_02_SHARED_STRINGS_EXTRACTION .
11+ Implement PR_03_03_SHARED_SELECTORS_CONTRACTS .
1212
1313Goal:
14- Consolidate duplicated string helpers onto the shared layer with no behavior or API changes.
14+ Standardize selector usage and contract boundaries onto shared state/public reader surfaces with no behavior or API changes.
1515
16- Target layer:
17- - src/shared/utils/
16+ Target areas:
17+ - src/shared/state/
18+ - public selector/read boundary surfaces
1819
19- Focus helpers:
20- - normalizeString
21- - safeTrim
22- - toLowerSafe
23- - stringCompare
20+ Focus:
21+ - getState
22+ - getSimulationState
23+ - getReplayState
24+ - getEditorState
25+ - public selector/read boundaries
2426
2527Required steps:
26- 1 . Produce docs/dev/reports/string_usage_scan .txt for string helper duplicates and consumers in scope.
27- 2 . Produce docs/dev/reports/extraction_map .txt with exact source -> shared target mapping.
28- 3 . Standardize consumers in scope onto shared string helpers .
29- 4 . Remove only obsolete duplicate string helper implementations within this PR scope.
28+ 1 . Produce docs/dev/reports/selector_usage_scan .txt for selector variants and consumers in scope.
29+ 2 . Produce docs/dev/reports/contract_map .txt with exact source -> standardized target mapping.
30+ 3 . Standardize consumers in scope onto shared selector/contract surfaces .
31+ 4 . Remove only obsolete duplicate selector/contract implementations within this PR scope.
30325 . Keep changes surgical.
3133
3234Rules:
33- - string helpers only
34- - no number/id/object helper extraction
35+ - selector/contract work only
36+ - no number/string/id helper extraction
3537- no broad cleanup
3638- no API changes
3739- no behavior changes
3840
3941Validation:
4042- impacted imports resolve
41- - duplicate string helpers in scope removed or redirected
43+ - duplicate selector variants in scope removed or redirected
4244- impacted tests/smoke pass
4345
4446Return ZIP:
45- <project folder >/tmp/PR_03_02_SHARED_STRINGS_EXTRACTION .zip
47+ <project folder >/tmp/PR_03_03_SHARED_SELECTORS_CONTRACTS .zip
0 commit comments