Skip to content

chore: record main-base as a required check on main - #999

Merged
modelmirror merged 2 commits into
stagingfrom
chore/main-base-required
Aug 3, 2026
Merged

chore: record main-base as a required check on main#999
modelmirror merged 2 commits into
stagingfrom
chore/main-base-required

Conversation

@modelmirror

Copy link
Copy Markdown
Collaborator

What

main-base joins main's required status checks (ruleset main: require PR), and every surface that records the required set is updated to match: the pinned list in tests/test_required_checks.py (the only unattended enforcement), the ci.yml comments, the promotion section and one-time-setup checklist in docs/pipeline.md, the ruleset inventories in docs/security.md, and the public copy in SECURITY.md.

Procedure (docs/pipeline.md, Adding a required status check)

  1. Definition promoted into main's ci.yml — done; byte-identical to staging's.
  2. scripts/promotion-gate.sh contexts main-baseready to require: 'main-base', contexts clean.
  3. A real PR from a main-cut lane reports the context: PR metrics: refresh backtest, statpack, scope #998 (metrics/refresh) reported main-base: SKIPPED — satisfying a required-context rule — and merged. The docs' preferred witness is a collect PR, but predict/evaluate fan-outs are currently held; the metrics-refresh lane exercises the identical merge-ref mechanics (branch cut from main, auto lane, allowlisted head), so it is the same evidence.
  4. The ruleset edit itself is not yet applied: the session token is refused (403 Resource not accessible by integration) on the ruleset PUT, so the maintainer applies it with their own credential (command in the session report). This PR merges only after that edit lands, so the docs never describe a required set the ruleset does not enforce.

Artifact served: the promotion path's integrity — a mis-routed feature PR into main is now mechanically blocked, not just flagged red.

required_approving_review_count on main stays 0, reaffirmed by the maintainer in-session (docs/security.md already records the policy and its change condition).

Gate

lint + test green locally (1629 passed), zizmor 1.26.1 no findings, actionlint 1.7.12 clean.

This touches .github/workflows/ and SECURITY.md — maintainer-lane surfaces; the maintainer directed this change in-session and approved self-merge once reviewers pass. Reviewer subagents (workflow, docs, security, code) run before merge; their resolutions will be noted here if any blocker needs a rebuttal.

Closes #918 (reference for the record — the issue will be hand-closed when this merges, since staging merges do not auto-close).

🤖 Generated with Claude Code

modelmirror and others added 2 commits August 3, 2026 14:07
The main-base merge-routing job joins main's required status checks
(ruleset 'main: require PR'), closing the gap where a mis-routed feature
PR went red without being blocked. Updates every surface that records
the required set: the pinned list in tests/test_required_checks.py, the
ci.yml comments, the promotion section and one-time-setup checklist in
docs/pipeline.md, the ruleset inventories in docs/security.md, and the
public copy in SECURITY.md.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… procedure example

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@modelmirror
modelmirror merged commit 2007972 into staging Aug 3, 2026
7 checks passed
@modelmirror
modelmirror deleted the chore/main-base-required branch August 3, 2026 14:31
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.

1 participant