GeezerVison is showing github.com — Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows · Issue #7089 · developing-today/code
Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows #7089Closed 6 / 66 of 6 issues completedClosed 6 / 66 of 6 issues completed Labels area/ciCI/CD pipelines, workflows, and build automation (area)effort/mMedium: expected under 1 day of workepicMeta-issue grouping multiple items (org Project Type=Epic)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsuser/reviewNeeds a user-look: Muse reviews first and handles what it can DescriptionDecision for Drew (one line): the seven guard/build workflows below are dark in three different modes while ci-policy still promises their tiers — re-arm them (merge_group for the two basic-tier guards per the sibling precedent; re-enable + restore for the build set) under this design's agreement checker, or accept dispatch-only for them too and strike their tier promises from ci-policy? Phases 1 and 4 do not wait for the ruling; the re-arm/re-enable executions in Phases 2–3 do.
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. Filed by the design architect (pass 70, 2026-11-07), audit at origin/main 08dd577. This pass originates on pass 69's recorded trigger: a third policy-listed guard found dead since the 2026-11-04 sweep (#6959, after #6929 + #6953) — a fourth filing (#6981, covering four build workflows) arrived in the same window.
Problem
.github/ci-policy.md states which CI checks run at which tier. One commit (5a94833, 2026-11-04) rewrote the trigger reality of ~25 workflows; nobody compared policy against reality afterwards, so the divergence surfaced by hand audit, one workflow at a time. Test suites got design #6185 and Drew's dispatch-only ruling (2026-11-05). The guard/build workflows ci-policy names got neither — #6187 inventories non-test disabled workflows "for the record only; their dispositions are not this design's to make", and #6981's body makes the same point for its set. This design takes that remainder.
Current state (verified this pass)
Seven ci-policy-promised workflows, three failure modes:
- Dispatch-only, venue active, check unreachable — 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:
workflow_dispatch: only; the enforcement step is pull_request-gated, so even a dispatch never runs the mcpx testing: a failing-first test for every bug, and a review of recent fixes #1969 guard; policy still assigns PR + main tiers) and 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 (production-line-guard: dispatch-only, venue active, and main already fails it — directory.rs 2,610 production lines vs the 2,500 limit, ungrandfathered; this workflow has no ci-policy tier row at all).
- Merge-group only, venue disabled — 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 (opencode-config-guard: kept
merge_group:, but Actions state is disabled_manually, zero runs since 2026-11-03; policy claims pull requests + merge groups + pushes to main). The only CI check between the canonical OpenCode config and a metered/PAYG provider selection.
- Dispatch-only AND disabled — cannot run at all — 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 (go-modules-build, identity-build, map-build, mcpx-nixbuild: all
workflow_dispatch:-only at HEAD, all disabled_manually per the Actions API this pass, no completed run since 2026-11-03; policy assigns a class-3 PR tier + always-on main tier).
Conforming siblings prove the intended shape: workflow-lint (active, pull_request + merge_group) and fleet-search-parity-guard (active, merge_group) both run.
The contract
For every workflow ci-policy names, three records must agree: the assigned tier, the declared triggers, and the Actions enablement state. Any disagreement is a defect with exactly one recorded disposition — re-arm, fold, or retire — never a persisting default. Agreement is checked in the tree (a script in workflow-lint, the active venue that fires on exactly the paths a trigger sweep touches) and enablement is audited from the API on #6187's recurring cadence, extended to this non-test set.
Recorded decisions (full reasoning in the design doc): the tier→trigger mapping is pinned (a basic-tier guard is satisfied by merge_group + its path gate; a main tier requires push-to-main or a named equivalent venue; dispatch-only satisfies no tier); the two basic guards re-arm via merge_group, not restored pull_request triggers (sibling precedent; no new PR-tier runner load — #6929's either/or, pinned); #6959's directory.rs follows the guard's own split-or-grandfather convention; #6981 is dispositioned per workflow.
Phases
- Phase 1 (NEW, filed with this design): the agreement checker — tier→trigger mapping written into ci-policy, production-line guard's missing row added, checker script + contract tests under
.github/scripts/, wired into workflow-lint; the Phase 2–3 disagreements land as explicit waivers naming their phase issues so the checker is green with the set explicit.
- Phase 2 (ADOPTED): 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 — the basic-tier guards brought into agreement, each closing with a completed run on main as proof; 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's venue re-enable executes when Drew rules above.
- Phase 3 (ADOPTED): 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 — production-line guard dispositioned (directory.rs split-or-grandfathered) and one disposition per build workflow, executed under the same ruling gate.
- Phase 4 (NEW, gated on Phases 1–3): closing inventory of every ci-policy-named workflow against all three legs + contract statement in ci-policy + four required dispositions (checker venue coverage; Venue-reality audit — enablement state and a disposition for every disabled test venue (Phase 3 of #6185) #6187 audit output naming the non-test set; ci(production-line-guard): the guard counts Cargo target/ build output as production code — every built tree fails on generated files #6960's guard file-selection sibling; any workflow filed dark after this design).
Open questions stay in the design doc (step-level if: reachability; nightly-tier mapping; schedule-triggered operations workflows).
Acceptance criteria
- The problem described above is confirmed against current main (reproduced or traced to the named code path), or the issue is closed with that evidence.
- A fix/implementation addressing the described behaviour is merged via PR referencing this issue, with tests naming their oracle where the change has meaningful invariants.
- Related/sibling issues from the same filing batch are cross-linked and any dependency is recorded as a native blocked-by relation.
Sub-issuesCollapse Sub-issuesSub-issues6 of 66 of 6 Issues completedLoading 6 sub-issues Activitydeveloping-today commented on Nov 8, 2026 added epicMeta-issue grouping multiple items (org Project Type=Epic) kind/designA design proposal (design-architect): multi-step, phased, decision-bearing on Nov 8, 2026dezren39 commented on Nov 8, 2026 🤖 Agent note · filed
- Agent: gh-post
- Session / ID: cron action-outbox-processor run 2026-11-08T03:24Z (OB-2026-11-08-002) — 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-002, prepared by gh-post 2026-11-08 01:50 UTC).
- Expectation: needs triage; user/review as labelled
- Links: n/a
developing-today commented on Nov 8, 2026 agent-note:v1 — Agent: repo-design-architect-code (pass 71); state: filed — pass 70's outbox filing delivered; linking, packets and register completed this pass.
This design was filed in pass 70 (2026-11-07) via the fleet outbox after the user leg hit GitHub's secondary rate limit (Drew's 2026-11-05 rule): outbox entry OB-2026-11-08-002 delivered as this issue #7089 on 2026-11-08T03:23Z; Phase 1 as #7090 (OB-2026-11-08-003) and Phase 4 as #7091 (OB-2026-11-08-004). Pass 71 completed the deferred items:
- All six phases are linked as sub-issues of this design (verified by independent readback: count=6 — 7090, 6929, 6953, 6959, 6981, 7091).
- Triage packets enqueued with explicit
--queue repo-health-code-pilot: Agreement checker — fail when ci-policy's tiers and a workflow's triggers disagree (Phase 1 of the ci-policy agreement design) #7090 → task 13098 (queued, dedupe-verified), Closing agreement audit — every ci-policy-named workflow against all three legs (Phase 4 of the ci-policy agreement design) #7091 → task 13100 (queued, dedupe-verified). Closing agreement audit — every ci-policy-named workflow against all three legs (Phase 4 of the ci-policy agreement design) #7091 keeps status/blocked — it is gated on Phases 1–3. The adopted origins (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) keep their own queue lifecycles and were noted in pass 70.
- Register entry added in
files/potential-projects.md (status: proposed, user/review decision as stated at the top of this issue).
One filing-batch lesson, recorded in the pass-71 state row: the first database-ID batch this pass delivered a fabricated 624… series (the real IDs are 626…); links were made only with individually re-fetched IDs and verified by a separate sub_issues readback. dezren39 commented on Nov 14, 2026 90-day closed-item review — WRONGLY_CLOSED concurrence (batch 103).
This review independently verified the closure record for #7089: closed as completed by developing-today[bot] at 2026-11-11T07:33:53Z (closure event: commit_id null), 6 seconds after PR #8596 merged — a title-reference-only PR ("ci(#7089): re-arm…") carrying no closing keyword. The same bot had already closed this issue once before (2026-11-09T04:07:27Z) and it was reopened by dezren39 47 seconds later. Sub-issue #7091 (Closing agreement audit — Phase 4) is still OPEN, so the parent's agreement contract is not complete.
Classification in the review ledger: WRONGLY_CLOSED. The remedy — reopening — was already executed by the Track A follow-up audit today (2026-11-14T17:17:47Z, verified OPEN/reopened by this review via the GitHub API), so this review does not reopen it a second time; this comment records the review's concurrence and evidence on the item. PR #8596's own merged work stands (it is ledgered IMPLEMENTED); what was wrongful is closing the parent while #7091 remains open. dezren39 commented on Nov 14, 2026 Program tending — epic completion (tracking: #1352)
- Child progress: 8 of 8 children closed (0 open).
- Last movement: 2026-11-14T17:50:16Z.
- All recorded children are closed. Proposing closure of this epic: if more work belongs here, reopen a child or say what remains and this stays open.
dezren39 commented on Nov 16, 2026
Picked up by repo-worker-any-d — 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-any-d posts progress markers; after 30 minutes of silence any other worker may pick this up.) dezren39 commented on Nov 16, 2026
Progress from repo-worker-any-d: claimed: revalidating fresh GitHub state dezren39 commented on Nov 16, 2026
Progress from repo-worker-any-d: verified: Phase4 audit evidence complete, landing ci-policy contract statement PR for #7091 dezren39 commented on Nov 16, 2026
Progress from repo-worker-any-d: pr_opened: PR #10588 contract statement, checker+tests pass, checking Codex before merge dezren39 commented on Nov 16, 2026 Agent note — closing state (Phase 4 complete, epic done)
- Agent: repo-worker-any-d (Muse lane any-d, fleet queue FALLBACK mode)
- All six sub-issues are now CLOSED (verified fresh via the sub-issues API: 0 open): Agreement checker — fail when ci-policy's tiers and a workflow's triggers disagree (Phase 1 of the ci-policy agreement design) #7090 (Phase 1 checker), 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 (Phases 2-3), and Closing agreement audit — every ci-policy-named workflow against all three legs (Phase 4 of the ci-policy agreement design) #7091 (Phase 4, closed by PR docs(ci-policy): land the #7089 three-leg agreement contract statement #10588).
- Phase 4 audit is posted on Closing agreement audit — every ci-policy-named workflow against all three legs (Phase 4 of the ci-policy agreement design) #7091 (comment 6905364070): three-leg inventory of all 10 registry workflows at origin/main e956555 — policy, triggers, and Actions enablement in agreement for every row (checker OK, 0 waivers; repo-wide 75 workflows, 0 non-active) — plus dispositions (a)-(d) with evidence (Venue-reality audit — enablement state and a disposition for every disabled test venue (Phase 3 of #6185) #6187/PR docs(ci-policy): opencode-config-guard re-arm disposition + enablement re-audit (#6187 Phase 3) #8587 for the recurring enablement audit, ci(production-line-guard): the guard counts Cargo target/ build output as production code — every built tree fails on generated files #6960/PR fix(ci): production-line guard skips target/ build output (#6960) #8699 for the target/ file-selection fix).
- The contract statement landed in .github/ci-policy.md via PR docs(ci-policy): land the #7089 three-leg agreement contract statement #10588 (merged f958ede), written in the current main-only terms of the 2026-11-13 owner ruling that superseded the design's PR-tier terms. Checker + contract tests pass on the merged shape.
- The decision at the top of this issue was ruled (re-arm, 2026-11-11; waivers emptied and both Phase 2-3 disagreements landed under it), so no ruling remains outstanding.
Closing this epic as complete. If more work belongs here, reopen a child or file the follow-on.
dezren39 commented on Nov 16, 2026
Released by repo-worker-any-d (outcome: done). Phase 4 closing audit complete: three-leg inventory of 10 registry workflows posted on #7091 (all in agreement, checker OK 0 waivers, 75 workflows 0 non-active), dispositions (a)-(d) evidenced, contract statement landed via PR #10588 merged f958ede closing #7091; all 6 sub-issues closed, #7089 closed as complete.
MetadataMetadataarea/ciCI/CD pipelines, workflows, and build automation (area)effort/mMedium: expected under 1 day of workepicMeta-issue grouping multiple items (org Project Type=Epic)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsuser/reviewNeeds a user-look: Muse reviews first and handles what it can DevelopmentNo branches or pull requestsIssue actions
|