docs/spec/dashboard/verifying-a-change.md
Verifying a change
Section titled “Verifying a change”-
./scripts/lint-shell.shclean — shellcheck over every shell script in the repository, not just this component’s..github/workflows/shellcheck.ymlruns the same script on every pull request, so this is a gate rather than a good intention: it used to be neither, and four findings accumulated here unnoticed (pipeline spec, acceptance check 1g). -
test/dashboard-exposure.test.shpasses: the page is reachable on the host’s loopback and on no network, in each of the ways the two compose profiles arrange that.dashboard-localpublishes every port scoped to127.0.0.1(DASHBOARD_PORTmoving the host side alone) and carries nonetwork_mode, while its server binds0.0.0.0on the container port the mapping names — the two halves fail in opposite directions, one to a page on every interface and one to a page that answers nothing. Thetailnetdashboardpublishes no port, keeps the sidecar’s namespace and takes the default bind, so Serve reaches it and nothing else does. The only other service that publishes anything is the node-health HTTP surface (node-health,docs/spec/implementation/requirementsrequirement 60d), guarded the same way and for the same two reasons — one loopback-scoped mapping, nonetwork_mode,0.0.0.0inside the container — and every mapping either publisher declares is127.0.0.1-scoped. A bareserve-dashboard.shstill resolves to127.0.0.1. -
test/version.test.shpasses: a stamped image reports its build, an empty stamp (what a localdocker buildproduces) falls through to git, a checkout reportsHEADand flags uncommitted work, neither source reportsnullrather than a half-filled guess, and the(#N)parser takes a squash-merge marker without taking a mid-subject issue reference for one. And none of the states that make a read fail — a repository with no commits, a clone with noorigin, a stamp truncated mid-write — aborts aset -ecaller, becausescripts/state-sync.shis one and a node that stops pushing is a node the fleet loses sight of. -
test/union-stream.test.shpasses: every reader that folds the fleet union from a stream reads only the event types it declares — the Publisher’s own programs between their# union-reader:markers againstunion_reader_events, each library fold’s<NAME>_JQagainst its<NAME>_EVENTS, the usage-limit foldLIMIT_UNION_JQamong them — and the checker itself catches a planted undeclared read;union_events, the tolerant raw-line event stream every such reader shares, keeps the named events’ objects past every line that is not one (a bare number or string, a spliced line, a record whoseeventis not a string), andunion_event_inanswers false rather than nothing for a non-stringevent;union_streamkeeps the declared events in log order and closes with the span under both timestamp rules and the SINCE gate, aborts on a record that is not an object without writing its span line (and drops it under--objects); andunion_partitionwrites one file per reader, delivers an event two readers declare to both, and leaves no file behind when its pass fails. -
test/publish-dashboard.test.shpasses: the launcher exits 0 on a healthy (shortened) window and while another publish holds the lock; it leaveslog.jsonluntouched whilelock.jsonnames a live pid in this container, repairingreview-log.jsonlin the same window, and repairslog.jsonlonce that pid has gone; a cold window fetches from GitHub exactly once, a window following a fresh fetch not at all, and an aged stamp is refetched on the next tick; the refresh’s due age follows its cost — withLAUNCHER_GITHUB_MAX_AGE=0and a 3s refresh at 1:9, a 15s window started inside the 27s it is due after makes no GitHub call and at least one local tick, the stamp aged past it is refetched, thegithub: refreshingline states the due age it was gated on, andLAUNCHER_PACE_CAPcaps that age, and a refresh persists no backoff of its own; a 2s local tick at 1:9 persists the instant its 18s backoff ends as.dashboard-tick-cost’s third field, a window started at once inside it runs no tick and logspacing: window idle, and a later window with room logspacing: idle untiland starts its tick no sooner than 18s after that tick ended, by the stub’s own clock;LAUNCHER_PACE_CAP=10in a 12s window persists an instant past the tick’s end, but no more than the cap, plus the rounding to a whole second and the tick’s own exit latency, past it; and a third field further ahead than the cap allows reads as nothing owed, so the window runs its tick; the batched cost scan matches the per-file semantics (day cut-off, torn-file tolerance, each row’s own instant carried through asts—nullfor a directory name that doesn’t parse as one, which still counts toward the totals but drops out ofrecent_costsrather than guessing) and the whole publish stays within its process budget on a long history; a stage whose envelope parses but whoseresultis empty or whitespace-only still renders its cycle, with that stage’s statusnull, while a stage whose envelope itself does not parse (a torn, mid-write file) still drops the whole cycle, exactly as before (TD26072802); the streamed union readers (agent-ops#1649) keep what their whole-array forms computed in the cases a small fixture never reaches — a log tail past the trim threshold is the newestMAX_LOG_TAILrows newest first, ties by log position; the per-cycle summary and the node-latest pass take the later of two records at onets; a line in the log that is not an object never reaches the readers, sincefleet_logsdrops it before its sort, so the detail render stays whole, the cycle beside it renders from its own events, the scorecards keep their window, and the line is counted inlog_repair.dropped_log_lines; a node-latest pass that produces nothing is reported and replaced by the empty map; and an empty item-lifecycle result falls back to the empty record set; and every node in a synthetic fleet answers for itself — a peer mid-cycle reports its own running stage, repo, source and item from its published log, a peer whose cycle ended reports idle and when, a node that has never run reportslive: null, and our own row comes from the lock rather than the newestcycle-start(a tick that started, found the lock held and ended must not masquerade as what this node is doing). With the fleet’s newest cycle unfinished,status.last_cycleskips past it to the newest that loggedcycle-end, so the field the headers date it by is never null. The cost scan attributes each transcript to the actor that wrote it, names a review’s as the Project Reviewer rather than a second cycle Reviewer, and leaves the actors summing to the total. The batched cost scan’s per-model entries (issue #594, D21) each carry that model’s owntokens_input/tokens_output/tokens_cache_creation/tokens_cache_read, summed from a canned envelope’smodelUsagemap the same way itscostUSDalready is, with amodelUsageentry that is not an object skipped exactly as the existingcostUSDhandling skips it; theunknown-model fallback carries all four asnull, never0.counts.by_lane[]/cost_rows[].lane(issue #2239, D30) read a transcript’s ownapiKeySourceoff its sibling<stage>.stream.jsonl, never off the.outenvelope the rest of the cost scan reads —api,subscriptionorunknownfor a missing, pruned or peer-only stream, three rows summing tospend_total_usdexactly asby_day/by_model/by_actoralready do.counts.stage_gapsfolds a synthetic event set ofstage-end/review-stage-endrecords into its per-stageruns/median_of_run_p50/worst_run_p95/worst_run_max: astage-endwithgaps: nullis excluded fromrunsrather than counted as a silent one, areview-stage-end(which carries no.stage) rolls up under the literalproject-reviewerrather than colliding with the implementation pipeline’s ownreviewerstage, andwindow_from/window_toreflect the full synthetic set’s own timestamps, notCOST_SCAN_DAYS. Each node’s version comes from its own heartbeat, and a peer publishing none reads as unknown rather than inheriting ours; the compose-drift and image-drift verdicts ride the same rule — a peer’s from its heartbeat, a peer publishing none as null, never locally computed, and our own row answering for itself. And the pull-request index — driven throughDASHBOARD_GH_CMD, so a GitHub tick costs no API call — resolves every reference the page holds including the version a node runs (which no open-PR query names), reads each pull request at most once, re-reads none of them on the following tick, carries forward across a--no-githubtick, and bounds a cold fill to a few references rather than one burst. Two hand-appendedcycle: "manual"records a fortnight apart raise no row in Recent cycles, take none of theMAX_CYCLESbudget, and leave the real cycle at the top — while both events stay in the log tail. With more no-op ticks in the log thanMAX_CYCLES— newer than the real work, as the*/15cadence produces — no stand-down or lock-held skip shape raises a row, the substantive cycles still fill the detail list, andnoop_tickscounts every one of them, split by kind, carrying the newest tick’s timestamp; a stand-down that also logged aclaim-lost(issue #245’s raced shape) keeps its row and stays out of the count, and so does one whosecycle-endnever came. A union carrying events that belong to no cycle — one stampedcycle: null, aspublish-revert-rate.shwrites itsreworkrows, and one with nocyclefield at all (log-repaired) — leaves the window whole: the real cycle renders with its stages and its own events,cycle_render.okis true, and the log tail excludes the cycle-lessreworkrow on its event type the same as any other (spec 33/47, TD-PPagop-26082920) — acycle: nullrow is not exempt from that exclusion — so only the cycle-lesslog-repairedrow stays in the log tail. Conversely, a detail render that cannot run at all still publishes the rest of the page, but says so on stderr and setscycle_render.okfalse withjq’s reason attached, rather than serving the emptycycles[]as though the fleet had been idle. And withcron.logshort and acron.log.1beside it —scripts/rotate-logs.shhaving just rotated — the cron panel’s tail draws from both, oldest first, rather than going blank for the tick after a rotation. A cycle that lost a claim to a peer’s contention (claim-lost, causeheld) before aselectionthat namesrace_lossesis markedraced: truecarrying that same count, whicheveroutcomeit then reached; one that lost every candidate carriesstanddown_cause—"raced"for contention,"unreachable"when every loss was a GitHub outage instead,"pre-claimed"when nothing was ever attempted because the cycle’s own gather had already seen every candidate claimed (implementation spec 17a’sclaim-skipped), and"untraceable"when every candidate failed the refinement-traceability check and the repair could not rescue one, or the Script’s own compose step could not build a work order at all (implementation spec 17f/17h) — and only a cycle with aheldloss is markedracedat all: a GitHub outage names no peer to contend with, and a pre-claimed skip was never contention in the first place, so neither shape may wear contention’s badge (implementation spec 17a, issue #245). The same is true of the selection-integrity cause: a work order the Script refused to hand on names no peer either. An item that is blocked and void reachesvoid[]and notblocked[](implementation spec 34h, acceptance check 8g), while an ordinary block beside it is still listed — a subtraction that over-reached would empty the panel that says the pipeline is stuck, which looks exactly like a pipeline that is not. Each of the five GitHub sources (TD-PPagop-26080201) is exercised both ways against a stubbedgh: healthy, each of the four state-carrying sources readsanswered, while a healthypr listleavesgithub.oktrue; with one source’s call failing (a rate limit), that source alone readsfailed(or, forpr list, is named ingithub.errordirectly) andgithub.okturns false — while an unrelated repo’s own healthy call for the same source still readsansweredin the same tick, proving the failure is told apart per-repo rather than flipping the state for every repo at once. The actor-scorecards aggregate (issue #610, D22) is asserted from two synthetic logs. The first drives the Co-Ordinator’s ownmeasure— the folded issue #319 corroboration rate — through the same five shapes its predecessor’s test did: a verdict rejected then recovered by the retry that followed it (and whose picked item later lands, proving thepicks_landedjoin), an accepted one over a non-empty eligible set (denominator only), one written before implementation spec 3v recordedcorroborationevents, an empty eligible set (neither term), and a verdict rejected twice that the Script then had to pick for (whose picked item never lands). A cycle counts its verdict once — spec 3v writes both acorroborationand anone-selectedfor the same answer, and counting both would inflate every denominator by exactly the cycles that stood down cleanly — and two models in the same window carry separate rates and separatepicks_landedcounts; aselectionis attributed to the Co-Ordinator model and never to the Implementermodelthe event itself carries; and the picks-landed rate is gated onpicks_statusover its own two picks rather than riding on the corroboration rate’s sample, so a rate the page must not state cannot reach it through the other population. The second log drives the outcome join across the other four actors: an Implementer item killed once (a dedupedstage-rerunrework record attributed to it) then landed on a clean rerun —landed_with_rework, notlanded_unchanged, and cost/ wall-clock summed across both attempts, not just the one that landed it — beside a second, trivial-tier item landed unchanged on a different model, proving the two tiers stratify into separate rows; a Reviewer earning both ahuman-change-requestand apost-merge-reverton one item and apost-merge-revertalone on a second — three escape records over two reviewed items reading as two escaped items, so the count is of items rather than records, and the second item, whose only record is keyed by its pull request’s own number, counts at all only becausepr_urlre-keys it onto the work item; an Enabler’senabler-adjudicateandenabler-decidestage-ends sharing the critical tier though each names a different item, one landed and one voided, with cost-per-landed reading only the landed one’s own spend, plus a third item met by both of those stages that is examined once, not once per stage name feeding the row — the count the row-level item dedup exists for, and the one whose absence would halve cost-per-landed; and a Refiner’s twoitem-refinedevents, one bounced back (refinement-bounce-back) and one landed, read from the refined-item count rather than from the Refiner’s own (itemless) stage-end. A log with no stage-end for any of the five actors still ships the card as a real object,rows: []on each of the five, rather than omitting the key. -
test/dashboard-render.test.shpasses its plain-grepcheck, run withoutnodeand independent of the harness below, that the header’s documentation nav carries all sixblob/main/<path>links (README, the three pipeline specs, the metering schema, the roadmap) verbatim indashboard/index.html. -
test/dashboard-render.test.shpasses:dashboard/index.html‘s own inline script, run unmodified undernodeagainst checked-inDASHBOARD_DATAfixtures and a DOM stub that only builds trees (createElement/createTextNode/appendChild, plus a serialiser — no layout, styling or event dispatch), renders the cells the fixtures name. This is what catches a page that renders the wrong thing rather than merely throwing: a cycle live in the Co-Ordinator stage with nothing selected yet reads “In progress”, never the finished-cycle “Ended”; a cycle with nocycle-endand no node claiming it reads “No clean end” with fleet data and “Not ended” without any; aneeds-refinementblocked row carries its badge and is removed by the hide filter; and the log tail’s Node, Repo and Actor columns answer all three positionally — an actor read fromstage, frombyand fromhandoff, the review pipeline’s named as the Project Reviewer, the clone step and the cycle-level events naming none, and a missing node keeping its own cell rather than letting the repository slide into it. Adisabled/enabledevent’s badge is asserted to carry itsscope(issue #426) —disabled · node,enabled · fleet— and a fleet-scoped one whosefleet_flagis"failed"to appendfleet flag: failedto its Detail cell. A cycle fixture carryingraced: truerenders the↻ racedbadge beside its outcome badge, and no other cycle in that fixture renders it — the marker answers “how did this cycle get its outcome”, not a second outcome of its own (issue #245); it also renders the “recovered race ×N” badge naming the count, while a separate fixture of a cycle that lost every candidate (raced: true,standdown_cause: "raced", outcomestand-down) carries the↻ racedmarker and never that one, having recovered nothing; and a third, of a cycle that skipped every candidate as pre-claimed (raced: false,standdown_cause: "pre-claimed"), renders as an ordinary stood-down row wearing neither race badge — a selection defect contends with nobody. Both race badges further require more than one active peer (issue #829): a fixture whosefleet.nodesnames exactly one node carryingrole: "active"renders neither↻ racednor “recovered race ×N” for a recovered cycle or a lost-every-candidate one, even though both still carryraced: true/race_losses— while a fixture naming two active nodes renders both badges exactly as the fleet-less fixtures above do. A peer whose last-knownroleis"active"but which is itself stale (heartbeat_age_spast the staleness threshold) does not count toward that active-node total either (issue #1005): a fixture naming one genuinely active node and one stale peer with a stalerole: "active"renders neither badge for a recovered cycle, the same as the single-node fixture above — a peer that has gone dark that long could not have contended for the claim any more than one correctly excluded onrolealone. A fixture whosenoop_tickscounts more filtered ticks than the forty slots hold (issue #271) renders its substantive cycles as ordinary rows plus the one summary line — the total, the stood-down/lock-held-skip split and the newest tick’s age — while a fixture with a zero aggregate (and one with nonoop_tickskey at all, adata.jsfrom before the field existed) renders no such line. A fixture carryingnoop_ticks.overlap(11a, agent-ops#1287) alongside a non-zerototalrenders a second line naming the overrun count, and a fixture carryingoverlapwithtotalat0still renders that second line on its own — the old total-gated skip must not swallow it, since a fleet whose every cycle does real work can still lose firings to one running long. The per-reponicebadge is asserted from two fixtures, because both of its silences are load-bearing and neither is visible on the page that has them: a repo at-5carries a blue badge naming×3.17and earlier attention, one at3a grey badge naming×0.5and later, both disclaiming starvation, under a note naming the Script rather than the Co-Ordinator; a repo with no key beside them carries nothing; and a config whose repos are all0or keyless renders no badge and no note anywhere on the page. A node behind an image published longer ago thanimage_behind_grace_hourscarries an image behind badge naming the registry commit, while one whose registry check failed carries image unverified instead (#155). A node carrying a node-scoped disable (switch.disabled) shows a disabled badge beside its role badge, naming the reason and the expiry, while its own enabled self carries no such badge (#379). Two further fixtures separate that from the local record a fleet-wide--disableleaves on the node that issued it (switch.scope: "fleet", implementation spec 2.3): with the fleet flag set, the page raises the fleet banner alone — no second banner for the mirror and no disabled badge on the issuing node, while a peer’s genuine--this-nodedisable beside it still badges; with the flag cleared, the surviving mirror raises this node’s own banner and badge, both naming it as a leftover of a fleet-wide disable since cleared rather than as a node-scoped decision. The merge-autonomy kill switch (D18 issue #576,fleet.flags.merge_autonomy_kill) is asserted from three further fixtures: astate: "disabled",record.kind: "manual"one raises its own banner naming the reason, who set it and the--restore-merge-autonomycommand that clears it, while never claiming every node stands down (the fleet switch’s own wording) or badging any node disabled; arecord.kind: "fail-closed"one still raises the banner but explains the state repo could not be confirmed clear rather than naming an operator, and omits the clear command a cause no command fixes has no business offering; and a fixture carrying nomerge_autonomy_killflag at all — everydata.jsfrom before this field existed — raises no such banner. A cycle whoseselectioncarriedrace_losses(implementation spec 17d, #248) shows a blue recovered race ×N badge beside its title in the cycle history — informational, not a warning, since losing a claim race and then winning a later one is the claims (17a) working as designed — while a cycle with norace_lossesat all shows none. A source markedfailedingithub.inputs[<slug>].state(TD-PPagop-26080201) renders a “couldn’t read” marker in place of its count, and a fixture carrying nostatefield at all — every repo’s data from before this field existed — renders exactly as it always did. The spend-today card’s persisted GMT/local/24h choice (#186) is asserted by seeding the harness’slocalStoragestub rather than simulating the click: with no stored choice the card reads “today (GMT)” againstspend_today_usd, and a stored24hrelabels it “last 24h” and sums only therecent_costsrows within a rolling 24 hours; a storedlocalis asserted for its label only, since which rows fall on the reader’s own calendar date depends on the moment the suite runs. The void list’s two caps are asserted from a twelve-row fixture whose two oldest rows sit first in the data, because the cap is only meaningful once the list is sorted: the heading counts twelve, the ten newest render (the tenth-newest last), neither old row appears until asked for, the see-more control names how many are held back, and every row carries both the height cap and the class that makes it open. A fixture inside the cap renders no control at all. The actor and model scorecards (issue #610, D22) are asserted fromactor-scorecards.json, which carries a populated row for every shape the card renders: all five actors’ cards appear, in D12 order, each headed and each table’s columns named; a Co-Ordinator row whose own base outcome columns read “insufficient evidence” (it never joins to one item) beside ameasurethat clears its own sample and states a real corroboration rate and picks-landed ratio, and a second Co-Ordinator row below the minimum sample on both of that measure’s two independent gates — rendering “insufficient evidence” in place of each rate rather than stating a picks-landed percentage off two picks; an Implementer row splitunchanged/w/ reworkwith its own cost-per-landed and wall-clock-per-landed figures, and a second, trivial-tier row renderedinsufficient evidencebelow the minimum sample; a Reviewer row whose ownmeasurereads as an escape rate, not a corroboration rate; an Enabler row naming thecriticaltier and an unblock-success measure; and a Refiner row whose measure counts bounce-backs against items refined. Afinished.json-shaped fixture predating the aggregate entirely renders the “written by a Publisher that did not record it yet” empty state rather than a clean-looking empty card set it has no data for. The cost section’s blocks (issue #330) render inside one.costgridcontainer in reading order — by-day, by-model, by-actor, then both cost notes — at the same depth as the charts rather than as paragraphs beside the section. Document order is what is asserted because it is what the layout rests on: a multi-column flow fills each column top-to-bottom in document order, so the order of the appends is the order a reader sees, whichever column each block lands in. Out of scope by the same tree-building limit: the pull-request hover card’s pointer/focus behaviour, and which column the browser balances each cost block into — that is layout, and layout is what this stub does not do; it is covered by the manual check below. A fixture with nostatus.stage_healthrenders “No cycle has completed on this node” in the Stage health section and raises no banner (agent-ops #662); one carrying afailingstage raises the red banner naming it, lists that row with its own consecutive-failure count and failure detail alongside anokand anidlerow rendered distinctly, and badges the same node’s own fleet-strip card with its failing-stage count — independent of that card’s running/idle state, which is the property this check exists for: a node whose cycles are completing normally while a stage keeps failing must not read as plain “running” or “idle”. A fixture with nostatus.review_stage_healthrenders the same “no run has completed” empty state in the Review stage health section, separately from Stage health’s own (agent-ops#996); one carrying afailingproject-reviewerraises its own red banner and badges the fleet strip independently ofstage_health’s own failing count — a node whose implementation-pipeline stages are all healthy whileproject-reviewerfails must read as failing too, not masked by the other panel’s own green verdict. -
The back-pressure card agrees with the gate it depicts, in both directions, from two fixtures of its own.
backpressure-claims.json(issue #427) holds a changes-requested PR, a draft, an approved PR waiting on a human, one unraised item claim and onepr-<n>exclusion entry: the gauge reads 3 of 3 and trips red, counting the claim the open-PR listing cannot show it and not the exclusion entry, whose PR is in that listing already.backpressure-claim-scope.json(the over-correction in PR #434) holds seven registry rows against two PRs: the gauge reads 4 of 8 and does not trip, having dropped theenablerandrefinerpseudo-slug tombstones, thepr-<n>entry, and the item claim on the draft already counted — while keeping the item claim on the approved PR, which sits in the human’s queue outside the sum and so is the only record of that work in flight. Both assert thetitletooltip verbatim, because it is the compositionagent-cycle.shlogs and the two are meant to be readable against each other. The live-claims panel below is asserted to still show the pseudo-slug rows in full: the gauge’s narrowing is a statement about the cap, not about what an operator hunting a stuck item may see.backpressure-otherwise-eligible.json(D18 WI-6, issue #946) holds a repository configured atagent-merges-routinewith three ready PRs — an approvedcomplexity:high, an approvedcomplexity:low, and aCHANGES_REQUESTEDcomplexity:high: the gauge reads 2 of 3, counting the latter two toward the cap and putting only the approvedcomplexity:highone in the human-waiting figure — confirming both halves of the rule at once, that the level-aware exclusion is narrowed to an otherwise-eligible pull request rather than every ready one, and that the narrowing itself never reaches aCHANGES_REQUESTEDpull request, which the pipeline owes a change at every level. -
The Token economics and Stall profile panels (issue #594, D21) are each asserted from their own fixture.
token-economics.jsonholds three stage/model rows overcost_rows[]‘s newtokens_*fields — one with a healthy sample and a high cache-read share (reads its ratio and “no action indicated”), one with a healthy sample and a low share (names the lever: the prompt prefix may be varying, consider stabilising it), and one belowTOKEN_MIN_SAMPLE(reads “insufficient evidence” instead of a rate) — plus anunknown-model row carryingtokens_*: nullon every field, asserted absent from both the by-stage and by-model breakdowns entirely rather than folded in as zero.token-economics-dedup.json(issue #1591) holds one model shared by two actors within one cycle and by three actors across two more, asserting the by-model row counts all five as distinct transcripts — clearingTOKEN_MIN_SAMPLEwhere acycle-only dedup would have left it short — while the by-stage rows for those same actors are unaffected.stall-profile.jsonholdscounts.stage_gapsrows exercising all five of that panel’s own Decision branches: a stage whoseworst_run_maxis atSTALL_NEAR_BACKSTOP_RATIOof its known backstop (names the lever and the direction — raise it), one comfortably inside it (“no action indicated”), one below the minimum sample and below that ratio (“insufficient evidence”), one below the minimum sample but at or above that ratio (still names the lever and the direction — the near-backstop read does not wait on a sample, sinceworst_run_maxis exact at any size), and one this page holds no backstop for at all (“no cap on record for this stage”); the panel’s own caption is asserted to state its window separately from the cost charts’ and to label its across-run figures as such rather than as pooled percentiles. -
test/dashboard-refresh.test.shdrives the SPA refresh tick itself (issue #1288), under a second, narrower stub (test/dashboard-refresh-harness.js) that fires the page’s own#refreshbtnclick listener — the one external hook ontotick()— against a scripted, synchronous sequence of simulatedstamp.js/data.jsfetch outcomes; unliketest/dashboard-render.test.shit asserts nothing about the DOM, only which files get fetched. A page load seeded withdata.js’s own embedded fingerprint disagreeing fromstamp.js’s (the two-request race a publish landing between the page’s initial<script src>pair can produce) still fetchesdata.json the first tick rather than reading the disagreement as “unchanged”. Adata.jsfetch that fails leaves the tab’s own comparison fingerprint unmoved, so the very next tick — polled with the same fingerprint the failed fetch never got to apply — retries rather than skipping; only a fetch that actually lands may advance it, confirmed by a further tick then correctly reading that fingerprint as unchanged. -
test/rework-panel.test.shdriveslib/rework-panel.sh’s own fold directly, ontest/item-lifecycle.test.sh‘s own precedent: the three questions computed correctly over one hand-traceable fixture (tokens’/ elapsed time’s rework share against first-pass yield’s literal zero-attributed definition,whose’s attributed/not-attributed split, the escape ladder’s population/caught/escaped/escape_rate at each rung, and the two distinct reasons acost_to_catch_at_nextreadsnull— terminal rung versus genuinely unmeasurable, and a third: a catch whose own cycle this log meters nothing for, dropped from the average rather than counted as a zero-cost sample); dedup, including that two genuinely distinctpost-merge-revertcorrections on the same item (differentevidence.by) both count, that two nodes logging the same repetition count once towardrework_countandwhose, and that the copy kept is the first byts— visible incost_to_catch_at_next’s own average, which reads that same deduped stream, so only the surviving copy’s cycle is charged there rather than every node’s echo of it;how_much‘s own token/elapsed/cost share deliberately reads the stream before that reduction instead, so both nodes’ cycles count as rework spend for the one deduped repetition (the fixture asserts the full 1000 of the fleet’s 1000 tokens here, never the 100-of-1000 undercount dropping the echoing node’s cycle would produce); the Reviewer-waving-work-through signature demonstrated against a constructed before/after fixture (a risingescape_rateat theagent-reviewrung alongside a fallingcaughtcount at that same row); and the degradations (a malformed line, a missing log) that yield a conforming report rather than aborting the fold.test/dashboard-render.test.sh’s ownrework.json/rework-outage.jsonfixtures then check only thatD.reworkrenders as the panel’s own three sections and its three static caveats (the share’s cycle granularity, rework never being a target of zero, and the human-gate coverage gap), and that an unassembled payload (every fieldnull) reads as an outage rather than a quiet zero-rework tick — the fold’s own correctness isrework-panel.test.sh’s job, not this one’s. -
test/fleet-sizing.test.shandtest/fleet-pricing.test.sh(docs/ROADMAP.mdD21/D14, issue #612) drivelib/fleet-sizing.sh’s andlib/fleet-pricing.sh’s own folds directly, ontest/constraint.test.sh’s own precedent:fleet-sizing.test.shdemonstrates the acceptance criterion itself — a constructed fixture carrying one over-provisioned node (high idle-without-demand share, high share of the fleet-wide contended-claim-loss pool, no exclusive landings) and one healthy node, asserting the fold names the first as a shrink candidate and the second as healthy — plus the three insufficient-evidence gates (no time-account data, a window below the minimum sample, fewer than two nodes) and that a node with real exclusive delivery is never recommended for removal regardless of how idle or contended it otherwise reads;fleet-pricing.test.shdemonstrates every row of the fate-mapping priority order landing in its own bucket on one constructedcost_rows[](including that a row already claimed by rework outranks its own landed terminal fate), that the six buckets reconcile tototal_usdto the cent, and the turns-per-landed-item mean/median over a constructed set of landed and open items.test/dashboard-render.test.sh’s ownfleet-sizing.json/fleet-sizing-outage.jsonandfleet-pricing.json/fleet-pricing-outage.jsonfixtures then check only thatD.fleet_sizing,D.spend_fateandD.turns_per_landed_itemrender as their own panels — the shrink candidate and the healthy node on the same table, every fate bucket’s own lever in the same cell as its figures, the by-stage/model turns table — and that an unassembled payload on any of the three reads as an outage rather than a quiet zero, the same discipline the constraint and rework fixtures just above already exercise. -
claim-expired-tombstone.json(agent-ops#839) holds one claim backdated todo_expire()’s sentinel1970-01-01T00:00:01Zalongside one with a real, recentts: the live-claims panel’s Held column reads the first “expired — pending cleanup” and never a fabricated day-count, while the second still renders its ordinary relative age. -
On a node that has been up for at least ten minutes,
grep 'github: refreshing' <state_dir>/dashboard.log | tail -3shows one line per due age plus a refresh’s own cost — each line states the age it was gated on,due after Ns, which is 285s while a refresh costs under 32s and nine times its cost above that — andgithub.fetched_atindata.jsis within that ofgenerated_at. Those two facts are the whole of “the PR panels are live”; nothing else on the page distinguishes a refresh that is happening from one that is not. (If thatgrepcomes back empty or says “binary file matches”, check for a hole before concluding the heartbeat is dead —tr -d '\0' < dashboard.log | wc -cagainst the file’s size. The launcher repairs one at the top of each window, so this should only ever be true of a log written by a node that has not yet rolled.) -
scripts/publish-dashboard.shagainst the realstate_dirproduces valid JSON (data.jsminus the wrapper passesjq empty), andgrepfinds no/home/…path or token in the output. -
Open the page and confirm the panels populate: a failed cycle appears under Failures, and its transcript + stderr open inline. On a fleet, each node’s card names what that node is doing and the header counts how many are working; on a single node the header carries the detail itself and there is no strip.
-
On that same page, the cost section reads down the left column and on down the right, with no column running conspicuously past the other and the cost notes last (issue #330). This one is checked by eye in a browser, in both colour schemes and on either side of the 760px breakpoint, because the split is decided by the browser from the rendered heights: nothing that runs without layout can see it, and the DOM-stub harness above deliberately asserts only the document order the split is taken over.
-
With a
blockedrow whosekindisneeds-refinementindata.js, the Blocked items table shows a refinement badge next to that row’s item id, the heading names how many refinement blocks there are, and its “hide N refinement blocks” checkbox — shown only when at least one exists — removes those rows from the table (and the heading’s count) when checked, restoring them when unchecked. An ordinary blocked row (kindunset or"") carries no badge and is unaffected by the filter.test/dashboard-render.test.shasserts the badge, the count and the checkbox’s label from a fixture; the checkbox’s own click behaviour is outside its tree-building DOM stub, so stays a manual check here. -
With more than ten
voidrows indata.js, the Void items table shows the ten newest,See more — N older itemsat its foot reveals the rest and turns intoSee fewer, and a row whose reason runs past three lines is clipped with an ellipsis and opens to the whole of it when clicked (clicking again closes it). Leave a row open and use the control: the re-render that follows must keep both that row open and the list expanded — the same survives-a-rebuild rule the cycle rows and open transcripts follow. Like the refinement filter, the assertions cover what renders and the clicking is manual here. -
While a cycle is in flight, its row in Recent cycles reads in progress from the moment it starts — including during the Co-Ordinator stage, before any
selectionis logged, which is the whole window in which the log-derived ladder has nothing to say — and no finished row’s badge changes. Check the first minute of a cycle specifically: that is where reading the ladder alone produces “Ended”.test/dashboard-render.test.shasserts this from a fixture in that exact window; this manual check is for confirming it against a real running pipeline too. -
A pull-request number behaves the same way under a pointer, a finger and a keyboard. Hover one and the card opens; move off and it closes. Click it and the card opens and stays, the page does not go to GitHub, moving the pointer away does not close it, and hovering another number does not move it; click the same number again, click off the card, use its close button or press
Escapeand it closes — while a click inside the card does not. Ctrl/cmd-click still opens the PR in a new tab, andEnteron a focused number still navigates. On a phone (or a touch-emulating browser) a tap opens the card rather than GitHub, the card fits the viewport, and its close button and View on GitHub ↗ link are both reachable. Leave a card open across a refresh or two: it is still there, and still pinned if it was pinned — a rebuild destroys the focused anchor, so this is where a strayfocusoutcan close the card the reanchor just reopened. -
The page has zero console/page errors (it renders headlessly under a browser with no thrown errors).