The Event Log marks defeat, the clock, and gold #939

Merged
nelsong6 merged 19 commits from claude/log-icons-defeat-clock-gold-261576 into main 2026-08-12 12:30:42 -07:00
nelsong6 commented 2026-08-12 00:03:37 -07:00 (Migrated from github.com)

A score sheet is scanned before it is read, and the Event Log's move rows already carry that — a notated Nxb5+ says capture, mover, square and check at once, and its side rail says who played it. The prose rows carried nothing: "Check!", "Defeat — your clock ran out." and "Knight''s fork — 5 gold claimed." are three shades of the same muted grey at the same indent.

Three marks, in the column the move numbers take.

Mark Lines that wear it
defeat Every line that says the Battle was lost: checkmate, resignation, an authored victory rule going the other way, a flag fall, a netplay result read from the losing seat.
clock The flag fall.
gold Every line where the Run''s economy moved — a Manubium paid on the board, and the ten gold a paid Undo costs.

A line may wear two, because outcome and cause are different facts: a flag fall is a defeat AND it is the clock. A victory wears nothing, and neither does an ordinary prose line — mark every outcome and the scan has nothing left to find.

The mark is set where the line is written, never re-derived by matching rendered prose. adjudicationEntry and netOutcomeEntry decide the copy and its mark in one breath, so a defeat cannot be written without being marked as one; gold reads RunBattleNotice.goldTenths, already the field that seats the board''s rising +gold marker.

Only one of the three is new art. The clock is the persistent title bar''s installed hourglass and the coin is the Run''s own RunGoldIcon — the same component BattleGoldNotice draws over the board — reused verbatim rather than forged a second time (ADR-0059). Defeat takes ui/kit/icons/game/defeat.png under a new battle-log-mark component, trimmed to its own ink because the seat is 18px and draws with contain. That seat is reserved rather than fail-closed (ADR-0318) and renders empty until one is installed.

The row is now one EventLogRow component, so Studio → Log Marks mounts the row the player actually gets rather than a re-typed copy of it. Sixteen candidates are uploaded on batch battle-log-defeat-mark-2026-08-11-v1 and none is accepted — the pixels are the owner''s call.

The row''s second column goes 32px → 40px, which is exactly two seats plus their gap. LogEntry.marks is additive and optional, so a persisted match resumes with its old rows unmarked and no save version moves.

See ADR-0586.

Verified

  • cd frontend && npm run check — 3543 passed, 3 skipped.
  • cd backend && node --test liveMediaPolicy.test.js — 47 passed.
  • Studio → Log Marks captured on the running app: all sixteen candidates drawn on the real rows at the real 18px seat.
A score sheet is scanned before it is read, and the Event Log's move rows already carry that — a notated `Nxb5+` says capture, mover, square and check at once, and its side rail says who played it. The **prose** rows carried nothing: "Check!", "Defeat — your clock ran out." and "Knight''s fork — 5 gold claimed." are three shades of the same muted grey at the same indent. **Three marks, in the column the move numbers take.** | Mark | Lines that wear it | | --- | --- | | `defeat` | Every line that says the Battle was lost: checkmate, resignation, an authored victory rule going the other way, a flag fall, a netplay result read from the losing seat. | | `clock` | The flag fall. | | `gold` | Every line where the Run''s economy moved — a Manubium paid on the board, and the ten gold a paid Undo costs. | A line may wear **two**, because outcome and cause are different facts: a flag fall is a defeat AND it is the clock. A victory wears nothing, and neither does an ordinary prose line — mark every outcome and the scan has nothing left to find. The mark is set **where the line is written**, never re-derived by matching rendered prose. `adjudicationEntry` and `netOutcomeEntry` decide the copy and its mark in one breath, so a defeat cannot be written without being marked as one; `gold` reads `RunBattleNotice.goldTenths`, already the field that seats the board''s rising `+gold` marker. **Only one of the three is new art.** The clock is the persistent title bar''s installed hourglass and the coin is the Run''s own `RunGoldIcon` — the same component `BattleGoldNotice` draws over the board — reused verbatim rather than forged a second time (ADR-0059). Defeat takes `ui/kit/icons/game/defeat.png` under a new `battle-log-mark` component, trimmed to its own ink because the seat is 18px and draws with `contain`. That seat is **reserved rather than fail-closed** (ADR-0318) and renders empty until one is installed. The row is now one `EventLogRow` component, so **Studio → Log Marks** mounts the row the player actually gets rather than a re-typed copy of it. Sixteen candidates are uploaded on batch `battle-log-defeat-mark-2026-08-11-v1` and **none is accepted** — the pixels are the owner''s call. The row''s second column goes 32px → 40px, which is exactly two seats plus their gap. `LogEntry.marks` is additive and optional, so a persisted match resumes with its old rows unmarked and no save version moves. See [ADR-0586](docs/adr/0586-the-event-log-marks-defeat-the-clock-and-gold.md). ## Verified - `cd frontend && npm run check` — 3543 passed, 3 skipped. - `cd backend && node --test liveMediaPolicy.test.js` — 47 passed. - Studio → Log Marks captured on the running app: all sixteen candidates drawn on the real rows at the real 18px seat.
Sign in to join this conversation.
No description provided.