The fourth row stays blank for a few seconds after a message has passed #5

Closed
opened 2026-11-22 14:16:17 -05:00 by cmoriarty · 3 comments
Owner

Seen by the owner on the panel twice on 2026-11-22: once on v0.1.3 ("after it scrolled, the fourth row stayed blank for a few seconds before scrolling the message again"), and again at about 14:14 on the S3 running a developer build of v0.1.4 (0.1.4-1-g50fa1b0), Forest Hills, Orange Line.

Expected. When a message has passed, the last train has the bottom row back until the next pass.

What was active the second time. Read from MBTA at 14:16, two minutes after:

  • one alert for the stop: a delay, severity 4, "Delays of about 15 minutes due to a signal problem between North Station and Sullivan Square";
  • Orange Line departures from Forest Hills predicted at 14:15, 14:26, 14:42 and 14:56, and more after: four trains or more to show. Earlier the same day the owner also saw a "stopped x stops away" row and a yellow message together.

The agent's first explanation is not enough. After the first sighting the agent told the owner the blank row was the rest between passes at a stop with only three trains, and changed nothing. With four departures predicted that does not explain the second sighting. Not ruled out: that the sign had fewer than four rows to show at that moment for another reason (a train just departed and dropped, a prediction the label rules hide).

Where to look. SignCore::takeTurns and the end of SignCore::render in firmware/lib/sign_core/src/sign_core.cpp: the room for rows is rowsFor(font) - (statusLine.empty() ? 0 : 1), so a status line that is set but draws nothing (a pass that has ended but still holds the row, a line whose text is off the panel at the start or end of its pass, the hand-over between two movers) would leave the row blank. The time each pass takes against the time its text needs to leave the panel is worth measuring.

To do. Reproduce in the simulator from the collector's record of that minute (predictions and alerts for the stop around 14:10 to 14:16 on 2026-11-22), find which of the above it is, add a scenario and a test that fail on it, then fix.

Not known: how long the row was blank, whether a message was about to pass or had just passed, and whether the dot was lit. Related: #4 (several messages at once).

**Seen** by the owner on the panel twice on 2026-11-22: once on `v0.1.3` ("after it scrolled, the fourth row stayed blank for a few seconds before scrolling the message again"), and again at about 14:14 on the S3 running a developer build of `v0.1.4` (`0.1.4-1-g50fa1b0`), Forest Hills, Orange Line. **Expected.** When a message has passed, the last train has the bottom row back until the next pass. **What was active the second time.** Read from MBTA at 14:16, two minutes after: - one alert for the stop: a delay, severity 4, "Delays of about 15 minutes due to a signal problem between North Station and Sullivan Square"; - Orange Line departures from Forest Hills predicted at 14:15, 14:26, 14:42 and 14:56, and more after: four trains or more to show. Earlier the same day the owner also saw a "stopped x stops away" row and a yellow message together. **The agent's first explanation is not enough.** After the first sighting the agent told the owner the blank row was the rest between passes at a stop with only three trains, and changed nothing. With four departures predicted that does not explain the second sighting. Not ruled out: that the sign had fewer than four rows to show at that moment for another reason (a train just departed and dropped, a prediction the label rules hide). **Where to look.** `SignCore::takeTurns` and the end of `SignCore::render` in `firmware/lib/sign_core/src/sign_core.cpp`: the room for rows is `rowsFor(font) - (statusLine.empty() ? 0 : 1)`, so a status line that is set but draws nothing (a pass that has ended but still holds the row, a line whose text is off the panel at the start or end of its pass, the hand-over between two movers) would leave the row blank. The time each pass takes against the time its text needs to leave the panel is worth measuring. **To do.** Reproduce in the simulator from the collector's record of that minute (predictions and alerts for the stop around 14:10 to 14:16 on 2026-11-22), find which of the above it is, add a scenario and a test that fail on it, then fix. **Not known:** how long the row was blank, whether a message was about to pass or had just passed, and whether the dot was lit. Related: #4 (several messages at once).
Author
Owner

More from the owner, 2026-11-22, about 14:20, watching the S3 (their words): "it is blank for roughly 20 seconds, it comes after the message, although currently it seems to be happening after each scrolling message."

So it repeats on every pass under the conditions of that afternoon (one delay alert for the stop, four or more departures predicted), which should make it reproducible in the simulator from the collector's record of 14:10 to 14:25.

About 20 seconds is most of the 30-second rest that v0.1.4 put between two passes. Worth checking first: whether the row is blank for the whole rest and the train never comes back, or comes back for the last part of it; on v0.1.3, with an 8-second rest, the owner saw "a few seconds", which fits a blank that lasts a fixed share of the rest, or the whole of it.

**More from the owner, 2026-11-22, about 14:20, watching the S3** (their words): "it is blank for roughly 20 seconds, it comes after the message, although currently it seems to be happening after each scrolling message." So it repeats on every pass under the conditions of that afternoon (one delay alert for the stop, four or more departures predicted), which should make it reproducible in the simulator from the collector's record of 14:10 to 14:25. About 20 seconds is most of the 30-second rest that `v0.1.4` put between two passes. Worth checking first: whether the row is blank for the whole rest and the train never comes back, or comes back for the last part of it; on `v0.1.3`, with an 8-second rest, the owner saw "a few seconds", which fits a blank that lasts a fixed share of the rest, or the whole of it.
Author
Owner

