Documentation

Docs / Reference

ADR 0078 - UI label style: Plain / Technical, first-run banner and ui.labels

Status: Accepted (delegated review, 2026-11-18)

Context

T025 (the T025 task record (internal)) made plain wording the web UI's default: rule and row ids (I4, C3), assumption ids (V1), tiers with confidence numbers (inferred 0.9 exact) and raw kinds (client_call) moved into tooltips, data-* attributes and accessible names. Newcomers read the UI faster; people who already know the ids and numbers read them slower, and every lookup became a hover. The developer asked for a technical option, and for a first-run choice that experienced developers will not miss (2026-11-18, T025b).

Options considered and decisions

Where the choice lives.

How it is offered on first launch.

A repository default.

How the two styles are kept in step. One table, web/src/lib/labels.ts, keyed by the rows of the T025 table (plus the T025b additions, rows 20-21); components read these strings only through it, and a test checks every row has both variants.

Decision

Consequences

Known gaps

Review notes (2026-11-18)

Revision (T042): depth defaults with the same precedence

Status of this revision: Accepted (delegated review, 2026-11-25; the decisions above keep their status).

Revision 1 (T041: plain words plus the number)

Status: Accepted (delegated review, 2026-11-25)

Context

Reader feedback on the launch build (developer decision 2026-11-19): most readers took "exact 0.9" and "fact 1.0" as a sign of honesty, and only one found the UI dense, mostly because of ids and raw kinds. The plain style had moved the confidence into tooltips with the ids. Separately, the Changes section printed confidences with two fixed decimals (0.90 for the 0.9 the API section shows; a stored 0.875 would read 0.88), so the same value read differently in two places.

Options considered

Decision

Consequences

Known gaps

Consistency follow-up (developer rule: one "rule · number" pattern everywhere)

Review notes (delegated review, 2026-11-25, T041)

Revision 1 accepted after the final CI gate of 2026-11-25 (CI runs 45627357238, 45632313364 and 45638139948 (the last green on Linux, Postgres and Windows; postgres log 0 FAIL, 291 /postgres PASS)): plain label = rule name plus the number in one format (contract.ConfidenceText / confidenceNumber, enforced by test), details and the rank sentence in tooltips, one shared provenance chip for every provenance label (enforcing source test; Flow and map canvas line labels and legend toggles remain the recorded gap). One independent review, fixed.

Report a problem with this pageSource: docs/adr/0078-ui-label-style.md