Audit for panic/brick risks (a panic = black screen on this device): - sx_send (live-sync broadcasts + 5s heartbeat) pushed to tx_q with no cap. If the editor disconnects without a BYE while sync_armed and nothing drains MIDI-IN, tx_q grows unbounded -> heap exhaustion -> brick. Now drops messages when tx_q > 256 (the heartbeat re-syncs when the host returns). Notes/clock were already capped. - build_setlists now drops empty set lists, so load()/next_track() can never hit a `% 0`. (parse guarantees >=1 lane; built-ins/parsed lists are non-empty, this is belt-and-suspenders.) Other unwrap()s are boot-time peripheral init; lanes[0]/items[0]/step[0] are all safe (parse substitutes beep:4 for empty programs; built-ins lead the list). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| assets/bravura | ||
| glyphgen | ||
| pm-grid | ||
| pm-kit | ||
| pm-ui | ||
| track-format | ||
| uisim | ||
| .gitignore | ||
| Cargo.toml | ||
| Containerfile | ||
| probe-flash.md | ||
| README.md | ||
| run.sh | ||
Rust port — track-format crate (Stage 1)
Pure parse/serialize codec for the track DSL, validated against the shared golden
vectors (tests/fixtures/track-format.json) — the third implementation alongside
engine.js and app.py. See docs/rust-port.md for the staged plan.
All tooling runs in a container (per the develop-in-container rule):
./rust/run.sh # cargo test — runs the conformance + idempotency suite
./rust/run.sh cargo build
./rust/run.sh bash # interactive shell in the crate