Found and fixed, 2026-11-23 (on main, commit 65bb2ef, not yet pushed).

Cause. I replayed the collector's record of 14:05 to 14:20 that afternoon in the simulator, with the delay alert as MBTA then had it. The bottom row was dark for each whole 30-second rest from 14:05:40 to 14:08:12, and again from 14:14:49. The sign had three trains for four rows. The fourth was the train standing at the platform (track Forest Hills-01). Its vehicle was STOPPED_AT there, while MBTA's departure time for it trailed the clock by a few seconds at every answer ("Trains may stand by at stations"). The sign hid every departure whose time had passed. MBTA's guidelines hide one only when there is no vehicle data.

Fix (OpenSpec change keep-a-train-at-the-platform):

  • A past departure stays, as BRD, while its vehicle is stopped at the stop in an answer under a minute old, and goes the moment the vehicle is anywhere else. On a grey page it goes, as before.
  • A train that starts here and stands at its platform is BRD from 90 s before its departure, never ARR, so it doesn't flick BRD, ARR, BRD.
  • In the replay, the train standing by shows as BRD and the fourth train has the bottom row after every pass. A new scenario, replay-forest-hills-delay, keeps that afternoon, and a test fails on the old rule. In the old rush-hour replays, trains standing at their platforms past their times now show as BRD at Park Street and Forest Hills.

What stays. From 14:16:33 to 14:18:03 that afternoon MBTA predicted only three trains. With nothing to show there, the bottom row is empty between passes, as it should be.

**Found and fixed, 2026-11-23** (on `main`, commit `65bb2ef`, not yet pushed). **Cause.** I replayed the collector's record of 14:05 to 14:20 that afternoon in the simulator, with the delay alert as MBTA then had it. The bottom row was dark for each whole 30-second rest from 14:05:40 to 14:08:12, and again from 14:14:49. The sign had three trains for four rows. The fourth was the train standing at the platform (track `Forest Hills-01`). Its vehicle was `STOPPED_AT` there, while MBTA's departure time for it trailed the clock by a few seconds at every answer ("Trains may stand by at stations"). The sign hid every departure whose time had passed. MBTA's guidelines hide one only when there is no vehicle data. **Fix** (OpenSpec change `keep-a-train-at-the-platform`): - A past departure stays, as **BRD**, while its vehicle is stopped at the stop in an answer under a minute old, and goes the moment the vehicle is anywhere else. On a grey page it goes, as before. - A train that starts here and stands at its platform is BRD from 90 s before its departure, never ARR, so it doesn't flick BRD, ARR, BRD. - In the replay, the train standing by shows as BRD and the fourth train has the bottom row after every pass. A new scenario, `replay-forest-hills-delay`, keeps that afternoon, and a test fails on the old rule. In the old rush-hour replays, trains standing at their platforms past their times now show as BRD at Park Street and Forest Hills. **What stays.** From 14:16:33 to 14:18:03 that afternoon MBTA predicted only three trains. With nothing to show there, the bottom row is empty between passes, as it should be.
Author
Owner

Summary: done, released in v0.1.5 (merged to main in 65bb2ef; v0.1.5 published 2026-11-23; both signs run it).

  • Cause: the train standing at the platform was hidden. Its vehicle was STOPPED_AT the platform while MBTA's departure time for it trailed the clock by a few seconds. The sign hid every past departure, which left three trains for four rows, so the bottom row was blank between the alert's passes.
  • Fix: a past departure stays on the sign, as BRD, while its vehicle is stopped at the stop in an answer under a minute old. It goes the moment the vehicle is anywhere else. A train that starts here and stands at its platform is BRD from 90 s before its departure, never ARR.
  • Kept: that afternoon is the replay replay-forest-hills-delay, with a test that fails on the old rule. In the old rush-hour replays, trains standing at their platforms past their times now show as BRD.
  • What stays: when MBTA predicts only three trains, the bottom row is empty between passes, because there is nothing to show there.
  • Plan: openspec/changes/keep-a-train-at-the-platform.
**Summary: done, released in v0.1.5** (merged to `main` in `65bb2ef`; v0.1.5 published 2026-11-23; both signs run it). - **Cause:** the train standing at the platform was hidden. Its vehicle was `STOPPED_AT` the platform while MBTA's departure time for it trailed the clock by a few seconds. The sign hid every past departure, which left three trains for four rows, so the bottom row was blank between the alert's passes. - **Fix:** a past departure stays on the sign, as BRD, while its vehicle is stopped at the stop in an answer under a minute old. It goes the moment the vehicle is anywhere else. A train that starts here and stands at its platform is BRD from 90 s before its departure, never ARR. - **Kept:** that afternoon is the replay `replay-forest-hills-delay`, with a test that fails on the old rule. In the old rush-hour replays, trains standing at their platforms past their times now show as BRD. - **What stays:** when MBTA predicts only three trains, the bottom row is empty between passes, because there is nothing to show there. - **Plan:** `openspec/changes/keep-a-train-at-the-platform`.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
moriarty-engineering/my-stop#5
No description provided.