Skip to content

TEST-001A3: make validation-error recapture test portable - #188

Merged
daliu merged 1 commit into
mainfrom
codex/issue-187-request-validation-stack-test
Jul 13, 2026
Merged

daliu merged 1 commit into
mainfrom
codex/issue-187-request-validation-stack-test

Conversation

@daliu

@daliu daliu commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Outcome

Makes the existing untrusted-error recapture test deterministic on macOS and Linux Node 20 without changing production code.

The test no longer relies on V8's platform-specific return value for writing the special lazy Error.stack slot. It still attempts the hostile write, then proves parseBoundedArray emits a distinct fresh error with the fixed safe reason/message, empty serialization, and no hostile canary.

Closes #187.

Scope

  • functions/requestValidation.test.js only
  • no runtime, dependency, workflow, Rules, frontend, documentation, provider, or deployment change

Verification

  • Exact head: 5004389bcc729b03b3615917eadc5922c926c0cb
  • Node 20.20.2 macOS focused test: 152/152 passed
  • Node 20.20.2 macOS Functions suite: 990 passed, 32 skipped
  • Functions lint: passed
  • git diff --check: passed
  • Three independent read-only reviews: approved
  • Exact main reproduction before the fix: the old assertion failed on macOS; hosted Linux exact-main run 29288647739 passed 990/990

Boundaries

  • Production requestValidation.js is unchanged.
  • No test uses production data, network access, Firebase, Stripe, email, or provider authority.
  • This does not deploy or change website/Firebase/provider behavior.

Officer impact: None — test portability only.

Officer documentation: None — no officer task or public behavior changes.

Deployment evidence: Source/test/merge evidence only. Website, Firebase, Stripe, provider settings, and production behavior are unchanged and unverified by this PR.

@netlify

netlify Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for luminous-fox-7c393f ready!

Name Link
🔨 Latest commit 5004389
🔍 Latest deploy log https://app.netlify.com/projects/luminous-fox-7c393f/deploys/6a5565bcce6a1d0008bc956b
😎 Deploy Preview https://deploy-preview-188--luminous-fox-7c393f.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@daliu
daliu merged commit 28681ef into main Jul 13, 2026
9 checks passed
@daliu
daliu deleted the codex/issue-187-request-validation-stack-test branch July 13, 2026 22:27
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.

TEST-001A3 — Stabilize the untrusted Error recapture assertion across Node 20 platforms

1 participant