Skip to content

Agreement checker — fail when ci-policy's tiers and a workflow's triggers disagree (Phase 1 of the ci-policy agreement design) #7090

Closed

Description

@dezren39

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

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.

Activity

  1. added
    kind/ciCI/CD pipelines, workflows, and build automation
    area/ciCI/CD pipelines, workflows, and build automation (area)
    on Nov 8, 2026
  2. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 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
  4. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    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.

  5. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor
  6. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 8, 2026
  7. 49 remaining items

  8. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    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.

  9. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  10. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up — MID-SHIFT FALLBACK: backend failed at checkpoint

  11. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    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.)

  12. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Progress from repo-worker-code-k: verified: issue #7090 scoped; reading design doc + ci-policy + guard scripts

  13. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Progress from repo-worker-code-k: verified: implementation already landed in PR #7945 (merged e744a9b); running checker + contract tests on current main, then probes

  14. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    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

  15. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — implementation already landed; probe evidence (acceptance item 3) supplied by this shift

  16. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    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.

  17. removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ciCI/CD pipelines, workflows, and build automation (area)kind/ciCI/CD pipelines, workflows, and build automationsource/design-architectFiled by the repo design architect jobstatus/triagedTriaged and routed (see agent note)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions