GeezerVison is showing github.com — feat(ci): guard against new root *COMPLETE* / *SUMMARY* status files (#12136) by dezren39 · Pull Request #13060 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Refs #12136 — the guard slice, stacked on PR #13047 (the removal slice). Lands after #13047: this PR's base is xaltha/12136-root-cleanup, and the guard is green only on a tree where the stale root files are gone. Once #13047 merges and this PR's base retargets to main, #12136's third fix bullet is done and the issue can close.
What this adds
.github/scripts/check-root-status-files.sh — fails, naming each offender, when a file at the repository root has a name containing COMPLETE or SUMMARY (case-insensitive). Root only: the same names inside a directory (e.g. the pm-stack/opencode-claimant/ copies) are untouched. Strict one-optional-positional argument contract per Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352.
.github/scripts/check-root-status-files.test.sh — contract tests in the check-fleet-lock.test.sh style (fixture roots in a temp dir).
.github/workflows/root-status-guard.yml — nightly + dispatch venue modeled on production-line-guard.yml, running the guard and its contract tests.
.github/test-suite-registry.json — new ci.root-status-files suite row, mirroring ci.production-line-limit.
check-ci-policy-agreement.sh + .github/ci-policy.md — the new workflow joins the Policy, triggers, enablement must agree — one agreement contract for ci-policy's guard and build workflows #7089 agreement registry as a nightly guard, with its policy table row.
Why stacked instead of a grandfather list
The repo's ratchet for pre-existing violations is the grandfather list in check-production-line-limit.sh, which exists for violations burned down over many PRs, each entry deleted by the PR that removes the violation. Here the removal is a single already-open PR (#13047), so a 29-entry grandfather list would be dead weight the moment it merges — and this guard's contract tests would then need the entries pruned in a third PR. Stacking makes the guard a pure invariant that is green from the day it lands.
Evidence (all run locally in the sandbox)
- Fails-before: against a pre-removal main tree (cb4c54c, the base of chore(repo-root): remove stale slice-1 status files and committed session transcript (#12136) #13047) the guard exits 1, naming 16 root COMPLETE / SUMMARY files (the other removed names — COMPLETION, STATUS, the session transcript, the scripts — are outside the issue's guard bullet).
- Passes-after: on this branch's tree (post-chore(repo-root): remove stale slice-1 status files and committed session transcript (#12136) #13047) the guard exits 0 — 140 root files checked, none matched.
- Contract tests: 7/7 ok — clean root passes (nested COMPLETE out of scope), root TASK_COMPLETE.md fails and is named, lowercase summary fails, SLICE1_COMPLETION_SUMMARY.txt fails, a STATUS-only name passes (the bullet names only COMPLETE / SUMMARY), missing root fails, extra argument is a usage error (exit 2).
check-suite-registry.sh: the same 3 violations before and after this change (the pre-existing id: register the 36 test suites that no registry row names #12230 gaps that PR ci: register atlas, location_ref and exchange_lock_release id suites (#12230) #12870 fixes on a newer main) — no new violations; the new suite is covered and its venue row does not dangle.
check-ci-policy-agreement.sh: OK, 11 workflows checked (10 before); its contract tests and check-suite-registry's contract tests also pass.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
11f477be-1db1-4903-8176-4705916dce29
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-23T07:45:52.471535Z |
3cf36fb |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3cf36fb377
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 24, 2026
This was referenced Nov 24, 2026
|
Shepherd note (lane oc-code-08, task 23453): the only review finding — the Codex P1 asking for a schedule-registry entry for the new nightly guard — is already addressed in this branch: commit a6bd59d adds the root-status-guard row to Surface 4 of doc/fleet-schedule-registry.md (daily 07:17 UTC, matching the workflow cron). No code change needed for the finding. Remaining work is the stacked base #13047: refreshing it onto current main (one conflict on the actively-maintained verifier script), then retargeting this PR to main after #13047 merges.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Closing note: #13047 merged, so GitHub closed this PR when the stacked base branch was deleted. The guard slice was carried forward onto main unchanged (plus the schedule-registry row merged against main's current table) as #14626 and merged as 7bfe21bb469 on 2026-11-24. #12136 is now closed — all three fix bullets landed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|