ADR 0017 — pilot gate evaluation, 2026-11-16¶
- Task: #1216 · Date: 2026-11-16 · Status: for decision (#1217)
- Research notes: this page; back to ADR 0017 · notes index
Scope¶
Question. Did the Taskbase fitness-function pilot pass the gate that decision #1201 set? The gate is passed if, in the four weeks the pilot ran, the runner blocked a change that the tests and the reviewer would have let through, or the reviewer uses the list. Decision it informs: in #1217 the owner decides whether to keep the runner and generalise it (Phase 3), or drop it and keep Phase 1.
In scope. The window from 2026-10-19 10:06 UTC, when the runner (#1214, Taskbase PR #524) merged, to 2026-11-16 06:00 UTC. In scope are the runner's CI results, reviewer comments that use an expectation list, pull requests that changed a limit, and the four conditions of #1201. Out of scope: where the runner would live and how Phase 3 would be built (ADR 0017 decision 2, after this gate). Fixing the drift the reviews found is also out of scope.
Sources and method.
- Taskbase tasks and their comments in the five projects, read through Taskbase. Triage tasks quote the review run they triage, so they carry reviewer text from repositories this run cannot read.
- Every review on the platform pull requests opened in the window, read through the Gitea API.
- This repository's git history for
FITNESS.mdand.gitea/workflows/.
The marker phrase the reviewer persona uses since #1215 is Expectation list:. A review "uses the list" when it names the list (Fitness expectations, FITNESS.md or "expectation list"). Grades are as in ADR 0017: Shown, Indicated, Plausible, not shown.
Assumptions.
- The window starts at the merge of PR #524. That is the first time the job ran against
main's code. It ran on pushes and pull requests, and both were green on PR #524 (S13). - In the gate, "the reviewer" means the reviewer persona in any of the five repositories, not only in Taskbase.
Deliverable. This page, the link to it from the ADR, and the options in #1217.
Summary¶
Answer: the gate is passed, but almost all of the evidence supports the expectation lists rather than the runner. The gate is passed through its second criterion: the reviewer uses the list (Shown). Whether it is also passed through the first is Indicated for the tests and Plausible, not shown for the reviewer. Most of the value seen in the window comes from Phase 1, the lists, and would stay if the runner were dropped. The runner itself blocked one change in four weeks. In the same period, tool-install failures turned it red more often than real findings did.
- The runner blocked one change, a file-size budget overrun on #1756 / PR #632 (F1). It was fixed by splitting the code, not by raising the limit. No test checks file size, so the tests would have let the change through (Indicated). Whether the reviewer would have caught it without the runner is Plausible, not shown.
- 3 of the 5 runs where only the fitness job failed were tool-install failures, not findings (F2, Shown in the owner's interim count of 2026-10-27). The noise was fixed by 2026-10-28. No later Taskbase task reports a fitness failure (Indicated).
- The reviewer uses the list, mostly where no runner exists (F3, Shown). In platform, 269 of 702 reviews in the window (38%) use
FITNESS.md, on 223 of 479 reviewed pull requests. 54 reviews carry the marker, and in 7 pull requests the list led to a requested change. Taskbase and skatzi-agents reviews also use their lists. - Use of the list is falling (F3, Shown). The share of platform reviews that use it went from 42% in week 1 to 19% in week 4.
- One limit was raised in the window. The review called it out as a decision, and the limit went back to 0 the same day (F4, Shown for platform).
- No breach of the four conditions was found (F5). This is Indicated for platform and not verified for the other repositories' CI files.
Findings¶
Did the runner block a change that the tests and the reviewer would have let through?¶
F1. One real block: the Go file-size budget on PR #632¶
Task #1756 (PR #632) made a Go file grow past the file-size budget. On 2026-10-27, go-file-size went over its limit of 4 files and failed the fitness job (S1). The fix (#1785) moved the diagram types into mcp/internal/taskbase/diagrams.go (types.go: 938 lines), and go-file-size was back at 4 of 4 (S2). The second-round review confirmed it: "the round 1 finding is fixed … go-file-size is back at 4/4" (S3). The limit was not raised. Grade: Shown for the block and the fix.
The two sources name different files. The owner's count names api/internal/session/handler.go at 1,251 lines (S1), and #1785 names types.go (S2). The count reports "2 were real catches", which may be the same overrun seen on two runs. This page counts it as one blocked change. Which file or files went over is not verified: the CI logs cannot be read from this run.
Would the change have gone through without the runner?
- The tests: yes (Indicated). Before the pilot, Taskbase listed file-size budgets as documented-only, with no check (#1212, S12). The runner's row is the only check.
- The reviewer: Plausible, not shown. The first-round review raised the overrun as its finding (S3). Whether it found the overrun from the runner's red job or by reading the list cannot be told from the quoted summaries. In platform, the reviewer does find documented-only drift by reading (F3). Counting a file's lines, though, is the kind of check the reviewer reports as "reviewed by reading" rather than measures.
F2. Noise: more of the fitness-only failures were tool errors than findings¶
The owner counted the runs from 2026-10-19 to 2026-10-27: 297 runs, 9 red. In 5 of the red runs, Fitness functions was the only red job. 2 of those 5 were real catches and 3 were tool-install failures, for example curl: (6) Could not resolve host: github.com while downloading staticcheck (S1, S4). Grade: Shown that the count was made. The count itself is secondary: it comes from the owner's session, and this run could not re-read the CI runs.
The cost was real:
- A red job made a pull request's combined status
failure, and reviewers treated it as blocked (PR #557). - One pull request (PR #552) was merged with the red job (S4).
- The failures were not counted as passes. They turned the job red as if they were violations, which is the opposite error, and #1811 asked for them to be reported as tool errors instead.
The tools were cached by 2026-10-28 (#1811; cache keys in #1960, S5). After that date, no Taskbase task in the window reports a red fitness job (Indicated: tasks are the only record this run can read; a red job that nobody filed would not show).
Does the reviewer use the list?¶
F3. Yes, in three repositories, and mostly where there is no runner¶
Platform has a list but no runner (S8, S9):
| Count | |
|---|---|
| Platform pull requests opened in the window | 585 |
| Reviewed pull requests | 479 |
Reviews (700 by the agent account dunk-mac-mini-agent, 2 by ops-agent) |
702 |
Reviews that use FITNESS.md |
269 (38%), on 223 pull requests |
Reviews with the marker Expectation list: |
54, on 48 pull requests |
Most marker lines report checked rows that passed and documented-only rows "reviewed by reading". In 7 pull requests, a numbered finding introduced by the marker asked for a change:
| PR | Row the finding names |
|---|---|
| #429 | manifest-file-kind-name |
| #521 | docs-in-same-pr |
| #524 | cluster-values-at-cluster-level |
| #577 | A new CI job with no row |
| #694 | no-prod-hostname-in-components, cluster-values-at-cluster-level |
| #994 | docs-in-same-pr |
| #1108 | flux-helmrelease-timeout, including a raised limit |
An eighth, #1199, reported a flaky test that was already there. Every one of these findings came from a documented-only row or from the list itself, not from a check. Grade: Shown.
Taskbase. Four review summaries quoted in triage tasks (#1784, #1791, #1793, #1820) each have a "Fitness expectations" section. They report each row's count against its limit, list documented-only rows as "reviewed by reading" or "not verified", and say "No limit was raised". Two of them use the marker (S6). skatzi-agents. Two quoted reviews (#1679, #1997) check against FITNESS.md and say no limit was raised (S7). agent-runner and emiliero: no quoted review mentions a list. That is not verified either way, because their pull request reviews could not be read from this run.
The trend. Platform reviews that use the list, by week:
| Week | Reviews | Use the list | Share | Marker |
|---|---|---|---|---|
| 1 (10-19 to 10-25) | 295 | 124 | 42% | 24 |
| 2 (10-26 to 11-01) | 197 | 89 | 45% | 14 |
| 3 (11-02 to 11-08) | 122 | 39 | 32% | 11 |
| 4 (11-09 to 11-16) | 88 | 17 | 19% | 5 |
The decline is Shown. Its cause is not known (see Open questions).
Were limit changes treated as decisions?¶
F4. Yes: the one raised limit was called out and reverted¶
In platform, every limit change in the window came from a commit in a pull request (S9):
- Rows added for new checks, limit 0.
same-kind-one-filelowered from 6 to 3 when the kodexet cluster was removed (501f85ee).flux-kustomization-retry-intervaladded with limit 1 (bcee0b01).flux-helmrelease-timeoutraised from 0 to 1 on 2026-10-31 (df76e2af). The review of PR #1108 called it out: "FITNESS.md:23 raises the proposed limit from 0 to 1 … this changes the task's requested outcome". The limit went back to 0 the same day (50323a6d).
In Taskbase, the one overrun was fixed in the code, not by raising the limit (F1). Grade: Shown for platform; Indicated for Taskbase, which rests on the reviews' "No limit was raised".
Were the conditions of #1201 kept?¶
F5. No breach found¶
| Condition | Finding | Grade |
|---|---|---|
| Never remove a lint or test step | Platform: two commits removed workflows in the window, and neither removed a lint or test step: the diagnostic mac-mini-probe.yaml (f67df26c), and the ten terraform-kodexet-*-{apply,destroy}.yaml workflows (501f85ee, #1448), Terraform apply/destroy for the removed kodexet cluster; the shared _terraform-* workflows they called remain. Taskbase: the fitness-job changes in the window (#1811, #1960) changed how the tools are installed and cached. #1811's task keeps the rules and limits unchanged. |
Indicated (platform); not verified (Taskbase ci.yaml history and the other three repositories could not be read) |
| A tool that fails is never counted as zero | The opposite error was found: install failures made the job red like a violation (F2), and were fixed. Reviewers report a local tool error as "unverified", never as a pass (#1791, #1820). | Indicated |
| No automatic ratchet | Every limit change is a commit in a pull request (F4). | Shown (platform) |
| Documented-only rows never shown as verified | Every review read describes them as "not verified" or "reviewed by reading". In FITNESS.md the check column of each such row says not verified. |
Shown for the reviews read |
Options and recommendation¶
The gate is passed, so dropping the runner would go against the rule the owner set. But the runner's own contribution is one blocked change in four weeks, after noise that has since been fixed. The use of the lists, which is most of the value seen, does not depend on the runner. Building Phase 3 now would put the cost ADR 0017 F5 describes (adapters, custom checks, owners for each limit) behind that one catch.
- Recommended: keep the runner in Taskbase, and decide on Phase 3 at a second check four weeks from now. It costs nothing new. In the second check, count the runner's catches and tool errors since the noise fix, and count the reviewer's use of the list. Start Phase 3, including ADR 0017 decision 2, only if the runner catches again. Risk: four more weeks with a runner in one repository only. Grade of the recommendation: Indicated.
- Keep the runner and plan Phase 3 now. Give the runner its own home (decision 2), add the YAML, manifest and Markdown adapters, and roll it out to the other repositories. Platform would come first, with the documented-only rows the reviewer flagged most often: file names after their kind, literal
prod.skatzi.comhostnames, and Flux timeouts. Cost: the adapters and custom checks in ADR 0017 F5. Risk: the reviewer's findings on those rows (F3) may be enough without them. - Drop the runner and keep Phase 1. Move
go-file-sizeinto a plain Go test in Taskbase, so the one proven catch stays. Cost: a small task. Risk: limits above 0 lose their enforcement again, which is the gap ADR 0017 F4 found in tests. - Keep the runner, and turn the platform documented-only rows that drew findings into plain CI checks now, without the runner. Cost: one small check per row, each with its false-positive work (F5). Risk: the rows' limits live in scripts rather than in the list.
Open questions¶
- Why use of the list is falling (42% to 19% of platform reviews). Possible causes: more docs-only pull requests, shorter reviews, or reviewers who stop reporting rows they find don't apply. A sample of week-4 reviews against week-1 reviews would show which.
- Which file went over the budget on PR #632:
handler.go(S1) ortypes.go(S2), or both. The fitness job's logs for those runs would settle it. They cannot be read through the Gitea API (S4) or from this run. - Taskbase CI after 2026-10-27. How many fitness runs failed after the owner's count, and why. Reading the Actions runs of
Skatzi/taskbasewould settle it, and needs a person or a role with read access to that repository. - Reviews in Taskbase, agent-runner and emiliero. This run saw only the reviews quoted in triage tasks. With the read scope widened, the platform count could be repeated there.
Limitations¶
- This run's role reads only the platform repository. The Taskbase evidence is therefore second-hand: the owner's interim count (S1), triage tasks that quote review summaries (S3, S6), and task descriptions. No Taskbase CI log was read.
- The platform counts cover reviews of pull requests opened in the window. Reviews in the window of older pull requests are not counted.
- "Uses the list" is matched on wording. A review that checks the list without naming it is missed, and one that names it only in passing is counted.
- The gate rests most on F3, the reviewer using the list. Whether that counts for the runner, rather than for Phase 1, is a question of how the gate is read, and the owner decides that in #1217.
Sources¶
| id | title | publisher | address | primary or secondary | retrieved |
|---|---|---|---|---|---|
| S1 | Task #1811, "Fitness CI job: stop downloading its tools on every run" (owner's interim count, 2026-10-27) | Taskbase | task #1811 | secondary (a count of CI runs, not the runs) | 2026-11-16 |
| S2 | Task #1785, "Split MCP type declarations to restore the Go file-size fitness gate" | Taskbase | task #1785 | primary | 2026-11-16 |
| S3 | Task #1793, triage of #1756, quoting review run #3499 on PR #632 | Taskbase | task #1793 | secondary (a quote of the review) | 2026-11-16 |
| S4 | Task #1414, "Find why the push-event Fitness functions CI job fails" | Taskbase | task #1414 | primary | 2026-11-16 |
| S5 | Tasks #1960, "Key fitness tool caches on the Go and Node versions", and PR #656 CI state | Taskbase | task #1960; get_task_pull_request on #1811 |
primary | 2026-11-16 |
| S6 | Tasks #1784, #1791, #1820, triage of #1765, #1766 and #1771, quoting their review runs | Taskbase | tasks #1784, #1791, #1820 | secondary (quotes of the reviews) | 2026-11-16 |
| S7 | Tasks #1679 and #1997, triage in skatzi-agents, quoting their review runs | Taskbase | tasks #1679, #1997 | secondary (quotes of the reviews) | 2026-11-16 |
| S8 | Reviews on Skatzi/platform pull requests opened 2026-10-19 10:06 to 2026-11-16 06:00 | Gitea | GET /api/v1/repos/Skatzi/platform/pulls, …/pulls/{n}/reviews |
primary | 2026-11-16 |
| S9 | Skatzi/platform git history of FITNESS.md |
Skatzi | https://gitea.prod.skatzi.com/Skatzi/platform | primary | 2026-11-16 |
| S10 | Skatzi/platform git history of .gitea/workflows/ |
Skatzi | https://gitea.prod.skatzi.com/Skatzi/platform | primary | 2026-11-16 |
| S11 | Task #1756 comments (operator triage: 12 of 12 checks, Fitness functions included, green on 4c2e602) |
Taskbase | task #1756 | primary | 2026-11-16 |
| S12 | Task #1212, "Write the Taskbase expectation list in CLAUDE.md" | Taskbase | task #1212 | primary | 2026-11-16 |
| S13 | Taskbase PR #524 CI state (ci / Fitness functions on push and pull_request) |
Gitea, via Taskbase | get_task_pull_request on #1214 |
primary | 2026-11-16 |
How the counts were made¶
Each step can be re-run.
- Platform pull requests. Page through
GET /repos/Skatzi/platform/pulls?state=all&sort=newest&limit=50. Keep those withcreated_atfrom2026-10-19T10:06to before2026-11-16T06:00, which gives 585. - Their reviews. For each, call
GET /pulls/{n}/reviews, which gives 702 reviews. - Matching. "Uses the list" is the case-insensitive regex
Fitness expectations|FITNESS\.md|expectation list. The marker is the exact textExpectation list:. - Taskbase tasks. Run
list_project_tasksfor projects 1, 2, 12, 14 and 24, and keep the tasks whose description matchesfitness|expectations\.json|Fitness functionsor the marker. - Limit changes. Run
git log -p -- FITNESS.mdover the window.