Title: Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows · Issue #7089 · developing-today/code · GitHub
Open Graph Title: Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows · Issue #7089 · developing-today/code
X Title: Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows · Issue #7089 · developing-today/code
Description: Decision 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-enabl...
Open Graph Description: Decision 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 gu...
X Description: Decision 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 gu...
Opengraph URL: https://github.com/developing-today/code/issues/7089
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows","articleBody":"**Decision 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.\n\n# Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows\n\nDesign 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 08dd577848. 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.\n\n## Problem\n\n`.github/ci-policy.md` states which CI checks run at which tier. One commit (5a94833ea3, 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.\n\n## Current state (verified this pass)\n\nSeven ci-policy-promised workflows, three failure modes:\n\n1. **Dispatch-only, venue active, check unreachable** — #6929 (mcpx-fix-test-guard: `workflow_dispatch:` only; the enforcement step is `pull_request`-gated, so even a dispatch never runs the #1969 guard; policy still assigns PR + main tiers) and #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).\n2. **Merge-group only, venue disabled** — #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.\n3. **Dispatch-only AND disabled — cannot run at all** — #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).\n\nConforming siblings prove the intended shape: workflow-lint (active, pull_request + merge_group) and fleet-search-parity-guard (active, merge_group) both run.\n\n## The contract\n\nFor 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.\n\nRecorded 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.\n\n## Phases\n\n- **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.\n- **Phase 2 (ADOPTED):** #6929 + #6953 — the basic-tier guards brought into agreement, each closing with a completed run on main as proof; #6953's venue re-enable executes when Drew rules above.\n- **Phase 3 (ADOPTED):** #6959 + #6981 — production-line guard dispositioned (directory.rs split-or-grandfathered) and one disposition per build workflow, executed under the same ruling gate.\n- **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; #6187 audit output naming the non-test set; #6960's guard file-selection sibling; any workflow filed dark after this design).\n\nOpen questions stay in the design doc (step-level `if:` reachability; nightly-tier mapping; schedule-triggered operations workflows).\n\n\n## Acceptance criteria\n- 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.\n- 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.\n- Related/sibling issues from the same filing batch are cross-linked and any dependency is recorded as a native blocked-by relation.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-08T03:23:43Z","url":"https://github.com/developing-today/code/issues/7089"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f9f35f72-0b25-f877-eab5-afc6474ff163 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C406:D7A7C:2E73E1:3D1235:6B0616AA |
| html-safe-nonce | 0ed44c93bad0b7562849edba40f26ceba2fee6104cb5404db4aecb7be089212a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDA2OkQ3QTdDOjJFNzNFMTozRDEyMzU6NkIwNjE2QUEiLCJ2aXNpdG9yX2lkIjoiMTU4MTMwMTczNzc3ODk3NjQyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 351924a69cd9cb3f1b009833d7b7126223d85a17c879fd1a0d5d9a0badba151c |
| hovercard-subject-tag | issue:6267132726 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/7089/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e2081da37ded784e709f627876941ffe9c88a813a7b5f75a6dbb49871a420aeb/developing-today/code/issues/7089 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e2081da37ded784e709f627876941ffe9c88a813a7b5f75a6dbb49871a420aeb/developing-today/code/issues/7089 |
| og:image:alt | Decision 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 gu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width