Skip to content

PR_26177_DELTA_052-random-seed-utility#204

Merged
ToolboxAid merged 1 commit into
mainfrom
PR_26177_DELTA_052-random-seed-utility
Jun 26, 2026
Merged

PR_26177_DELTA_052-random-seed-utility#204
ToolboxAid merged 1 commit into
mainfrom
PR_26177_DELTA_052-random-seed-utility

Conversation

@ToolboxAid

Copy link
Copy Markdown
Owner

PR_26177_DELTA_052-random-seed-utility

Date: 2026-06-26
Team: Delta
Scope: Shared JavaScript utility and targeted unit tests
Status: PASS

Summary

  • Added reusable shared JavaScript utility class RandomSeed.
  • Implemented constructor seed initialization plus seed(value), next(), nextInt(min, max), nextFloat(min, max), and pick(array).
  • Added JSDoc for the utility and public methods.
  • Verified same-seed reproducibility after reseeding.
  • Verified different seeds produce different sequences.
  • Added targeted unit tests in tests/shared/RandomSeed.test.mjs.
  • Preserved existing Math.random() usage; no call sites were replaced.
  • Updated active Team Delta assignment metadata required by the attached Project Instructions.
  • No UI, browser storage, API, database, or unrelated cleanup changes were made.

Branch Validation

PASS. Work started from clean main synchronized with origin/main at 0e9aa23eee267edcc6aac0eb660185c4552128c8.

Current PR branch:

PR_26177_DELTA_052-random-seed-utility

Changed Files

  • docs_build/dev/PLAN_PR.md
  • docs_build/dev/BUILD_PR.md
  • docs_build/dev/ProjectInstructions/team_assignments/TEAM_ASSIGNMENTS.md
  • docs_build/dev/ProjectInstructions/team_assignments/ACTIVE_TEAM_REGISTRY.md
  • src/shared/math/RandomSeed.js
  • tests/shared/RandomSeed.test.mjs
  • docs_build/dev/reports/PR_26177_DELTA_052-random-seed-utility.md
  • docs_build/dev/reports/PR_26177_DELTA_052-random-seed-utility_branch-validation.md
  • docs_build/dev/reports/PR_26177_DELTA_052-random-seed-utility_requirement-checklist.md
  • docs_build/dev/reports/PR_26177_DELTA_052-random-seed-utility_validation-lane.md
  • docs_build/dev/reports/PR_26177_DELTA_052-random-seed-utility_manual-validation-notes.md
  • docs_build/dev/reports/PR_26177_DELTA_052-random-seed-utility_instruction-compliance-checklist.md
  • docs_build/dev/reports/codex_changed_files.txt
  • docs_build/dev/reports/codex_review.diff

Validation

  • PASS: node ./scripts/run-node-test-files.mjs tests/shared/RandomSeed.test.mjs
  • PASS: node --check src/shared/math/RandomSeed.js
  • PASS: node --check tests/shared/RandomSeed.test.mjs
  • PASS: git diff --check
  • SKIP: Playwright was not run because no UI or browser runtime files changed.

Artifact

  • tmp/PR_26177_DELTA_052-random-seed-utility_delta.zip

@ToolboxAid ToolboxAid marked this pull request as ready for review June 26, 2026 03:20
@ToolboxAid ToolboxAid merged commit 6c1f77e into main Jun 26, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 964043422d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +51 to +53
Status: Active

Active assignment: none.
Active assignment: PR_26177_DELTA_052-random-seed-utility.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Correct Team Alfa's accidental Delta assignment

This block is under ## Team Alfa, but it marks Alfa active with the Delta random-seed assignment while the table above and ACTIVE_TEAM_REGISTRY.md mark Team Delta as the owner, and the Team Delta section below still says available. Because these assignment docs are required to match, downstream agents can incorrectly treat Alfa as busy and Delta as free for the active PR.

Useful? React with 👍 / 👎.


function assertFiniteNumber(value, name) {
if (!Number.isFinite(value)) {
throw new TypeError(`${name} must be a finite number.`);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the shared finite-number helper

In environments that run the shared-extraction guard, this direct Number.isFinite usage is reported as a new inline-helper-clone violation for src/shared/math/RandomSeed.js; I confirmed npm run check:shared-extraction-guard adds this file to the unexpected violations. Reuse the existing shared finite-number helper instead of adding a new direct check here so the guard does not regress.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants