GeezerVison is showing github.com — ci(opencode-config-guard): the metered-provider guard never runs — the Nov 4 sweep removed its pull_request and push triggers, and ci-policy still assigns it PR + main tiers · Issue #6953 · developing-today/code
ci(opencode-config-guard): the metered-provider guard never runs — the Nov 4 sweep removed its pull_request and push triggers, and ci-policy still assigns it PR + main tiers #6953DescriptionProblem
.github/workflows/opencode-config-guard.yml — the workflow that runs the metered/PAYG provider guard (bin/check-opencode-metered-providers.mjs + its fixtures) over the canonical .opencode/opencode.jsonc — no longer runs on the events its own policy assigns it:
- Current
on: (workflow lines 4–6) is only merge_group: + workflow_dispatch:.
.github/ci-policy.md ("OpenCode metered-provider config guard", lines 117–118) still states the workflow "runs the static guard and its fixtures on pull requests, merge groups, and pushes to main", and the job is named basic: OpenCode metered-provider guard — basic: is the PR tier in this repo's policy.
- Commit 5a94833 (2026-11-04, "ci: remove push/pull_request triggers (dispatch/schedule only)") deleted the
pull_request: trigger — which was deliberately path-gated to the four files the guard cares about (.opencode/opencode.jsonc, bin/check-opencode-metered-providers.mjs, bin/check-opencode-metered-providers.test.mjs, the workflow itself; id(ci): F11.4 regression — fast-lane median PR feedback is 19m09s over the last ten runs (exit: under 15m) #1401, to avoid runner-backlog queueing) — and the unfiltered push: branches: [main] trigger. The pre-sweep header comment recorded the design: "merge_group and push to main stay unfiltered, so the queued head and main are always validated."
- Live run history confirms the effect: the 30 most recent runs of this workflow are all push/pull_request runs on or before 2026-11-03T02:21Z — zero runs since the sweep, in a repo that merges PRs daily. The retained
merge_group: trigger has produced no recorded run in that window either.
This is the same sweep and the same failure shape as issue #6929 (mcpx fix-test guard), in a different workflow: a guard that exists, is policy-assigned to the PR and main tiers, and silently never executes — so a metered provider selection (a direct PAYG deepseek route or a cloudflare-* target without a payg-exception comment) can now land in the canonical OpenCode config with no CI signal at all. The policy's Coverage rule ("Nothing removed from PRs may vanish") is violated in the same way.
Evidence (verified this run, laptop @ 56b6a47)
sed -n 1,20p .github/workflows/opencode-config-guard.yml: on: = merge_group: + workflow_dispatch: only; job name basic: OpenCode metered-provider guard.
grep -n "opencode-config-guard" .github/ci-policy.md → lines 117–118 promise pull requests, merge groups, and pushes to main.
git show 5a94833ea3 -- .github/workflows/opencode-config-guard.yml: removes the path-gated pull_request: block and push: branches: [main], keeps merge_group: + workflow_dispatch:.
gh run list --workflow opencode-config-guard.yml --limit 30: newest run 2026-11-03T02:21:31Z (push, cancelled); all 30 are push/pull_request on or before 2026-11-03; no merge_group, push, or pull_request run since.
- Dedup:
gh searches for "opencode-config-guard" / "metered-provider guard" (open + closed) find issue opencode config guard: fail CI when a metered/PAYG provider (cloudflare-*) is a route target or default without an explicit exception #2288 (closed — the guard's creation), issue check-opencode-metered-providers: entry-point check uses resolve() not realpath — invoked via any symlink the PAYG guard silently no-ops with exit 0 #4694 (closed — a symlink bug in the checker script itself), and issue ci(opencode-config-normalize): normalize_test.sh (590 lines, #2364 fixtures incl. data-loss mirror) run by no workflow — the service inlines normalize.sh into the live config path #6065 (open — opencode-config-normalize test suite unwired, a different package). No issue covers this workflow's lost triggers. Sibling issue ci(mcpx): the #1969 fix-test guard never runs — its workflow lost every trigger in the Nov 4 sweep, and ci-policy still assigns it a PR tier and a main tier #6929 covers the mcpx fix-test guard only. Checked and not filed: fleet-search-parity-guard.yml is also merge_group+dispatch only, but it was born that way in bfbd19e (fleet-search: pyjson/render verbatim copies of atlas-search have no drift guard — the byte-parity contract (#5433) is unenforced #5920) and ci-policy.md makes no PR/push promise for it.
Why it matters
This guard is the only CI check standing between the canonical OpenCode config and a metered/PAYG provider selection — the exact exposure the house rules treat as a money leak (disabled providers are checked too, so a later re-enable cannot silently restore metered routes). It has been dark for four days while its policy text, its basic: job name, and its fixtures all claim it runs on PRs and main. Either the triggers come back (path-gated, as #1401 designed them) or the policy and the guard's claimed tier must be retired honestly — the current state is a guard that reads as coverage and provides none.
Acceptance criteria
- A decision is recorded on this issue: restore the triggers, or retire the policy promise (restore-vs-retire is triage's call, as with issue ci(mcpx): the #1969 fix-test guard never runs — its workflow lost every trigger in the Nov 4 sweep, and ci-policy still assigns it a PR tier and a main tier #6929).
- If restored:
pull_request: returns with the id(ci): F11.4 regression — fast-lane median PR feedback is 19m09s over the last ten runs (exit: under 15m) #1401 path gate (.opencode/opencode.jsonc, bin/check-opencode-metered-providers.mjs, bin/check-opencode-metered-providers.test.mjs, .github/workflows/opencode-config-guard.yml) and push: branches: [main] returns unfiltered; merge_group: and workflow_dispatch: stay. No duplicate push+pull_request execution of the same suite for the same commit (ci-policy Dedup rule).
- After the fix, a recorded workflow run on a relevant PR (or a dispatch run plus the next relevant merge) proves the guard executes again; the run link is posted on this issue.
- If retired instead:
.github/ci-policy.md's OpenCode metered-provider guard section and the job's basic: naming are corrected in the same change, so no document claims coverage that does not run.
- Either way, ci-policy.md and the workflow agree afterward, and the ci(mcpx): the #1969 fix-test guard never runs — its workflow lost every trigger in the Nov 4 sweep, and ci-policy still assigns it a PR tier and a main tier #6929 sibling is cross-linked (same sweep commit 5a94833).
Activitydeveloping-today commented on Nov 7, 2026 dezren39 commented on Nov 7, 2026 🤖 Agent note · filed
- Agent: new-issue-creator job (lane A, new-issue-creator-code-a)
- Session / ID: cron new-issue-creator-code-a, run 2026-11-07 14:35 CST
- Found via: filed this run
- Task: Restore (or honestly retire) the opencode-config-guard workflow's triggers: sweep commit 5a94833 removed its path-gated pull_request trigger and its push-to-main trigger, ci-policy.md still assigns it PR + merge-group + main coverage, and it has recorded zero runs since 2026-11-03.
- Expectation: effort s; done when the acceptance criteria on issue ci(opencode-config-guard): the metered-provider guard never runs — the Nov 4 sweep removed its pull_request and push triggers, and ci-policy still assigns it PR + main tiers #6953 pass — a recorded decision (restore path-gated PR + unfiltered main triggers, or correct the policy/naming), and afterward ci-policy.md and the workflow agree, with a proving run link if restored.
- Links: sibling issue ci(mcpx): the #1969 fix-test guard never runs — its workflow lost every trigger in the Nov 4 sweep, and ci-policy still assigns it a PR tier and a main tier #6929 (mcpx fix-test guard, same sweep commit 5a94833, different workflow); guard creation issue opencode config guard: fail CI when a metered/PAYG provider (cloudflare-*) is a route target or default without an explicit exception #2288 (closed)
developing-today commented on Nov 8, 2026 agent-note:v1 — design-architect pass 70 (2026-11-07): this issue is ADOPTED as Phase 2 of the ci-policy agreement design (design issue filed this pass via the fleet outbox — title "Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows", kind/design + user/review; design doc files/designs/code-ci-policy-agreement.md in the keep-the-four-repos-healthy goal workspace). Triage: do NOT re-file, re-scope, or split this issue as a standalone restore-or-retire question. Recorded disposition under the design: its merge_group: leg already satisfies the design's tier→trigger mapping for a basic-tier guard; the defects to close are (1) the venue is disabled_manually (verified again this pass — zero runs since 2026-11-03) and (2) ci-policy's text promises pull requests + pushes to main, which must either be restored under Drew's ruling on the design issue or struck to match the mapping. The re-enable execution waits for that ruling (the design issue's top line); the policy-text agreement does not. Phase 1 (the agreement checker) will carry this issue as a named waiver until Phase 2 lands. dezren39 commented on Nov 11, 2026 Phase 2 disposition landed 2026-11-11 under Drew's #7089 ruling (PR #8596, merged cd2d7f28): push to main restored on .github/workflows/opencode-config-guard.yml (the #1401 path gate was also restored on the pull_request leg, extended to the workflow's current check set; merge_group not restored — no merge queue, Drew ruling 2026-11-08), and the venue was re-enabled via the Actions API (state read-back: active). Proof it fires on main: push run 42980471004 from a natural merge ~40 s after re-enablement (+ dispatch run 42980480449); both queued at record time behind the repo-wide backlog. The #7089 waiver for this issue (opencode-config-guard.yml|main|6953) was deleted in the same PR, per the agreement contract. dezren39 commented on Nov 14, 2026 Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 15214 moved from blocked/parked to queued in the fleet unblock-all pass (worker main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet. dezren39 commented on Nov 14, 2026 🤖 Agent note · triaged
Decision: RESTORED (already executed by the ci-policy agreement program) — the retire path is not taken, and the PR-tier promise was struck to match, per Drew's ruling. Recorded here so this issue's decision checkbox is answered on the issue itself:
- The restore-vs-retire question for both basic-tier guards was adopted by the ci-policy agreement design (design doc
code-ci-policy-agreement.md, goal workspace) as its Phase 2, and its implementation issue Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows #7089 is CLOSED. Commit 82377fa ("ci(Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows #7089): re-arm production-line-guard + opencode-config-guard for main") re-armed this guard.
- The design's original merge_group pin was superseded by Drew's 2026-11-08 ruling (code#5149, commit b68ea46): merge_group triggers were removed repo-wide — there is no merge queue — and this repo's standing rule is CI on main only. So the guard's agreement shape is the main tier:
.github/workflows/opencode-config-guard.yml at current main has on: push: branches: [main] + workflow_dispatch:, and .github/ci-policy.md line 74 now promises exactly "main push" for it. Policy and workflow agree (acceptance item 5), and the sibling cross-link (item 5) is ci(mcpx): the #1969 fix-test guard never runs — its workflow lost every trigger in the Nov 4 sweep, and ci-policy still assigns it a PR tier and a main tier #6929 — same sweep commit 5a94833, same design adoption, also closed.
- Venue executes: push runs are being created on main today — e.g. run 43590819913 (2026-11-14T11:36:15Z), 43590662410, 43590474517 — all currently
queued in the repo-wide runner backlog (the same backlog holding every main workflow today). Trigger + venue are proven; a completed green run is a runner-queue wait, not a guard defect. The standing Phase 4 closing audit (Closing agreement audit — every ci-policy-named workflow against all three legs (Phase 4 of the ci-policy agreement design) #7091) re-checks every ci-policy workflow's legs and is the tracker for the completed-run proof; ci(workflow-lint): ci-policy agreement contract test fixtures are stale after the #7089 re-arm #8945 covers the agreement fixtures left stale by the re-arm.
- The guard itself is green on current main (verified locally on the laptop at main, 2026-11-14):
node bin/check-opencode-metered-providers.mjs → "Metered-provider config guard passed" (exit 0) against the canonical .opencode/opencode.jsonc, and its fixtures pass 18/18 (node --test bin/check-opencode-metered-providers.test.mjs).
What did NOT happen: the #1401 path-gated pull_request: trigger was not restored. That is the design's recorded outcome (PR-tier promises struck to match the main-only CI rule), not an oversight — restoring it would contradict Drew's #5149 ruling and the runner-strategy position the design cites.
Task 15214 completes as triaged (decision recorded, evidence above, no follow-on task needed — #7091/#8945 already track the remainder). Issue #6953 stays open until a queued run completes green and is linked here, per its own acceptance.
dezren39 commented on Nov 14, 2026
agent-note:v1
state: done (already resolved)
Verdict (fresh, 2026-11-14): the failure this issue names no longer exists; the current state is deliberate and coherent. Closing as already resolved.
- The Nov 4 sweep did remove the triggers, but two later decisions superseded that state: commit 82377fa ("ci(Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows #7089): re-arm production-line-guard + opencode-config-guard for main") restored the main-push trigger, and commit 63cea0d deliberately disabled PR triggers ("restrict automatic push runs to main and disable PR triggers").
.github/ci-policy.md now assigns opencode-config-guard the "main push" tier (line 74) — the issue's premise that policy still assigns PR + main tiers is stale; policy and workflow agree.
- The guard runs:
gh run list for opencode-config-guard.yml shows push-triggered runs today (2026-11-14, currently queued in the CI backlog) — it triggers on main pushes as designed.
If PR-tier coverage for the metered-provider guard is wanted again, that is a new ci-policy decision (against the standing disable-PR-triggers ruling), not a repair of this defect.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|