Skip to content

Fix global random.seed() and CORS wildcard - #2

Merged
atc964 merged 1 commit into
mainfrom
fix/buyer-random-seed-and-cors
Mar 8, 2026
Merged

Fix global random.seed() and CORS wildcard#2
atc964 merged 1 commit into
mainfrom
fix/buyer-random-seed-and-cors

Conversation

@atc964

@atc964 atc964 commented Mar 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replace random.seed() with local random.Random() instance in UCP client (thread-safety fix)
  • Replace CORS allow_origins=["*"] with configurable origin list via Settings
  • Add cors_allowed_origins config field

Test Results

  • 90/90 tests pass (7 new tests)
  • Quinn verified

References

  • Karl review M-3 + H-2, Mel review P0-4 + P1-3
  • beads: ar-cnw, ar-3tw

🤖 Generated with Claude Code

- Use local Random instance in UCP client instead of seeding global state
- Replace CORS allow_origins=["*"] with configurable origin list
- Remove allow_credentials=True (not needed without wildcard)
- Add cors_allowed_origins setting with localhost defaults

bead: ar-cnw, ar-3tw

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@atc964
atc964 merged commit 373ac88 into main Mar 8, 2026
@atc964
atc964 deleted the fix/buyer-random-seed-and-cors branch March 8, 2026 20:09
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