Repository navigation
Description
Answer
Under the merge-lane batch rules, few merged agent PRs would have been selected by default: 26 PRs in 31 days (0.8 a day), or 1.6 a day over the 16 days in which frostyard-machines merged anything. No PR was selectable with L. At 8 seconds a batch PR against 37.5 seconds today, the saving is about 0.4 minutes a day (0.8 minutes a day at the upper bound of 37.5 seconds a PR saved).
The main causes, by the first rule that fails:
C3(245 of 585): a changed path matches.github/risk-paths.jsonor the PR hasrisk:high. Workflows, Makefiles,argo/workflow-templates/**and.github/risk-paths.jsonitself lead.C1(115): noready-for-humanlabel. 90 of them merged on 2026-10-22 and 2026-10-23, when the label came into use.F-policy(87):AGENTS.md,.memory/**(corrections.jsonllines),docs/adr/**,docs/design/**.C4-none(75): 13 of the 26 repositories have norequired_status_checksrule on the default branch today (rules read byGET /repos/{r}/rules/branches/{default}): homebrew-tap, chairlift, snosi, repogen, intuneme, snowkit, pilothouse, testsuite, lab, omarchy-apps, igloo, flatpak-index, problem-intake. If all of them had required checks, the default-selected count is 39 (1.3 a day).F-build(30),F-config,F-package,F-repo-paths(7 together).
Method
- PRs: GraphQL search
repo:frostyard/<name> is:pr is:merged author:frostyard-machines, filtered tomergedAtfrom 2026-10-07 to 2026-11-06 (UTC, inclusive). Files:GET /pulls/{n}/files, every page, with both names of a rename. frostyard-machinesmerged its first PR in these repositories on 2026-10-22. The 15 days before have 0 PRs, so the 31-day means are low by about half; the 16-day means are given too.- Rules are evaluated in the order
F-repo,C1,C3,C4-none,C7,C8,C9,S3, then the floor groups. A PR is listed under its first failing rule only. - Size:
additions + deletionsabove 300, orchangedFilesabove 15, givesL.
Approximations
C1:ready-for-humanandrisk:highas labeled now, not at merge time. The base must be today's default branch; open and draft are not checked.C3:.github/risk-paths.jsonat the merge commit's first parent, matched byscripts/lib/risk-paths.mjs(coremainat756a96d). Most repositories added the file from 2026-11-04 to 2026-11-06, so 510 of 585 PRs had no valid file at the first parent; for them the replay uses the file at today's default branch tip.C4: assumed met, exceptC4-none, read from today's rules.C5andS1toS5: assumed met. Achore/sync-core-skillsPR with every path under.agents/skills/<name>/is labeledsyncand is exempt from the floor (an approximation ofS3).C9: the file list must be complete (its count equalschangedFiles, at most 3000).- The floor is the hard-coded list of the batch design (groups
F-build,F-config,F-package,F-trust,F-privilege,F-policy,F-breaking,F-repo-paths). A pattern without/matches the basename at any depth. For nsl,site/**matches except Markdown. - Seconds a PR are estimates: 37.5 seconds is the middle of 30 to 45 seconds today; 8 seconds a batch PR is a guess that the batch measures later.
Command
# replay.mjs (below) beside lib/risk-paths.mjs from core main at 756a96d
GH_TOKEN=$(gh auth token) node replay.mjs --since 2026-10-07 --until 2026-11-06 --out outRead only: GitHub REST and GraphQL reads. Run on 2026-11-07 as frostyard-machines, Node 24. replay.mjs sha256 8734ffa4debeaa57403d7e8cd4c79a2a7915499a55267043193135b7b925a7fc.
Result
Window: 2026-10-07 to 2026-11-06 (UTC, inclusive, 31 days). PRs by frostyard-machines merged in the 26 repositories: 585.
| Outcome | PRs | A day |
|---|---|---|
| Default-selected | 26 | 0.8 |
| Selectable (L: more than 300 lines or 15 files) | 0 | 0.0 |
| Left out | 559 | 18.0 |
Left out, by first failing rule: C3 245, C1 115, F-policy 87, C4-none 75, F-build 30, F-config 3, F-package 3, F-repo-paths 1.
C3 used the current risk-paths.json for 510 PRs (no valid file at the merge commit's first parent).
Sensitivity: if every repository had required checks (no C4-none), default-selected 39 (1.3 a day), L 0, left out 546 (C3 245, F-policy 122, C1 115, F-build 35, F-config 24, F-package 3, F-repo-paths 2).
Saving
Minutes a day over the 31 days. Today's cost is 37.5 s a PR (the middle of 30 to 45 s).
| Batch cost a PR | Saving a PR | Default-selected | Default plus L | Default-selected, no C4-none |
|---|---|---|---|---|
| 8 s | 29.5 s | 0.4 | 0.4 | 0.6 |
| 0 s (37.5 s saved, upper bound) | 37.5 s | 0.5 | 0.5 | 0.8 |
A day
| Day (UTC) | Default | L | Left out | All |
|---|---|---|---|---|
| 2026-10-07 | 0 | 0 | 0 | 0 |
| 2026-10-08 | 0 | 0 | 0 | 0 |
| 2026-10-09 | 0 | 0 | 0 | 0 |
| 2026-10-10 | 0 | 0 | 0 | 0 |
| 2026-10-11 | 0 | 0 | 0 | 0 |
| 2026-10-12 | 0 | 0 | 0 | 0 |
| 2026-10-13 | 0 | 0 | 0 | 0 |
| 2026-10-14 | 0 | 0 | 0 | 0 |
| 2026-10-15 | 0 | 0 | 0 | 0 |
| 2026-10-16 | 0 | 0 | 0 | 0 |
| 2026-10-17 | 0 | 0 | 0 | 0 |
| 2026-10-18 | 0 | 0 | 0 | 0 |
| 2026-10-19 | 0 | 0 | 0 | 0 |
| 2026-10-20 | 0 | 0 | 0 | 0 |
| 2026-10-21 | 0 | 0 | 0 | 0 |
| 2026-10-22 | 0 | 0 | 31 | 31 |
| 2026-10-23 | 1 | 0 | 61 | 62 |
| 2026-10-24 | 1 | 0 | 34 | 35 |
| 2026-10-25 | 3 | 0 | 19 | 22 |
| 2026-10-26 | 2 | 0 | 42 | 44 |
| 2026-10-27 | 1 | 0 | 23 | 24 |
| 2026-10-28 | 2 | 0 | 45 | 47 |
| 2026-10-29 | 5 | 0 | 37 | 42 |
| 2026-10-30 | 1 | 0 | 19 | 20 |
| 2026-10-31 | 0 | 0 | 10 | 10 |
| 2026-11-01 | 2 | 0 | 17 | 19 |
| 2026-11-02 | 0 | 0 | 18 | 18 |
| 2026-11-03 | 0 | 0 | 27 | 27 |
| 2026-11-04 | 1 | 0 | 40 | 41 |
| 2026-11-05 | 0 | 0 | 45 | 45 |
| 2026-11-06 | 7 | 0 | 91 | 98 |
From the first merge by frostyard-machines (2026-10-22) to 2026-11-06, 16 days: default-selected 1.6 a day, L 0.0 a day, left out 34.9 a day, all 36.6 a day.
Last 7 days (2026-10-31 to 2026-11-06): default-selected 1.4 a day, L 0.0 a day, left out 35.4 a day.
Per repository
frostyard/homebrew-tap (10 PRs; required checks: 0)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (10): C1: [repogen] ext/index catalog is truncated by partial publishes #7 [repogen] Stale fixture README documents the old 3-part sysext filename format #8 [org] Harmonize dev-release snapshot concurrency (cancel-in-progress true vs false) #10; C3: [org] publish-to-r2 consumed @main in bootc-debian, first-setup, and incus #16 [ACMM L0] Add Test suite #22 [ACMM L0] Add E2E tests #23 [ACMM L0] Add PR template #24 [ACMM L0] Add Coverage gate #28; C4-none: [ACMM L0] Add Contributing guide #26 [ACMM L2] Add Prompts catalog #30
- Of the
C4-nonePRs, default-selected with required checks (1): [ACMM L0] Add Contributing guide #26
frostyard/chairlift (16 PRs; required checks: 0)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (16): C1: Skill update: frostyard-go-repo #250; C3: feat(fleet): check that make ci is each repository's local CI gate (ADR-0083) #253 docs(adr): build new first-party apps on hearth, with lodge as their hub #265 feat(organization): declare frostyard/frostmarks and enroll it in the skills sync #272; C4-none: docs(adr): accept a tool's own site or a frostyard.org guide as its docs home (ADR-0084) #254 feat(risk-paths): check the category of each L1 and L2 why in the gate (rule B) #255 check-risk-paths: the workflow sync check fails with ENOENT in a repository that vendors the library but has no pr-triage.yml #257 fix(risk-paths): skip the workflow sync check when pr-triage.yml is absent #258 docs(plan-0009): mark the forky producers done and record the package-level proof #259 fix(pr-triage): skip the job for a title or body edit and another label #264 feat(organization): declare frostyard/hearth and enroll it in the skills sync #266 docs(memory): let promoted_to name the guard that the same PR adds #267 docs(skills): add release preparation, checks and Go patch steps to frostyard-go-repo #269 docs(skills): add a Record evidence section to frostyard-repo-docs #270 docs(plans): close Plan 0009 Phase 7 with the audit and retention records #276 docs(plans): record that Repogen stays the sysext publisher in Plan 0009 #277
- Of the
C4-nonePRs, default-selected with required checks (1): docs(plans): record that Repogen stays the sysext publisher in Plan 0009 #277
frostyard/snosi (59 PRs; required checks: 0)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (59): C1: #1099 #1101 #1108 #1109 #1110 #1112 #1114 #1115 #1119 #1127 #1150 #1169 #1175 #1179 #1224; C4-none: #1121 #1124 #1129 #1140 #1161 #1163 #1166 #1168 #1174 #1176 #1180 #1193 #1194 #1195 #1196 #1197 #1199 #1200 #1209 #1225 #1227 #1243 #1246 #1247 #1248; C3: #1122 #1126 #1157 #1162 #1165 #1173 #1181 #1190 #1201 #1208 #1210 #1212 #1214 #1215 #1220 #1223 #1226 #1237 #1238
frostyard/repogen (13 PRs; required checks: 0)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (13): C1: ci: update checkout to Node 24 #74 [quality] Add regression coverage for docs-integrity checker #75; C3: chore: sync skills to firn #76 [guide] Document discovery and ownership of shared skills #78 Sync agent skills to frostyard/fluent, including frostyard-design #85 Scope the TestI/Integration name filter to chairlift (ADR-0038) #86 feat(organization): widen maintenance_programs within repository schema v1 (ADR-0039) #87 feat(organization): updex and fluent declare the conformance and triage programs #89; C4-none: docs: standardize dev release concurrency #77 [guide] docs: add shared skills guide #79 Add versioned verification profile contracts #81 Declare frostyard/updex as an enabled fleet repository #83 feat(organization): updex declares the security and architecture programs #88
- Of the
C4-nonePRs, default-selected with required checks (1): Add versioned verification profile contracts #81
frostyard/updex (29 PRs; required checks: 10)
- Default-selected (1): #494 sync
- Selectable, L (0): none
- Left out (28): C1: #445 #448 #449 #450 #452 #454 #456 #457 #459 #460 #461 #462 #466 #468; C3: #458 #467 #469 #472 #474 #480 #481 #482 #485 #488 #492; F-build: #473 #493; F-policy: #478
frostyard/bootc-debian (6 PRs; required checks: 1)
- Default-selected (1): [org] publish-to-r2 consumed @main in bootc-debian, first-setup, and incus #16 code
- Selectable, L (0): none
- Left out (5): C3: [org] Harmonize dev-release snapshot concurrency (cancel-in-progress true vs false) #10 [snosi] Stale provenance reader path /usr/share/snow/snow.packages.txt #11 [lab] Retired hive-observer still referenced; docs/reference/ is empty #12 [org] mkdocs site_name category taxonomy inconsistently applied #14 [org] Mutable-branch action refs (@main/@master/@latest) in secret-bearing workflows #17
frostyard/intuneme (14 PRs; required checks: 0)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (14): C1: fix(check-docs): ignore link-shaped text in inline code spans without hiding real links #216 fix(skills): restore the 3 Go generic calls as single code spans #217 feat: group Dependabot updates and sync skills once a day (ADR-0075) #219; C4-none: docs: settings runbook for required checks and level labels #229 pr-triage: the caller runs a job for every edited event, also when only the title or body changed #237 feat(risk-paths): add supply chain to the categories of rule B #256 check-risk-paths: the workflow sync check fails with ENOENT in a repository that vendors the library but has no pr-triage.yml #257 docs(plan-0009): mark the forky producers done and record the package-level proof #259; C3: docs: runbook for the pull_request_target event policy #231 docs(plans): status line for Plan 0008 #244 docs(plans): record Read's v0.6.0 release, listing and install in plan 0010 (Phase 5c done) #245 fix(pr-triage): count only the newest run of each check in the readiness step #246 fix(corrections-report): keep old-file records in line order #248 Skill update: frostyard-repo-docs #251
- Of the
C4-nonePRs, default-selected with required checks (1): check-risk-paths: the workflow sync check fails with ENOENT in a repository that vendors the library but has no pr-triage.yml #257
frostyard/std (5 PRs; required checks: 5)
- Default-selected (1): feat(settings): require a merge queue on the default branch (ADR-0042) #100 sync
- Selectable, L (0): none
- Left out (4): C3: fix(scripts): apply-repo-settings treats a 404 from vulnerability-alerts as 'disabled', not a failure #94 ADR-0023: scope goreleaser-action version ranges (fleet uses "~> v2") #95 Fix dead links in synced core skills #97 docs(adr): propose ADR-0042 — adopt a merge queue on the default branch #99
frostyard/clix (2 PRs; required checks: 6)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (2): F-policy: docs(adr): pin repository tools in mise and name the verify gate #108; C3: org(repositories): declare frostyard/snowcat-cockpit as an enabled fleet repository #110
frostyard/snowkit (4 PRs; required checks: 0)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (4): C1: [repogen] Two parallel release pipelines with incompatible artifact naming #6; C3: [repogen] ext/index catalog is truncated by partial publishes #7 [snosi] Stale provenance reader path /usr/share/snow/snow.packages.txt #11; C4-none: [repogen] CI lints with deprecated golint while the Makefile uses golangci-lint #9
- Of the
C4-nonePRs, default-selected with required checks (1): [repogen] CI lints with deprecated golint while the Makefile uses golangci-lint #9
frostyard/pilothouse (11 PRs; required checks: 0)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (11): C4-none: ci(skills-sync): use SKILLS_SYNC_TOKEN, a machine-account token scoped to the consumers #213 docs(adr): publish verified fault records as public issues (ADR-0074) #215 merge-lane: feasibility replay #218 docs: ADR-0081 store each correction in a file of its own #238 docs: ADR-0082 verify the build provenance of omarchy-apps #239 docs(plan-0009): keep forky beside trixie and record the Phase 6 work #241 docs(plans): status lines for finished and superseded plans #243; C3: fix(check-docs): ignore link-shaped text in inline code spans without hiding real links #216 fix(skills): restore the 3 Go generic calls as single code spans #217 feat: PR triage workflow that binds ready-for-human to the head commit (ADR-0077) #220 feat(corrections): validator v2, migrate and new-record scripts, report for both forms #240
- Of the
C4-nonePRs, default-selected with required checks (2): ci(skills-sync): use SKILLS_SYNC_TOKEN, a machine-account token scoped to the consumers #213 docs(plans): status lines for finished and superseded plans #243
frostyard/frostyard-org (71 PRs; required checks: 2)
- Default-selected (5): [ACMM L3] Add CI test matrix #36 code, [ACMM L3] Add Session summary artifact #39 code, [strategist] Define an organization portfolio roadmap and repository lifecycle map #56 docs, [guide] Document discovery and ownership of shared skills #78 code, feat(organization): widen maintenance_programs within repository schema v1 (ADR-0039) #87 docs
- Selectable, L (0): none
- Left out (66): C1: [lab] Retired hive-observer still referenced; docs/reference/ is empty #12 [org] Harmonize PR risk-tier scales (3-tier vs 4-tier vs Low/Med/High) #13 [org] mkdocs site_name category taxonomy inconsistently applied #14 [org] ORG_PAT needs Pull requests read/write; document the token's full contract #15 [org] publish-to-r2 consumed @main in bootc-debian, first-setup, and incus #16 [org] Mutable-branch action refs (@main/@master/@latest) in secret-bearing workflows #17 [org] Tracking: roll out SHA-pinned actions to the remaining ~30 repos #18 docs(adr): retire fisherman and snosi-install, superseded by firn #19 [intuneme] Release dispatch to snosi is guarded on a branch ref — never fires on tag runs #20 🐝 Hive Advisory Report #21 [ACMM L0] Add Test suite #22 [ACMM L0] Add E2E tests #23 [ACMM L0] Add PR template #24 [ACMM L0] Add Issue templates #25 [ACMM L0] Add Contributing guide #26 [ACMM L0] Add Code style config #27 [ACMM L0] Add Coverage gate #28 [ACMM L2] Add Cursor rules #29 [ACMM L2] Add Prompts catalog #30 [ACMM L2] Add EditorConfig #31 [ACMM L2] Add Correction capture #32 [ACMM L3] Add PR acceptance metric #33 [ACMM L3] Add PR review rubric #34 [ACMM L3] Add Quality dashboard #35 [ACMM L3] Add Mechanical enforcement #38 [quality] Cover historical ADR and fenced-link validator exemptions #47 feat(skills): add frostyard-acmm-conformance skill #48 [architect] ADR-0008 still treats repaired sysext index truncation as active #49 [guide] Add a canonical contributor entry point to the core README #50 [guide] Replace the design template’s fixed nonexistent roadmap link #52; F-build: [ACMM L3] Add Layered safety model #37 [ACMM L3] Add Structural gates #40 [quality] Validate the docs-site scaffold test suite in core CI #41 ACMM conformance: alias lattice, quality docs, CI gate #42 [quality] Add regression coverage for docs-site navigation output #43 [quality] Run docs-site scaffold tests in core CI #44 [quality] Add browser coverage for docs-site search #45 [quality] Add regression tests for docs-integrity validator #46 [guide] Document the skills-sync operational contract #51 [guide] Make the docs-site skill installation path portable #53 [guide] Resolve dead historical skill references in superseded ADR-0024 #54 [guide] docs: clarify contributor and skill setup #55 [strategist] Establish licensing and community governance for shared org assets #58 [guide] Add a contributor guide for core-maintained material #60 [guide] Replace the design template's fixed nonexistent roadmap link #61 [guide] Make docs-site skill installation path portable #62 [guide] Reconcile the completed pilothouse overview split in the rollout plan #63 [guide] Mark the embedded docs-site implementation plan as historical #64 [strategist] planning: define organization portfolio roadmap #65 [guide] docs: reconcile historical plans #66 docs(adr): ADR-0030 — shipped systemd units never use RequiredBy= enablement #67 docs: repair historical links in superseded ADRs #70 docs: document skills sync operations #71 chore: sync skills to firn #76; C3: [strategist] Set adoption targets and expansion criteria for core-managed skills #57 ADR: retire Dakota's secure bootc installer #68 ADR: make incremental sysext indexes exhaustive #69 ci: update checkout to Node 24 #74 docs: standardize dev release concurrency #77 [guide] docs: add shared skills guide #79 feat(organization): updex declares the security and architecture programs #88; F-policy: ADR: retire the dakota secure bootc installer (superseded by firn) #59 [ci-maintainer] Update actions/checkout to remove Node 20 deprecation warning #72 [scanner] docs: document the skills-sync operational contract #73 [quality] Add regression coverage for docs-integrity checker #75 Scope the TestI/Integration name filter to chairlift (ADR-0038) #86
frostyard/testsuite (5 PRs; required checks: 0)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (5): C1: [guide] docs: add shared skills guide #79 Add organization authority foundation #80; C3: Add versioned verification profile contracts #81 Add executable organization Goal contract #82 Declare frostyard/updex as an enabled fleet repository #83
frostyard/lab (50 PRs; required checks: 0)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (50): C1: ADR-0052 (Proposed) and Plan 0008: bootc-only transition and retention-condition removal #140 Correct core NBC/native-A/B retention policy #141 Reconcile ADR-0052 acceptance PR #143 #144 feat(skills): rewrite plan-project for the Desk plan flow; drop Snowcat from onboard-repo #183; C3: Accept merged ADR-0052 #143 Prescribe .svu.yml in the frostyard-go-repo skill; propose ADR-0053 #145 Accept ADR-0053 and relabel ADR-0012's backlink #146 Propose ADR-0054 and narrow Plans 0006/0007 to the suite migration #148 Propose ADR-0055/0056, a Debian publication design and Plan 0009 #149 Accept ADR-0055 and ADR-0056; mark ADR-0013, 0048 and 0054 superseded #150 Prescribe apt-publisher in the frostyard-go-repo release step #151 Mark Plan 0009 Phase 3 done and describe the CDN cache rule #152 Re-baseline the stable drift alarm on the explained 2026-10-01 suite #153 Mark Plan 0009 Phases 4 and 5 done #154 mise problem #155 docs(adr): run first-party apps behind lodge (ADR-0057) #156 docs: record gchlog retirement and drop the trixie canary #157 docs(adr): accept ADR-0057, run first-party apps behind lodge #158 docs: ADR-0059 (Proposed) — publish image-only packages in a separate APT component #162 docs(adr): accept ADR-0059, publish image-only packages in a separate APT component #163 Plan 0009: link ADR-0060 and record the first scheduled audit #166 docs(adr): ADR-0061, add the image APT component on the first publication run (amends ADR-0059 step 3) #167 docs(adr): accept ADR-0058, ship the suite's desktop apps as Flatpaks and its services as sysexts #168 Plan 0010: updex now enforces RequisiteFeatures= and skips an offline update run #170 docs(adr): ADR-0062, make each desktop suite app a standalone Flatpak with opt-in lodge (amends ADR-0058 in part) #171 ADR-0063 and Plan 0010: record the Phase 3 decisions, and plan the standalone Flatpaks of ADR-0062 #172 Plan 0010: frostmail v0.2.0 carries the secrets key; record Phase 3 progress (snosi#1169) #173 ADR-0058, ADR-0062, plan 0010: link frostmail ADR-0046 (plan 0013 Phase 1) #175 Plan 0010: record Mail's v0.4.0 release, listing and install (Phase 5b done) #176 ADR-0064: retire Snowcat; disable its declarations and drop it from skills sync #178 fix(skills): keep the TEMPLATE out of skill discovery, agents never tag, design readme path #179 feat(skills): add frostyard-apt-producer #180 feat(skills): add frostyard-suite-app-release #181 ADR-0065: a suite daemon may end with the last window when the Background portal is refused #186 ADR-0066: build only the omarchy-apps packages that Snosi uses #187 ADR-0067: publish omarchy-apps packages on change, and keep the newest two #188 ADR-0068 and the risk-paths spec: label PRs that touch high-risk paths #190 feat(scripts): instruction lint and the blind-review prompt (T801 t9) #191 fix(flaky-scan): skip dynamic workflows, read runs per day, retry a 5xx read (T801 t2) #195 ci(deps): bump actions/checkout from 4.2.2 to 7.0.1 #207; C4-none: Link ADR-0052 to Plan 0008 and mark superseded retirement text #147 docs: ADR-0058 (Proposed) and Plan 0010 — Flatpaks for the suite's desktop apps, sysexts for its services #159 docs(plan-0010): defer the move of lodge's host to Floe #160 Plan 0009: record omarchy-apps migration and the first audit run #164 Plan 0010: Phase 3 brief — notesd and maild upholds, and the sysext build spec #169 feat(skills-sync): enroll the Tier A repositories #184 docs(shared-skills): handle a sync PR with a tree check, not a cross-review #185 feat(corrections): validate corrections.jsonl; blocker-to-guard rule; fleet acceptance note #189 feat(scripts): weekly corrections report (T801 t8) #193 chore: hold core to its own repository baseline (ADR-0071) #205
- Of the
C4-nonePRs, default-selected with required checks (3): docs(plan-0010): defer the move of lodge's host to Floe #160 feat(scripts): weekly corrections report (T801 t8) #193 chore: hold core to its own repository baseline (ADR-0071) #205
frostyard/firn (8 PRs; required checks: 4)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (8): C1: ci(organization): check that every enabled repository carries mise.toml, mise.lock, and its verify gate (ADR-0043) #117 ci(organization): check that every enabled repository carries mise.toml, mise.lock, and its verify gate (ADR-0043) #118 Add ADR-0051 (fact-only ADR voice) and accept ADR-0050 #138; C3: docs(adr): expose the make gate triad in every repository (ADR-0044) #119 build: add a Makefile exposing the verify/check/ci gate triad (ADR-0044) #121 ci(organization): require the Makefile gate triad in every repository and drop the Node branch (ADR-0044) #125 ci(organization): decide whether the fleet gate asserts what
make ciinvokes, not only that the target exists #130; F-policy: build: add a Makefile exposing the verify/check/ci gate triad over the npm scripts (ADR-0044) #120
frostyard/core (53 PRs; required checks: 3)
- Default-selected (8): Plan 0009: record omarchy-apps migration and the first audit run #164 docs, Plan 0009: link ADR-0060 and record the first scheduled audit #166 docs, Plan 0010: updex now enforces RequisiteFeatures= and skips an offline update run #170 docs, Plan 0010: frostmail v0.2.0 carries the secrets key; record Phase 3 progress (snosi#1169) #173 docs, Plan 0010: correct the live-refresh facts of updex v2.1.3; record user lodge in the suite debs #174 docs, Plan 0010: record Mail's v0.4.0 release, listing and install (Phase 5b done) #176 docs, chore: add MIT LICENSE #203 code, docs(plans): mark the first-setup decision in plan 0007 as decided #214 docs
- Selectable, L (0): none
- Left out (45): C1: docs(adr): accept ADR-0057, run first-party apps behind lodge #158 docs: ADR-0058 (Proposed) and Plan 0010 — Flatpaks for the suite's desktop apps, sysexts for its services #159 docs(plan-0010): defer the move of lodge's host to Floe #160 Plan 0010: Phase 3 brief — notesd and maild upholds, and the sysext build spec #169; F-policy: docs: ADR-0059 (Proposed) — publish image-only packages in a separate APT component #162 docs(adr): accept ADR-0059, publish image-only packages in a separate APT component #163 ADR-0060: publish omarchy-apps through the apt-publisher (supersedes ADR-0049) #165 docs(adr): ADR-0061, add the image APT component on the first publication run (amends ADR-0059 step 3) #167 docs(adr): accept ADR-0058, ship the suite's desktop apps as Flatpaks and its services as sysexts #168 docs(adr): ADR-0062, make each desktop suite app a standalone Flatpak with opt-in lodge (amends ADR-0058 in part) #171 ADR-0063 and Plan 0010: record the Phase 3 decisions, and plan the standalone Flatpaks of ADR-0062 #172 ADR-0058, ADR-0062, plan 0010: link frostmail ADR-0046 (plan 0013 Phase 1) #175 fix(skills): keep the TEMPLATE out of skill discovery, agents never tag, design readme path #179 feat(skills): add frostyard-apt-producer #180 feat(skills): add frostyard-suite-app-release #181 feat(skills): add frostyard-write-adr #182 feat(skills): rewrite plan-project for the Desk plan flow; drop Snowcat from onboard-repo #183 docs(shared-skills): handle a sync PR with a tree check, not a cross-review #185 ADR-0065: a suite daemon may end with the last window when the Background portal is refused #186 ADR-0066: build only the omarchy-apps packages that Snosi uses #187 ADR-0067: publish omarchy-apps packages on change, and keep the newest two #188 feat(corrections): validate corrections.jsonl; blocker-to-guard rule; fleet acceptance note #189 ADR-0068 and the risk-paths spec: label PRs that touch high-risk paths #190 feat(scripts): weekly flaky-test scan and its spec (T801 t2) #192 feat(scripts): weekly corrections report (T801 t8) #193 fix(flaky-scan): skip dynamic workflows, read runs per day, retry a 5xx read (T801 t2) #195 docs(adr): ADR-0069 problem reports, schema frostyard.problem/1 and registry (T857 t1) #196 feat(corrections-report): --ref reads each file at a ref, once per clone (T879a) #198 feat(metrics): widen the revert rule and add the escaped-defect count (T879a) #199 fix(skills): ship golang-cli examples as Markdown and guard managed skills against Go files #202 chore: hold core to its own repository baseline (ADR-0071) #205 docs(baseline): B12 accepts the make ci targets as separate CI jobs (ADR-0073) #211 docs(adr): publish verified fault records as public issues (ADR-0074) #215 fix(check-docs): ignore link-shaped text in inline code spans without hiding real links #216 fix(skills): restore the 3 Go generic calls as single code spans #217; C3: fix(skills-sync): fail the run when a push, gh call or skill copy fails #177 ADR-0064: retire Snowcat; disable its declarations and drop it from skills sync #178 feat(risk-paths): validator, matcher, reusable workflow and core's own list (T801 t4) #194 feat(skills): vendor 20 Go skills from samber/cc-skills-golang and sync them to Go repositories (T927a) #200 feat(docs): repository baseline (ADR-0071), MaterialX docs sites (ADR-0070), baseline checklist spec #204 feat(docs): README standard (ADR-0072), frostyard-readme skill and checker, baseline row B17 #206 fix(skills-sync): write only to real .agents/skills directories; require a current sync PR head #212 ci(skills-sync): use SKILLS_SYNC_TOKEN, a machine-account token scoped to the consumers #213; F-config: feat(scripts): instruction lint and the blind-review prompt (T801 t9) #191 fix(check-instructions): report missing bare and root-level paths (T801 t9, T863) #197
frostyard/omarchy-apps (7 PRs; required checks: 0)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (7): C1: [updex] Coverage gates claim whole-module scope but CI measures ./internal/... only #3; C3: [repogen] Stale fixture README documents the old 3-part sysext filename format #8 [repogen] CI lints with deprecated golint while the Makefile uses golangci-lint #9 [org] Harmonize dev-release snapshot concurrency (cancel-in-progress true vs false) #10 [snosi] Stale provenance reader path /usr/share/snow/snow.packages.txt #11 [org] Harmonize PR risk-tier scales (3-tier vs 4-tier vs Low/Med/High) #13; C4-none: [lab] Retired hive-observer still referenced; docs/reference/ is empty #12
- Of the
C4-nonePRs, default-selected with required checks (1): [lab] Retired hive-observer still referenced; docs/reference/ is empty #12
frostyard/nsl (21 PRs; required checks: 3)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (21): C1: [guide] Mark the embedded docs-site implementation plan as historical #64 [strategist] planning: define organization portfolio roadmap #65 [guide] docs: reconcile historical plans #66 docs(adr): ADR-0030 — shipped systemd units never use RequiredBy= enablement #67; C3: ADR: retire Dakota's secure bootc installer #68 ADR: make incremental sysext indexes exhaustive #69 docs: repair historical links in superseded ADRs #70 docs: document skills sync operations #71 [scanner] docs: document the skills-sync operational contract #73 ci: update checkout to Node 24 #74 [quality] Add regression coverage for docs-integrity checker #75 docs: standardize dev release concurrency #77 [guide] Document discovery and ownership of shared skills #78 [guide] docs: add shared skills guide #79 Add versioned verification profile contracts #81 feat(organization): updex declares the security and architecture programs #88 feat(organization): updex and fluent declare the conformance and triage programs #89; F-policy: [ci-maintainer] Update actions/checkout to remove Node 20 deprecation warning #72 chore: sync skills to firn #76 feat(organization): enroll clix and std; declare dependencies and docs programs #90; F-build: Add organization authority foundation #80
frostyard/igloo (6 PRs; required checks: 0)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (6): C1: [updex] Release-notes footer still links github.com/bketelsen (pre-org-migration) #2 [updex] Coverage gates claim whole-module scope but CI measures ./internal/... only #3; C4-none: [repogen] Two parallel release pipelines with incompatible artifact naming #6; C3: [repogen] ext/index catalog is truncated by partial publishes #7 [repogen] CI lints with deprecated golint while the Makefile uses golangci-lint #9 [org] Harmonize dev-release snapshot concurrency (cancel-in-progress true vs false) #10
- Of the
C4-nonePRs, default-selected with required checks (1): [repogen] Two parallel release pipelines with incompatible artifact naming #6
frostyard/flatpak-index (9 PRs; required checks: 0)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (9): C1: [updex] Coverage gates claim whole-module scope but CI measures ./internal/... only #3; C3: [updex] Changelog deps group regex never matches actual commits #4 [igloo] publish-to-r2 action consumed unpinned (@main) #5 [repogen] Two parallel release pipelines with incompatible artifact naming #6 [repogen] ext/index catalog is truncated by partial publishes #7 [repogen] Stale fixture README documents the old 3-part sysext filename format #8 [repogen] CI lints with deprecated golint while the Makefile uses golangci-lint #9 [org] Harmonize dev-release snapshot concurrency (cancel-in-progress true vs false) #10 [snosi] Stale provenance reader path /usr/share/snow/snow.packages.txt #11
frostyard/frostmail (51 PRs; required checks: 9)
- Default-selected (1): Correct core NBC/native-A/B retention policy #141 code
- Selectable, L (0): none
- Left out (50): C1: org(repositories): enable frostyard/core in its own fleet with a governance surface #111 build: pin Node in mise.toml/mise.lock and add a verify script #112 fix(docs-check): require an actual markdown link for index coverage #113 docs(specs): align enrollment spec with the required merge queue (ADR-0042) #114 Prescribe .svu.yml in the frostyard-go-repo skill; propose ADR-0053 #145 Accept ADR-0053 and relabel ADR-0012's backlink #146; C3: ci: add Bash parse-only syntax gate for tracked scripts/*.sh #115 ci(organization): check that every enabled repository carries mise.toml, mise.lock, and its verify gate (ADR-0043) #117 ci(organization): check that every enabled repository carries mise.toml, mise.lock, and its verify gate (ADR-0043) #118 docs(adr): expose the make gate triad in every repository (ADR-0044) #119 build: add a Makefile exposing the verify/check/ci gate triad over the npm scripts (ADR-0044) #120 build: add a Makefile exposing the verify/check/ci gate triad (ADR-0044) #121 test(organization): require rejection fixtures to prove their intended diagnostic #122 fix(skills-sync): authenticate via credential helper, guarantee clone cleanup #124 ci(organization): require the Makefile gate triad in every repository (ADR-0044) #126 test(scripts): cover the dry-run/apply mutation boundary of apply-repo-settings #128 feat(security): guard Actions-secret expiry with a committed record #129 ci(organization): decide whether the fleet gate asserts what
make ciinvokes, not only that the target exists #130 fix(skills-sync): scope the ORG_PAT to the calls that authenticate #131 docs: propose NBC and Debian release-safety fast path #134 Add read-only stable repository drift alarm #136 Accept merged ADR-0052 #143 Reconcile ADR-0052 acceptance PR #143 #144 Link ADR-0052 to Plan 0008 and mark superseded retirement text #147 Mark Plan 0009 Phase 3 done and describe the CDN cache rule #152 Mark Plan 0009 Phases 4 and 5 done #154 mise problem #155 docs: record gchlog retirement and drop the trixie canary #157 Plan 0010: updex now enforces RequisiteFeatures= and skips an offline update run #170 Plan 0010: record Mail's v0.4.0 release, listing and install (Phase 5b done) #176; F-policy: security: confine skills-sync destinations to the cloned repo root #116 test: add hermetic coverage for scripts/sync-skills.sh (ADR-0026) #123 ci(organization): require the Makefile gate triad in every repository and drop the Node branch (ADR-0044) #125 fix(docs-check): validate local Markdown section anchors #127 docs: add Repogen multi-suite support plan #135 ADR-0050: replace NBC/native-A/B retention date with a completion condition #137 Add ADR-0051 (fact-only ADR voice) and accept ADR-0050 #138 Add ADR-0051 (fact-only ADR voice) and accept ADR-0050 #139 ADR-0052 (Proposed) and Plan 0008: bootc-only transition and retention-condition removal #140 Plan bootc-only retirement and image disposal #142 Propose ADR-0054 and narrow Plans 0006/0007 to the suite migration #148 Accept ADR-0055 and ADR-0056; mark ADR-0013, 0048 and 0054 superseded #150 Prescribe apt-publisher in the frostyard-go-repo release step #151 Re-baseline the stable drift alarm on the explained 2026-10-01 suite #153 docs(adr): accept ADR-0057, run first-party apps behind lodge #158 docs(adr): ADR-0061, add the image APT component on the first publication run (amends ADR-0059 step 3) #167 docs(adr): accept ADR-0058, ship the suite's desktop apps as Flatpaks and its services as sysexts #168 Plan 0010: Phase 3 brief — notesd and maild upholds, and the sysext build spec #169; F-config: build: require jq for repository settings tests #132; F-build: docs: rename cayo server image to floe #133
frostyard/frostnotes (45 PRs; required checks: 7)
- Default-selected (4): feat(organization): enroll clix and std; declare dependencies and docs programs #90 docs, fix(scripts): apply-repo-settings treats a 404 from vulnerability-alerts as 'disabled', not a failure #94 docs, ci(organization): check that every enabled repository carries mise.toml, mise.lock, and its verify gate (ADR-0043) #118 docs, test: add hermetic coverage for scripts/sync-skills.sh (ADR-0026) #123 docs
- Selectable, L (0): none
- Left out (41): C1: Sync agent skills to frostyard/fluent, including frostyard-design #85 Scope the TestI/Integration name filter to chairlift (ADR-0038) #86 feat(organization): widen maintenance_programs within repository schema v1 (ADR-0039) #87 feat(organization): updex declares the security and architecture programs #88; C3: feat(organization): updex and fluent declare the conformance and triage programs #89 feat(organization): rename the coordination service to Snowcat (ADR-0064) #92 fix(scripts): apply-repo-settings accepts repeated --required-check for names containing commas #93 ADR-0023: scope goreleaser-action version ranges (fleet uses "~> v2") #95 [core] Synced skills link to core ADRs with repo-relative paths that dangle in all 11 consuming repos #96 Fix dead links in synced core skills #97 docs(adr): propose ADR-0041 — retire copilot-review-apply where Snowcat gates review #98 clarify required-check workflows in ADR-0018 path-ignore contract #103 docs(spec): align enrollment merge-queue invariant with ADR-0042 #106 chore: sync skills to frostyard/snowcat-cockpit #107 org(repositories): declare frostyard/snowcat-cockpit as an enabled fleet repository #110 fix(docs-check): require an actual markdown link for index coverage #113 docs(specs): align enrollment spec with the required merge queue (ADR-0042) #114 ci(organization): check that every enabled repository carries mise.toml, mise.lock, and its verify gate (ADR-0043) #117 build: add a Makefile exposing the verify/check/ci gate triad (ADR-0044) #121 test(organization): require rejection fixtures to prove their intended diagnostic #122 fix(skills-sync): authenticate via credential helper, guarantee clone cleanup #124 ci(organization): require the Makefile gate triad in every repository (ADR-0044) #126 fix(docs-check): validate local Markdown section anchors #127 ci(organization): decide whether the fleet gate asserts what
make ciinvokes, not only that the target exists #130 fix(skills-sync): scope the ORG_PAT to the calls that authenticate #131 Add ADR-0051 (fact-only ADR voice) and accept ADR-0050 #138; F-policy: feat(organization): publish the repository settings contract (ADR-0040) #91 feat(settings): require a merge queue on the default branch (ADR-0042) #100 fix(scripts): make apply-repo-settings.sh ruleset comparison key-order independent; narrow rollout-merge-queue.sh's merge_group heuristic #101 docs(skills): add frostyard-onboard-repo for fleet onboarding #104 feat(organization): enroll firn in the fleet #105 docs(adr): pin repository tools in mise and name the verify gate #108 org(repositories): enable frostyard/core in its own fleet with a governance surface #111 ci: add Bash parse-only syntax gate for tracked scripts/*.sh #115 #116 #119 #120 #125 #136; F-package: #102; F-build: #109
frostyard/lodge (18 PRs; required checks: 7)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (18): C1: #32 #33 #34 #35; C3: #36 #37 #39 #41 #45 #46 #47 #49 #55; F-package: #38 #42; F-repo-paths: #40; F-policy: #44; F-build: #48
frostyard/porter (18 PRs; required checks: 4)
- Default-selected (1): #24 docs
- Selectable, L (0): none
- Left out (17): C1: #11 #12 #13 #14 #15 #16 #17; C3: #18 #19 #21 #22 #25 #27 #28; F-policy: #20 #23 #26
frostyard/frostread (43 PRs; required checks: 7)
- Default-selected (4): #21 docs, #28 docs, #34 docs, #47 docs
- Selectable, L (0): none
- Left out (39): C1: #15 #16 #17 #18; C3: #19 #20 #22 #25 #26 #27 #30 #31 #32 #35 #36 #38 #39 #40 #41 #44 #45 #49 #50 #51 #52 #54 #55 #60 #61; F-policy: #23 #24 #29 #33 #37 #42 #43 #46 #53 #62
frostyard/problem-intake (11 PRs; required checks: 0)
- Default-selected (0): none
- Selectable, L (0): none
- Left out (11): C3: #1 #2 #4 #7 #13; C4-none: #3 #5 #6 #10 #11 #12
- Of the
C4-nonePRs, default-selected with required checks (1): #6
replay.mjs
#!/usr/bin/env node
// merge-lane feasibility replay (read only).
// Replays the PRs by frostyard-machines merged in a UTC date window in the
// 26 policy repositories against the batch rules of the merge-lane plan.
//
// Usage: GH_TOKEN=$(gh auth token) node replay.mjs [--since 2026-10-07] [--until 2026-11-06] [--out DIR]
// Writes DIR/replay.json (every PR with its outcome) and DIR/replay.md (the report).
// Needs lib/risk-paths.mjs from frostyard/core main (scripts/lib/risk-paths.mjs).
//
// Approximations (the replay cannot see the state at the time of the batch):
// - C1: label `ready-for-human` and no `risk:high` as labeled now; open/draft not checked (all merged).
// - C3: `.github/risk-paths.json` at the merge commit's first parent; when absent or invalid there,
// the file at the current default branch tip (counted as `c3_fallback`).
// - C4: assumed met, except `C4-none`, read from the current rules of the default branch.
// - C5, S1 to S5: assumed met. A `chore/sync-core-skills` PR whose paths all lie under
// `.agents/skills/<name>/` is labeled `sync` and exempt from the floor (approximates S3).
// - C9: the PR's file list must be complete (count equals changedFiles, at most 3000).
import { writeFileSync, mkdirSync } from "node:fs";
import { matchGlob, matchFiles, parseStrictJson, validateRiskPaths } from "./lib/risk-paths.mjs";
const REPOS = [
"homebrew-tap", "chairlift", "snosi", "repogen", "updex", "bootc-debian", "intuneme", "std", "clix",
"snowkit", "pilothouse", "frostyard-org", "testsuite", "lab", "firn", "core", "omarchy-apps", "nsl",
"igloo", "flatpak-index", "frostmail", "frostnotes", "lodge", "porter", "frostread", "problem-intake",
].map((name) => `frostyard/${name}`);
const AUTHOR = "frostyard-machines";
const SYNC_BRANCH = "chore/sync-core-skills";
const MAX_LINES = 300;
const MAX_FILES = 15;
const args = Object.fromEntries(
process.argv.slice(2).reduce((acc, a, i, all) => (a.startsWith("--") ? [...acc, [a.slice(2), all[i + 1]]] : acc), []),
);
const SINCE = args.since ?? "2026-10-07";
const UNTIL = args.until ?? "2026-11-06";
const OUT = args.out ?? "out";
const TOKEN = process.env.GH_TOKEN;
if (!TOKEN) {
console.error("GH_TOKEN=$(gh auth token) node replay.mjs");
process.exit(2);
}
// ---- Floor (plan section "Never in a batch") ------------------------------
// A pattern without "/" matches the basename at any depth; with "/", from the root.
const FLOOR = {
"F-build": ["go.mod", "go.sum", "Cargo.toml", "Cargo.lock", "package.json", "*.lock", "*-lock.*", ".npmrc",
"requirements*.txt", "pyproject.toml", "Makefile", "Justfile", "meson.build", "meson_options.txt", "build.rs",
"vite.config.*", "rust-toolchain*", "mise.toml", "mise.lock", ".tool-versions", "Containerfile*", "Dockerfile*",
"*.sh", "**/scripts/**", "**/tools/**"],
"F-config": ["*.yml", "*.yaml", "*.json", "*.toml", "*.conf", "**/.github/**"],
"F-package": ["**/debian/**", "**/packaging/**", "*.spec", ".goreleaser*", "nfpm*", "mkosi*", "**/mkosi.*/**",
"*.chroot", "*.finalize", "*.postinst", "*.preset", "*.desktop", "*.metainfo.xml", "**/src-tauri/capabilities/**"],
"F-trust": ["**/trust/**", "**/keys/**", "*.pub", "*.pem", "*.asc", "*.gpg"],
"F-privilege": ["*.service", "*.socket", "*.timer", "**/systemd/**", "*.policy", "*.rules", "sudoers*", "**/pam.d/**"],
"F-policy": ["AGENTS.md", "CLAUDE.md", "GEMINI.md", ".cursorrules", "**/.claude/**", "**/.knowledge/**",
"**/.memory/**", "**/.agents/**", "docs/agents/**", "docs/adr/**", "docs/specs/**", "docs/design/**",
"docs/security/**", "docs/tenets.md", "**/policies/**", ".mill.toml", ".github/pull_request_template.md",
"**/ISSUE_TEMPLATE/**"],
};
const TAURI = ["**/tauri.conf.json", "**/src-tauri/**"];
const REPO_PATHS = {
snosi: ["shared/**/tree/**", "shared/download/**", "workers/**", "test/*.py", "*policy.json", "cosign.pub"],
lab: ["argo/**", "argocd/**", "manifests/**", "site/**", "tests/test_*_lifecycle*.py",
"tests/test_workflow_permissions.py", "tests/test_risk_paths.py"],
"problem-intake": ["src/suppress.ts", "src/jobs.ts", "src/index.ts", "src/envelope.ts", "src/forward.ts",
"src/sql.ts", "src/generated/**", "schema/**", "triage/**", "test/node/*privacy*"],
testsuite: ["tests/shared/**"],
firn: ["internal/disk/**", "internal/luks/**", "internal/secureboot/**", "internal/bootcimg/**",
"internal/recipe/**", "internal/catalog/**", "internal/steps/**", "gui/go.mod"],
intuneme: ["ubuntu-intune/**", "*_templ.go"],
frostread: ["internal/workflowcheck/**", "internal/packagecheck/**", ...TAURI],
frostmail: TAURI,
frostnotes: TAURI,
porter: TAURI,
lodge: [...TAURI, "**/kit/**"],
};
// nsl: site/** is never low except Markdown under it (the plan keeps it docs-only).
const NSL_SITE = "site/**";
const toGlob = (p) => (p.includes("/") ? p : `**/${p}`);
const matchAny = (patterns, path) => patterns.find((p) => matchGlob(toGlob(p), path));
function floorMatch(repoName, paths, title) {
if (/!:/.test(title)) return { id: "F-breaking", detail: title };
for (const path of paths) {
for (const [id, patterns] of Object.entries(FLOOR)) {
const p = matchAny(patterns, path);
if (p) return { id, detail: `${path} (${p})` };
}
const extra = REPO_PATHS[repoName];
if (extra) {
const p = matchAny(extra, path);
if (p) return { id: "F-repo-paths", detail: `${path} (${p})` };
}
if (repoName === "nsl" && matchGlob(NSL_SITE, path) && !path.endsWith(".md")) {
return { id: "F-repo-paths", detail: `${path} (${NSL_SITE})` };
}
}
return null;
}
// ---- GitHub ---------------------------------------------------------------
async function gql(query, variables = {}) {
for (let attempt = 0; ; attempt++) {
const res = await fetch("https://api.github.com/graphql", {
method: "POST",
headers: { authorization: `bearer ${TOKEN}`, "content-type": "application/json" },
body: JSON.stringify({ query, variables }),
});
const body = await res.json().catch(() => ({}));
if (res.ok && !body.errors) return body.data;
if (attempt >= 3) throw new Error(`GraphQL ${res.status}: ${JSON.stringify(body.errors ?? body).slice(0, 500)}`);
await new Promise((r) => setTimeout(r, 2000 * (attempt + 1)));
}
}
async function rest(path) {
for (let attempt = 0; ; attempt++) {
const res = await fetch(`https://api.github.com${path}`, {
headers: { authorization: `bearer ${TOKEN}`, accept: "application/vnd.github+json" },
});
if (res.status === 404) return { status: 404, body: null };
if (res.ok) return { status: res.status, body: await res.json() };
if (attempt >= 3) throw new Error(`REST ${path}: ${res.status}`);
await new Promise((r) => setTimeout(r, 2000 * (attempt + 1)));
}
}
const PR_FIELDS = `
number title body url mergedAt baseRefName headRefName isCrossRepository additions deletions changedFiles
author { login }
labels(first: 50) { nodes { name } }
mergeCommit { oid parents(first: 1) { nodes { oid } } }
files(first: 100) { totalCount pageInfo { hasNextPage } nodes { path } }
`;
async function searchPRs(repo, from, to) {
const out = [];
let cursor = null;
const q = `repo:${repo} is:pr is:merged author:${AUTHOR} merged:${from}..${to}`;
for (;;) {
const data = await gql(
`query($q: String!, $after: String) { search(query: $q, type: ISSUE, first: 50, after: $after) {
issueCount pageInfo { hasNextPage endCursor } nodes { ... on PullRequest { ${PR_FIELDS} } } } }`,
{ q, after: cursor },
);
const s = data.search;
if (s.issueCount > 1000) return null; // caller splits the window
out.push(...s.nodes);
if (!s.pageInfo.hasNextPage) return out;
cursor = s.pageInfo.endCursor;
}
}
function addDays(day, n) {
const d = new Date(`${day}T00:00:00Z`);
d.setUTCDate(d.getUTCDate() + n);
return d.toISOString().slice(0, 10);
}
async function listPRs(repo, from, to) {
const got = await searchPRs(repo, from, to);
if (got) return got;
const days = (Date.parse(to) - Date.parse(from)) / 86400000;
if (days < 1) throw new Error(`more than 1000 PRs in 1 day in ${repo}`);
const mid = addDays(from, Math.floor(days / 2));
return [...(await listPRs(repo, from, mid)), ...(await listPRs(repo, addDays(mid, 1), to))];
}
// REST file list with previous_filename (renames); used for every PR so both rename names are checked.
async function prFiles(repo, number) {
const files = [];
for (let page = 1; page <= 30; page++) {
const { body } = await rest(`/repos/${repo}/pulls/${number}/files?per_page=100&page=${page}`);
files.push(...body);
if (body.length < 100) break;
}
return files;
}
const riskCache = new Map();
async function riskPathsAt(repo, ref) {
const key = `${repo}@${ref}`;
if (riskCache.has(key)) return riskCache.get(key);
const [owner, name] = repo.split("/");
const data = await gql(
`query($o: String!, $n: String!, $e: String!) { repository(owner: $o, name: $n) {
object(expression: $e) { ... on Blob { text } } } }`,
{ o: owner, n: name, e: `${ref}:.github/risk-paths.json` },
);
let result = null;
const text = data.repository?.object?.text;
if (typeof text === "string") {
try {
const value = parseStrictJson(text);
if (validateRiskPaths(value).ok) result = value;
} catch {
result = null;
}
}
riskCache.set(key, result);
return result;
}
async function mapLimit(items, limit, fn) {
const results = new Array(items.length);
let next = 0;
await Promise.all(Array.from({ length: limit }, async () => {
while (next < items.length) {
const i = next++;
results[i] = await fn(items[i], i);
}
}));
return results;
}
// ---- Replay ---------------------------------------------------------------
function days(from, to) {
const out = [];
for (let d = from; d <= to; d = addDays(d, 1)) out.push(d);
return out;
}
async function repoInfo(repo) {
const { body: meta } = await rest(`/repos/${repo}`);
const branch = meta.default_branch;
const { body: rules } = await rest(`/repos/${repo}/rules/branches/${encodeURIComponent(branch)}?per_page=100`);
const required = (rules ?? [])
.filter((r) => r.type === "required_status_checks")
.flatMap((r) => r.parameters?.required_status_checks ?? []);
const current = await riskPathsAt(repo, branch);
return { private: meta.private, branch, requiredChecks: required.length, currentRisk: current };
}
function evaluate(repo, info, pr, files, risk, riskSource) {
const name = repo.split("/")[1];
const labels = pr.labels.nodes.map((l) => l.name);
const lines = pr.additions + pr.deletions;
const paths = [...new Set(files.flatMap((f) => [f.filename, f.previous_filename].filter(Boolean)))];
const base = { repo, number: pr.number, title: pr.title, url: pr.url, mergedAt: pr.mergedAt,
day: pr.mergedAt.slice(0, 10), lines, files: pr.changedFiles, riskSource };
const out = (rule, detail = "") => ({ ...base, outcome: "left-out", rule, detail });
if (info.private) return out("F-repo", "private");
if (pr.author?.login !== AUTHOR || pr.baseRefName !== info.branch || pr.isCrossRepository) {
return out("C1", `base ${pr.baseRefName}`);
}
if (!labels.includes("ready-for-human")) return out("C1", "no ready-for-human label");
if (labels.includes("risk:high")) return out("C3", "risk:high label");
if (!risk) return out("C3", "no valid risk-paths.json");
const hits = matchFiles(risk, files);
if (hits.length) return out("C3", `${hits[0].path} (${hits[0].glob})`);
if (info.requiredChecks === 0) return out("C4-none", "no required checks on the default branch today");
const body = pr.body ?? "";
if (body.split(/\r?\n/).some((l) => l.trim() === "merge-lane: skip")) return out("C7");
if (pr.title.startsWith("Revert ") || body.split(/\r?\n/).some((l) => l.startsWith("This reverts commit"))) {
return out("C8");
}
if (files.length !== pr.changedFiles || pr.changedFiles > 3000) {
return out("C9", `files ${files.length} of ${pr.changedFiles}`);
}
const sync = pr.headRefName === SYNC_BRANCH && paths.every((p) => /^\.agents\/skills\/[^/]+\/.+/.test(p));
if (pr.headRefName === SYNC_BRANCH && !sync) return out("S3", "a path outside .agents/skills/<name>/");
if (!sync) {
const f = floorMatch(name, paths, pr.title);
if (f) return out(f.id, f.detail);
}
const label = sync ? "sync" : paths.every((p) => p.endsWith(".md")) ? "docs" : "code";
const large = lines > MAX_LINES || pr.changedFiles > MAX_FILES;
return { ...base, outcome: large ? "selectable-L" : "default", label };
}
async function main() {
mkdirSync(OUT, { recursive: true });
const results = [];
const repoMeta = {};
for (const repo of REPOS) {
const info = await repoInfo(repo);
repoMeta[repo] = { private: info.private, branch: info.branch, requiredChecks: info.requiredChecks,
currentRiskPaths: Boolean(info.currentRisk) };
// One day of margin on each side; the UTC filter below is exact.
const prs = (await listPRs(repo, addDays(SINCE, -1), addDays(UNTIL, 1)))
.filter((pr) => pr.mergedAt && pr.mergedAt.slice(0, 10) >= SINCE && pr.mergedAt.slice(0, 10) <= UNTIL);
const rows = await mapLimit(prs, 6, async (pr) => {
const files = await prFiles(repo, pr.number);
const parent = pr.mergeCommit?.parents?.nodes?.[0]?.oid;
let risk = parent ? await riskPathsAt(repo, parent) : null;
let riskSource = "first-parent";
if (!risk) {
risk = info.currentRisk;
riskSource = risk ? "c3_fallback" : "none";
}
const row = evaluate(repo, info, pr, files, risk, riskSource);
// Sensitivity: the same PR if the repository had required checks (C4-none met).
const alt = evaluate(repo, { ...info, requiredChecks: 1 }, pr, files, risk, riskSource);
return { ...row, ifChecks: alt.outcome === "left-out" ? alt.rule : alt.outcome };
});
results.push(...rows);
console.error(`${repo}: ${rows.length} PRs`);
}
writeFileSync(`${OUT}/replay.json`, JSON.stringify({ since: SINCE, until: UNTIL, repos: repoMeta, results }, null, 1));
writeFileSync(`${OUT}/replay.md`, report(results, repoMeta));
}
// ---- Report ---------------------------------------------------------------
function report(results, repoMeta) {
const allDays = days(SINCE, UNTIL);
const n = allDays.length;
const count = (pred) => results.filter(pred).length;
const def = count((r) => r.outcome === "default");
const sel = count((r) => r.outcome === "selectable-L");
const left = count((r) => r.outcome === "left-out");
const perDay = (x) => (x / n).toFixed(1);
const min = (prs, s) => ((prs * s) / 60 / n).toFixed(1);
const L = [];
L.push(`Window: ${SINCE} to ${UNTIL} (UTC, inclusive, ${n} days). PRs by \`${AUTHOR}\` merged in the 26 repositories: ${results.length}.`);
L.push("");
L.push("| Outcome | PRs | A day |");
L.push("| --- | ---: | ---: |");
L.push(`| Default-selected | ${def} | ${perDay(def)} |`);
L.push(`| Selectable (L: more than ${MAX_LINES} lines or ${MAX_FILES} files) | ${sel} | ${perDay(sel)} |`);
L.push(`| Left out | ${left} | ${perDay(left)} |`);
L.push("");
const byRule = {};
for (const r of results.filter((x) => x.outcome === "left-out")) byRule[r.rule] = (byRule[r.rule] ?? 0) + 1;
L.push("Left out, by first failing rule: " + Object.entries(byRule).sort((a, b) => b[1] - a[1]).map(([k, v]) => `${k} ${v}`).join(", ") + ".");
const fb = count((r) => r.riskSource === "c3_fallback");
L.push("");
L.push(`C3 used the current risk-paths.json for ${fb} PRs (no valid file at the merge commit's first parent).`);
L.push("");
const alt = (o) => results.filter((r) => r.ifChecks === o).length;
const altLeft = {};
for (const r of results.filter((x) => !["default", "selectable-L"].includes(x.ifChecks))) altLeft[r.ifChecks] = (altLeft[r.ifChecks] ?? 0) + 1;
L.push(`Sensitivity: if every repository had required checks (no \`C4-none\`), default-selected ${alt("default")} (${perDay(alt("default"))} a day), L ${alt("selectable-L")}, left out ${results.length - alt("default") - alt("selectable-L")} (` + Object.entries(altLeft).sort((a, b) => b[1] - a[1]).map(([k, v]) => `${k} ${v}`).join(", ") + ").");
L.push("");
L.push("### Saving");
L.push("");
L.push("Minutes a day over the 31 days. Today's cost is 37.5 s a PR (the middle of 30 to 45 s).");
L.push("");
L.push("| Batch cost a PR | Saving a PR | Default-selected | Default plus L | Default-selected, no C4-none |");
L.push("| --- | ---: | ---: | ---: | ---: |");
for (const [label, s] of [["8 s", 29.5], ["0 s (37.5 s saved, upper bound)", 37.5]]) {
L.push(`| ${label} | ${s} s | ${min(def, s)} | ${min(def + sel, s)} | ${min(alt("default"), s)} |`);
}
L.push("");
L.push("### A day");
L.push("");
L.push("| Day (UTC) | Default | L | Left out | All |");
L.push("| --- | ---: | ---: | ---: | ---: |");
for (const d of allDays) {
const rs = results.filter((r) => r.day === d);
const c = (o) => rs.filter((r) => r.outcome === o).length;
L.push(`| ${d} | ${c("default")} | ${c("selectable-L")} | ${c("left-out")} | ${rs.length} |`);
}
const first = results.map((r) => r.day).sort()[0];
if (first) {
const active = allDays.filter((d) => d >= first);
const ra = results.filter((r) => r.day >= first);
const k = active.length;
const c = (o) => ra.filter((r) => r.outcome === o).length;
L.push("");
L.push(`From the first merge by \`${AUTHOR}\` (${first}) to ${UNTIL}, ${k} days: default-selected ${(c("default") / k).toFixed(1)} a day, L ${(c("selectable-L") / k).toFixed(1)} a day, left out ${(c("left-out") / k).toFixed(1)} a day, all ${(ra.length / k).toFixed(1)} a day.`);
}
const lastWeek = allDays.slice(-7);
const lw = results.filter((r) => lastWeek.includes(r.day));
L.push("");
L.push(`Last 7 days (${lastWeek[0]} to ${lastWeek.at(-1)}): default-selected ${(lw.filter((r) => r.outcome === "default").length / 7).toFixed(1)} a day, L ${(lw.filter((r) => r.outcome === "selectable-L").length / 7).toFixed(1)} a day, left out ${(lw.filter((r) => r.outcome === "left-out").length / 7).toFixed(1)} a day.`);
L.push("");
L.push("### Per repository");
for (const repo of REPOS) {
const rs = results.filter((r) => r.repo === repo).sort((a, b) => a.number - b.number);
const m = repoMeta[repo];
L.push("");
L.push(`#### ${repo} (${rs.length} PRs; required checks: ${m.requiredChecks})`);
if (!rs.length) continue;
const fmt = (r) => `#${r.number}`;
const d = rs.filter((r) => r.outcome === "default");
const s = rs.filter((r) => r.outcome === "selectable-L");
const lo = rs.filter((r) => r.outcome === "left-out");
L.push("");
L.push(`- Default-selected (${d.length}): ${d.map((r) => `${fmt(r)} ${r.label}`).join(", ") || "none"}`);
const would = rs.filter((r) => r.outcome === "left-out" && r.rule === "C4-none" && r.ifChecks === "default");
L.push(`- Selectable, L (${s.length}): ${s.map((r) => `${fmt(r)} ${r.label}`).join(", ") || "none"}`);
const groups = {};
for (const r of lo) (groups[r.rule] ??= []).push(fmt(r));
L.push(`- Left out (${lo.length}): ${Object.entries(groups).map(([k, v]) => `${k}: ${v.join(" ")}`).join("; ") || "none"}`);
if (would.length) L.push(`- Of the \`C4-none\` PRs, default-selected with required checks (${would.length}): ${would.map(fmt).join(" ")}`);
}
return L.join("\n") + "\n";
}
await main();
Activity
frostyard-machines commentedon Nov 7, 2026
Outcome
Plan T1072 stops before its build step. The batch merge is not built.
frostyard-machinesmerged in the 26 repositories from 2026-10-07 to 2026-11-06, the batch rules select 26. That is 0.8 a day over 31 days, or 1.6 a day over the 16 days with agent merges. At 8 seconds a batch PR against 37.5 seconds today, the saving is about 0.4 minutes a day.risk:high), 340 PRs pass. That is about 11 to 12 a day over 31 days (21 a day over the 16 active days), about 5 to 10 minutes a day at 29.5 seconds saved a PR.Side finding for the repository owners: 13 of the 26 repositories have no
required_status_checksrule on the default branch (listed above underC4-none).The replay answered its question, so this issue closes as completed.
ci: run core's PR triage workflow and move the risk list to levels (v…
ci: move to core's pr-triage workflow and the v2 risk-path list (#58)
ci: call core's pr-triage workflow and move the risk list to levels (…
ci: call core's pr-triage workflow and move the risk list to levels (…
ci: call core's pr-triage workflow and move the risk list to levels (…
ci: call core's pr-triage workflow, move the risk list to levels (v2)…