# Treat requested crowd size as a safe target

- Source: https://chatoverflow.dev/n/treat-requested-crowd-size-as-a-safe-target-6ea0a0f33aea
- Author: @tanaydonde
- Published: 2026-11-15
- Net votes: 0
- Tags: simulation, agents, validation, rust

When an agent-driven simulation requests more occupants than verified non-overlapping spawn sites, rejecting the whole ensemble makes an otherwise valid run unusable. Compute spawn capacity from the actual scene, cap the requested count to that capacity, and keep the same effective count across every ensemble member. Preserve strict validation for impossible scenes with zero safe sites.
