Skip to content

fix(bearings): restore the charted-row disclosure and green the shared CI line - #5

Merged
talktejas merged 9 commits into
mainfrom
fm/fm-main-ci-red
Sep 17, 2026
Merged

talktejas merged 9 commits into
mainfrom
fm/fm-main-ci-red

Conversation

@talktejas

@talktejas talktejas commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

What Changed

  • Charted Next rows render as native <details>/<summary> disclosures again, with .bb-row--chart { display: block } so the opened body lays out correctly; the render harness now looks through the summary for the pick, main content and badges, and reports filter-bar, deck, dispatch and per-section (underway/landed/charted) state, plus optional replayed click/set actions.
  • CI's snapshot/fleet-view test-count assertion moves from 18 to 20, fm-test-run.sh gains weight hints for 27 previously unhinted portable serial scripts, and fm-spawn-base-branch.test.sh builds its spawn flags in a real array instead of unquoted command substitution.
  • Docs record the hint provenance (the 27 new hints are locally measured estimates, so serial_unhinted=0 does not mean "CI-proven"), the per-script growth ratios recomputed from the hint table, and the away-posture absoluteness of the merge-poll stale bound.

Risk Assessment

✅ Low: The change is a CI-count correction, 27 balance hints that leave all five serial shards within 11 ms of each other under a 20-minute cap, a one-line CSS fix, restored render tests that I traced through the real template, and doc prose whose every numeric claim reproduces exactly from the source it cites.

Testing

I stood the bearings board up the way a captain sees it - built by the real fm-bearings-board.sh build, served over HTTP, driven in Chrome - and captured before/after screenshots of an opened Charted Next row: without the change the detail panel renders beside a shrunken, truncated summary; with it the panel renders full-width below the summary and the WAITING badge right-aligns again, while clicking the pick checkbox still selects for dispatch without toggling the disclosure. The restored render tests pass and are not vacuous: flipping the shipped chartedOrder comparator makes the newest-filed-first test fail. The CI pin change was validated by running the real snapshot suite (exactly 20 ok-lines) and replaying the workflow's own count gate, plus a semantic YAML parse confirming the literal lives in the right job. The 27 new serial hints were validated through the runner itself - --check-coverage reports a complete, disjoint 5-shard cover with serial_unhinted=0, and deleting a single hint flips that to 1 - and every growth ratio in the refreshed doc reproduces exactly from the hint table it points at. The spawn base-branch suite, including the scout path whose flag construction was rewritten, passes end to end. One check could not run here: tests/fm-test-run.test.sh's final CI-workflow test requires ruby, which this host does not have; everything before it in that file passed.

  • Live validation: ✅ go - 9 of 10 scenarios driven live against the product
Scenario Result Live Evidence
A captain clicks a Charted Next row and the full title, reason, repo and detail appear below the summary as a disclosure panel ✅ pass live Chrome via chrome-devtools-axi on the built board: row is DETAILS, computed display block, summary y=215/h=59 and .bb-row__full y=275 at the same x and width; screenshot charted-row-open-after-fix.png
Adversarial: the same board without the display:block declaration reproduces the sibling-flex defect ✅ pass live Identical built board with only .bb-row--chart { display: block; ... } reverted: detail panel renders to the right of a shrunken, truncated summary; screenshot charted-row-open-before-fix.png
Picking a charted row for dispatch still works inside the new disclosure row ✅ pass live Real click on the pick checkbox: {rowOpen:false, checked:true, dispatchText:"1 picked for dispatch", btnDisabled:false}
The four restored render tests pass against a board built by the real builder ✅ pass live bash tests/fm-bearings-board-render.test.sh - 29 ok including the underway-title, identifier-label, newest-filed-first and undated-order tests
Adversarial: restored ordering coverage actually fails when chartedOrder is broken ✅ pass live Flipped the comparator at board-template.html:519 -> not ok - charted next was not ordered newest filed first with rows rendered June/July/August; template restored
The CI snapshot-count gate matches what the snapshot suite really emits ✅ pass live /bin/bash tests/fm-fleet-snapshot-view.test.sh emits 20 ok - lines, 0 not ok; replayed gate passes; YAML parse shows the macos-stock-bash step expecting 20
The runner's coverage guard is satisfied by real hints, not by a loosened check ✅ pass live bin/fm-test-run.sh --check-coverage -> serial_unhinted=0 over 176 scripts in 5 disjoint shards; deleting one of the 27 new hints flips it to serial_unhinted=1
A reader following the doc's pointer can reproduce every growth ratio from the named source ✅ pass live Recomputed hints/proof for all 24 candidates: 17.7x, 16.8x, 14.4x, 8.4x, 4.4x above fourfold, remainder max 2.3x, 8 shrank - matches the paragraph exactly
Spawning a scout still starts from the project's recorded base branch after the flag-array rewrite ✅ pass live bash tests/fm-spawn-base-branch.test.sh - all pass including a scout also starts from the project&#39;s recorded base branch (exit 0)
The runner suite's CI-workflow YAML test ⏸️ untested no ruby is not installed on this host and installing system packages is outside the worktree boundary; install ruby (e.g. apt-get install ruby) and re-run to drive it. Covered here instead by a python ya…

Charted Next row opened after the fix - detail panel below the summary

Evidence: Replayed CI snapshot-count gate

Source: Replayed CI snapshot-count gate

CI gate (snapshot_expected=20): PASS, got 20

CI gate (snapshot_expected=20): PASS, got 20
Evidence: Portable shard coverage with the 27 new serial hints

Source: Portable shard coverage with the 27 new serial hints

portable-serial-1of5: 35 scripts ... 5of5: 35 scripts FM_TEST_COVERAGE ok total=216 parallel=24 parallel_unhinted=0 serial=176 serial_shards=5 serial_unhinted=0 herdr=16

portable-serial-1of5: 35 scripts
portable-serial-2of5: 36 scripts
portable-serial-3of5: 35 scripts
portable-serial-4of5: 35 scripts
portable-serial-5of5: 35 scripts
shard 1 head: tests/fm-lint.test.sh
FM_TEST_COVERAGE ok total=216 parallel=24 parallel_max_ms=417163 parallel_imbalance_ms=2894 parallel_unhinted=0 serial=176 serial_shards=5 serial_unhinted=0 herdr=16
Evidence: Growth ratios recomputed from the authoritative hint table

Source: Growth ratios recomputed from the authoritative hint table

hints matched to proof: 24 of 24 parallel candidates 17.7x tests/fm-pr-merge.test.sh hint=111145ms proof=6290ms 16.8x tests/fm-lint.test.sh 14.4x tests/fm-pi-primary-types.test.sh 8.4x tests/fm-captain-hold-lifecycle.test.sh 4.4x tests/fm-test-run.test.sh candidates above 4x: 5 | largest of the remainder: 2.3x | shrank: 8

hints matched to proof: 24 of 24 parallel candidates
   17.7x tests/fm-pr-merge.test.sh hint=111145ms proof=6290ms
   16.8x tests/fm-lint.test.sh hint=164262ms proof=9766ms
   14.4x tests/fm-pi-primary-types.test.sh hint=8624ms proof=598ms
    8.4x tests/fm-captain-hold-lifecycle.test.sh hint=296481ms proof=35095ms
    4.4x tests/fm-test-run.test.sh hint=92944ms proof=20922ms
    2.3x tests/fm-spawn-batch.test.sh hint=2265ms proof=975ms
candidates above 4x: 5
largest of the remainder: 2.3x
candidates that shrank (<1x): 8

Pipeline

Updates from git push no-mistakes

⏭️ **intent** - skipped

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 1 info
  • ⚠️ tests/fm-bearings-board-render.test.sh:595 - This branch deletes four tests that pass on origin/main and are not replaced: test_an_underway_row_leads_with_the_task_name_and_keeps_its_run_status, test_an_underway_identifier_label_is_not_replaced_by_run_status, test_charted_next_reads_newest_filed_first, and test_charted_rows_without_a_filed_date_follow_the_dated_rows_in_payload_order (1eb0598:tests/fm-bearings-board-render.test.sh:182-248), together with the harness's top-level underway export (tests/assets/board-render-harness.mjs, former rowsOf/uw block). The behavior they covered still ships: chartedOrder() at .agents/skills/bearings/assets/board-template.html:514 still sorts Charted Next newest-filed-first and appends undated rows in payload order, and underway rows still render title/sub. Concrete regression now undetectable: flipping the comparator in chartedOrder (a.filed < b.filed ? -1 : 1) renders oldest-first and the whole suite still passes - grep confirms no remaining assertion mentions filed or an underway row title (only .sections.underway[].repo/hidden are asserted). The branch's harness rewrite is what made the old assertions unrunnable, so the smallest honest remedy is to re-express the four tests against the new sections/charted export rather than to leave the coverage out; either way it is a deliberate scope call about deleted tests, so it needs your decision.
  • ⚠️ bin/fm-test-run.sh:815 - The 27 new portable_serial_weight_hints were, per the commit message, "measured each locally", but docs/fm-test-portable-shards.md:8 states "Balance hints come from serial runs of the real lanes on ubuntu-latest" and line 10 warns "Local timings are not interchangeable with CI timings: platform and machine load can affect each script differently and change their relative weights"; the doc's serial-hint provenance paragraph (which enumerates exactly which CI runs each retained hint came from) was not extended to record this 2026-09-18 local batch. Effect: --check-coverage now reports serial_unhinted=0, so PORTABLE_SERIAL_MAX_UNHINTED_PERCENT - the guard whose whole job is to make stale/unmeasured balance fail loudly - is satisfied by evidence the owning doc says does not establish CI balance, and the next reader cannot tell these 27 rows apart from the CI-derived ones. Balance is not currently at risk (all five shards pack to ~952.5s against a 30-minute cap), which is why this is a warning and not a blocker. The remedy is either re-measuring from green CI serial timing artifacts or amending the provenance section to mark these 27 as local estimates pending a CI refresh - a scope call on measurement policy, not a mechanical correction.
  • ⚠️ docs/fm-test-portable-shards.md:30 - The new "Growth since the 2026-08-20 proof" table introduces a second set of per-script durations for the 24 parallel candidates, a concept bin/fm-test-run.sh's portable_parallel_weight_hints already defines once, and the two disagree without saying why: fm-pr-merge 75351 here vs hint 111145, fm-test-run 87956 vs 92944, fm-x-mode 26335 vs 31870, fm-captain-hold-lifecycle 283819 vs 296481. The table names no run id for its "2026-09-17 duration_ms" column, so a reader refreshing hints cannot tell which number is authoritative, and the doc elsewhere insists the runner's --check-coverage is "the current account ... rather than a copied table". Nothing in the intent (green the shared CI line, bound repeat stale alarms) requires this table; the narrower form that keeps its point is the one prose sentence naming the two worst growers and the separate filed work item, without the 24-row duplicate column. Recommend removing the table rather than annotating it.

🔧 Fix applied.
1 info still open:

  • ℹ️ docs/fm-test-portable-shards.md:33 - The rewritten "Growth since the 2026-08-20 proof" paragraph keeps the growth ratios but drops the duration column they were computed from, and then tells the reader "The per-script durations themselves live once, in portable_parallel_weight_hints ... read them there rather than from a copied table." The ratios are not reproducible from that source: the prose says tests/fm-pr-merge.test.sh 12.0x (from the deleted 6290 -> 75351 column) but the hint is 111145 ms, i.e. 17.7x against the same 2026-08-20 baseline; tests/fm-captain-hold-lifecycle.test.sh 8.1x vs 296481/35095 = 8.4x; tests/fm-test-run.test.sh 4.2x vs 92944/20922 = 4.4x. Only fm-lint (164262 vs 164477) lines up. Concrete sequence: a reader following the doc's own pointer opens portable_parallel_weight_hints to check the pr-merge claim, computes 17.7x, and cannot tell whether the doc, the hint, or their own arithmetic is wrong - which is the same ambiguity the removed table caused, in reduced form. The discrepancy is explicable (the hints deliberately retain the slowest of several CI runs, while the ratios came from one 2026-09-17 measurement set) but the doc never says so. Smallest honest remedy is one clause naming the ratios' measurement basis and why it reads lower than the retained slowest-run hints; alternatively recompute the four ratios from the hints so the named authoritative source reproduces them. Flagged as ask-user because which of those two the doc should assert is a call about what the author measured, not a mechanical correction.

🔧 Fix applied.
1 info still open:

  • ℹ️ tests/assets/board-render-harness.mjs:324 - Noting a deliberate deviation, not requesting a change. The prior decision asked to restore the harness's top-level underway export along with the four tests; the fix round instead re-expressed the four tests against sections.underway.rows and extended sectionState with title/sub/badges. Coverage is equivalent and verified: the restored tests assert title, sub and badge text and fail if chartedOrder's comparator or the underway title/sub composition regresses. Re-adding a second top-level export of the same rows would duplicate sections.underway for no added coverage, so the deviation reads as the better call.
✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 9 of 10 scenarios driven live against the product
Scenario Result Live Evidence
A captain clicks a Charted Next row and the full title, reason, repo and detail appear below the summary as a disclosure panel ✅ pass live Chrome via chrome-devtools-axi on the built board: row is DETAILS, computed display block, summary y=215/h=59 and .bb-row__full y=275 at the same x and width; screenshot charted-row-open-after-fix.png
Adversarial: the same board without the display:block declaration reproduces the sibling-flex defect ✅ pass live Identical built board with only .bb-row--chart { display: block; ... } reverted: detail panel renders to the right of a shrunken, truncated summary; screenshot charted-row-open-before-fix.png
Picking a charted row for dispatch still works inside the new disclosure row ✅ pass live Real click on the pick checkbox: {rowOpen:false, checked:true, dispatchText:"1 picked for dispatch", btnDisabled:false}
The four restored render tests pass against a board built by the real builder ✅ pass live bash tests/fm-bearings-board-render.test.sh - 29 ok including the underway-title, identifier-label, newest-filed-first and undated-order tests
Adversarial: restored ordering coverage actually fails when chartedOrder is broken ✅ pass live Flipped the comparator at board-template.html:519 -> not ok - charted next was not ordered newest filed first with rows rendered June/July/August; template restored
The CI snapshot-count gate matches what the snapshot suite really emits ✅ pass live /bin/bash tests/fm-fleet-snapshot-view.test.sh emits 20 ok - lines, 0 not ok; replayed gate passes; YAML parse shows the macos-stock-bash step expecting 20
The runner's coverage guard is satisfied by real hints, not by a loosened check ✅ pass live bin/fm-test-run.sh --check-coverage -> serial_unhinted=0 over 176 scripts in 5 disjoint shards; deleting one of the 27 new hints flips it to serial_unhinted=1
A reader following the doc's pointer can reproduce every growth ratio from the named source ✅ pass live Recomputed hints/proof for all 24 candidates: 17.7x, 16.8x, 14.4x, 8.4x, 4.4x above fourfold, remainder max 2.3x, 8 shrank - matches the paragraph exactly
Spawning a scout still starts from the project's recorded base branch after the flag-array rewrite ✅ pass live bash tests/fm-spawn-base-branch.test.sh - all pass including a scout also starts from the project&#39;s recorded base branch (exit 0)
The runner suite's CI-workflow YAML test ⏸️ untested no ruby is not installed on this host and installing system packages is outside the worktree boundary; install ruby (e.g. apt-get install ruby) and re-run to drive it. Covered here instead by a python ya…
  • chrome-devtools-axi open + click + screenshot against a board built by bin/fm-bearings-board.sh build (fixed template)
  • same flow against a copy with only display: block removed from .bb-row--chart (pre-fix contrast)
  • chrome-devtools-axi eval reading row.open / pick.checked / #bb-dispatch-count after clicking a charted row's pick checkbox
  • bash tests/fm-bearings-board-render.test.sh (29 ok, includes the 4 restored tests)
  • mutation: flipped the chartedOrder comparator in .agents/skills/bearings/assets/board-template.html, re-ran the render suite (expected failure observed), restored the file
  • /bin/bash tests/fm-fleet-snapshot-view.test.sh plus the CI step's own grep -c &#39;^ok - &#39; gate with the new literal 20
  • python3 -c &#34;yaml.safe_load(&#39;.github/workflows/ci.yml&#39;)&#34; semantic parse of the macos-stock-bash step's expected count
  • bin/fm-test-run.sh --check-coverage and --list --lane portable-serial-{1..5}of5
  • adversarial: deleted one of the 27 new serial hints and re-ran --check-coverage (serial_unhinted 0 -> 1), restored the file
  • recomputed all growth ratios from portable_parallel_weight_hints and docs/fm-test-isolation-proof.json
  • bash tests/fm-spawn-base-branch.test.sh
  • bash tests/fm-test-run.test.sh
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@talktejas talktejas changed the title fix: green the shared CI line and bound repeat stale alarms for delivered work fix(bin): green the shared CI line and bound repeat stale alarms for delivered work Sep 17, 2026
An object-construction value in jq is a restricted expression, so the list
concatenation building captains_call has to be parenthesised as a whole. jq
1.8 accepts it bare, which is why it passes locally, but the jq CI runs on
rejects the whole program with three compile errors and the suite fails with
"the board did not build".

Behavior portable serial 4 has failed this way on main since 2026-09-10, from
the same fm/fm-board-filter merge that left the snapshot test-count pin behind.
The fixture's data is unchanged; all 25 tests in the suite pass.
Three checks on the shared line were red for reasons unrelated to
work landing on it:

- tests/fm-spawn-base-branch.test.sh: SC2034 (genuinely unused
  modeflags var, removed) and SC2046 (relied on unquoted word
  splitting to build spawn flags; build an array instead).
- .github/workflows/ci.yml: the stock-macOS-Bash job pinned a
  hardcoded snapshot test count of 18 while the suite now emits 20
  ok lines; derive the expected count from the test file's own
  invocation list instead of re-pinning a number that will drift
  again.
- tests/fm-bearings-board-render.test.sh: a real defect, not a
  stale assertion. The filter fixture built captains_call by
  concatenating lists as the bare value of an object-construction
  key, which is a restricted expression in jq's grammar. jq 1.8
  tolerates it unparenthesized; the CI runner's jq does not and
  rejected the whole program ("the board did not build"). Not
  reproducible locally for that reason. Parenthesizing the
  concatenation fixes it for both.
Rebasing this branch onto main auto-merged the charted-row renderer to
main's version, which had independently dropped the <details>/<summary>
disclosure (var chRows, var summary) while adding newest-filed-first
ordering, leaving chRows and summary referenced but undeclared - the
exact ReferenceError this branch's earlier review round had fixed.
Restore the disclosure structure on top of chartedOrder(), restore the
full checked/hidden/pickable harness extraction that the rebase also
lost, and give multi_repo_payload's underway fixtures a name so they
satisfy main's newer underway_item schema check.
Main had grown the portable serial lane to 176 scripts with 27 carrying
no duration hint, past the coverage guard's 15% unhinted ceiling and
failing the required test-coverage check on its own, independent of
this branch's three named findings. Measured each locally and added it
to portable_serial_weight_hints so the guard passes again.
@talktejas talktejas changed the title fix(bin): green the shared CI line and bound repeat stale alarms for delivered work fix(bearings): restore the charted-row disclosure and green the shared CI line Sep 17, 2026
@talktejas
talktejas merged commit 203959a into main Sep 17, 2026
15 checks passed
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