You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No coverage measurement anywhere: add report-only bun test --coverage, then decide a floor #235
No coverage configuration exists in package.json, .github/workflows, scripts/ or bunfig.toml. Both architecture reviews had to discover coverage-shaped gaps by reading (the untested TUI, the untested graph success path, five modules with no test import), which is slow and easy to miss. Nothing would move numerically if a src file stopped being reached.
Fix direction
Add bun test --coverage as a report-only CI step and publish the percentage, without a threshold. A threshold should follow one round of reading the numbers, not precede it; a floor-and-ratchet is the agreed second phase. Complements the mutation sweep (#72), which measures assertion strength rather than reach.
Source
Architecture review 2026-10-31 (C3) and 2026-11-01 (S5), consensus item; sequencing per the 2026-11-01 review.
osi-spec-hash: 6bf1c956f4b4d1c0 2026-11-03T22:16:07Z - acceptance criteria frozen at this text. A later edit to the body changes this hash, and the reviewer will withhold approval until a maintainer replies spec ok.
fix:blocked: the contract's core requirement — "Add bun test --coverage as a report-only CI step and publish the percentage" — can only be satisfied by editing a file under .github/workflows/, and the fixer's operating rules put that directory out of bounds unconditionally (hard stop: never edit .github/workflows). The non-CI half (a test:coverage script in package.json, coverage config in bunfig.toml) is buildable without touching gates, but it does not satisfy the stated criterion on its own, so I did not start it. A human can either add the workflow step directly or amend the ticket to scope the agent work to the package.json/bunfig.toml half.
Ruling 2026-11-04: report-only coverage is approved; CI edits are maintainer hands (agents never touch .github/workflows), so agent:ready is off this ticket and the paste-ready job is below. Add as a sibling of test in ci.yml — SHA pins match the existing ones, mirror the setup-bun with: block from the test job verbatim:
coverage:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
- run: bun install --frozen-lockfile
- name: Coverage (report-only — no threshold)run: bun test --coverage --coverage-reporter=text
Do not add coverage to the required checks (lint, test, test-windows, smoke) — report-only means it can never block. Read the published number for a round, then file the floor-and-ratchet decision as its own ticket. After you push this, close #235.
Triage #235 — not actionable (maintainer-parked by owner ruling)
Verdict: NOT actionable for a fixer seat. The finding is real and verified below, but the only change that satisfies the frozen acceptance criterion is an edit to .github/workflows/ci.yml, and the ticket's own owner ruling says that edit is maintainer hands, not agent hands. There is no first slice a fixer could land here that a reviewer could approve.
Q1 — Do the ticket's claims still hold on 6e33179?
Yes, the finding is not rotted — no coverage instrumentation exists anywhere:
bunfig.toml:1-4 — only [test] + preload = ["./test/preload-isolation.ts"]; no coverage keys.
root package.json scripts (test, test:e2e, test:oh-my-pi, test:pi, gate, …, read via jq .scripts) — no --coverage in any of the 24 scripts.
integration/oh-my-pi/package.json and integration/pi/package.json — no scripts field at all (jq prints NO scripts field); their suites are driven from root scripts at package.jsontest:oh-my-pi / test:pi.
.github/workflows/ci.yml (the only workflow besides release.yml): jobs are lint (:15), test (:45), test-windows (:58), smoke (:76), smoke-stable (:101), oh-my-pi (:107), pi (:149) — no coverage job. The test job runs bun run test (ci.yml:57), not --coverage.
Nuance a fixer must not trip on: e2e/coverage.test.ts exists and is NOT line coverage — it is the #241 structural gate that parses tool/hook registrations vs scenario tags (header comment, e2e/coverage.test.ts:1-14). It does not contradict the ticket, but a keyword search finds it first.
Q2 — Is acceptance checkable?
Yes in form — "add bun test --coverage as a report-only CI step and publish the percentage" is observable: a coverage job in ci.yml whose run log shows the bun text coverage summary, with no threshold. But the criterion is frozen (spec hash 6bf1c956f4b4d1c0, @ocsi-triager 2026-11-03) and can only be met by editing .github/workflows/ci.yml — there is no other location a GitHub Actions step can live.
Q3 — One unit or a chain?
The chain was already cut by the owner. Phase 1 = report-only CI step (this ticket); phase 2 = "read the number for a round, then file the floor-and-ratchet decision as its own ticket" (owner comment 2026-11-05). Suites-to-cover / threshold questions are answered by the ruling: whatever the paste-ready job covers, no gate, do not add coverage to the required checks (lint, test, test-windows, smoke). So it is one unit — just not an agent-executable one.
Q4 — What is not written down (and why it's blocked)
The full story is in the comments, not the body:
@ocsi-fixer 2026-11-04 (comment 6624743005): correctly blocked — the criterion requires .github/workflows/, out of fixer bounds unconditionally; the non-CI half (test:coverage script in package.json, coverage config in bunfig.toml) "does not satisfy the stated criterion on its own."
@abogartz 2026-11-05 (comment 6646674112), the governing ruling: report-only coverage approved, "CI edits are maintainer hands (agents never touch .github/workflows), so agent:ready is off this ticket," with a paste-ready coverage job (checkout 11d5960 v4.4.0, setup-bun 0c5077e v2.2.0, bun install --frozen-lockfile, bun test --coverage --coverage-reporter=text), instruction to mirror the test job's setup-bun with: block, not add it to required checks, and "after you push this, close No coverage measurement anywhere: add report-only bun test --coverage, then decide a floor #235."
Current label state matches the ruling at the time of triage: fix:blocked present, no agent:ready. As of 6e33179 (git log -- .github/workflows/ci.yml → last touch f6a3337; git rev-parse HEAD origin/main → both 6e33179) the owner has not yet pushed the job.
Two watch-items for the maintainer paste (not fixer work, but the snippet has mismatches against the current ci.yml conventions):
The snippet's bare uses: oven-sh/setup-bun lacks with: bun-version: 1.4.4, which every job carries (ci.yml:29-30, 52-53) per the pin policy documented at ci.yml:10. The ruling's prose says to mirror the test job's with: block verbatim — the prose must win over the snippet.
bun test --coverage with no path scope discovers everything (test/, e2e/, integration/) at bun's default 5 s per-test timeout; the repo deliberately scopes suites with large timeouts (test:e2e: --timeout 240000, test:oh-my-pi/test:pi: --timeout=240000). A run that dies on e2e publishes no percentage. Consider scoping the run (e.g. bun test --coverage ./test/ --timeout=20000) when pasting.
Alternative only by owner amendment: re-scope the body to the non-CI half — add a test:coverage script to root package.json (+ optional bunfig [test] coverage config), re-freeze the spec hash with a maintainer "spec ok", and move the labels — then the slice is micro and one fixer change lands it. Until that amendment exists, any fixer PR either edits forbidden territory or fails the frozen criterion, so I am refusing the ticket rather than passing it through.
Triage #235 — REVERSAL: actionable, with two scope corrections the fixer must honour
Verdict: ACTIONABLE for a fixer seat. This reverses this seat's 2026-12-01T02:15Z refusal. That refusal rested on one load-bearing sentence of the owner's 2026-11-04 ruling (comment 6646674112): "CI edits are maintainer hands (agents never touch .github/workflows), so agent:ready is off this ticket." That half of the ruling has been superseded by the owner, 2026-12-01: agents may edit .github/workflows/** in this repo when the CI step is the fix — the clause existed to keep a half-finished workflow from breaking tests, not to reserve the file forever. The only human-only write that remains is the merge. So the ground on which I refused (#235's criterion can only be met inside ci.yml, and agents couldn't touch ci.yml) no longer exists: the first half still holds — verified again below — and the second half is gone. Nothing else about this ticket changed overnight; the rule did.
What still binds from the 2026-11-04 ruling and shapes this fix: match the file's existing SHA pins, mirror the neighbouring job's setup-step with: block instead of writing a bare one, never add a report-only job to required checks, and "make this check block" is its own ticket. Weakening or deleting an existing check is a defect, not a fix.
1. The finding still holds at 6e33179 (re-verified, sha-pinned via git show 6e33179:…)
bunfig.toml — only [test] + preload = ["./test/preload-isolation.ts"]; no coverage keys.
root package.json — 20 scripts; rg 'coverage' exits 1. No --coverage anywhere in them.
integration/oh-my-pi/package.json, integration/pi/package.json — no scripts field at all; their suites run from root test:oh-my-pi / test:pi.
git show 6e33179:.github/workflows/ci.yml | rg -in 'coverage|--cov' → exit 1. Jobs are lint, test, test-windows, smoke, smoke-stable, oh-my-pi, pi — no coverage job; the test job runs bun run test, not --coverage.
(The worktree under .dev sits two capture commits above 6e33179; git diff --stat 6e33179..HEAD -- .github/workflows/ package.json bunfig.toml scripts/ is empty, so every file this verdict touches is byte-identical, and all checks above were pinned to the sha anyway.)
2. The frozen criterion, and why it is now in reach
The spec is frozen at hash 6bf1c956f4b4d1c0 (2026-11-03) against the body text: "Add bun test --coverage as a report-only CI step and publish the percentage, without a threshold." It requires exactly one observable thing: a CI step in .github/workflows/ci.yml whose run log publishes bun's coverage percentage, with no threshold. The body text has not changed, so the hash stands and no re-freeze / spec-ok is needed — what changed is agent reachability, not the criterion. Under the 2026-12-01 directive that edit is inside an agent's bounds, and the criterion is checkable by a reviewer from the run log of the coverage job.
3. One change, not two
The ticket demands the CI job. A test:coverage script in root package.json is not a dependency: the workflow step invokes bun inline, exactly as the ruling's snippet does, and the test job proves CI can drive the suite directly. Keep the diff to one file, .github/workflows/ci.yml; do not add a package.json script or bunfig coverage config in this PR — the frozen text does not ask for it, and the 2026-11-04 fixer comment already established the non-CI half satisfies nothing on its own.
4. Scope corrections (the ruling's paste-ready snippet must NOT be pasted verbatim)
The snippet is right on pins and intent but has two defects that would produce a red job — and a red job publishes no percentage, which fails the frozen criterion itself:
Setup steps must mirror the test job's with: blocks. The snippet's bare uses: lines omit persist-credentials: false (on checkout) and bun-version: 1.4.4 (on setup-bun), which every job in ci.yml carries per the pin policy documented at ci.yml:10-13. The ruling's own prose says mirror the test job verbatim — the prose wins over its snippet. Correct: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with persist-credentials: false; oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 with bun-version: 1.4.4; then bun install --frozen-lockfile.
Scope the coverage run: bun test --coverage ./test/ --timeout=20000 --coverage-reporter=text. Unscoped, bun test --coverage discovers e2e/ and integration/ at bun's default 5 s per-test timeout, and those suites deliberately run at --timeout 240000 (and need extra steps — pinned OpenCode CLI, tsc precheck, Node) that a coverage job won't have. An unscoped run dies mid-suite and publishes nothing. Scoped to ./test/ with --timeout=20000 it mirrors the root test script the test job runs, and the published number is the src-reach this ticket is about. Verified at bun 1.4.4 (the CI pin): bun test --coverage ./test/layout.test.ts --timeout=20000 --coverage-reporter=text exits 0 and prints the text coverage summary; the text reporter leaves the tree clean. (Scaled to one file per workflow rules — the full scoped run is the post-push check below.)
So: actionable, with these two corrections as part of the acceptance guidance — the ticket's body text is satisfiable as written only because the corrections implement it faithfully.
Acceptance the reviewer can run
Diff confined to .github/workflows/ci.yml: one new coverage job as a sibling of test (add it right after test), nothing else touched, no existing job weakened.
Pins and with: blocks exactly as in correction 1; run step exactly as in correction 2 — no bare bun test --coverage.
Report-only: no threshold flag anywhere in the run command; coverage is not referenced by the required-check names (lint / test / test-windows / smoke — rulesets pin by exact name, ci.yml:41-44), and adding a check to branch protection is a human-side settings change the fixer must not request. "Make coverage blocking" is its own ticket.
After push: the coverage job's run log shows bun's text coverage table with the overall percentage.
Still maintainer-side (not fixer work)
Labels: live state is enhancement, test-integrity, severity:low, fix:blocked, tier:micro — no agent:ready. Removing fix:blocked and adding agent:ready is an owner/orchestrator action; a seat cannot edit labels. The fixer should not start against fix:blocked.
Floor and ratchet: explicitly deferred by the owner to its own ticket after one round of reading the published number. Not in scope here; this job ships no threshold.
Scope is one file: .github/workflows/ci.yml. The frozen criterion (spec hash 6bf1c956f4b4d1c0, unchanged body): a CI step whose run log publishes bun's coverage percentage, without a threshold. The owner ruling (comment 6646674112) outranks the ticket body and supplies the job skeleton; the 2026-12-01 owner directive (constraint 8 of WORKFLOW.md) makes the ci.yml edit ordinary agent work because the CI step is the deliverable. The triager's reversal and both of its scope corrections are confirmed at the sha — the snippet must not be pasted verbatim.
1. Re-verified at 6e33179af00aef5da2b6d2586071755e82f7aa85
Tree check first-hand: git rev-parse HEAD = 6e33179…, git log --oneline origin/main..HEAD empty, git status --porcelain empty. Then, in-tree at that sha:
rg -in 'coverage|--cov' .github/ scripts/ package.json integration/*/package.json bunfig.toml .githooks → exit 1. No coverage anywhere: bunfig.toml is [test] + preload only; no --coverage in any of the root scripts; the integration package.jsons have no scripts field; ci.yml jobs are lint, test, test-windows, smoke, smoke-stable, oh-my-pi, pi and test runs bun run test. The finding holds — coverage is measured nowhere.
Both snippet defects confirmed against source, not inference:
Bare setup steps. The ruling's snippet has uses: lines with no with: blocks. Every job in ci.yml carries persist-credentials: false on checkout and bun-version: 1.4.4 on setup-bun, per the pin policy stated at ci.yml:10-13 ("Keep all CI and release pins in sync"). The ruling's own prose — "mirror the setup-bun with: block from the test job verbatim" — wins over its snippet.
Unscoped discovery.bun test --help at the pinned bun: --timeout … default is 5000. The repo overrides that everywhere it can't meet it: root test uses --timeout=20000; test:e2e and test:pi/test:oh-my-pi use 240000. Unscoped, the run also discovers e2e/, whose harness hard-throws without a real opencode host (e2e/support/harness.ts:236: "opencode CLI not found … The terminal merge gate cannot run without a real host.") — a step the coverage job doesn't have — and integration/, whose suites need bun install --cwd integration/…, a tsc precheck, and (for pi) Node 22, none of which this job carries. An unscoped run dies mid-suite: a red job whose log is a crash trail, not the coverage table the criterion demands. The scope is the substance of the change.
2. Local proof at the pinned version (green, nothing written)
Ran exactly the proposed command in the tree at 6e33179; local bun is exactly the CI pin (bun test v1.4.4 (38afee6c8)):
$ bun test --coverage ./test/ --timeout=20000 --coverage-reporter=text
All files | 93.60 | 94.91 |
…
2157 pass
23 skip
0 fail
16663 expect() calls
Ran 2180 tests across 200 files. [110.62s]
EXIT=0
(All files | % Funcs | % Lines header at log line 69; wall 110.6 s serial — fine for a report-only job.) git status --porcelain empty after the run: the text reporter prints to the log and the tree is byte-identical afterwards. The command in correction 2 is sound.
3. The job as it should be pasted
Insert between the test job's last line (run: bun run test, ci.yml:56) and test-windows: (ci.yml:58) — i.e. coverage becomes a sibling directly after test. Pins are the file's existing ones verbatim; with: blocks mirror test (ci.yml:47-56); the step name is the ruling's. The check a human reads in the checks list is coverage. It does not join the required checks (ruling's list: lint / test / test-windows / smoke) — report-only means it can never block, the fixer cannot and must not touch branch protection/rulesets, and no other job references it.
# Report-only src reach for the unit suite: publishes bun's coverage table# on every PR, no threshold flag. Deliberately absent from the required# check names — a report must never gate merges, and choosing a floor is# its own future change. Scoped to ./test/ because e2e/ hard-fails without# a pinned host CLI and integration/ needs workspace installs this job# lacks; bun's default 5s per-test timeout would kill both mid-suite and# publish nothing. --timeout mirrors the root test script.coverage:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0with:
bun-version: 1.4.4
- run: bun install --frozen-lockfile
- name: Coverage (report-only — no threshold)run: bun test --coverage ./test/ --timeout=20000 --coverage-reporter=text
Comment style note: scripts/comment-lint.ts checks only TS/TSX added lines, so YAML is out of its scope — but the house rule still applies: WHY, no ticket numbers. The block above obeys it. Do not add --parallel (not needed; serial keeps the aggregation straightforward) and no --coverage-threshold anywhere.
4. Verification without a fail-before test
A workflow job changes no in-tree behaviour, so contract 3's fail-before test has no subject: there is no assertion you could write today that goes red now and green after, short of parsing YAML — see below for why that's the wrong shape. The substitute has two legs, and the second is the real one:
Leg 1 (done, cited above): the exact run command at the exact pinned bun version at this sha, green, publishing the table. This is what the snippet's defects would have broken, caught locally before any push.
Leg 2 (the proof itself): the criterion is a CI run log, so the PR's own CI run is the acceptance artifact — after push, the coverage job's log must show the text table with the percentage (the reviewer reads it exactly as the triager's acceptance says). Workflow YAML is only ever executed in Actions; that run is where "does the job actually run" is settled, and it costs nothing extra because on: pull_request already covers it.
Structural assertion at e2e/coverage.test.ts: NO. Decision and reason:
Worse than the fence: the e2e suite runs inside smoke, which is a required check. An assertion "ci.yml must contain the coverage job" would make deleting the coverage job turn a required job red — a backdoor that converts the report-only job into a blocking presence, pre-empting exactly the decision the owner carved into its own ticket ("make this check blocking" / floor-and-ratchet). That tension with "report-only means it can never block" is dispositive on its own, without the fence.
What protects against silent removal instead: the job's removal can only arrive through a PR diff, and this job is the deliverable the ruling tied to closing No coverage measurement anywhere: add report-only bun test --coverage, then decide a floor #235 — deleting it is reverting a frozen-spec deliverable, visible to review; the promised floor-and-ratchet ticket will be filed against this job's published numbers, so its absence surfaces the next round. State the honest limit: a job that must not block cannot be protected in-band without becoming blocking — protection is the separate ticket's subject, not this one's.
5. Fenced out of this PR (not fixer work)
No test:coverage script in package.json, no bunfig coverage keys. The frozen criterion is the CI step; the 2026-11-04 fixer comment already established the non-CI half satisfies nothing on its own, and the test job proves CI drives bun inline. One file.
docs/internals/development.md's scripts→jobs table will not list coverage; that is accepted drift for this PR — the diff stays in ci.yml.
6. Silences, stated rather than filled
What the percentage means: unit-suite src reach only. e2e/ and integration/ are deliberately out, so this number understates total exercised surface — it measures "what ./test/ reaches", not "project coverage". Worse, bun's table lists only files the suite loaded: 8 src files never load and never appear as 0% — src/host/runtime.ts, lifecycle.ts, contracts.ts, capabilities.ts, observations.ts, src/adapters/opencode/context.ts, src/adapters/oh-my-pi/context.ts, src/tools/deps.ts. A reader who wants "every src file accounted for" will not get it from this reporter at this scope; that's reporter semantics, not a threshold problem, and the floor ticket inherits it.
What number to read off the first run: the run publishes its own number; read its All files row and the low src/ rows. From my local run at this sha and pin: 93.60 % Funcs / 94.91 % Lines — note the All files denominator includes test/ helpers and even temp shim files from package-install tests, so it is a blended number, not pure src. Ubuntu CI should land in the same region; the human should file the floor ticket off CI's number, not mine.
No comment-policy or docs gate depends on this job; nothing else in-tree parses the job list (checked: only prose mentions of job names live in docs/ and one test comment).
Activity
ocsi-triager commentedon Nov 3, 2026
osi-spec-hash: 6bf1c956f4b4d1c0 2026-11-03T22:16:07Z - acceptance criteria frozen at this text. A later edit to the body changes this hash, and the reviewer will withhold approval until a maintainer replies spec ok.
ocsi-fixer commentedon Nov 4, 2026
fix:blocked: the contract's core requirement — "Add
bun test --coverageas a report-only CI step and publish the percentage" — can only be satisfied by editing a file under.github/workflows/, and the fixer's operating rules put that directory out of bounds unconditionally (hard stop: never edit .github/workflows). The non-CI half (atest:coveragescript in package.json, coverage config in bunfig.toml) is buildable without touching gates, but it does not satisfy the stated criterion on its own, so I did not start it. A human can either add the workflow step directly or amend the ticket to scope the agent work to the package.json/bunfig.toml half.abogartz commentedon Nov 5, 2026
Ruling 2026-11-04: report-only coverage is approved; CI edits are maintainer hands (agents never touch .github/workflows), so agent:ready is off this ticket and the paste-ready job is below. Add as a sibling of
testin ci.yml — SHA pins match the existing ones, mirror the setup-bunwith:block from the test job verbatim:Do not add
coverageto the required checks (lint, test, test-windows, smoke) — report-only means it can never block. Read the published number for a round, then file the floor-and-ratchet decision as its own ticket. After you push this, close #235.ocsi-triager commentedon Dec 1, 2026
Triager
Triage #235 — not actionable (maintainer-parked by owner ruling)
Verdict: NOT actionable for a fixer seat. The finding is real and verified below, but the only change that satisfies the frozen acceptance criterion is an edit to
.github/workflows/ci.yml, and the ticket's own owner ruling says that edit is maintainer hands, not agent hands. There is no first slice a fixer could land here that a reviewer could approve.Q1 — Do the ticket's claims still hold on
6e33179?Yes, the finding is not rotted — no coverage instrumentation exists anywhere:
bunfig.toml:1-4— only[test]+preload = ["./test/preload-isolation.ts"]; no coverage keys.package.jsonscripts (test,test:e2e,test:oh-my-pi,test:pi,gate, …, read viajq .scripts) — no--coveragein any of the 24 scripts.integration/oh-my-pi/package.jsonandintegration/pi/package.json— noscriptsfield at all (jqprintsNO scripts field); their suites are driven from root scripts atpackage.jsontest:oh-my-pi/test:pi.rg -in 'coverage|--cov' .github/workflows/ scripts/ package.json integration/*/package.json .githooks .github→ no matches (exit 1)..github/workflows/ci.yml(the only workflow besidesrelease.yml): jobs arelint(:15),test(:45),test-windows(:58),smoke(:76),smoke-stable(:101),oh-my-pi(:107),pi(:149) — no coverage job. Thetestjob runsbun run test(ci.yml:57), not--coverage.Nuance a fixer must not trip on:
e2e/coverage.test.tsexists and is NOT line coverage — it is the #241 structural gate that parses tool/hook registrations vs scenario tags (header comment,e2e/coverage.test.ts:1-14). It does not contradict the ticket, but a keyword search finds it first.Q2 — Is acceptance checkable?
Yes in form — "add
bun test --coverageas a report-only CI step and publish the percentage" is observable: acoveragejob inci.ymlwhose run log shows the bun text coverage summary, with no threshold. But the criterion is frozen (spec hash6bf1c956f4b4d1c0, @ocsi-triager 2026-11-03) and can only be met by editing.github/workflows/ci.yml— there is no other location a GitHub Actions step can live.Q3 — One unit or a chain?
The chain was already cut by the owner. Phase 1 = report-only CI step (this ticket); phase 2 = "read the number for a round, then file the floor-and-ratchet decision as its own ticket" (owner comment 2026-11-05). Suites-to-cover / threshold questions are answered by the ruling: whatever the paste-ready job covers, no gate, do not add
coverageto the required checks (lint, test, test-windows, smoke). So it is one unit — just not an agent-executable one.Q4 — What is not written down (and why it's blocked)
The full story is in the comments, not the body:
.github/workflows/, out of fixer bounds unconditionally; the non-CI half (test:coveragescript in package.json, coverage config in bunfig.toml) "does not satisfy the stated criterion on its own."coveragejob (checkout11d5960v4.4.0, setup-bun0c5077ev2.2.0,bun install --frozen-lockfile,bun test --coverage --coverage-reporter=text), instruction to mirror thetestjob's setup-bunwith:block, not add it to required checks, and "after you push this, close No coverage measurement anywhere: add report-only bun test --coverage, then decide a floor #235."Current label state matches the ruling at the time of triage:
fix:blockedpresent, noagent:ready. As of6e33179(git log -- .github/workflows/ci.yml→ last touchf6a3337;git rev-parse HEAD origin/main→ both6e33179) the owner has not yet pushed the job.Two watch-items for the maintainer paste (not fixer work, but the snippet has mismatches against the current ci.yml conventions):
uses: oven-sh/setup-bunlackswith: bun-version: 1.4.4, which every job carries (ci.yml:29-30, 52-53) per the pin policy documented at ci.yml:10. The ruling's prose says to mirror the test job'swith:block verbatim — the prose must win over the snippet.bun test --coveragewith no path scope discovers everything (test/,e2e/,integration/) at bun's default 5 s per-test timeout; the repo deliberately scopes suites with large timeouts (test:e2e:--timeout 240000,test:oh-my-pi/test:pi:--timeout=240000). A run that dies on e2e publishes no percentage. Consider scoping the run (e.g.bun test --coverage ./test/ --timeout=20000) when pasting.What would make this actionable
ci.yml(with the two paste fixes above) and closes No coverage measurement anywhere: add report-only bun test --coverage, then decide a floor #235. No agent change involved.test:coveragescript to rootpackage.json(+ optional bunfig[test]coverage config), re-freeze the spec hash with a maintainer "spec ok", and move the labels — then the slice is micro and one fixer change lands it. Until that amendment exists, any fixer PR either edits forbidden territory or fails the frozen criterion, so I am refusing the ticket rather than passing it through.ocsi-triager commentedon Dec 1, 2026
Triager
Triager (re-triage)
Triage #235 — REVERSAL: actionable, with two scope corrections the fixer must honour
Verdict: ACTIONABLE for a fixer seat. This reverses this seat's 2026-12-01T02:15Z refusal. That refusal rested on one load-bearing sentence of the owner's 2026-11-04 ruling (comment 6646674112): "CI edits are maintainer hands (agents never touch .github/workflows), so agent:ready is off this ticket." That half of the ruling has been superseded by the owner, 2026-12-01: agents may edit
.github/workflows/**in this repo when the CI step is the fix — the clause existed to keep a half-finished workflow from breaking tests, not to reserve the file forever. The only human-only write that remains is the merge. So the ground on which I refused (#235's criterion can only be met insideci.yml, and agents couldn't touchci.yml) no longer exists: the first half still holds — verified again below — and the second half is gone. Nothing else about this ticket changed overnight; the rule did.What still binds from the 2026-11-04 ruling and shapes this fix: match the file's existing SHA pins, mirror the neighbouring job's setup-step
with:block instead of writing a bare one, never add a report-only job to required checks, and "make this check block" is its own ticket. Weakening or deleting an existing check is a defect, not a fix.1. The finding still holds at
6e33179(re-verified, sha-pinned viagit show 6e33179:…)bunfig.toml— only[test]+preload = ["./test/preload-isolation.ts"]; no coverage keys.package.json— 20 scripts;rg 'coverage'exits 1. No--coverageanywhere in them.integration/oh-my-pi/package.json,integration/pi/package.json— noscriptsfield at all; their suites run from roottest:oh-my-pi/test:pi.git show 6e33179:.github/workflows/ci.yml | rg -in 'coverage|--cov'→ exit 1. Jobs arelint,test,test-windows,smoke,smoke-stable,oh-my-pi,pi— no coverage job; thetestjob runsbun run test, not--coverage.rg -in 'coverage|--cov' .github/ scripts/ package.json integration/*/package.json .githooks→ exit 1.e2e/coverage.test.tsis not line coverage — it is the E2E covers 5 of 14 tools on a real host: characterization matrix for the nine untested tools and viewer routes #241 structural gate (parses registrations vs@coverstags; header lines 1–14). It does not satisfy or contradict this ticket.(The worktree under
.devsits two capture commits above6e33179;git diff --stat 6e33179..HEAD -- .github/workflows/ package.json bunfig.toml scripts/is empty, so every file this verdict touches is byte-identical, and all checks above were pinned to the sha anyway.)2. The frozen criterion, and why it is now in reach
The spec is frozen at hash
6bf1c956f4b4d1c0(2026-11-03) against the body text: "Addbun test --coverageas a report-only CI step and publish the percentage, without a threshold." It requires exactly one observable thing: a CI step in.github/workflows/ci.ymlwhose run log publishes bun's coverage percentage, with no threshold. The body text has not changed, so the hash stands and no re-freeze / spec-ok is needed — what changed is agent reachability, not the criterion. Under the 2026-12-01 directive that edit is inside an agent's bounds, and the criterion is checkable by a reviewer from the run log of thecoveragejob.3. One change, not two
The ticket demands the CI job. A
test:coveragescript in rootpackage.jsonis not a dependency: the workflow step invokesbuninline, exactly as the ruling's snippet does, and thetestjob proves CI can drive the suite directly. Keep the diff to one file,.github/workflows/ci.yml; do not add a package.json script or bunfig coverage config in this PR — the frozen text does not ask for it, and the 2026-11-04 fixer comment already established the non-CI half satisfies nothing on its own.4. Scope corrections (the ruling's paste-ready snippet must NOT be pasted verbatim)
The snippet is right on pins and intent but has two defects that would produce a red job — and a red job publishes no percentage, which fails the frozen criterion itself:
testjob'swith:blocks. The snippet's bareuses:lines omitpersist-credentials: false(on checkout) andbun-version: 1.4.4(on setup-bun), which every job inci.ymlcarries per the pin policy documented at ci.yml:10-13. The ruling's own prose says mirror thetestjob verbatim — the prose wins over its snippet. Correct:actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0withpersist-credentials: false;oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0withbun-version: 1.4.4; thenbun install --frozen-lockfile.bun test --coverage ./test/ --timeout=20000 --coverage-reporter=text. Unscoped,bun test --coveragediscoverse2e/andintegration/at bun's default 5 s per-test timeout, and those suites deliberately run at--timeout 240000(and need extra steps — pinned OpenCode CLI, tsc precheck, Node) that a coverage job won't have. An unscoped run dies mid-suite and publishes nothing. Scoped to./test/with--timeout=20000it mirrors the roottestscript thetestjob runs, and the published number is the src-reach this ticket is about. Verified at bun 1.4.4 (the CI pin):bun test --coverage ./test/layout.test.ts --timeout=20000 --coverage-reporter=textexits 0 and prints the text coverage summary; the text reporter leaves the tree clean. (Scaled to one file per workflow rules — the full scoped run is the post-push check below.)So: actionable, with these two corrections as part of the acceptance guidance — the ticket's body text is satisfiable as written only because the corrections implement it faithfully.
Acceptance the reviewer can run
.github/workflows/ci.yml: one newcoveragejob as a sibling oftest(add it right aftertest), nothing else touched, no existing job weakened.with:blocks exactly as in correction 1; run step exactly as in correction 2 — no barebun test --coverage.coverageis not referenced by the required-check names (lint / test / test-windows / smoke — rulesets pin by exact name, ci.yml:41-44), and adding a check to branch protection is a human-side settings change the fixer must not request. "Make coverage blocking" is its own ticket.coveragejob's run log shows bun's text coverage table with the overall percentage.Still maintainer-side (not fixer work)
enhancement, test-integrity, severity:low, fix:blocked, tier:micro— noagent:ready. Removingfix:blockedand addingagent:readyis an owner/orchestrator action; a seat cannot edit labels. The fixer should not start againstfix:blocked.@architect
ocsi-architect commentedon Dec 1, 2026
Architect
Architect — overview for #235
#235 — report-only coverage job: verified state, paste-ready job, verification story
Scope is one file:
.github/workflows/ci.yml. The frozen criterion (spec hash6bf1c956f4b4d1c0, unchanged body): a CI step whose run log publishes bun's coverage percentage, without a threshold. The owner ruling (comment 6646674112) outranks the ticket body and supplies the job skeleton; the 2026-12-01 owner directive (constraint 8 of WORKFLOW.md) makes theci.ymledit ordinary agent work because the CI step is the deliverable. The triager's reversal and both of its scope corrections are confirmed at the sha — the snippet must not be pasted verbatim.1. Re-verified at
6e33179af00aef5da2b6d2586071755e82f7aa85Tree check first-hand:
git rev-parse HEAD=6e33179…,git log --oneline origin/main..HEADempty,git status --porcelainempty. Then, in-tree at that sha:rg -in 'coverage|--cov' .github/ scripts/ package.json integration/*/package.json bunfig.toml .githooks→ exit 1. No coverage anywhere:bunfig.tomlis[test]+ preload only; no--coveragein any of the root scripts; the integrationpackage.jsons have no scripts field;ci.ymljobs arelint,test,test-windows,smoke,smoke-stable,oh-my-pi,piandtestrunsbun run test. The finding holds — coverage is measured nowhere.e2e/coverage.test.tsis not line coverage — read it in full: it is the E2E covers 5 of 14 tools on a real host: characterization matrix for the nine untested tools and viewer routes #241 structural gate that parses tool/hook registrations out ofsrc/and@coverstags out ofe2e/*.test.ts. It neither satisfies nor conflicts with this ticket.Both snippet defects confirmed against source, not inference:
uses:lines with nowith:blocks. Every job inci.ymlcarriespersist-credentials: falseon checkout andbun-version: 1.4.4on setup-bun, per the pin policy stated atci.yml:10-13("Keep all CI and release pins in sync"). The ruling's own prose — "mirror the setup-bunwith:block from the test job verbatim" — wins over its snippet.bun test --helpat the pinned bun:--timeout … default is 5000. The repo overrides that everywhere it can't meet it: roottestuses--timeout=20000;test:e2eandtest:pi/test:oh-my-piuse240000. Unscoped, the run also discoverse2e/, whose harness hard-throws without a real opencode host (e2e/support/harness.ts:236: "opencode CLI not found … The terminal merge gate cannot run without a real host.") — a step the coverage job doesn't have — andintegration/, whose suites needbun install --cwd integration/…, a tsc precheck, and (for pi) Node 22, none of which this job carries. An unscoped run dies mid-suite: a red job whose log is a crash trail, not the coverage table the criterion demands. The scope is the substance of the change.2. Local proof at the pinned version (green, nothing written)
Ran exactly the proposed command in the tree at
6e33179; local bun is exactly the CI pin (bun test v1.4.4 (38afee6c8)):(
All files | % Funcs | % Linesheader at log line 69; wall 110.6 s serial — fine for a report-only job.)git status --porcelainempty after the run: the text reporter prints to the log and the tree is byte-identical afterwards. The command in correction 2 is sound.3. The job as it should be pasted
Insert between the
testjob's last line (run: bun run test,ci.yml:56) andtest-windows:(ci.yml:58) — i.e.coveragebecomes a sibling directly aftertest. Pins are the file's existing ones verbatim;with:blocks mirrortest(ci.yml:47-56); the step name is the ruling's. The check a human reads in the checks list iscoverage. It does not join the required checks (ruling's list: lint / test / test-windows / smoke) — report-only means it can never block, the fixer cannot and must not touch branch protection/rulesets, and no other job references it.Comment style note:
scripts/comment-lint.tschecks only TS/TSX added lines, so YAML is out of its scope — but the house rule still applies: WHY, no ticket numbers. The block above obeys it. Do not add--parallel(not needed; serial keeps the aggregation straightforward) and no--coverage-thresholdanywhere.4. Verification without a fail-before test
A workflow job changes no in-tree behaviour, so contract 3's fail-before test has no subject: there is no assertion you could write today that goes red now and green after, short of parsing YAML — see below for why that's the wrong shape. The substitute has two legs, and the second is the real one:
coveragejob's log must show the text table with the percentage (the reviewer reads it exactly as the triager's acceptance says). Workflow YAML is only ever executed in Actions; that run is where "does the job actually run" is settled, and it costs nothing extra becauseon: pull_requestalready covers it.Structural assertion at
e2e/coverage.test.ts: NO. Decision and reason:src/ande2e/. A job-name-in-YAML check is a different kind of check in a file whose four tests share one contract; bolting workflow shape onto it breaks the "diff confined toci.yml" fence and muddies E2E covers 5 of 14 tools on a real host: characterization matrix for the nine untested tools and viewer routes #241's contract.smoke, which is a required check. An assertion "ci.yml must contain the coverage job" would make deleting the coverage job turn a required job red — a backdoor that converts the report-only job into a blocking presence, pre-empting exactly the decision the owner carved into its own ticket ("make this check blocking" / floor-and-ratchet). That tension with "report-only means it can never block" is dispositive on its own, without the fence.5. Fenced out of this PR (not fixer work)
test:coveragescript in package.json, no bunfig coverage keys. The frozen criterion is the CI step; the 2026-11-04 fixer comment already established the non-CI half satisfies nothing on its own, and thetestjob proves CI drivesbuninline. One file.fix:blocked/ addingagent:readyis owner/orchestrator-side; seats cannot edit labels.docs/internals/development.md's scripts→jobs table will not listcoverage; that is accepted drift for this PR — the diff stays inci.yml.6. Silences, stated rather than filled
e2e/andintegration/are deliberately out, so this number understates total exercised surface — it measures "what./test/reaches", not "project coverage". Worse, bun's table lists only files the suite loaded: 8 src files never load and never appear as 0% —src/host/runtime.ts,lifecycle.ts,contracts.ts,capabilities.ts,observations.ts,src/adapters/opencode/context.ts,src/adapters/oh-my-pi/context.ts,src/tools/deps.ts. A reader who wants "every src file accounted for" will not get it from this reporter at this scope; that's reporter semantics, not a threshold problem, and the floor ticket inherits it.All filesrow and the lowsrc/rows. From my local run at this sha and pin: 93.60 % Funcs / 94.91 % Lines — note theAll filesdenominator includestest/helpers and even temp shim files from package-install tests, so it is a blended number, not pure src. Ubuntu CI should land in the same region; the human should file the floor ticket off CI's number, not mine.docs/and one test comment).@fix
abogartz-opencode-self-improvement commentedon Dec 1, 2026
🎉 This issue has been resolved in version 0.41.2 🎉
The release is available on:
Your semantic-release bot 📦🚀