Skip to content

agents-md-lean is red on main: desktop/macos/AGENTS.md is 392 bytes over budget, blocking every push that touches any AGENTS.md #11409

Closed

Description

@undivisible

.github/scripts/check_agents_md_lean.py fails on current main (1096546):

desktop/macos/AGENTS.md: 47392 bytes exceeds budget of 47000

Introduced by e2a792e ("docs(desktop): Release Pipeline reflects the hourly train", Aug 10), a two-line change that took the file from 46945 to 47392 bytes — it had only 55 bytes of headroom.

Impact is repo-wide, not desktop-local. The check's manifest triggers are AGENTS.md / **/AGENTS.md, and scripts/pre-push diffs against the merge-base with origin/main, so any PR whose diff touches any AGENTS.md gets the gate selected and then fails on this unrelated file. Hit while working on #11301, which only edits .github/AGENTS.md; the push required the PRE_PUSH_SKIP_PR_PREFLIGHT=1 hatch.

The budget comment says it was "recalibrated to current main + headroom", so the intent was for main to fit — it does not. Per the check's own guidance the fix is to move Release Pipeline detail down to desktop/macos/docs/, not to raise the budget. I trimmed ~200 bytes of genuine redundancy from the offending paragraphs as an experiment and still landed at 47190, so this needs a desktop owner deciding what moves out rather than an incidental prose squeeze.

Suggested follow-up: also make the failure message name the introducing commit, since the current output gives an unrelated PR author no hint that the file is not theirs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions