You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failure-class protocol and recurrence ratchets #9822
This issue is narrowed to one self-contained, in-repository change.
The problem is that repeated defect classes are recorded only in PR prose, so agents cannot reliably reuse the known prevention primitive. Two real static failure classes have also recurred despite ad hoc review: unsafe Swift dictionary construction (#6506, #9288) and naive Python datetime sort sentinels (#9571, #9600).
Scope
Provide a semantic failure-class registry under .github/failure-classes/ and an offline, JSON-first CLI that prepares, explains, validates, and reports declarations.
Require and validate Failure-Class: FC-<slug> | new | none for reactive fix: commits; distinguish proactive harden: commits.
Add the two manifest-backed recurrence ratchets above, with real-incident citations.
Update the PR template and contributor guidance so an existing-class declaration replaces repetitive root-cause narrative; keep extended narrative only for a new class or registry lifecycle transition.
Require seven days of unchanged behavior and guard before a product invariant can be locked.
Broad subsystem migrations or shared-primitive work that needs its own issue.
Success is a single PR that adds the offline protocol, its focused tests, and manifest-backed ratchets. No external setting or runtime prerequisite is required to close this narrowed issue.
Correction to item 3 (Dictionary(uniqueKeysWithValues:) ratchet): a verification pass found this guard already exists — desktop/macos/scripts/check_desktop_test_quality.py forbids Dictionary(uniqueKeysWithValues:) / .init(uniqueKeysWithValues:) at the AST/token level, with the // omi-collection-safety: static-unique-keys escape hatch documented in desktop/macos/AGENTS.md, and it is manifest-registered. Item 3 reduces to: verify its coverage includes production sources (not only test-quality scope) and close. Also a mechanical note for items 3/4: the checks-manifest loader (.github/scripts/run_checks.py) consumes id/command/triggers/lanes/reason only — real-instance citations go in reason, there is no dedicated caught field unless the schema is extended.
changed the title [-]Quick guards + ceremony reductions: make failure-class closure real instead of rhetorical[/-][+]Failure-class protocol and recurrence ratchets[/+]on Jul 15, 2026
Addition to item 5 (watchdog auto-merge gate audit) — mechanical verification levels, derived not declared:
The gate should not trust any claimed verification level. Derive it from facts CI already has:
Tests-fail-on-base check: CI runs the PR's added/modified test files against the merge-base. If they pass on base, they do not cover the change — the PR is effectively reasoning-only regardless of its narrative. Fail on base + pass on head = regression coverage proven, not asserted.
No new PR-body fields, no self-declaration — nothing for humans or agents to remember until a PR is blocked, and the block message says exactly why.
Implementation is one CI job (checkout merge-base, run the diff's test files, invert the expectation) registered in the manifest; reason cites #9739→#9783 (lenient-fake regression that shipped with green tests) as the instance class this would have gated.
Activity
Git-on-my-level commentedon Jul 15, 2026
Correction to item 3 (Dictionary(uniqueKeysWithValues:) ratchet): a verification pass found this guard already exists —
desktop/macos/scripts/check_desktop_test_quality.pyforbidsDictionary(uniqueKeysWithValues:)/.init(uniqueKeysWithValues:)at the AST/token level, with the// omi-collection-safety: static-unique-keysescape hatch documented indesktop/macos/AGENTS.md, and it is manifest-registered. Item 3 reduces to: verify its coverage includes production sources (not only test-quality scope) and close. Also a mechanical note for items 3/4: the checks-manifest loader (.github/scripts/run_checks.py) consumesid/command/triggers/lanes/reasononly — real-instance citations go inreason, there is no dedicatedcaughtfield unless the schema is extended.[-]Quick guards + ceremony reductions: make failure-class closure real instead of rhetorical[/-][+]Failure-class protocol and recurrence ratchets[/+]Git-on-my-level commentedon Jul 15, 2026
Addition to item 5 (watchdog auto-merge gate audit) — mechanical verification levels, derived not declared:
The gate should not trust any claimed verification level. Derive it from facts CI already has:
Implementation is one CI job (checkout merge-base, run the diff's test files, invert the expectation) registered in the manifest;
reasoncites #9739→#9783 (lenient-fake regression that shipped with green tests) as the instance class this would have gated.harden: add failure-class protocol and recurrence ratchets (#9841)
undivisible commentedon Jul 20, 2026
Failure-class protocol — confirmed: 14 FC JSON files in .github/failure-classes/, scripts/failure-class CLI, .github/checks-manifest.yaml references.
harden: add failure-class protocol and recurrence ratchets (BasedHard…