{
  "about": "What changed in Trailside's CI each day from 6 to 11 October 2026, and why. Text in braces is filled in by reproduce.ts: {night.<date>.<field>} and {baseline.<field>} come from the CI runs in ci-runs.jsonl and the merges in merges.jsonl, {cited.<key>} from the measurements listed under cited, and {moment.<key>} from the times listed under moments, each with its source, and {split.<key>.<before|after>.<field>} from the timed runs of that moment's night created before or after it. Pull request numbers are those of Trailside's GitHub repository, and each is listed under the UTC date it merged. by says who wrote each one: the Dev Loop, a Claude Code agent that one of our workflows started, or other (a session the owner directed, most of them in Claude Code).",
  "fetchedAt": "2026-10-12T06:22:38Z",
  "cited": {
    "jobLimitBefore": { "value": 15, "unit": "minutes", "source": "timeout-minutes of the check-and-test job in .github/workflows/ci.yml before pull requests #63 and #68" },
    "jobLimitAfter": { "value": 25, "unit": "minutes", "source": "the same setting after pull requests #63 and #68" },
    "suiteBefore451": { "value": 520, "unit": "s", "source": "the full test suite (corepack pnpm test) on the machine that hosts our CI runners, run outside a runner job with four test files at once, measured in pull request #451" },
    "suiteAfter451": { "value": [155, 186], "unit": "s", "source": "the same measurement after the change, three runs at its new default of twelve test files at once, in pull request #451" },
    "classifyRepeats": { "value": 3, "unit": "times", "source": "pull request #694, which measured it in the pull request checks that ran after #526" },
    "classifyMinutes": { "value": [6, 9], "unit": "minutes", "source": "the same measurements in pull request #694" },
    "lanesBefore": { "value": 2, "unit": "lanes", "source": "pull request #610, which raised the Dev Loop from two lanes to three; the Dev Loop's own log shows two lanes on the night of 9 October, idle until 22:00 UTC because the daily cap of 200 agent runs had been reached" },
    "laneUse09": { "value": 66, "unit": "%", "source": "the Dev Loop's own log and run records: the share of the night of 9 October (21:00 to 06:00 UTC) its two lanes spent in agent runs, 711.8 of 1,080 lane-minutes, after the daily cap idled it until 22:00 UTC and while its test database was down for about an hour" },
    "laneUse11": { "value": 80, "unit": "%", "source": "the same measure for the night of 11 October: 862.4 of 1,080 lane-minutes" },
    "lanesHigh": { "value": 3, "unit": "lanes", "source": "pull request #610, which raised the Dev Loop's lane count" },
    "lanesLow": { "value": 2, "unit": "lanes", "source": "pull request #704, which set the Dev Loop's default lane count: the owner's decision to run two lanes while the CI runners share the machine" },
    "loadAverage": { "value": [40, 50], "source": "the machine's load average with three Dev Loop lanes and four CI runners, reported in pull request #704 (which gives no time)" },
    "limit640": { "value": 45, "unit": "minutes", "source": "timeout-minutes of the self-hosted check-and-test job after pull request #640" },
    "selection694Before": { "value": 498, "unit": "s", "source": "computing the affected-test selection for one pull request, measured in pull request #694" },
    "selection694After": { "value": 9.4, "unit": "s", "source": "the same measurement after the change, in pull request #694" },
    "db695Before": { "value": [197, 273], "unit": "s", "source": "the sixty PostgreSQL test files, two measurements in pull request #695" },
    "db695After": { "value": [78, 90], "unit": "s", "source": "the same two measurements after the change, in pull request #695" },
    "cpu698Before": { "value": 452, "unit": "CPU-seconds", "source": "the tests that use the word-proof helpers, measured in pull request #698" },
    "cpu698After": { "value": 213, "unit": "CPU-seconds", "source": "the same measurement after the change, in pull request #698" },
    "suite701Before": { "value": 547, "unit": "s", "source": "the full test suite, measured in pull request #701" },
    "suite701After": { "value": 363, "unit": "s", "source": "the same measurement after the change, in pull request #701" },
    "escalation706Before": { "value": 350, "unit": "s", "source": "one-file probe changes of these kinds, run locally, measured in pull request #706" },
    "escalation706After": { "value": [48, 183], "unit": "s", "source": "the same probes after the change, in pull request #706" },
    "setup712": { "value": 3, "unit": "s", "source": "the saving per full self-hosted run, measured in pull request #712" },
    "temp714": { "value": 127, "unit": "GB", "source": "leftover temporary folders from test runs, reported in pull request #714" },
    "typecheck717Before": { "value": 106, "unit": "s", "source": "type-checking a full run, measured in pull request #717" },
    "typecheck717After": { "value": 45, "unit": "s", "source": "the same measurement after the change, in pull request #717" },
    "replay718Merges": { "value": 100, "unit": "merges", "source": "a replay of the last hundred merges, in pull request #718" },
    "replay718Before": { "value": 31, "source": "full-suite runs in that replay before the change, pull request #718" },
    "replay718After": { "value": 24, "source": "full-suite runs in that replay after the change, pull request #718" },
    "audit729Before": { "value": [31.3, 31.5], "unit": "s", "source": "the 8 canvas audit files, run on the machine that hosts our runners, two measurements in pull request #729" },
    "audit729After": { "value": [0.28, 0.29], "unit": "s", "source": "the same measurement on the same machine when its inputs already passed on main, in pull request #729" }
  },
  "moments": {
    "selection526": { "at": "2026-10-10T03:50:13Z", "source": "GitHub's record of when pull request #526 merged (merges.jsonl), during the night of 9 October" },
    "thirdLane": { "at": "2026-10-11T00:09:07Z", "source": "the Dev Loop's own log: the restart that took up the third lane of pull request #610 (merged at 23:53 UTC on 10 October)" }
  },
  "days": [
    {
      "date": "2026-10-06",
      "title": "Stop cutting slow runs off at {cited.jobLimitBefore}",
      "problem": "Our CI job had a time limit of {cited.jobLimitBefore}. Slow runs were stopped at it before they could finish.",
      "evidence": "On the night of {night.2026-10-05.date}, {night.2026-10-05.cancelled} of {night.2026-10-05.runs} runs were cancelled ({night.2026-10-05.cancelledShare}), {night.2026-10-05.timedOutRuns} of them when their job reached the limit.",
      "change": "We raised the limit to {cited.jobLimitAfter}. The same pull requests gave the Dev Loop checks to run before it starts each issue.",
      "effect": "On the night of {night.2026-10-06.date}, {night.2026-10-06.cancelled} of {night.2026-10-06.runs} runs were cancelled. The runs were still slow: the median took {night.2026-10-06.median} minutes.",
      "prs": [
        { "number": 63, "by": "dev-loop", "what": "Prerequisite checks before each issue, on the Dev Loop's own database" },
        { "number": 68, "by": "other", "what": "A daily cap, notifications and continuous running for the Dev Loop" }
      ]
    },
    {
      "date": "2026-10-07",
      "title": "Test only what a change touches",
      "problem": "Every pull request ran the whole test suite, so every check took as long as a full run.",
      "evidence": "On the night of {night.2026-10-06.date}, the median pull request check took {night.2026-10-06.prMedian} minutes.",
      "change": "Pull request checks now run only the tests that read a changed file. The full suite still runs after each merge to main, and every night.",
      "effect": "On the night of {night.2026-10-07.date}, the median pull request check took {night.2026-10-07.prMedian} minutes. The slow runs stayed: one pull request check in ten took {night.2026-10-07.prP90} minutes or more, and the median full run on main took {night.2026-10-07.pushMedian} minutes.",
      "prs": [
        { "number": 171, "by": "other", "what": "Pull requests run only the affected tests; the full suite runs after merge and every night" },
        { "number": 192, "by": "other", "what": "Select the tests that read a changed file, not everything" },
        { "number": 220, "by": "other", "what": "Run the slow evidence suites only when their own inputs change" }
      ]
    },
    {
      "date": "2026-10-08",
      "title": "Move CI to our own machine",
      "problem": "GitHub's hosted runners stopped taking our jobs because of a billing problem on our account.",
      "evidence": "From {night.2026-10-08.date}, jobs sent to the hosted runners were refused, so CI could not check anything.",
      "change": "We moved the check-and-test job to self-hosted runners on one of our own machines, behind a switch that can move it back.",
      "effect": "CI ran again, but behind too few runners. On the night of {night.2026-10-08.date}, none of that night's runs got a runner until {night.2026-10-08.runnerStart.1}. Then one runner took the backlog, joined by a second at {night.2026-10-08.runnerStart.2}, and one run in ten took {night.2026-10-08.p90} minutes or more. From the next night, {night.2026-10-09.selfHostedRunners} runners shared the work.",
      "prs": [
        { "number": 353, "by": "other", "what": "Qualify the self-hosted runner without moving the full checks" },
        { "number": 363, "by": "other", "what": "Send check-and-test to the self-hosted runner behind a switch" }
      ]
    },
    {
      "date": "2026-10-09",
      "title": "Speed up the full suite",
      "problem": "The full test suite was slow on the machine our runners use, and a newer push to main did not stop the older run it replaced.",
      "evidence": "The full suite took {cited.suiteBefore451} on that machine.",
      "change": "We split the slowest test files and ran more test files at once, and a newer push to main now cancels the run it replaces. And the runner smoke test now passes on every runner on our machine, not only the first.",
      "effect": "The pull request measured the suite at {cited.suiteAfter451}. On the night of {night.2026-10-09.date}, until the test-selection change of {night.2026-10-10.date} merged at {moment.selection526}, the median run took {split.selection526.before.median} minutes and one run in ten took {split.selection526.before.p90} minutes or more. The runs after that change are covered under {night.2026-10-10.date}.",
      "prs": [
        { "number": 427, "by": "other", "what": "Let every instance of our runner pass the runner smoke test" },
        { "number": 451, "by": "agent", "what": "Speed up the full test suite and cancel superseded runs on main" }
      ]
    },
    {
      "date": "2026-10-10",
      "title": "A fix that made CI slower",
      "problem": "A pull request passed its checks and then broke main: the test selection had missed a test that scans files instead of importing them.",
      "evidence": "The test that broke main never ran on the pull request.",
      "change": "We closed the gap in the test selection. The fix merged at {moment.selection526}, still during the night of {night.2026-10-09.date}. Separately, from {moment.thirdLane} in the night of {night.2026-10-10.date}, the Dev Loop ran {cited.lanesHigh} instead of {cited.lanesBefore}, so more agents worked at once on the machine that runs CI.",
      "effect": "Working out the test selection now took {cited.classifyMinutes}, and each pull request check did it {cited.classifyRepeats}. In the rest of the night of {night.2026-10-09.date}, the median pull request check took {split.selection526.after.prMedian} minutes, against {split.selection526.before.prMedian} before the fix. On the night of {night.2026-10-10.date}, the median run took {night.2026-10-10.median} minutes, and {night.2026-10-10.cancelled} of {night.2026-10-10.runs} runs were cancelled ({night.2026-10-10.cancelledShare}), {night.2026-10-10.timedOutRuns} of them when their job reached the limit of {night.2026-10-10.jobLimit}.",
      "prs": [
        { "number": 526, "by": "dev-loop", "what": "Select scan-based tests through the files they read" },
        { "number": 610, "by": "other", "what": "Run the Dev Loop with more lanes" }
      ]
    },
    {
      "date": "2026-10-11",
      "title": "The speed-up day",
      "problem": "CI had become the bottleneck. Runs were slow, many were cancelled, and the agents and CI were competing for one machine.",
      "evidence": "On the night of {night.2026-10-10.date}, the median run took {night.2026-10-10.median} minutes. With {cited.lanesHigh} and {night.2026-10-10.selfHostedRunners} CI runners, the machine's load average reached {cited.loadAverage}.",
      "change": "In one day we merged a wave of fixes, most of them measured in their own pull request (listed below). The Dev Loop also went back to {cited.lanesLow}, which left more of the machine to CI.",
      "effect": "On the night of {night.2026-10-11.date}, the median run took {night.2026-10-11.median} minutes, one run in ten took {night.2026-10-11.p90} minutes or more, and {night.2026-10-11.cancelled} of {night.2026-10-11.runs} runs were cancelled.",
      "prs": [
        { "number": 640, "by": "other", "what": "Raise the self-hosted job limit to {cited.limit640}" },
        { "number": 694, "by": "agent", "what": "Work out the affected-test selection once per run, and stop the selector blowing up", "measured": "Selection {cited.selection694Before} → {cited.selection694After}" },
        { "number": 695, "by": "agent", "what": "Clone test databases from a migrated template instead of migrating each one", "measured": "Database tests {cited.db695Before} → {cited.db695After}" },
        { "number": 698, "by": "agent", "what": "Memoize the word-proof test helpers", "measured": "{cited.cpu698Before} → {cited.cpu698After}" },
        { "number": 701, "by": "agent", "what": "Fake clocks for the slow Companion tests, and the Bun suite beside Node", "measured": "Full suite {cited.suite701Before} → {cited.suite701After}" },
        { "number": 704, "by": "other", "what": "Make the Dev Loop's lane count a setting, back to {cited.lanesLow}" },
        { "number": 706, "by": "agent", "what": "Stop sending helper, Playwright-config and migration changes to the full suite", "measured": "One-file probe changes of these kinds: {cited.escalation706Before} → {cited.escalation706After}" },
        { "number": 712, "by": "agent", "what": "Faster job setup", "measured": "About {cited.setup712} per full run" },
        { "number": 714, "by": "agent", "what": "Remove each test's temporary folders when it ends", "measured": "{cited.temp714} of leftovers" },
        { "number": 717, "by": "agent", "what": "Type-check full runs incrementally from a cache", "measured": "Type-check {cited.typecheck717Before} → {cited.typecheck717After}" },
        { "number": 718, "by": "agent", "what": "AGENTS.md and non-CI .github files no longer force the full suite", "measured": "Full runs in the last {cited.replay718Merges}: {cited.replay718Before} → {cited.replay718After}" },
        { "number": 729, "by": "agent", "what": "Skip the canvas audit when its inputs already passed on main", "measured": "Audit {cited.audit729Before} → {cited.audit729After}" }
      ]
    }
  ]
}
