Skip to content

docs(adr): decide required checks, a merge queue and what the local gate runs before a push #1752

Closed

Description

@dan-petty

Decision (owner, 2026-10-22)

The owner answered the questions below. This section replaces any text below that conflicts with it.

  • Required checks: Static Analysis and Tests & Coverage become required status checks in the main ruleset. A person adds them.
  • Merge queue: none. The strict up-to-date policy of the ruleset stays.
  • Local runs: the pre-push hook runs only the fast static checks (ruff, format, actionlint, zizmor). The full uv run devops ci stays a manual command. Remote CI is the authoritative gate (ADR 0004).
  • Copilot review: on request only. A person turns off the automatic review in the main ruleset.
  • Cached verdict (question 3): the question applies only to the optional full local run. No push depends on it.
  • Owner steps (question 4): add the two required checks, and turn off the automatic Copilot review.
  • Sequence: since feat(release): release-please makes every release from main #1952, every topic pull request targets main. So the required checks of main gate every topic pull request once a person adds them (chore(settings): the release App, the release environment, the squash settings and the required checks are in place #1864). The change to the pre-push hook can land after that.

The deliverable is the ADR that records this decision. The follow-up issue is ci(gate): required status checks gate the merge and the pre-push hook runs the fast static checks.

Friction

Local gate on every push: every push runs the full local gate (uv run devops ci) in the pre-push hook. That takes 2.5 minutes on a quiet host and 7-15 minutes under the load of parallel agents, and it runs again after every rebase or amend.

No required checks: the repository requires no status checks. Separately green pull requests have merged into a red release branch (2026-10-18). The same thing can happen on main while no check is required.

Evidence

Questions

  1. Required checks: ADR 0012 decides them: Static Analysis, Tests & Coverage and Semantic PR title, with the strict policy and no merge queue.
  2. Local runs: what runs locally before a push? Fast hooks (lint, format, the changed tests), or the full gate? What stops an agent pushing broken code, and what does it cost in agent wait time?
  3. Repeat runs: how does a cached verdict carry across a rebase that changes nothing in the tree under test (docs(agents): the full gate runs once per push, after the last rebase or amend, so the pre-push hook reuses its verdict #1663)?
  4. Owner steps: what settings change only the owner can make?

Deliverable

An amendment to ADR 0004, or a new ADR, recording what runs locally. ADR 0012 already records the required checks and the merge queue. It comes with follow-up issues, each delivered by one pull request, and the owner's settings steps marked as theirs.

Acceptance criteria

  • The gate and CI timings that justify the split are recorded, quiet and under load.
  • The ADR names what runs locally, and cites ADR 0012 for the required checks and the merge queue.
  • Follow-up issues are filed in delivery order.

Proposed design

Problem statement

The repository currently lacks a defined CI policy for required checks and merge procedures, leading to inconsistent code quality control. Additionally, local pre-push hooks run the full CI gate which is time-consuming and inefficient under load.

Acceptance criteria

  • Criterion 1: The ADR documents required checks for release and main branches, including whether a merge queue is used.
    Verification: Review the updated ADR document to confirm it lists required checks and merge queue policy.
  • Criterion 2: The ADR specifies what runs locally before a push, distinguishing between fast hooks and full gate execution.
    Verification: Verify that the ADR clearly states whether fast hooks (lint, format, changed tests) or the full gate run locally before a push.
  • Criterion 3: Timing data for local gate execution under quiet and load conditions is recorded in the ADR.
    Verification: Check that the ADR includes timing information for both quiet and loaded conditions as referenced in the issue.

Key questions

  • Which checks should be required on release/ and main branches?**: The repository requires 'Static Analysis' and 'Tests & Coverage' checks as specified in ADR 0004. [sources: docs/adr/0004-ci-is-the-authoritative-gate.md]
  • Should a merge queue be used to serialize merges so that the merged result is tested?: No merge queue is used. The strict up-to-date policy of the ruleset stays. (proposed) [sources: docs/adr/0004-ci-is-the-authoritative-gate.md]
  • What runs locally before a push?: The pre-push hook runs only the fast static checks (ruff, format, actionlint, zizmor). The full 'uv run devops ci' stays a manual command. (proposed) [sources: docs/adr/0004-ci-is-the-authoritative-gate.md]
  • What stops an agent pushing broken code and what is the cost in agent wait time?: Remote CI is the authoritative gate (ADR 0004). The local gate on every push runs the full CI gate which is time-consuming, taking 2.5 minutes on a quiet host and 7-15 minutes under load. [sources: docs/adr/0004-ci-is-the-authoritative-gate.md]
  • What settings change only the owner can make?: Add the two required checks and turn off the automatic Copilot review in the main ruleset. (proposed) [sources: docs/adr/0004-ci-is-the-authoritative-gate.md]

Fit

Needs splitting into 3 items:

  1. Create a new ADR or amend ADR 0004 to define required checks and merge queue usage
  2. Modify pre-push hooks to run only fast checks instead of full gate
  3. Update documentation to reflect new CI policies

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/docs
    on Oct 20, 2026
  2. dan-petty commented on Oct 20, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/docs. The candidate focuses on documenting decisions in an ADR, which falls under documentation.
    • Priority: P1-High. This directly impacts the reliability and efficiency of CI/CD processes and code merges.
    • Value: High. Improving CI/CD processes affects all contributors and the stability of releases.
    • Effort: Medium. Requires decision-making, documentation, and potentially changes to repository settings and workflows.
  3. dan-petty commented on Oct 20, 2026

    @dan-petty
    OwnerAuthor

    Proposal needs splitting into 3 items at 2954109 (see proposed design in issue body).

  4. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    Proposal needs splitting into 3 items at ae8c2d9 (see proposed design in issue body).

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

    source/agenttype/docs

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions