Skip to content

engine: Stella attribute-form conveyor header (uses_conveyor="" on <smile>) is not recognized, contra conveyors.md 3.1 #903

Closed

Description

@bpowers

Summary

docs/design/conveyors.md section 3.1 documents that the reader accepts THREE encodings of the conveyor header option:

  1. <uses_conveyor/> (element form) -- implemented
  2. <uses_conveyors/> (plural spelling from the spec's own sample) -- implemented (GH engine: XMILE reader hard-fails on unknown <options> elements (uses_conveyors plural, uses_submodels, vendor extensions) #888 fix, on branch conveyor-engine)
  3. "the attribute form Stella actually writes on the root element -- uses_conveyor="" on <smile>/<xmile>" -- NOT implemented

Both vendored Stella fixtures use the attribute form, on the <smile> header element:

test/conveyors/sir_social_distancing_mixnot.stmx:  <smile version="1.0" namespace="std, isee" uses_arrays="1" uses_conveyor="" uses_submodels=""/>
test/conveyors/covid19_severity.stmx:              <smile version="1.0" namespace="std, isee" uses_arrays="1" uses_conveyor=""/>

The reader has no handling for <smile> at all (no Smile struct; Header in src/simlin-engine/src/xmile/mod.rs has no field for it), and the File root struct has no @uses_conveyor attribute field either -- so the declaration is silently ignored as an unknown element/attribute.

Why it matters

  • No parse failure and no simulation impact: Stella files still open because the per-stock <conveyor> block is authoritative.
  • But the documented reader contract in conveyors.md 3.1 is only two-thirds delivered: the one encoding Stella actually writes is the one we drop. Same "header advisory metadata silently dropped" class as the companion <options namespace=...> issue.

Component

src/simlin-engine/src/xmile/mod.rs (root File / Header parsing); docs/design/conveyors.md section 3.1.

Suggested direction

Either:

  • implement recognition of the attribute form (parse the <smile> header element's feature attributes -- uses_conveyor, and while there uses_arrays/uses_submodels/namespace -- mapping them onto the same Feature set the element forms produce), with a reader test driven by the vendored fixtures; or
  • amend conveyors.md 3.1 to state the attribute form is intentionally ignored (per-stock block authoritative), so the doc matches the code.

Context

Noticed during the GH #888 fix (tolerant <options> parsing) on branch conveyor-engine (2026-07-08); deliberately left out of that fix's scope. Related: #888 (element-form tolerance, being fixed), #872 (writer emission gap), #902 (the <options> namespace attribute drop).

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions