Skip to content

Always draw the sensor layer on the control view - #178

Merged
bazauto merged 1 commit into
mainfrom
always-show-sensor-overlay
Aug 25, 2026
Merged

bazauto merged 1 commit into
mainfrom
always-show-sensor-overlay

Conversation

@bazauto

@bazauto bazauto commented Aug 25, 2026

Copy link
Copy Markdown
Owner

What

The sensor layer on the control view is now always drawn. The "Sensors" checkbox is gone,
and so is buildLiveDiagramState's showSensors parameter. The sensor key is mounted
permanently beside the layer it explains.

Why

#76 shipped the layer off by default, reasoning that raw sensor evidence and derived block
occupancy can legitimately disagree (deriveBlockOccupancy clause 3), so defaulting it on
would make that disagreement the first thing a new operator sees.

That property is real and unchanged — but it argues for the subordinate mark, which D8
also decided and which stands. It does not argue for hiding the mark. In practice the beams
are wanted on every visit to the tab and have to be switched on every visit, so the layer is
off exactly when something unexpected happens. It also runs against #28's own rule that an
untrusted reading is shown, never hidden: a default-off layer applies the opposite rule to
every reading at once.

What is unchanged

D8's encoding decision in full: the beam keeps its own channel, four states
(occupied / clear / not-evidence / no-reading), a smaller and visibly different
mark, never a share of OCCUPANCY's fill and never a fifth block tint. D4's four validated
tints are untouched. The Track Editor still draws no sensor observation — it passes no live
state at all.

Recorded as docs/diagram-encoding.md D9, with a pointer from D8. docs/current-state.md,
README.md and the CLAUDE.md index line move with it.

Verification

Run in this session, from the repo root:

  • npm run lint — clean
  • npm test — backend 84 files / 1497 tests passed; frontend 27 files / 327 tests passed
  • npm run test:e2e — 71 passed, including the rewritten
    tests/e2e/control-view.spec.ts case, which now asserts the beam title is present on
    load and that no "Sensors" checkbox exists

🤖 Generated with Claude Code

The "Sensors" checkbox (#76) shipped off by default: the layer was framed as a
diagnostic an operator reaches for when chasing a flaky beam. In use it is
wanted on every visit, and an operator has to remember to switch it on every
visit — which means it is off precisely when something unexpected happens.

Withdraws the checkbox and `buildLiveDiagramState`'s `showSensors` parameter,
and mounts the sensor key permanently alongside the layer it explains. D8's
actual decision is untouched: the beam keeps its own subordinate channel, four
states, never a block tint and never a share of the occupancy fill. What
changes is only whether it is drawn.

Recorded as `docs/diagram-encoding.md` D9.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@bazauto
bazauto merged commit f69633d into main Aug 25, 2026
1 check passed
@bazauto
bazauto deleted the always-show-sensor-overlay branch August 25, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant