Skip to content

engine: conveyors and queues inside a module are rejected, undocumented #940

Open

Description

@bpowers

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

Activity

  1. added
    engine
    on Oct 12, 2026
  2. 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
  3. added
    docs
    on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsengine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions