Skip to content

fix: improve bearings board text and risk rendering - #4521

Open
mremond wants to merge 3 commits into
kunchenguid:mainfrom
mremond:fm/fm-clear-3173-conflict
Open

mremond wants to merge 3 commits into
kunchenguid:mainfrom
mremond:fm/fm-clear-3173-conflict

Conversation

@mremond

@mremond mremond commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Intent

Two bearings-board rendering defects. Board row titles and their secondary lines were clamped to a single line with an ellipsis, so a row read as a truncated fragment that said nothing about the work it named. A merge item's risk value rendered whole on its badge, so a level followed by a sentence of justification pushed the pin past its card, and the raw value was compared against the English low alone, leaving a French level wearing the alert tone.

Both fixes were first proposed in #3173. Since then bin/fm-test-run.sh moved on the default branch, and the two versions of families_for_test_reference diverged in design rather than merely conflicting: the default branch reads every argument as an OR-ed needle, while #3173 had changed the function to read its second argument as a script to exclude from the scan. Each convention had a live caller, so neither could absorb the other without regressing that side.

This branch rebuilds the same fixes on the default branch's convention. families_for_test_reference is left unchanged - no exclusion parameter, no second positional meaning, no new signature. That exclusion was only needed because tests/fm-test-run.test.sh embedded the real asset path tests/assets/board-render-harness.mjs as fixture data: the reference scan reads test sources, so that suite matched as a consumer of the asset and suppressed the unmapped fallback behind its own family. The suite already builds a fully synthetic fixture repository, so its fixtures now name synthetic assets and the false match has no source. Mapping a changed test asset to its consumers then ships as an ordinary tests/assets/* arm above the tests/* catch-all, using the existing OR-needle call.

Scope is limited to that rework; no adjacent code was refactored or tidied.

What Changed

  • Allow board titles to wrap to three lines and secondary text to two, while containing long text.
  • Keep merge risk levels on badges and move explanations into the card body; recognize low and faible as neutral levels.
  • Add render and optional browser-layout regressions, and map changed or deleted test assets to their consumers using synthetic selector fixtures. Preserve families_for_test_reference unchanged with trunk’s OR-needle convention.

Supersedes #3173. Trunk overtook the original branch, so this work was rebuilt on trunk’s convention rather than merged against it.

Risk Assessment

✅ Low: The bounded changes satisfy the source-verifiable intent, preserve the trunk selector interface, and introduce no substantiated material defects.

Testing

Focused selector and renderer checks passed; real board and CLI scenarios produced screenshots, responses, and base-versus-target evidence. The layout suite capability-skipped, so Brave CDP supplied live visual verification. A broader 390px overflow assertion exposed an unchanged base heading; changed text remained contained. Cleanup left the worktree clean, with publication checks reserved for the outer PR phase.

  • Live validation: ✅ go - 9 of 10 scenarios driven live against the product
Scenario Result Live Evidence
Read long board rows: titles occupy three lines and secondary text two, while underway status remains visible. ✅ pass live Desktop board; 620px board; Live board measurements
Browse merge cards: the badge shows only the risk level, justification appears in the body, and trimmed low/faible levels use the neutral tone. ✅ pass live Live board measurements; Original failures reproduced on base
Supply unknown, substring-like, blank, bare, and multi-period risk values: warnings remain cautious and empty badges or context rows are omitted. ✅ pass live Live board measurements
View unbroken titles, risk levels, and justifications at 1440px, 620px, and 390px: changed text stays contained and justification remains visible under print media. ✅ pass live Unbroken risk level stays inside its card; Unbroken justification at 390px; Live board measurements
Build merge cards with missing, null, or empty risk: the builder refuses and preserves the previous board byte for byte. ✅ pass live Invalid risk refusals
Change or delete the real board asset: the selector chooses its consumer family without selecting its own fixture suite. ✅ pass live Live selector transcript
Change an unread asset or retire its only consumer: selection refuses with exit 2; deleting an unread asset selects nothing. ✅ pass live Live selector transcript
Change the shared Git helper: readers matching the second OR needle remain selected; the function also satisfies the explicit unchanged-byte contract. ✅ pass live Live selector transcript
Run the optional layout lane without recognized Chrome: the real runner records an explicit capability skip without failing the lane. ✅ pass live Optional browser capability skip
Publish the superseding PR description explaining the rebuild on trunk, while leaving PR 3173 untouched. ⏸️ untested no PR publication belongs exclusively to the outer executor. Its PR phase must verify the required description and preserve PR 3173; this test phase performed no GitHub mutations.
Evidence: Live board measurements

Source: Live board measurements

{
  "target": "c896d6e919017eb1466e8da03ffe89a888c3e30f",
  "browser": {
    "protocolVersion": "1.3",
    "product": "Chrome/152.0.7977.83",
    "revision": "@e894693dad78840370a23af7dfb03cb86f7093f",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/152.0.0.0 Safari/537.36",
    "jsVersion": "15.2.124.21"
  },
  "results": [
    {
      "width": 1440,
      "rows": [
        {
          "section": "bb-charted",
          "titleLines": 3,
          "subtitleLines": 1.9988905325443789,
          "titleScrollWidth": 397,
          "titleClientWidth": 397,
          "subScrollWidth": 397,
          "subClientWidth": 397
        },
        {
          "section": "bb-charted",
          "titleLines": 3,
          "subtitleLines": 1.9988905325443789,
          "titleScrollWidth": 397,
          "titleClientWidth": 397,
          "subScrollWidth": 397,
          "subClientWidth": 397
        },
        {
          "section": "bb-underway",
          "titleLines": 3,
          "subtitleLines": 1.9988905325443789,
          "titleScrollWidth": 418,
          "titleClientWidth": 418,
          "subScrollWidth": 418,
          "subClientWidth": 418
        },
        {
          "section": "bb-landed",
          "titleLines": 3,
          "subtitleLines": 0.9994452662721894,
          "titleScrollWidth": 475,
          "titleClientWidth": 475,
          "subScrollWidth": 475,
          "subClientWidth": 475
        }
      ],
      "cards": [
        {
          "key": "fr-composed",
          "title": "fr-composed: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk faible",
              "tone": "fm-badge--neutral",
              "inside": true
            }
          ],
          "ctx": [
            {
              "key": "risk",
              "value": "La vue reste dérivée. Aucun état de travail ne change.",
              "inside": true,
              "lines": 1,
              "scrollWidth": 421,
              "clientWidth": 421
            }
          ],
          "viewport": 1440,
          "scrollWidth": 1440
        },
        {
          "key": "en-low",
          "title": "en-low: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk LOW",
              "tone": "fm-badge--neutral",
              "inside": true
            }
          ],
          "ctx": [],
          "viewport": 1440,
          "scrollWidth": 1440
        },
        {
          "key": "fr-bare",
          "title": "fr-bare: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk Faible",
              "tone": "fm-badge--neutral",
              "inside": true
            }
          ],
          "ctx": [],
          "viewport": 1440,
          "scrollWidth": 1440
        },
        {
          "key": "unknown",
          "title": "unknown: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk élevé",
              "tone": "fm-badge--warn",
              "inside": true
            }
          ],
          "ctx": [
            {
              "key": "risk",
              "value": "Une migration de données exige une vérification.",
              "inside": true,
              "lines": 1,
              "scrollWidth": 421,
              "clientWidth": 421
            }
          ],
          "viewport": 1440,
          "scrollWidth": 1440
        },
        {
          "key": "substring",
          "title": "substring: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk low-ish",
              "tone": "fm-badge--warn",
              "inside": true
            }
          ],
          "ctx": [
            {
              "key": "risk",
              "value": "Ce niveau ne doit pas perdre son alerte.",
              "inside": true,
              "lines": 1,
              "scrollWidth": 421,
              "clientWidth": 421
            }
          ],
          "viewport": 1440,
          "scrollWidth": 1440
        },
        {
          "key": "blank",
          "title": "blank: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            }
          ],
          "ctx": [],
          "viewport": 1440,
          "scrollWidth": 1440
        },
        {
          "key": "long-level",
          "title": "long-level: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
              "tone": "fm-badge--warn",
              "inside": true
            }
          ],
          "ctx": [],
          "viewport": 1440,
          "scrollWidth": 1440
        },
        {
          "key": "long-detail",
          "title": "long-detail: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk faible",
              "tone": "fm-badge--neutral",
              "inside": true
            }
          ],
          "ctx": [
            {
              "key": "risk",
              "value": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
              "inside": true,
              "lines": 4,
              "scrollWidth": 421,
              "clientWidth": 421
            }
          ],
          "viewport": 1440,
          "scrollWidth": 1440
        },
        {
          "key": "empty-level",
          "title": "empty-level: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            }
          ],
          "ctx": [
            {
              "key": "risk",
              "value": "Justification sans niveau.",
              "inside": true,
              "lines": 1,
              "scrollWidth": 421,
              "clientWidth": 421
            }
          ],
          "viewport": 1440,
          "scrollWidth": 1440
        },
        {
          "key": "multi-period",
          "title": "multi-period: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk low",
              "tone": "fm-badge--neutral",
              "inside": true
            }
          ],
          "ctx": [
            {
              "key": "risk",
              "value": "First sentence. Second sentence.",
              "inside": true,
              "lines": 1,
              "scrollWidth": 421,
              "clientWidth": 421
     

... [7724 bytes truncated] ...

ntence. Second sentence.",
              "inside": true,
              "lines": 1,
              "scrollWidth": 419,
              "clientWidth": 419
            }
          ],
          "viewport": 605,
          "scrollWidth": 605
        }
      ]
    },
    {
      "width": 390,
      "rows": [
        {
          "section": "bb-charted",
          "titleLines": 3,
          "subtitleLines": 1.9988905325443789,
          "titleScrollWidth": 165,
          "titleClientWidth": 165,
          "subScrollWidth": 165,
          "subClientWidth": 165
        },
        {
          "section": "bb-charted",
          "titleLines": 3,
          "subtitleLines": 1.9988905325443789,
          "titleScrollWidth": 165,
          "titleClientWidth": 165,
          "subScrollWidth": 165,
          "subClientWidth": 165
        },
        {
          "section": "bb-underway",
          "titleLines": 3,
          "subtitleLines": 1.9988905325443789,
          "titleScrollWidth": 186,
          "titleClientWidth": 186,
          "subScrollWidth": 186,
          "subClientWidth": 186
        },
        {
          "section": "bb-landed",
          "titleLines": 3,
          "subtitleLines": 0.9994452662721894,
          "titleScrollWidth": 243,
          "titleClientWidth": 243,
          "subScrollWidth": 243,
          "subClientWidth": 243
        }
      ],
      "cards": [
        {
          "key": "fr-composed",
          "title": "fr-composed: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk faible",
              "tone": "fm-badge--neutral",
              "inside": true
            }
          ],
          "ctx": [
            {
              "key": "risk",
              "value": "La vue reste dérivée. Aucun état de travail ne change.",
              "inside": true,
              "lines": 2,
              "scrollWidth": 204,
              "clientWidth": 204
            }
          ],
          "viewport": 390,
          "scrollWidth": 481
        },
        {
          "key": "en-low",
          "title": "en-low: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk LOW",
              "tone": "fm-badge--neutral",
              "inside": true
            }
          ],
          "ctx": [],
          "viewport": 375,
          "scrollWidth": 481
        },
        {
          "key": "fr-bare",
          "title": "fr-bare: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk Faible",
              "tone": "fm-badge--neutral",
              "inside": true
            }
          ],
          "ctx": [],
          "viewport": 375,
          "scrollWidth": 481
        },
        {
          "key": "unknown",
          "title": "unknown: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk élevé",
              "tone": "fm-badge--warn",
              "inside": true
            }
          ],
          "ctx": [
            {
              "key": "risk",
              "value": "Une migration de données exige une vérification.",
              "inside": true,
              "lines": 2,
              "scrollWidth": 189,
              "clientWidth": 189
            }
          ],
          "viewport": 375,
          "scrollWidth": 481
        },
        {
          "key": "substring",
          "title": "substring: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk low-ish",
              "tone": "fm-badge--warn",
              "inside": true
            }
          ],
          "ctx": [
            {
              "key": "risk",
              "value": "Ce niveau ne doit pas perdre son alerte.",
              "inside": true,
              "lines": 2,
              "scrollWidth": 189,
              "clientWidth": 189
            }
          ],
          "viewport": 375,
          "scrollWidth": 481
        },
        {
          "key": "blank",
          "title": "blank: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            }
          ],
          "ctx": [],
          "viewport": 375,
          "scrollWidth": 481
        },
        {
          "key": "long-level",
          "title": "long-level: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
              "tone": "fm-badge--warn",
              "inside": true
            }
          ],
          "ctx": [],
          "viewport": 375,
          "scrollWidth": 481
        },
        {
          "key": "long-detail",
          "title": "long-detail: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk faible",
              "tone": "fm-badge--neutral",
              "inside": true
            }
          ],
          "ctx": [
            {
              "key": "risk",
              "value": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
              "inside": true,
              "lines": 7,
              "scrollWidth": 189,
              "clientWidth": 189
            }
          ],
          "viewport": 375,
          "scrollWidth": 481
        },
        {
          "key": "empty-level",
          "title": "empty-level: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            }
          ],
          "ctx": [
            {
              "key": "risk",
              "value": "Justification sans niveau.",
              "inside": true,
              "lines": 1,
              "scrollWidth": 189,
              "clientWidth": 189
            }
          ],
          "viewport": 375,
          "scrollWidth": 481
        },
        {
          "key": "multi-period",
          "title": "multi-period: inspect the risk level and its justification",
          "badges": [
            {
              "text": "checks green",
              "tone": "fm-badge--online",
              "inside": true
            },
            {
              "text": "risk low",
              "tone": "fm-badge--neutral",
              "inside": true
            }
          ],
          "ctx": [
            {
              "key": "risk",
              "value": "First sentence. Second sentence.",
              "inside": true,
              "lines": 2,
              "scrollWidth": 189,
              "clientWidth": 189
            }
          ],
          "viewport": 375,
          "scrollWidth": 481
        }
      ]
    },
    {
      "printJustificationVisible": true
    }
  ]
}
Evidence: Base rendering comparison

