GeezerVison is showing github.com — Agreement checker — fail when ci-policy's tiers and a workflow's triggers disagree (Phase 1 of the ci-policy agreement design) · Issue #7090 · developing-today/code
Agreement checker — fail when ci-policy's tiers and a workflow's triggers disagree (Phase 1 of the ci-policy agreement design) #7090DescriptionAgreement 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 by merge_group plus its path gate where one existed; a main-tier assignment requires push: branches: [main] (path gates as before) or a named main-tier venue running the same check; a workflow_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 its on: 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 on pull_request + merge_group over .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. Activitydeveloping-today commented on Nov 8, 2026 dezren39 commented on Nov 8, 2026 🤖 Agent note · filed
- Agent: gh-post
- Session / ID: cron action-outbox-processor run 2026-11-08T03:25Z (OB-2026-11-08-003) — filing executed by the outbox processor
- Found via: filed this run
- Task: Filed this issue exactly as prepared in the action outbox (OB-2026-11-08-003, prepared by gh-post 2026-11-08 01:53 UTC).
- Expectation: needs triage
- Links: n/a
developing-today commented on 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 commented on Nov 8, 2026 dezren39 commented on 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.
| workflow |
current on: |
policy promise |
nix-ci.yml |
schedule + workflow_dispatch |
main tier full flake check; coverage rule says it runs on main |
mcpx-conformance.yml |
workflow_dispatch only |
PR spec-parity leg + main all-legs |
id-bench.yml |
workflow_dispatch only |
main tier "yes" |
mcpx.yml |
schedule + workflow_dispatch |
path-gated PR checks + push-to-main |
lab-ops-hub.yml |
workflow_dispatch only |
path-gated PR checks + push-to-main |
mod-tidy.yml |
workflow_dispatch only |
path-gated PR checks + push-to-main |
research-workflow.yml |
workflow_dispatch only |
path-gated PR checks + push-to-main |
mcpx-test.yml |
workflow_dispatch only |
init + unit + lint + 6 static e2e shards + ci-ok on PRs and main |
Also 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 commented on Nov 9, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026
🤖 Agent note · picked up — MID-SHIFT FALLBACK: backend failed at checkpoint
dezren39 commented on 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 while repo-worker-code-k posts progress markers; after 30 minutes of silence any other worker may pick this up.) dezren39 commented on Nov 10, 2026
Progress from repo-worker-code-k: verified: issue #7090 scoped; reading design doc + ci-policy + guard scripts dezren39 commented on 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 probes dezren39 commented on 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 done dezren39 commented on Nov 10, 2026
🤖 Agent note · done — implementation already landed; probe evidence (acceptance item 3) supplied by this shift
- Agent: repo queue worker, lane code-k (repo-worker-code), task 13570 (fallback mode — queue backend down; see the MID-SHIFT FALLBACK note above)
- Landing state: Phase 1 was implemented by lane code-w and merged in PR feat(ci): ci-policy agreement checker (Phase 1 of #7089) #7945 (merge commit e744a9b, 2026-11-09T04:07:21Z): tier→trigger mapping + production-line-guard row in .github/ci-policy.md, checker
.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 (not merge_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.
- Verification on current main (origin/main 344b50a, fresh worktree, 2026-11-10):
check-ci-policy-agreement.sh exits 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.
- Probe A (remove a tier-required trigger): on a scratch branch, removed the
pull_request trigger 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.
- Probe B (policy names a workflow that does not exist), reported exactly as it behaves: (B1) appending a tier-table row naming
nonexistent-probe to 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) with nonexistent-probe.yml registered (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.
- Design issue: landing state commented on Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows #7089 by this shift (acceptance item 4).
- Closing issue Agreement checker — fail when ci-policy's tiers and a workflow's triggers disagree (Phase 1 of the ci-policy agreement design) #7090: all four acceptance items are now met and evidenced.
dezren39 commented on 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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|