Skip to content

xmile: Stella's ignore-earlier-zone-losses conveyor toggle is not read #943

Open

Description

@bpowers

Stella has a per-conveyor toggle, "ignore losses from earlier leak zones", that changes how much a later leak zone drains.
The engine implements it (datamodel::Conveyor::ignore_earlier_zone_losses), but the XMILE reader always sets it to false and the writer never emits it, because nobody knows the attribute name Stella writes.
A Stella model that turns the toggle on imports and runs with different leak volumes and no warning.

Why it matters

Silent wrong numbers for any Stella model using staggered leak zones with this toggle set.
Not yet seen in a real file: none of the models under test/conveyors/ set it.
Saving is not a silent loss: the save check refuses an XMILE save of a project with the flag set, since the reloaded model differs.

Fix

Blocked on one fact: the attribute name and value Stella writes.
Save a small conveyor model from Stella with the toggle on and off, and diff the files.
Then read and write the attribute next to exponential_leak, and check the saved file in under test/conveyors/ so the behavior is reachable from a fixture.
Do not guess the spelling: a wrong guess still drops the real attribute while looking supported.

Pointers

  • src/simlin-engine/src/xmile/variables.rs: conveyor_to_datamodel / conveyor_from_datamodel
  • src/simlin-engine/src/conveyor.rs (the runtime rule, around line 417)
  • docs/design/conveyors.md §5.1 (the staggered-zone rule) and §9.1

Activity

  1. added
    bug
    compat
    engine
    on Jul 11, 2026
  2. changed the title [-]xmile: conveyor ignore_earlier_zone_losses is unreachable -- the reader hardcodes false, and nothing writes it[/-] [+]xmile: Stella's ignore-earlier-zone-losses conveyor toggle is not read[/+] 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

    bugcompatengine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions