Repository navigation
Closed
Labels
area/ciCI/CD pipelines, workflows, and build automation (area)CI/CD pipelines, workflows, and build automation (area)kind/ciCI/CD pipelines, workflows, and build automationCI/CD pipelines, workflows, and build automationsource/design-architectFiled by the repo design architect jobFiled by the repo design architect jobstatus/triagedTriaged and routed (see agent note)Triaged and routed (see agent note)
Description
Agreement checker — fail when ci-policy's tiers and a workflow's triggers disagree (Phase 1)
Phase 1 of the ci-policy agreement design (design issue filed pass 70, 2026-11-07, title "Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows"; design doc files/designs/code-ci-policy-agreement.md in the keep-the-four-repos-healthy goal workspace). This phase is NOT gated on Drew's ruling recorded at the top of the design issue — the checker enforces agreement under any ruling.
Scope
- Write the tier→trigger mapping into
.github/ci-policy.md: a basic/PR-tier guard is satisfied bymerge_groupplus its path gate where one existed; a main-tier assignment requirespush: branches: [main](path gates as before) or a named main-tier venue running the same check; aworkflow_dispatch:-only trigger block satisfies no tier. - Add the missing ci-policy tier-table row for
production-line-guard.yml(it currently has none — its absence is invisible from the policy side, ci(production-line-guard): the F11.10 line guard never runs — dispatch-only since the Nov 4 sweep, and main already fails it (directory.rs 2,610 lines, ungrandfathered) #6959). - A checker script under
.github/scripts/(house style: pure bash, contract tests beside it, per the existing guard scripts) that parses every workflow ci-policy names in a section or tier-table row, compares itson:block against the mapping for its assigned tiers, and fails naming the workflow and the missing leg (tier, trigger, or — where the tree can see it — a policy row naming a workflow file that does not exist). - Wire the checker into
workflow-lint.yml(active; fires onpull_request+merge_groupover.github/workflows/**,.github/actions/**and the checker files), so a future trigger sweep cannot land without the check firing in the same change. - The known disagreements at filing (Phases 2–3 of the design: 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, 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, ci(production-line-guard): the F11.10 line guard never runs — dispatch-only since the Nov 4 sweep, and main already fails it (directory.rs 2,610 lines, ungrandfathered) #6959, ci(go-module builds): identity/map/go-modules/mcpx-nixbuild never run — dispatch-only since the Nov 4 sweep AND disabled_manually, while ci-policy assigns them PR + main tiers #6981) land as explicit waiver entries in the checker naming their phase issue and disposition state — the checker is green on main with the disagreement set explicit, never silently exempted. A waiver with no live phase issue fails the checker.
Acceptance criteria
- The tier→trigger mapping and the production-line-guard row are in
.github/ci-policy.md. - The checker exists on main, runs in workflow-lint, and passes on the current tree with exactly the Phase 2–3 waivers.
- Probe evidence posted on this issue: on a scratch branch, remove a tier-required trigger from an in-scope workflow and show the checker fails naming it; add a ci-policy row for a nonexistent workflow and show it fails again.
- The design issue is commented with the landing state.
Do not re-arm or retire any workflow in this phase — that is Phases 2–3. Do not extend the checker to test suites (that registry is #6185's, design #6186/#6188) or to workflows ci-policy does not name.
Metadata
Metadata
Assignees
Labels
area/ciCI/CD pipelines, workflows, and build automation (area)CI/CD pipelines, workflows, and build automation (area)kind/ciCI/CD pipelines, workflows, and build automationCI/CD pipelines, workflows, and build automationsource/design-architectFiled by the repo design architect jobFiled by the repo design architect jobstatus/triagedTriaged and routed (see agent note)Triaged and routed (see agent note)
Activity
developing-today commentedon Nov 8, 2026
CODE-2244
dezren39 commentedon Nov 8, 2026
🤖 Agent note · filed
developing-today commentedon Nov 8, 2026
agent-note:v1 — Agent: repo-design-architect-code (pass 71); state: phase — Phase 1 of design #7089; linked and enqueued this pass.
This issue was delivered by the fleet outbox (OB-2026-11-08-003, filed pass 70). Pass 71: linked as a sub-issue of design #7089 (verified in its sub_issues list, count=6) and a triage packet was enqueued with explicit
--queue repo-health-code-pilot→ task 13098 (queued, dedupe-verified). This phase is NOT gated on Drew's ruling at the top of #7089 — the checker enforces agreement under any ruling. Triage: do not re-file, re-scope or split this phase; record the phase structure from #7089 and the design doc (files/designs/code-ci-policy-agreement.md) instead.developing-today commentedon Nov 8, 2026
🤖 Agent note · picked up
49 remaining items
dezren39 commentedon Nov 9, 2026
Unrelated tier-table drift found during the Phase 1 audit (for Phase 4, not this phase)
Per the recorded scope default, the checker covers only the seven Phase 1 guard/build workflows. The audit found these other ci-policy tier-table rows whose current triggers disagree with their promise. They are not waived and not reconciled here; Phase 4 (#7091) is the closing inventory that should dispose of them.
on:nix-ci.ymlschedule+workflow_dispatchmcpx-conformance.ymlworkflow_dispatchonlyid-bench.ymlworkflow_dispatchonlymcpx.ymlschedule+workflow_dispatchlab-ops-hub.ymlworkflow_dispatchonlymod-tidy.ymlworkflow_dispatchonlyresearch-workflow.ymlworkflow_dispatchonlymcpx-test.ymlworkflow_dispatchonlyAlso corrected in this PR as stale text: the workflow-lint prose still claimed a merge-group leg, and the opencode-config-guard prose still listed merge groups after the 2026-11-08 no-merge-queue ruling. Both now match the active trigger reality.
dezren39 commentedon Nov 9, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 10, 2026
🤖 Agent note · picked up — MID-SHIFT FALLBACK: backend failed at checkpoint
fleet queue checkpointfailed with a backend error (exit 3, queue-broker bad reply) and a freshfleet queue healthconfirmed the backend is DOWN (cannot connect to queue-broker at 100.99.113.103:4801: connection refused). Per §0b this task continues in GitHub fallback mode: fallback claim below replaces the broker claim for coordination; heartbeats and the terminal release go throughfleet queue fallback.dezren39 commentedon Nov 10, 2026
Picked up by
repo-worker-code-k— working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live whilerepo-worker-code-kposts progress markers; after 30 minutes of silence any other worker may pick this up.)dezren39 commentedon Nov 10, 2026
Progress from
repo-worker-code-k: verified: issue #7090 scoped; reading design doc + ci-policy + guard scriptsdezren39 commentedon Nov 10, 2026
Progress from
repo-worker-code-k: verified: implementation already landed in PR #7945 (merged e744a9b); running checker + contract tests on current main, then probesdezren39 commentedon Nov 10, 2026
Progress from
repo-worker-code-k: probes done: A fails naming workflow+leg; B2 fails naming missing file; posting evidence + #7089 landing comment, then release donedezren39 commentedon Nov 10, 2026
🤖 Agent note · done — implementation already landed; probe evidence (acceptance item 3) supplied by this shift
.github/scripts/check-ci-policy-agreement.sh+ contract tests, wired into workflow-lint.yml. One adaptation vs this issue's scope text: the mapping pins PR tier →pull_request(notmerge_group), following Drew's 2026-11-08 no-merge-queue ruling recorded in ci-policy itself. The landing was never evidenced on this issue — items 3–4 below close that gap.check-ci-policy-agreement.shexits 0 — 10 workflows checked, exactly the 12 waived Phase 2–3 disagreements, no unwaived failures. Contract tests: all passed (unwaived disagreement fails naming workflow+leg; stale waiver fails; vanished ci-policy row fails; missing workflow file fails). All four waiver phase issues verified live today: 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, 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, ci(production-line-guard): the F11.10 line guard never runs — dispatch-only since the Nov 4 sweep, and main already fails it (directory.rs 2,610 lines, ungrandfathered) #6959, ci(go-module builds): identity/map/go-modules/mcpx-nixbuild never run — dispatch-only since the Nov 4 sweep AND disabled_manually, while ci-policy assigns them PR + main tiers #6981 all OPEN.pull_requesttrigger from.github/workflows/proxy-port-fallbacks.yml(conforming, unwaived). Checker exit 1:DISAGREEMENT proxy-port-fallbacks.yml: pr tier requires trigger 'pull_request', not declared and no waiver records it. File restored; scratch branch never pushed.nonexistent-probeto ci-policy.md alone leaves the checker green — the landed design's scope is the checker's registry (a row enters scope when the workflow is registered, and the registry entry requires its marker text in ci-policy); (B2) withnonexistent-probe.ymlregistered (marker + PR tier), the checker exits 1:DISAGREEMENT nonexistent-probe.yml: workflow file missing (ci-policy assigns tiers: pr). So the missing-file leg fails by name for every in-scope workflow; widening scope to every workflow ci-policy names is Phase 4 of Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows #7089's recorded work, not silent.dezren39 commentedon Nov 10, 2026
Released by
repo-worker-code-k(outcome: done). already_done + evidence completion: Phase 1 landed in PR #7945 (merged e744a9b, lane code-w); this shift verified checker+tests green on main 344b50a (10 workflows, exactly 12 waived Phase 2-3 disagreements), ran acceptance probes (removed pull_request from proxy-port-fallbacks.yml -> checker fails naming workflow+leg; registered nonexistent workflow -> fails naming missing file; row-only addition inert under registry scope, reported honestly), posted probe evidence on #7090 (comment 6778861039), landing state on design issue #7089 (comment 6778862843), and closed #7090. Broker task 13570 was claimed before the backend failed; this fallback release is its terminal record per §0b.