Source: Base rendering comparison

{
  "base": "b85e28b5f8aad91a553e33d461da9f238bbdac38",
  "results": [
    {
      "width": 1440,
      "titleLines": 1,
      "subtitleLines": 0.9994452662721894,
      "riskBadgeText": "risk faible. La vue reste dérivée. Aucun état de travail ne change.",
      "riskBadgeClass": "fm-badge fm-badge--warn",
      "riskBadgeInsideCard": false,
      "riskContextRows": 0,
      "documentWidth": 1440,
      "viewport": 1440,
      "overflowing": []
    },
    {
      "width": 620,
      "titleLines": 1,
      "subtitleLines": 0.9994452662721894,
      "riskBadgeText": "risk faible. La vue reste dérivée. Aucun état de travail ne change.",
      "riskBadgeClass": "fm-badge fm-badge--warn",
      "riskBadgeInsideCard": false,
      "riskContextRows": 0,
      "documentWidth": 605,
      "viewport": 605,
      "overflowing": [
        {
          "class": "fm-badge fm-badge--warn",
          "text": "risk faible. La vue reste dérivée. Aucun état de travail ne change.",
          "right": 675.53125
        }
      ]
    },
    {
      "width": 390,
      "titleLines": 1,
      "subtitleLines": 0.9994452662721894,
      "riskBadgeText": "risk faible. La vue reste dérivée. Aucun état de travail ne change.",
      "riskBadgeClass": "fm-badge fm-badge--warn",
      "riskBadgeInsideCard": false,
      "riskContextRows": 0,
      "documentWidth": 481,
      "viewport": 375,
      "overflowing": [
        {
          "class": "fm-sign fm-sign--muted",
          "text": "10 items wait on you, captain",
          "right": 481.109375
        },
        {
          "class": "fm-badge fm-badge--warn",
          "text": "risk faible. La vue reste dérivée. Aucun état de travail ne change.",
          "right": 675.53125
        }
      ]
    }
  ],
  "note": "Base reproduces one-line rows and whole, alert-colored French risk badge. The section heading also exceeds 390px on base; that unchanged heading is outside this rework."
}
Evidence: Live selector transcript

