1- # PR_26177_002 -shared-noise -foundation
1+ # PR_26177_003 -shared-geometry -foundation
22
33## Purpose
44
5- Add a small shared deterministic noise foundation.
5+ Add a small shared geometry foundation.
66
77## Source Of Truth
88
9- This ` BUILD_PR.md ` , ` PLAN_PR.md ` , and the user request are the source of truth for ` PR_26177_002 -shared-noise -foundation` .
9+ This ` BUILD_PR.md ` , ` PLAN_PR.md ` , and the user request are the source of truth for ` PR_26177_003 -shared-geometry -foundation` .
1010
1111## Stack
1212
13- - Base branch: ` PR_26177_001-shared-hash-foundation `
14- - This PR builds on PR_001 hash utilities.
13+ - Base branch: ` PR_26177_002-shared-noise-foundation `
1514
1615## Exact Scope
1716
18- - Add ` src/shared/noise/ ` foundation.
19- - Build on existing ` Random ` /` RandomSeed ` and PR_001 hash utilities.
20- - Include deterministic Value, Perlin-style, Simplex-style, and Fractal-style helpers only where practical.
21- - Keep API small and documented.
22- - Add targeted tests for the shared noise area.
17+ - Add ` src/shared/geometry/ ` foundation.
18+ - Include small reusable primitives/helpers such as vectors, rectangles, bounds, distance, clamp/intersection basics.
19+ - Add targeted tests for the shared geometry area.
20+ - No engine refactor.
2321- Create required Codex reports under ` docs_build/dev/reports/ ` .
2422- Create repo-structured delta ZIP under ` tmp/ ` .
2523
2624## Exact Targets
2725
2826- ` docs_build/dev/PLAN_PR.md `
2927- ` docs_build/dev/BUILD_PR.md `
30- - ` src/shared/noise/noise .js `
31- - ` tests/shared/NoiseFoundation .test.mjs `
32- - ` docs_build/dev/reports/PR_26177_002 -shared-noise -foundation.md `
33- - ` docs_build/dev/reports/PR_26177_002 -shared-noise -foundation_branch-validation.md `
34- - ` docs_build/dev/reports/PR_26177_002 -shared-noise -foundation_requirement-checklist.md `
35- - ` docs_build/dev/reports/PR_26177_002 -shared-noise -foundation_validation-lane.md `
36- - ` docs_build/dev/reports/PR_26177_002 -shared-noise -foundation_manual-validation-notes.md `
28+ - ` src/shared/geometry/geometry .js `
29+ - ` tests/shared/GeometryFoundation .test.mjs `
30+ - ` docs_build/dev/reports/PR_26177_003 -shared-geometry -foundation.md `
31+ - ` docs_build/dev/reports/PR_26177_003 -shared-geometry -foundation_branch-validation.md `
32+ - ` docs_build/dev/reports/PR_26177_003 -shared-geometry -foundation_requirement-checklist.md `
33+ - ` docs_build/dev/reports/PR_26177_003 -shared-geometry -foundation_validation-lane.md `
34+ - ` docs_build/dev/reports/PR_26177_003 -shared-geometry -foundation_manual-validation-notes.md `
3735- ` docs_build/dev/reports/codex_review.diff `
3836- ` docs_build/dev/reports/codex_changed_files.txt `
3937
4038## Out Of Scope
4139
40+ - No engine refactor.
4241- No browser-owned product data.
4342- No runtime UI changes.
4443- No browser storage changes.
4544- No API/database changes.
46- - No engine refactor.
4745- No ` start_of_day ` folder changes.
4846- No unrelated cleanup.
4947- No full samples smoke by default.
@@ -53,9 +51,9 @@ This `BUILD_PR.md`, `PLAN_PR.md`, and the user request are the source of truth f
5351Run exactly:
5452
5553``` powershell
56- node ./scripts/run-node-test-files.mjs tests/shared/NoiseFoundation.test.mjs tests/shared/HashFoundation .test.mjs
57- node --check src/shared/noise/noise .js
58- node --check tests/shared/NoiseFoundation .test.mjs
54+ node ./scripts/run-node-test-files.mjs tests/shared/GeometryFoundation .test.mjs
55+ node --check src/shared/geometry/geometry .js
56+ node --check tests/shared/GeometryFoundation .test.mjs
5957git diff --check
6058```
6159
@@ -64,5 +62,5 @@ git diff --check
6462Create repo-structured delta ZIP:
6563
6664``` text
67- tmp/PR_26177_002 -shared-noise -foundation_delta.zip
65+ tmp/PR_26177_003 -shared-geometry -foundation_delta.zip
6866```
0 commit comments