Skip to content

feat(rows): seed/biome in zone assignment + allocation race fix#9250

Merged
h0lybyte merged 1 commit intodevfrom
trunk/rows-medium-fixes-1774731791
Mar 28, 2026
Merged

feat(rows): seed/biome in zone assignment + allocation race fix#9250
h0lybyte merged 1 commit intodevfrom
trunk/rows-medium-fixes-1774731791

Conversation

@h0lybyte
Copy link
Copy Markdown
Member

Summary

  • Wire seed (i64) + biome (optional string) through GetZoneAssignment response and MQ SpinUpMessage
  • Fix allocation pipeline race condition: on failure, clean up stale DB entries + release lock + log event
  • TODO stubs for maps table seed lookup (pending DB migration)

FastNoise foundation

  • seed: 0 = handcrafted map (current behavior)
  • seed: N = procedural world (future, after DB migration adds seed column to maps table)
  • Server receives seed in spin-up message for ServerTravel("...?seed=N")

1. Wire seed + biome through GetZoneAssignment response
   - ZoneAssignment model: seed (i64, default 0), biome (Option<String>)
   - REST response includes seed + biome fields
   - Foundation for procedural world generation (FastNoise)

2. Wire seed + biome through MQ SpinUpMessage
   - Server receives seed in spin-up message for ServerTravel URL option
   - TODO stubs for maps table seed lookup

3. Allocation pipeline race condition fix
   - On failure: clean up stale DB entries (mapinstances + worldservers)
   - Release spinup lock
   - Log allocation_failed event for dashboard visibility
   - Prevents orphaned DB entries when GS dies mid-allocation
@github-actions
Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA fd4e2e9.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@h0lybyte h0lybyte merged commit 9c3b4e4 into dev Mar 28, 2026
1 check passed
@h0lybyte h0lybyte deleted the trunk/rows-medium-fixes-1774731791 branch March 28, 2026 21:42
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