Source: Live selector transcript

[
  {
    "command": "git init -q",
    "exit": 0,
    "stdout": "",
    "stderr": ""
  },
  {
    "command": "git add .",
    "exit": 0,
    "stdout": "",
    "stderr": ""
  },
  {
    "command": "git -c user.name=Validation -c user.email=validation@example.invalid commit -qm Isolated exact target source corpus",
    "exit": 0,
    "stdout": "",
    "stderr": ""
  },
  {
    "command": "bin/fm-test-run.sh --list --changed --base HEAD",
    "exit": 0,
    "stdout": "tests/fm-bearings-board-layout.test.sh\ntests/fm-bearings-board-render.test.sh\ntests/fm-bearings-snapshot.test.sh\ntests/fm-fleet-snapshot-view.test.sh\ntests/fm-home-summary-refresh.test.sh\n",
    "stderr": ""
  },
  {
    "command": "git checkout -- tests/assets/board-render-harness.mjs",
    "exit": 0,
    "stdout": "",
    "stderr": ""
  },
  {
    "command": "bin/fm-test-run.sh --list --changed --base HEAD",
    "exit": 0,
    "stdout": "tests/fm-bearings-board-layout.test.sh\ntests/fm-bearings-board-render.test.sh\ntests/fm-bearings-snapshot.test.sh\ntests/fm-fleet-snapshot-view.test.sh\ntests/fm-home-summary-refresh.test.sh\n",
    "stderr": ""
  },
  {
    "command": "git checkout -- tests/assets/board-render-harness.mjs",
    "exit": 0,
    "stdout": "",
    "stderr": ""
  },
  {
    "command": "bin/fm-test-run.sh --list --changed --base HEAD",
    "exit": 2,
    "stdout": "",
    "stderr": "fm-test-run: no changed-test mapping for source path: tests/assets/live-unmapped.mjs\n"
  },
  {
    "command": "bin/fm-test-run.sh --list --changed --base HEAD",
    "exit": 0,
    "stdout": "tests/fm-afk-contract.test.sh\ntests/fm-afk-inject-e2e.test.sh\ntests/fm-afk-return.test.sh\ntests/fm-afk-inject-herdr-e2e.test.sh\ntests/fm-afk-launch.test.sh\ntests/fm-backend-autodetect-smoke.test.sh\ntests/fm-backend-herdr-agent-exit-shell-e2e.test.sh\ntests/fm-backend-herdr-eventwait-smoke.test.sh\ntests/fm-backend-herdr-focus-flash-e2e.test.sh\ntests/fm-backend-herdr-launcher-workspace-e2e.test.sh\ntests/fm-backend-herdr-presentation-e2e.test.sh\ntests/fm-backend-herdr-prune-safety-e2e.test.sh\ntests/fm-backend-herdr-respawn-idem-e2e.test.sh\ntests/fm-backend-herdr-smoke.test.sh\ntests/fm-backend-herdr-stale-active-tab-e2e.test.sh\ntests/fm-backend-herdr-workspace-per-home-e2e.test.sh\ntests/fm-control-herdr-smoke.test.sh\ntests/fm-herdr-attached-viewer-live-e2e.test.sh\ntests/fm-herdr-session-cleanup-e2e.test.sh\ntests/fm-afk-pi-herdr-return-e2e.test.sh\ntests/fm-agy-signals-live-e2e.test.sh\ntests/fm-bearings-board-lavish-live-e2e.test.sh\ntests/fm-claude-stop-autoarm-live-e2e.test.sh\ntests/fm-cmux-claude-composer-live-e2e.test.sh\ntests/fm-codex-continuity-live-e2e.test.sh\ntests/fm-composer-matrix-live-e2e.test.sh\ntests/fm-cursor-primary-live-e2e.test.sh\ntests/fm-grok-continuity-live-e2e.test.sh\ntests/fm-grok-stop-live-e2e.test.sh\ntests/fm-harness-adapter-instructions-live-e2e.test.sh\ntests/fm-harness-liveness-drift-live-e2e.test.sh\ntests/fm-herdr-pi-stale-registration-live-e2e.test.sh\ntests/fm-herdr-submit-confirm-live-e2e.test.sh\ntests/fm-herdr-version-floor-live-e2e.test.sh\ntests/fm-muse-signals-live-e2e.test.sh\ntests/fm-omp-primary-live-e2e.test.sh\ntests/fm-opencode-primary-live-e2e.test.sh\ntests/fm-pi-branch-live-e2e.test.sh\ntests/fm-pi-branch-responsiveness-live-e2e.test.sh\ntests/fm-pi-codex-native.test.sh\ntests/fm-pi-primary-live-e2e.test.sh\ntests/fm-quota-array-dispatch-live-e2e.test.sh\ntests/fm-rovo-signals-live-e2e.test.sh\ntests/fm-send-inbox-doorbell-live-e2e.test.sh\ntests/fm-send-secondmate-marker-herdr-e2e.test.sh\ntests/fm-sessionstart-hook-live-e2e.test.sh\ntests/fm-sessionstart-instruction-refresh-live-e2e.test.sh\ntests/fm-agy-harness.test.sh\ntests/fm-arm-pretool-check.test.sh\ntests/fm-ask-user-authority.test.sh\ntests/fm-bearings-board.test.sh\ntests/fm-brief.test.sh\ntests/fm-calm-pi-extension.test.sh\ntests/fm-captain-hold-lifecycle.test.sh\ntests/fm-cd-pretool-check.test.sh\ntests/fm-classify-decision-key.test.sh\ntests/fm-composer-ghost.test.sh\ntests/fm-composer-lib.test.sh\ntests/fm-crew-state.test.sh\ntests/fm-documentation-audiences.test.sh\ntests/fm-ensure-agents-md.test.sh\ntests/fm-grok-harness.test.sh\ntests/fm-harness-adapter-references.test.sh\ntests/fm-harness-precedence.test.sh\ntests/fm-herdr-lab.test.sh\ntests/fm-kimi-harness.test.sh\ntests/fm-lint-workflows.test.sh\ntests/fm-lint.test.sh\ntests/fm-muse-harness.test.sh\ntests/fm-omp-harness.test.sh\ntests/fm-operational-input.test.sh\ntests/fm-pi-primary-types.test.sh\ntests/fm-rovo-harness.test.sh\ntests/fm-send-popup-settle.test.sh\ntests/fm-send-settle.test.sh\ntests/fm-subagent-pretool-check.test.sh\ntests/fm-supervision-instructions.test.sh\ntests/fm-task-delivery.test.sh\ntests/fm-test-isolation-proof.test.sh\ntests/fm-test-run.test.sh\ntests/fm-tmux-submit-busy.test.sh\ntests/fm-trace-context-lib.test.sh\ntests/fm-transition-lib.test.sh\ntests/fm-vendor-auth-probe.test.sh\ntests/fm-backend-cmux-smoke.test.sh\ntests/fm-backend-cmux.test.sh\ntests/fm-backend-herdr.test.sh\ntests/fm-backend-tmux-smoke.test.sh\ntests/fm-backend.test.sh\ntests/fm-claude-trust.test.sh\ntests/fm-control-relaunch.test.sh\ntests/fm-control.test.sh\ntests/fm-herdr-session-cleanup.test.sh\ntests/fm-send-inbox.test.sh\ntests/fm-send-resolve-key.test.sh\ntests/fm-send-strict.test.sh\ntests/fm-spawn-batch.test.sh\ntests/fm-spawn-dispatch-profile.test.sh\ntests/fm-spawn-worktree-settle.test.sh\ntests/fm-teardown-endpoint-safety.test.sh\ntests/fm-tmux-agent-liveness.test.sh\ntests/fm-trace-context-spawn.test.sh\ntests/fm-backend-orca.test.sh\ntests/fm-backend-zellij-smoke.test.sh\ntests/fm-backend-zellij.test.sh\ntests/fm-backlog-atomicity.test.sh\ntests/fm-bootstrap-network-parallel.test.sh\ntests/fm-bootstrap.test.sh\ntests/fm-fleet-sync.test.sh\ntests/fm-gate-refuse.test.sh\ntests/fm-gotmp.test.sh\ntests/fm-session-start.test.sh\ntests/fm-sessionstart-nudge.test.sh\ntests/fm-startup-network.test.sh\ntests/fm-tangle-guard.test.sh\ntests/fm-update.test.sh\ntests/fm-backlog-handoff.test.sh\ntests/fm-on.test.sh\ntests/fm-remote-backlog-handoff.test.sh\ntests/fm-remote-doctor.test.sh\ntests/fm-remote-herdr-guard.test.sh\ntests/fm-remote-job-orphan-reap.test.sh\ntests/fm-remote-job.test.sh\ntests/fm-remote-reply.test.sh\ntests/fm-remote-secondmate-lifecycle-e2e.test.sh\ntests/fm-remote-secondmate-trace-context.test.sh\ntests/fm-remote-transport-lanes.test.sh\ntests/fm-secondmate-harness.test.sh\ntests/fm-secondmate-lifecycle-e2e.test.sh\ntests/fm-secondmate-liveness.test.sh\ntests/fm-secondmate-reconcile.test.sh\ntests/fm-secondmate-restart.test.sh\ntests/fm-secondmate-safety.test.sh\ntests/fm-secondmate-sync.test.sh\ntests/fm-send-secondmate-marker.test.sh\ntests/fm-shared-captain-inheritance.test.sh\ntests/fm-startup-memory-budget.test.sh\ntests/fm-stow-cascade.test.sh\ntests/fm-backlog-read-bound.test.sh\ntests/fm-ci-workflow.test.sh\ntests/fm-gemini-harness.test.sh\ntests/fm-nm-test-contract.test.sh\ntests/fm-pi-windows-shell-invocation.test.sh\ntests/fm-send-agy-confirm.test.sh\ntests/fm-stat-shadowing.test.sh\ntests/fm-tasks-axi.test.sh\ntests/fm-bearings-board-layout.test.sh\ntests/fm-bearings-board-render.test.sh\ntests/fm-bearings-snapshot.test.sh\ntests/fm-fleet-snapshot-view.test.sh\ntests/fm-home-summary-refresh.test.sh\ntests/fm-branch-supervision.test.sh\ntests/fm-busy-adapter-wiring.test.sh\ntests/fm-busy-state.test.sh\ntests/fm-classify-corr-token.test.sh\ntests/fm-claude-stop-autoarm.test.sh\ntests/fm-cursor-harness.test.sh\ntests/fm-extension-binding.test.sh\ntests/fm-gitignore-config.test.sh\ntests/fm-live-gate.test.sh\ntests/fm-no-mistakes-required.test.sh\ntests/fm-peek-remote.test.sh\ntests/fm-pending-reply.test.sh\ntests/fm-pi-branch-extension.test.sh\ntests/fm-procevent-quota.test.sh\ntests/fm-procevent-when.test.sh\ntests/fm-procevent.test.sh\ntests/fm-project-origin.test.sh\ntests/fm-public-followup.test.sh\ntests/fm-quota-choose.test.sh\ntests/fm-remote-entrypoint.test.sh\ntests/fm-remote-secondmate-parent-binding.test.sh\ntests/fm-send-remote-delivery.test.sh\ntests/fm-spawn-pool-base-freshen.test.sh\ntests/fm-test-fixture-cleanup.test.sh\ntests/fm-test-fixtures.test.sh\ntests/fm-voice-relay.test.sh\ntests/fm-wake-drain-open-decisions-cursor.test.sh\ntests/fm-wake-drain-open-decisions.test.sh\ntests/fm-wake-drain-outcome-backstop.test.sh\ntests/fm-check-unregister.test.sh\ntests/fm-pr-check-security.test.sh\ntests/fm-pr-merge.test.sh\ntests/fm-review-diff.test.sh\ntests/fm-teardown.test.sh\ntests/fm-x-mode.test.sh\ntests/fm-cursor-primary.test.sh\ntests/fm-daemon.test.sh\ntests/fm-guard-stale-banner.test.sh\ntests/fm-inactive-reconcile.test.sh\ntests/fm-mail-check.test.sh\ntests/fm-mail.test.sh\ntests/fm-pi-watch-extension.test.sh\ntests/fm-session-lock-ancestry.test.sh\ntests/fm-supervision-events.test.sh\ntests/fm-task-inbox.test.sh\ntests/fm-tool-update-check.test.sh\ntests/fm-turnend-guard.test.sh\ntests/fm-wake-daemon-lifecycle-e2e.test.sh\ntests/fm-wake-drain-unread-status.test.sh\ntests/fm-wake-queue.test.sh\ntests/fm-watch-arm.test.sh\ntests/fm-watch-checkpoint.test.sh\ntests/fm-watch-recovery-loop.test.sh\ntests/fm-watch-triage.test.sh\ntests/fm-watcher-lock.test.sh\n",
    "stderr": ""
  },
  {
    "command": "git checkout -- tests/git-config-helpers.sh",
    "exit": 0,
    "stdout": "",
    "stderr": ""
  },
  {
    "command": "git rm -q tests/fm-bearings-board-render.test.sh",
    "exit": 0,
    "stdout": "",
    "stderr": ""
  },
  {
    "command": "git -c user.name=Validation -c user.email=validation@example.invalid commit -qm Retire actual reader in isolated corpus",
    "exit": 0,
    "stdout": "",
    "stderr": ""
  },
  {
    "command": "bin/fm-test-run.sh --list --changed --base HEAD",
    "exit": 2,
    "stdout": "",
    "stderr": "fm-test-run: no changed-test mapping for source path: tests/assets/board-render-harness.mjs\n"
  },
  {
    "command": "git checkout -- tests/assets/board-render-harness.mjs",
    "exit": 0,
    "stdout": "",
    "stderr": ""
  },
  {
    "command": "bin/fm-test-run.sh --list --changed --base HEAD",
    "exit": 0,
    "stdout": "",
    "stderr": "fm-test-run: no tests selected for changes vs HEAD (map is conservative; use --all for the complete suite)\n"
  },
  {
    "explicit_byte_contract": "families_for_test_reference unchanged from base",
    "sha256": "0e3403923459e77c14890c4f5462b58d159901ef76fb1ee155f92287c95bc158"
  }
]
Evidence: Invalid risk refusals

