You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
engine: conveyors and queues inside a module are rejected, undocumented #940
A conveyor or queue stock defined inside a module is rejected at compile time with ConveyorInSubmodelUnsupported / QueueInSubmodelUnsupported, because the expansion pass that turns these stocks into runnable form only looks at the main model.
The error is clear and loud, but neither design doc says this limitation exists or whether it is permanent.
Example
test/conveyors/sir_social_distancing_mixnot.stmx (a real Stella model from the peterhovmand COVID-19 corpus) puts both its conveyors in sub-models and fails with ConveyorInSubmodelUnsupported on both backends (#941).
Why it matters
Stella users do build modular models, and this one is real.
Supporting it is not cheap: each module instance would need its own belt or queue state at runtime, and expansion would have to run per model (it rewrites datamodel variables, so it cannot simply become a cached per-model query).
That model would also need LOOKUPMEAN, which the engine lacks, so supporting modules alone would not make it run.
Fix
Write the limitation down: a short section in docs/design/conveyors.md and docs/design/queues.md stating that conveyors and queues are main-model only, with the error codes, and point the db.rs comment at it.
Keep the error.
Alternative: implement per-module expansion and per-instance runtime state (a week or more), when a model people care about needs it.
Pointers
src/simlin-engine/src/db.rs: the special-stock guard in the compile path, around line 1310 (its comment cites this issue)
changed the title [-]engine: conveyor/queue in a sub-model is rejected, but the limitation is undocumented and both error paths cite a phantom conveyors.md 9.3 claim[/-][+]engine: conveyors and queues inside a module are rejected, undocumented[/+]on Oct 12, 2026
Activity
[-]engine: conveyor/queue in a sub-model is rejected, but the limitation is undocumented and both error paths cite a phantom conveyors.md 9.3 claim[/-][+]engine: conveyors and queues inside a module are rejected, undocumented[/+]