1- # PR_26177_001 -shared-hash -foundation
1+ # PR_26177_002 -shared-noise -foundation
22
33## Purpose
44
5- Add a small shared non-cryptographic hash foundation.
5+ Add a small shared deterministic noise 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_001-shared-hash-foundation ` .
9+ This ` BUILD_PR.md ` , ` PLAN_PR.md ` , and the user request are the source of truth for ` PR_26177_002-shared-noise-foundation ` .
10+
11+ ## Stack
12+
13+ - Base branch: ` PR_26177_001-shared-hash-foundation `
14+ - This PR builds on PR_001 hash utilities.
1015
1116## Exact Scope
1217
13- - Add ` src/shared/hash / ` foundation.
14- - Include deterministic non-crypto hash helpers .
15- - No browser-owned product data .
16- - No runtime UI changes .
17- - Add targeted tests for the shared hash area.
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.
1823- Create required Codex reports under ` docs_build/dev/reports/ ` .
1924- Create repo-structured delta ZIP under ` tmp/ ` .
2025
2126## Exact Targets
2227
2328- ` docs_build/dev/PLAN_PR.md `
2429- ` docs_build/dev/BUILD_PR.md `
25- - ` src/shared/hash/hash .js `
26- - ` tests/shared/HashFoundation .test.mjs `
27- - ` docs_build/dev/reports/PR_26177_001 -shared-hash -foundation.md `
28- - ` docs_build/dev/reports/PR_26177_001 -shared-hash -foundation_branch-validation.md `
29- - ` docs_build/dev/reports/PR_26177_001 -shared-hash -foundation_requirement-checklist.md `
30- - ` docs_build/dev/reports/PR_26177_001 -shared-hash -foundation_validation-lane.md `
31- - ` docs_build/dev/reports/PR_26177_001 -shared-hash -foundation_manual-validation-notes.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 `
3237- ` docs_build/dev/reports/codex_review.diff `
3338- ` docs_build/dev/reports/codex_changed_files.txt `
3439
3540## Out Of Scope
3641
37- - No cryptographic hashing.
3842- No browser-owned product data.
3943- No runtime UI changes.
4044- No browser storage changes.
@@ -49,9 +53,9 @@ This `BUILD_PR.md`, `PLAN_PR.md`, and the user request are the source of truth f
4953Run exactly:
5054
5155``` powershell
52- node ./scripts/run-node-test-files.mjs tests/shared/HashFoundation.test.mjs
53- node --check src/shared/hash/hash .js
54- node --check tests/shared/HashFoundation .test.mjs
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
5559git diff --check
5660```
5761
@@ -60,5 +64,5 @@ git diff --check
6064Create repo-structured delta ZIP:
6165
6266``` text
63- tmp/PR_26177_001 -shared-hash -foundation_delta.zip
67+ tmp/PR_26177_002 -shared-noise -foundation_delta.zip
6468```
0 commit comments