Source: Invalid risk refusals

[
  {
    "case": "missing",
    "exit": 1,
    "stdout": "",
    "stderr": "fm-bearings-board: board data does not satisfy fm-bearings-board.v1: ~/.no-mistakes/worktrees/acf4a767348a/01M2J0R8DH0RSQP7P5KYP5P1D5/.test-phase/live-home/invalid.json\n",
    "existingBoardPreserved": true
  },
  {
    "case": "empty",
    "exit": 1,
    "stdout": "",
    "stderr": "fm-bearings-board: board data does not satisfy fm-bearings-board.v1: ~/.no-mistakes/worktrees/acf4a767348a/01M2J0R8DH0RSQP7P5KYP5P1D5/.test-phase/live-home/invalid.json\n",
    "existingBoardPreserved": true
  },
  {
    "case": "null",
    "exit": 1,
    "stdout": "",
    "stderr": "fm-bearings-board: board data does not satisfy fm-bearings-board.v1: ~/.no-mistakes/worktrees/acf4a767348a/01M2J0R8DH0RSQP7P5KYP5P1D5/.test-phase/live-home/invalid.json\n",
    "existingBoardPreserved": true
  }
]
Evidence: Optional browser capability skip

Source: Optional browser capability skip

skip: Chrome or Chromium not found fm-test-run: gate skip: tests/fm-bearings-board-layout.test.sh: Chrome or Chromium not found Runner exited 0 and recorded gate_skip=true.

