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
[desktop/macos] Meta: invariants live in prose (AGENTS.md) while nothing converts rules into CI checks #8849
Area: Process — the force behind the other desktop audit issues
Problem
This is the synthesis of the desktop audit (#8842, #8843, #8844, #8845, #8846, #8847). Each of those has the same shape: an incident or need produced a prose rule in AGENTS.md, and nothing converted the rule into a mechanical check:
Prose rule (AGENTS.md / code comments)
Mechanical enforcement
"Run a clean release build before merge for cross-file type changes"
single SPM target, anything imports anything (#8847)
The repo does know how to do this right — the changelog fragment check (check-desktop-changelog.py in lint.yml), desktop-backend-contracts.yml, the tool-surface drift checks, and the per-worktree instance isolation in run.sh are all rules that became red X's. Those are worth protecting and copying.
Why it matters
desktop/macos sees ~1190 commits/month, predominantly agent-authored, with ~35% of subjects containing fix/revert. At that velocity a rule enforced by reading comprehension fails weekly; a rule enforced by CI fails never.
Suggested fix (process, one sentence each)
Standing rule: a desktop incident fix may not land with only a prose-rule edit — it must add or extend a check (lint step, contract test, ratchet, or compile-time gate) or explicitly state why none is possible.
Adopt ratchets as the default cheap check: counts that may only decrease (god-file line counts, asyncAfter/Task.sleep sites, raw forKey: literals, test.sh skip list length). One generic script + a JSON high-water-mark file covers all of them.
Audit AGENTS.md's desktop "never/always" rules quarterly: each is either enforced, converted, or consciously accepted as prose (with the reason noted inline).
Done: the original intent—turning AGENTS.md never/always prose into mechanical CI checks/ratchets—is covered by the checks-manifest culture (~80 checks, ratchets, preflight, failure-class, arch/lifecycle guards, etc.).
Successor problem is over-guarding / gate economics: see #10338.
Activity
Git-on-my-level commentedon Jul 23, 2026
Done: the original intent—turning AGENTS.md never/always prose into mechanical CI checks/ratchets—is covered by the checks-manifest culture (~80 checks, ratchets, preflight, failure-class, arch/lifecycle guards, etc.).
Successor problem is over-guarding / gate economics: see #10338.