Repository navigation
SCA-14: retire backend beta release ring - #10237
Merged
Merged
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Git-on-my-level
added a commit
that referenced
this pull request
Jul 25, 2026
…class retirement (#10534) ## Why Three of this repository's guards were not doing what their green status implied, each in a different way. All three are cheap to close and none of them needed a new mechanism. **1. A check that executes nothing.** `backend-production-release-vector-guard-tests` runs `python3 .github/scripts/test_check_release_rings.py`. That module was pytest-style with no `__main__`, so the command exited 0 having executed none of its six cases. Registered by #10237, green ever since, never once verifying the one-action production backend release contract it names. **2. Seven guard self-tests with no manifest entry.** They ran only as bespoke `run:` steps in `repo-checks.yml` — the shape root `AGENTS.md` calls "a manifest bug" — so they never ran locally, never ran diff-scoped, and were invisible to `pr-preflight --list`. **3. A lifecycle that shipped complete and never ran.** `scripts/failure-class report` computes closure eligibility against a quiet period and requires maintainer confirmation, but it is non-mutating and has no event source: without `--events-file` it returns zero events and a `no_event_source` warning. Nothing ever supplied that feed, so 26 classes sit at `status: open` with zero retirements since the registry was created on 2026-07-16. ## What changed | Commit | Change | |---|---| | `fix(ci)` | `test_check_release_rings.py` converted to the stdlib `unittest` pattern used by the other 24 manifest test commands. Six cases preserved verbatim, no new dependency. | | `fix(ci)` | `test_manifest_test_modules_execute_their_cases` in the manifest contract tests: a `test_*.py` module handed straight to the interpreter must be self-running. Static `ast` parse. | | `feat(ci)` | `repo-hygiene.yml` (Mon 09:00 UTC) + `failure_class_retirement.py`: build the merged-PR feed, run the advisory report, apply the two-field retirement edit, open one PR on a reused branch. | | `fix(ci)` | Corrected the self-running rule, which false-positived on script-style tests. | | `fix(ci)` | Registered the seven orphaned self-tests; deleted the seven workflow steps (net −21 lines of workflow YAML). | | `chore` | Registered `FC-nonexecuting-verification-command`. | ## What the cron deliberately does not do - **Gate anything.** No manifest lane, no pre-push, no release coupling. - **Open an issue for a retirement.** A PR has a review queue and its own CI; an advisory issue joins a 400-issue backlog. Recurrence of an already-dormant class is different — that is judgment work (`AGENTS.md` asks for a reusable guard surface, not a field flip), so it exits 1 and skips the PR. - **Author the PR with `GITHUB_TOKEN`.** That PR would arrive with zero checks run, defeating the reason to prefer a PR. The Omi Bot app token is minted so the diff is verified like any human PR. It never auto-merges and never uses `--admin`. The feed guard is the load-bearing part. A truncated feed makes every class report "no classified instance", so the job would run green forever while retiring nothing — the same defect as a check that executes no tests. The run refuses a feed that hit the fetch limit, or an empty one. ## Verification ``` python3 .github/scripts/test_check_release_rings.py -> Ran 6 tests, OK (before: no output, exit 0, 0 tests executed) python3 .github/scripts/test_run_checks.py -> Ran 24 tests, OK python3 .github/scripts/test_failure_class_retirement.py -> Ran 15 tests, OK scripts/pr-preflight --lane local -> 21 selected, all PASS ``` Mutation evidence (a guard that cannot fail is not a guard): - Stubbing `check_release_rings.check()` to return `[]` makes the suite report `FAILED (failures=4)`; before this change it still exited 0. - Restoring the pre-fix pytest-only module makes the new contract test FAIL, naming the offender: `backend-production-release-vector-guard-tests: ... has no __main__ block invoking a test runner`. Cron, against live data: - Dry run (real `gh`, 14d): 748 events spanning 2026-07-11 → 2026-07-25, 292 carrying a `Failure-Class:` line, 0 eligible, exit 0, no files modified. - Time-travel apply (`--now 2026-08-20`, real registry copied to a temp root): 13 of 26 classes retired, 13 left open, and the diff per class is exactly ``` - "status": "open" + "status": "dormant", + "dormant_since": "2026-08-20T00:00:00Z" ``` 39 changed lines across 13 files, no formatting churn. (An earlier `json.dumps` round trip reflowed the hand-maintained inline arrays; caught by `test_apply_touches_only_the_status_line`.) Expect zero retirements for roughly the next week: the registry is 9 days old against a 14-day quiet period. That is correct behavior, and it is why the feed assertion matters — it distinguishes "nothing to retire" from "the feed could not tell". ## Not in this PR `test_check_release_process_guards.py` is in no lane and has 9 real failures on `main` (#10351). Root cause, which #10351 does not record: the suite loads a **historical** revision of the guard (`4e391ee7`) out of git and runs it against **synthetic or current** workflow input. That parent hardcodes "exactly 21 approved script steps"; `omi-desktop-swift-release` has had 22 since INV-BETA-1 added "Create Omi Beta variant". Every one of the 9 failures is that single mismatch. It will break again on the next approved step. Fixing it means deciding what those assertions should mean — pair each historical guard with its contemporaneous workflow, or narrow the assertions to the bypass class under test. That is a release-guard semantics call, and getting it wrong manufactures a false green, which is the defect this PR exists to remove. It needs its own PR and a reviewer who owns that guard. Failure-Class: new 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/10534?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
pull Bot
pushed a commit
to codingwatching/omi
that referenced
this pull request
Jul 25, 2026
… class The release-vector guard's self-test was registered by BasedHardware#10237 and never executed a case, so the check reported success from the moment it landed. The defect is not specific to that module: any registered command whose invocation form cannot reach its assertions is green forever, and green is exactly what a working guard looks like. Canonical prevention is the contract added in this PR — assert the invocation at the point of registration instead of trusting the exit code — which is why the class is registered with the fix that instantiates it. Evidence: BasedHardware#10237 (registered the command; its six cases never ran). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
## Summary - Retire the backend beta release ring and restore a production-only immutable backend release vector. - Keep desktop Beta/Stable update channels and pointer authority untouched. - No production deployment, promotion, cloud mutation, or workflow dispatch occurred. ## Verification - `python3 .github/scripts/check_release_rings.py` - `python3 .github/scripts/test_check_release_rings.py` - `python3 .github/scripts/check-deployment-concurrency.py --self-test` - `python3 .github/scripts/check-deployment-concurrency.py` - `actionlint .github/workflows/release-record.yml .github/workflows/deploy-release-ring.yml` - `python3 -m pytest -q backend/tests/unit/test_release_rings.py backend/tests/unit/test_render_release_ring_config.py backend/tests/unit/test_release_ring_gke_snapshot.py` - `make preflight`
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
… class The release-vector guard's self-test was registered by BasedHardware#10237 and never executed a case, so the check reported success from the moment it landed. The defect is not specific to that module: any registered command whose invocation form cannot reach its assertions is green forever, and green is exactly what a working guard looks like. Canonical prevention is the contract added in this PR — assert the invocation at the point of registration instead of trusting the exit code — which is why the class is registered with the fix that instantiates it. Evidence: BasedHardware#10237 (registered the command; its six cases never ran). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…class retirement (BasedHardware#10534) ## Why Three of this repository's guards were not doing what their green status implied, each in a different way. All three are cheap to close and none of them needed a new mechanism. **1. A check that executes nothing.** `backend-production-release-vector-guard-tests` runs `python3 .github/scripts/test_check_release_rings.py`. That module was pytest-style with no `__main__`, so the command exited 0 having executed none of its six cases. Registered by BasedHardware#10237, green ever since, never once verifying the one-action production backend release contract it names. **2. Seven guard self-tests with no manifest entry.** They ran only as bespoke `run:` steps in `repo-checks.yml` — the shape root `AGENTS.md` calls "a manifest bug" — so they never ran locally, never ran diff-scoped, and were invisible to `pr-preflight --list`. **3. A lifecycle that shipped complete and never ran.** `scripts/failure-class report` computes closure eligibility against a quiet period and requires maintainer confirmation, but it is non-mutating and has no event source: without `--events-file` it returns zero events and a `no_event_source` warning. Nothing ever supplied that feed, so 26 classes sit at `status: open` with zero retirements since the registry was created on 2026-07-16. ## What changed | Commit | Change | |---|---| | `fix(ci)` | `test_check_release_rings.py` converted to the stdlib `unittest` pattern used by the other 24 manifest test commands. Six cases preserved verbatim, no new dependency. | | `fix(ci)` | `test_manifest_test_modules_execute_their_cases` in the manifest contract tests: a `test_*.py` module handed straight to the interpreter must be self-running. Static `ast` parse. | | `feat(ci)` | `repo-hygiene.yml` (Mon 09:00 UTC) + `failure_class_retirement.py`: build the merged-PR feed, run the advisory report, apply the two-field retirement edit, open one PR on a reused branch. | | `fix(ci)` | Corrected the self-running rule, which false-positived on script-style tests. | | `fix(ci)` | Registered the seven orphaned self-tests; deleted the seven workflow steps (net −21 lines of workflow YAML). | | `chore` | Registered `FC-nonexecuting-verification-command`. | ## What the cron deliberately does not do - **Gate anything.** No manifest lane, no pre-push, no release coupling. - **Open an issue for a retirement.** A PR has a review queue and its own CI; an advisory issue joins a 400-issue backlog. Recurrence of an already-dormant class is different — that is judgment work (`AGENTS.md` asks for a reusable guard surface, not a field flip), so it exits 1 and skips the PR. - **Author the PR with `GITHUB_TOKEN`.** That PR would arrive with zero checks run, defeating the reason to prefer a PR. The Omi Bot app token is minted so the diff is verified like any human PR. It never auto-merges and never uses `--admin`. The feed guard is the load-bearing part. A truncated feed makes every class report "no classified instance", so the job would run green forever while retiring nothing — the same defect as a check that executes no tests. The run refuses a feed that hit the fetch limit, or an empty one. ## Verification ``` python3 .github/scripts/test_check_release_rings.py -> Ran 6 tests, OK (before: no output, exit 0, 0 tests executed) python3 .github/scripts/test_run_checks.py -> Ran 24 tests, OK python3 .github/scripts/test_failure_class_retirement.py -> Ran 15 tests, OK scripts/pr-preflight --lane local -> 21 selected, all PASS ``` Mutation evidence (a guard that cannot fail is not a guard): - Stubbing `check_release_rings.check()` to return `[]` makes the suite report `FAILED (failures=4)`; before this change it still exited 0. - Restoring the pre-fix pytest-only module makes the new contract test FAIL, naming the offender: `backend-production-release-vector-guard-tests: ... has no __main__ block invoking a test runner`. Cron, against live data: - Dry run (real `gh`, 14d): 748 events spanning 2026-07-11 → 2026-07-25, 292 carrying a `Failure-Class:` line, 0 eligible, exit 0, no files modified. - Time-travel apply (`--now 2026-08-20`, real registry copied to a temp root): 13 of 26 classes retired, 13 left open, and the diff per class is exactly ``` - "status": "open" + "status": "dormant", + "dormant_since": "2026-08-20T00:00:00Z" ``` 39 changed lines across 13 files, no formatting churn. (An earlier `json.dumps` round trip reflowed the hand-maintained inline arrays; caught by `test_apply_touches_only_the_status_line`.) Expect zero retirements for roughly the next week: the registry is 9 days old against a 14-day quiet period. That is correct behavior, and it is why the feed assertion matters — it distinguishes "nothing to retire" from "the feed could not tell". ## Not in this PR `test_check_release_process_guards.py` is in no lane and has 9 real failures on `main` (BasedHardware#10351). Root cause, which BasedHardware#10351 does not record: the suite loads a **historical** revision of the guard (`5de82050`) out of git and runs it against **synthetic or current** workflow input. That parent hardcodes "exactly 21 approved script steps"; `omi-desktop-swift-release` has had 22 since INV-BETA-1 added "Create Omi Beta variant". Every one of the 9 failures is that single mismatch. It will break again on the next approved step. Fixing it means deciding what those assertions should mean — pair each historical guard with its contemporaneous workflow, or narrow the assertions to the bypass class under test. That is a release-guard semantics call, and getting it wrong manufactures a false green, which is the defect this PR exists to remove. It needs its own PR and a reviewer who owns that guard. Failure-Class: new 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/10534?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Verification
python3 .github/scripts/check_release_rings.pypython3 .github/scripts/test_check_release_rings.pypython3 .github/scripts/check-deployment-concurrency.py --self-testpython3 .github/scripts/check-deployment-concurrency.pyactionlint .github/workflows/release-record.yml .github/workflows/deploy-release-ring.ymlpython3 -m pytest -q backend/tests/unit/test_release_rings.py backend/tests/unit/test_render_release_ring_config.py backend/tests/unit/test_release_ring_gke_snapshot.pymake preflight