FM_TEST_BEGIN 2026-09-15T08:02:10Z tests/fm-bearings-board-layout.test.sh family=snapshot-bearings expected_gate_skip=optional-binary
skip: Chrome or Chromium not found
fm-test-run: gate skip: tests/fm-bearings-board-layout.test.sh: Chrome or Chromium not found
FM_TEST_END 2026-09-15T08:02:10Z tests/fm-bearings-board-layout.test.sh exit=0 duration_ms=222 gate_skip=true
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=1 duration_ms=345
FM_TEST_SUMMARY_FAMILY family=snapshot-bearings count=1 duration_ms=222 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-bearings-board-layout.test.sh duration_ms=222
fm-test-run: wrote timing artifact: ~/.no-mistakes/evidence/01M2J0R8DH0RSQP7P5KYP5P1D5/layout-capability.json

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 9 of 10 scenarios driven live against the product
Scenario Result Live Evidence
Read long board rows: titles occupy three lines and secondary text two, while underway status remains visible. ✅ pass live Desktop board; 620px board; Live board measurements
Browse merge cards: the badge shows only the risk level, justification appears in the body, and trimmed low/faible levels use the neutral tone. ✅ pass live Live board measurements; Original failures reproduced on base
Supply unknown, substring-like, blank, bare, and multi-period risk values: warnings remain cautious and empty badges or context rows are omitted. ✅ pass live Live board measurements
View unbroken titles, risk levels, and justifications at 1440px, 620px, and 390px: changed text stays contained and justification remains visible under print media. ✅ pass live Unbroken risk level stays inside its card; Unbroken justification at 390px; Live board measurements
Build merge cards with missing, null, or empty risk: the builder refuses and preserves the previous board byte for byte. ✅ pass live Invalid risk refusals
Change or delete the real board asset: the selector chooses its consumer family without selecting its own fixture suite. ✅ pass live Live selector transcript
Change an unread asset or retire its only consumer: selection refuses with exit 2; deleting an unread asset selects nothing. ✅ pass live Live selector transcript
Change the shared Git helper: readers matching the second OR needle remain selected; the function also satisfies the explicit unchanged-byte contract. ✅ pass live Live selector transcript
Run the optional layout lane without recognized Chrome: the real runner records an explicit capability skip without failing the lane. ✅ pass live Optional browser capability skip
Publish the superseding PR description explaining the rebuild on trunk, while leaving PR 3173 untouched. ⏸️ untested no PR publication belongs exclusively to the outer executor. Its PR phase must verify the required description and preserve PR 3173; this test phase performed no GitHub mutations.
  • TMPDIR="$PWD/.test-phase/tmp" bash tests/fm-test-run.test.sh
  • TMPDIR="$PWD/.test-phase/tmp" bash tests/fm-bearings-board-render.test.sh
  • bash tests/fm-bearings-board-layout.test.sh with isolated TMPDIR, then with FM_CHROME_BIN pointing to Brave; both capability-skipped.
  • bin/fm-test-run.sh --json <evidence>/layout-capability.json tests/fm-bearings-board-layout.test.sh
  • python3 .test-phase/build-live.py: actual board build with isolated FM_HOME and real Lavish server.
  • node .test-phase/drive-board.mjs: real Brave CDP rendering, deck navigation, ten risk inputs, three viewport widths, screenshots, touch emulation, and print-media visibility.
  • node .test-phase/compare-base.mjs: reproduced original rendering failures and compared the 390px heading overflow against base.
  • python3 .test-phase/selector-live.py: real selector over copied target test sources, including changed/deleted assets, unmapped refusal, second-needle selection, and explicit byte equality.
  • Ran the base selector against the changed real asset; reproduced exit-2 mapping refusal.
  • Built missing/null/empty-risk payloads and verified refusal preserves the existing board.
  • Inspected screenshots, stopped isolated services, removed transient test directories, and confirmed a clean worktree at the target commit.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Every Underway, Landed and Charted row clamped its title and secondary line to
a single line with an ellipsis, so a row read as a truncated fragment and said
nothing about the work it named. A merge call's risk pin rendered the whole
risk value, so a level followed by a sentence of justification pushed the pin
past its card, and the raw value was compared against the English "low" alone,
leaving a French level wearing the alert tone.

Give the title three lines and the secondary line two. overflow-wrap keeps an
unbreakable URL or id from setting a min-content width that the .bb-row__main
min-width:0 shrink cannot absorb, and overflow hidden keeps whatever passes the
clamp off the page's own horizontal axis.

Split the risk value at its first period: the level stays on the pin and the
justification moves into the card body, where it stays available on touch and
in print instead of hiding behind hover. Recognise "low" and "faible", trimmed
and case-insensitively, so an unrecognised level still errs toward alert rather
than calm. A whitespace-only level renders no pin at all rather than a bare
alert-coloured badge, and both parts wrap inside the card even when the text is
one unbroken token.

Document the resulting value contract in the builder header, which owns the
payload the template renders.

Refs kunchenguid#3173
…heir suites

Pin the risk value's split, its tone in either language, and its blank and
bare-level handling through the render harness. Add a browser layout regression
that builds a board whose row text, risk level and risk justification are all
far too long, then measures the result in a real headless browser at desktop
and narrow widths: rows wrap to their clamp, the pin stays inside its card, the
justification wraps rather than escaping, and the document never gains a
horizontal axis. It skips when no usable browser is present rather than failing
the lane.

The render harness now reports the Captain's Call cards beside the rows it
already reported, so what a risk value renders as is asserted through the real
template rather than by reading its source.

The new layout suite is browser-level, so register it in the snapshot-bearings
family beside the other bearings snapshot work.

That suite reads tests/assets/board-render-harness.mjs, and a changed
tests/assets/ file previously fell through to the tests/* catch-all and aborted
the run as unmapped. Add a tests/assets/* arm above that catch-all which
resolves consumers with the existing reference scan, so an asset selects the
suites that read it, a retired asset its consumer still names still selects
that consumer, and an asset no suite names still refuses loudly.

families_for_test_reference keeps its every-argument-is-a-needle convention
unchanged. The selector's own fixtures name synthetic assets rather than a real
one, because that scan reads test sources: a real name embedded there would
make this suite answer for the asset itself and hide the unmapped fallback
behind its own family.

Refs kunchenguid#3173
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