Repository navigation
Conversation
Policy file plus shared logic: latest-per-context status verdicts (trusted success only, red from anyone), soak computed from GitHub-stamped commit-status history with reset, gap and staleness rules, and plain-push git helpers.
Posts gev-soak/nightly on every validated nightly tip ahead of staging. The append-only status history is the soak ledger.
Merges eligible nightly- and staging-based PRs, validates the exact integration SHA with full CI on a candidate ref, falls back to one PR at a time, and publishes only a re-verified green SHA by fast-forward.
Requires nightly membership, staging ancestry, exact-SHA gev-ci green and a recorded 24 h green soak; re-reads refs and statuses before a plain push.
… wait Closes the one surviving mutant (status-id freshness guard in wait_for_full).
|
Evidence for the final head Exact-SHA CI. A Boat run posted all 9 Tests. Mutation check. I disabled 14 guards one at a time; each one turned the suite red:
The CI-wait freshness mutant survived the first run. The last commit adds the test that kills it. Live server-side probe. This used ruleset 28125518 on
The probe ruleset is disabled now. The real rulesets, 28125550 (no deletion or non-fast-forward) and 28125551 ( Read-only runs on this repo:
Refs were identical before and after. A dry-run integration of #343 built merge |
Why
Kevin asked that nightly take green feature PRs automatically and that staging hold only code that passed full CI and soaked at least 24 h with no red. This PR adds that, built on the exact-SHA
gev-ci/*contract from #343.What changed
scripts/factory/nightly_integrate.pyandfactory-nightly-integrate.yml. Merge open PRs labelednightlywhose base isnightlyorstagingand whose head is green on the exact SHA. Run full CI on the exact integration SHA through a freshfactory/nightly-candidate/*ref. If the batch is red, retry one PR at a time. Publish only a SHA that is still green after re-reading the refs, the PR heads and the statuses. The push is a plain fast-forward.scripts/factory/soak_observe.pyandfactory-soak-observe.yml. Post an hourlygev-soak/nightlystatus on each validated nightly tip. GitHub's append-only, server-timestamped status history is the soak ledger.scripts/factory/promote_staging.pyandfactory-promote-staging.yml. Promote one explicit full SHA, failing closed. The SHA must be in nightly history, staging must be its ancestor, its exact-SHA CI must be green, and its soak must be at least 24 h with no red and no gap over 6 h. Refs and statuses are re-read right before the fast-forward push.ci/factory/branch-policy.jsonanddocs/factory/NIGHTLY-PROMOTION.md. The runbook covers soak start and reset, auditing, race layers, bootstrap order (including ci(factory): fast-forward-only main mirror with sync-bot-only writes #341) and credentials.Scope
Branch gates only. The CI gates are #343, the main sync is #341 and modularity is #342. This branch is stacked on #343, so its commits show here until #343 lands.
Tradeoffs
factory-modularity/*is not yet required on PR heads, because it only runs on Actions, which is paused. It is a single policy edit later.GITHUB_TOKENcannot push workflow files. No deploy key was added.Blast Radius
New files only. Repository settings changed outside this diff: rulesets 28125550 (block deletion and non-fast-forward on nightly and staging) and 28125551 (require
gev-ci/fullon the exact pushed SHA). No bypass is allowed on either.Verification