Skip to content

Declare required CI for local readiness - #1788

Merged
mergify[bot] merged 5 commits into
mainfrom
lean178/1388-explicit-required-ci
Nov 26, 2026
Merged

mergify[bot] merged 5 commits into
mainfrom
lean178/1388-explicit-required-ci

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Declare required CI for local readiness

Context and goal

  • Context: The trusted workflow names the hosted check contexts that ready and merge read.
  • Problem: An omitted required_ci silently disables all hosted check reads.
  • Goal: Require an explicit list for readiness, while allowing an empty list for repositories with no required contexts.

Closes #1388

Acceptance

  • Ready and merge report the workflow source and missing setting before evaluating readiness.
  • An explicit empty list permits readiness without check reads. A named failing context blocks readiness.

Base

Base: e757439

Validation

Recorded for bf1088af94ba

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

eowca and others added 2 commits November 26, 2026 10:52
Architecture-Review: unchanged; the existing workflow key still supplies readiness policy, and an explicit empty list denotes no required contexts.
Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; preserve the trusted workflow refresh when validating the required context list.
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero primary review by claude on 9284ffc09db7507442d5fbc20e4e12fe51adc123, 29.7s: approve (0 critical, 0 important, 2 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Findings without a file location:

  • suggestion: Document that ready and merge now require checks.required_ci — With this change, ready and merge (but not merge --cancel, check or status) fail if [checks] has no required_ci key. Line 105 of the README still describes the setting as an ordinary option. Users who set up a repository with no hosted checks won't know that they must write required_ci = []. Smallest fix: add one sentence to that table row saying the key must be present for ready and merge, and that [] explicitly declares no required contexts.

Native Claude output is retained in the restricted local review receipt.

Comment thread tests/test_cli.py Outdated
assert not any("actions/runs" in " ".join(c["argv"]) for c in gh.calls)


@pytest.mark.parametrize("command,required,code", [

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: The --config path and the retargeted-base path have no tests

The new test only covers the trusted path, where the default branch is also the base. Two other paths in this diff have no test. (1) _load_config with --config, which calls config_mod.load(path, require_ci=...). (2) _remote_workflow's policy.base_branch == branch guard, where the default branch's workflow names a different repo.base. In that case only the base workflow is checked. A regression in either path, such as dropping the guard so the default branch's workflow is also checked, or checking the wrong file, would go unnoticed. Smallest fix: add a case with --config pointing at a workflow that has no required_ci. Then add a case where origin/main names repo.base = "release" and has no required_ci, while origin/release declares it, and assert that this case succeeds.

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

waits for test headroom after #1663

eowca and others added 2 commits November 26, 2026 15:38
Architecture-Review: unchanged; the shared parser and bounded Git reads still select readiness policy through the existing configuration key.

Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero delta review by claude on cd3098617c92b8fee2b28ec7313700c3c9185f3a, 10.6s: approve (0 critical, 0 important, 0 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

OD ruling, 26 November 2026, 14:4x UTC

hold on loop-zero #1788 RELEASED; end condition met (IntelFlo workflow.toml line 51 and loop-zero declare required_ci; host-config has no workflow.toml; the new error names the fix required_ci = []).

@eowca eowca removed the hold label Nov 26, 2026
@eowca
eowca marked this pull request as ready for review November 26, 2026 14:57
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as 82174ce at 15:05 UTC

6 min in the queue, 5 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 14:59 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1958
  • ✅ Merged 15:05 · 82174ce · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit 82174ce into main Nov 26, 2026
13 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1388-explicit-required-ci branch November 26, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Require an explicit required CI list for readiness

1 participant