Skip to content

fix(server): findings get their id from Effect 4.0.4's randomUUIDv4() - #10

Merged
shubhdeep128 merged 1 commit into
forkfrom
fix/findings-uuid-call
Oct 15, 2026
Merged

shubhdeep128 merged 1 commit into
forkfrom
fix/findings-uuid-call

Conversation

@shubhdeep128

Copy link
Copy Markdown
Owner

The upstream sync has failed on every nightly since v0.0.46-nightly.20261014.3105. Upstream's Effect 4.0.4 bump (pingdotgg#19213) turned Crypto.randomUUIDv4 into a function that returns Effect<string, PlatformError>. FindingService still yields it as a value, so the apps/server typecheck fails and 4 report_finding tests in the watchers MCP handlers fail.

This calls crypto.randomUUIDv4() and adds Effect.orDie, so creating an id still can't fail, as before. The test Crypto layer's randomUUIDv4 is now a function too. These are the only two uses the fork stack adds. Upstream already updated its own.

Fixes the finding sync:v0.0.46-nightly.20261015.3145:checks.

Merge, then sync

fork is still on v0.0.46-nightly.20261013.3053 with Effect 4.0.2, where randomUUIDv4 is still a value. This commit only typechecks and runs once the stack sits on a newer nightly. After merging, run node scripts/fork/sync.ts --push from the fork clone right away instead of waiting for the 6-hour watcher, and don't run the fork from fork in between.

Verification

I replayed the stack plus this commit onto v0.0.46-nightly.20261015.3145 and ran the same checks the sync runs:

  • Typecheck of the 6 packages the stack touches (t3, web, client-runtime, contracts, shared, scripts): all pass.
  • vp test run on the stack's 15 test files: 15 passed, 102 tests passed, 2 skipped.

Without this commit, the same replay fails the same way the finding reported: 5 typecheck errors in FindingService and 4 failed tests in handlers.test.ts.

Fork Actions are off, so this PR has no CI.

Built by Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

Upstream's Effect 4.0.4 bump made Crypto.randomUUIDv4 a function returning
an Effect that can fail with a PlatformError. FindingService still yielded it
as a value, so the sync onto v0.0.46-nightly.20261014.3105 and every nightly
after it failed typecheck and the report_finding tests. Call it, keep the old
no-error behavior with Effect.orDie, and make the test Crypto layer's
randomUUIDv4 a function.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shubhdeep128
shubhdeep128 merged commit 98a3327 into fork Oct 15, 2026
@shubhdeep128
shubhdeep128 deleted the fix/findings-uuid-call branch October 15, 2026 12:18
shubhdeep128 added a commit that referenced this pull request Oct 15, 2026
…#10)

Upstream's Effect 4.0.4 bump made Crypto.randomUUIDv4 a function returning
an Effect that can fail with a PlatformError. FindingService still yielded it
as a value, so the sync onto v0.0.46-nightly.20261014.3105 and every nightly
after it failed typecheck and the report_finding tests. Call it, keep the old
no-error behavior with Effect.orDie, and make the test Crypto layer's
randomUUIDv4 a function.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
shubhdeep128 added a commit that referenced this pull request Oct 15, 2026
…#10)

Upstream's Effect 4.0.4 bump made Crypto.randomUUIDv4 a function returning
an Effect that can fail with a PlatformError. FindingService still yielded it
as a value, so the sync onto v0.0.46-nightly.20261014.3105 and every nightly
after it failed typecheck and the report_finding tests. Call it, keep the old
no-error behavior with Effect.orDie, and make the test Crypto layer's
randomUUIDv4 a function.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
shubhdeep128 added a commit that referenced this pull request Oct 15, 2026
…#10)

Upstream's Effect 4.0.4 bump made Crypto.randomUUIDv4 a function returning
an Effect that can fail with a PlatformError. FindingService still yielded it
as a value, so the sync onto v0.0.46-nightly.20261014.3105 and every nightly
after it failed typecheck and the report_finding tests. Call it, keep the old
no-error behavior with Effect.orDie, and make the test Crypto layer's
randomUUIDv4 a function.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
shubhdeep128 added a commit that referenced this pull request Oct 16, 2026
…#10)

Upstream's Effect 4.0.4 bump made Crypto.randomUUIDv4 a function returning
an Effect that can fail with a PlatformError. FindingService still yielded it
as a value, so the sync onto v0.0.46-nightly.20261014.3105 and every nightly
after it failed typecheck and the report_finding tests. Call it, keep the old
no-error behavior with Effect.orDie, and make the test Crypto layer's
randomUUIDv4 a function.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
shubhdeep128 added a commit that referenced this pull request Oct 16, 2026
…#10)

Upstream's Effect 4.0.4 bump made Crypto.randomUUIDv4 a function returning
an Effect that can fail with a PlatformError. FindingService still yielded it
as a value, so the sync onto v0.0.46-nightly.20261014.3105 and every nightly
after it failed typecheck and the report_finding tests. Call it, keep the old
no-error behavior with Effect.orDie, and make the test Crypto layer's
randomUUIDv4 a function.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
shubhdeep128 added a commit that referenced this pull request Oct 16, 2026
…#10)

Upstream's Effect 4.0.4 bump made Crypto.randomUUIDv4 a function returning
an Effect that can fail with a PlatformError. FindingService still yielded it
as a value, so the sync onto v0.0.46-nightly.20261014.3105 and every nightly
after it failed typecheck and the report_finding tests. Call it, keep the old
no-error behavior with Effect.orDie, and make the test Crypto layer's
randomUUIDv4 a function.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
shubhdeep128 added a commit that referenced this pull request Oct 16, 2026
…#10)

Upstream's Effect 4.0.4 bump made Crypto.randomUUIDv4 a function returning
an Effect that can fail with a PlatformError. FindingService still yielded it
as a value, so the sync onto v0.0.46-nightly.20261014.3105 and every nightly
after it failed typecheck and the report_finding tests. Call it, keep the old
no-error behavior with Effect.orDie, and make the test Crypto layer's
randomUUIDv4 a function.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant