Repository navigation
fix(bearings): restore the charted-row disclosure and green the shared CI line - #5
Merged
Merged
Conversation
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
force-pushed
the
fm/fm-main-ci-red
branch
from
September 17, 2026 18:30
b3b4abe to
9e2e80d
Compare
…ance, drop duplicate table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
<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.fm-test-run.shgains weight hints for 27 previously unhinted portable serial scripts, andfm-spawn-base-branch.test.shbuilds its spawn flags in a real array instead of unquoted command substitution.serial_unhinted=0does 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 shippedchartedOrdercomparator 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-coveragereports a complete, disjoint 5-shard cover withserial_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..bb-row--chart { display: block; ... }reverted: detail panel renders to the right of a shrunken, truncated summary; screenshot charted-row-open-before-fix.pngbash tests/fm-bearings-board-render.test.sh- 29 ok including the underway-title, identifier-label, newest-filed-first and undated-order testsnot ok - charted next was not ordered newest filed firstwith rows rendered June/July/August; template restored/bin/bash tests/fm-fleet-snapshot-view.test.shemits 20ok -lines, 0not ok; replayed gate passes; YAML parse shows the macos-stock-bash step expecting 20bin/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=1bash tests/fm-spawn-base-branch.test.sh- all pass includinga scout also starts from the project's recorded base branch(exit 0)Evidence: Replayed CI snapshot-count gate
Source: Replayed CI snapshot-count gate
CI gate (snapshot_expected=20): PASS, got 20Evidence: 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=16Evidence: 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: 8Pipeline
Updates from git push no-mistakes
⏭️ **intent** - skipped
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
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-levelunderwayexport (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 mentionsfiledor 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 saystests/fm-pr-merge.test.sh12.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.sh8.1x vs 296481/35095 = 8.4x;tests/fm-test-run.test.sh4.2x vs 92944/20922 = 4.4x. Only fm-lint (164262 vs 164477) lines up. Concrete sequence: a reader following the doc's own pointer opensportable_parallel_weight_hintsto 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-levelunderwayexport along with the four tests; the fix round instead re-expressed the four tests againstsections.underway.rowsand extendedsectionStatewith title/sub/badges. Coverage is equivalent and verified: the restored tests assert title, sub and badge text and fail ifchartedOrder's comparator or the underway title/sub composition regresses. Re-adding a second top-level export of the same rows would duplicatesections.underwayfor no added coverage, so the deviation reads as the better call.✅ **Test** - passed
✅ No issues found.
.bb-row--chart { display: block; ... }reverted: detail panel renders to the right of a shrunken, truncated summary; screenshot charted-row-open-before-fix.pngbash tests/fm-bearings-board-render.test.sh- 29 ok including the underway-title, identifier-label, newest-filed-first and undated-order testsnot ok - charted next was not ordered newest filed firstwith rows rendered June/July/August; template restored/bin/bash tests/fm-fleet-snapshot-view.test.shemits 20ok -lines, 0not ok; replayed gate passes; YAML parse shows the macos-stock-bash step expecting 20bin/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=1bash tests/fm-spawn-base-branch.test.sh- all pass includinga scout also starts from the project's recorded base branch(exit 0)chrome-devtools-axi open+click+screenshotagainst a board built bybin/fm-bearings-board.sh build(fixed template)same flow against a copy with onlydisplay: blockremoved from.bb-row--chart(pre-fix contrast)chrome-devtools-axi evalreading row.open / pick.checked / #bb-dispatch-count after clicking a charted row's pick checkboxbash tests/fm-bearings-board-render.test.sh(29 ok, includes the 4 restored tests)mutation: flipped thechartedOrdercomparator 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.shplus the CI step's owngrep -c '^ok - 'gate with the new literal 20python3 -c "yaml.safe_load('.github/workflows/ci.yml')"semantic parse of the macos-stock-bash step's expected countbin/fm-test-run.sh --check-coverageand--list --lane portable-serial-{1..5}of5adversarial: deleted one of the 27 new serial hints and re-ran--check-coverage(serial_unhinted 0 -> 1), restored the filerecomputed all growth ratios fromportable_parallel_weight_hintsanddocs/fm-test-isolation-proof.jsonbash tests/fm-spawn-base-branch.test.shbash tests/fm-test-run.test.sh✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.