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
test: nothing checks conveyor results against the spec's prototype #951
The conveyor corpus test only checks that the VM, the wasm backend, and the XMILE and protobuf round trips all agree with the VM.
A bug in the VM's conveyor pass that the wasm backend copies would pass it. test/conveyors/reference_prototype.py, a Python transcription of the spec's per-step rules, is the independent check, but nothing runs it.
What already covers it
src/simlin-engine/src/conveyor_tests.rs checks the VM against expected values transcribed by hand from the prototype (s1-s15).
Those cover transport, capacity, inflow limit, linear and exponential leak, staggered leak zones, discrete admission with two inflows, and arrest.
The prototype already covers leak zones and discrete admission; it does not cover a queue feeding a conveyor.
The README and docs/design/conveyors.md describe this accurately.
Fix
Options, cheapest first:
Add hand-worked expected values for the queue-to-conveyor case to conveyor_tests.rs, derived from the spec rather than copied from VM output. Wait for engine: queue-fed discrete conveyor holds fractional amounts #950 first, since it decides what that case should produce.
Extend the prototype to the queue case and run it from a Rust test against the corpus fixtures. This adds a Python dependency to cargo test.
Pointers
test/conveyors/reference_prototype.py
src/simlin-engine/src/conveyor_tests.rs
simulate_special_path in src/simlin-engine/tests/integration/simulate.rs
changed the title [-]test: the conveyor corpus has no independent numeric oracle -- a lockstep VM+wasm drift would pass every test[/-][+]test: nothing checks conveyor results against the spec's prototype[/+]on Oct 12, 2026
conveyor_tests.rs s1-s15 already pin VM numerics with hand-transcribed prototype values, including zones and discrete admission (the prototype already covers both). The stale README and doc claims are already fixed. Only the queue-fed case is unpinned, and #950 must decide its semantics first.
Activity
engine: lower the full conveyor pass to wasm and gate it on corpus pa…
engine: lower the full conveyor pass to wasm and gate it on corpus pa…
[-]test: the conveyor corpus has no independent numeric oracle -- a lockstep VM+wasm drift would pass every test[/-][+]test: nothing checks conveyor results against the spec's prototype[/+]bpowers commentedon Oct 12, 2026
Closing as won't fix.
conveyor_tests.rs s1-s15 already pin VM numerics with hand-transcribed prototype values, including zones and discrete admission (the prototype already covers both). The stale README and doc claims are already fixed. Only the queue-fed case is unpinned, and #950 must decide its semantics first.