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
Audit That a Merge-Bot Caller Stub Subscribes to auto_merge_disabled #4313
#4063's fix (#4310) moves the merge bot's re-arm onto the pull request auto_merge_disabled event, which each caller stub must subscribe to. Nothing audits that subscription. The merge-bot entry in spec/files.json checks only the merge-bot job key and three tokens inside that job (requireTokensInJob). spec/audit.py has no contract key for a token outside a job, so a stub's on: types are never read. A repository that keeps its old stub passes the audit while the re-arm job never runs there, the same silent stall #4063 fixed.
Done looks like
A file-level contract key, for example requireTokens, checked against the whole caller file.
"requireTokens": ["auto_merge_disabled"] on the merge-bot entry in spec/files.json.
A test for the new key.
spec/audit.py stays under its 3000-line ceiling. It sits near the ceiling, so the key's logic goes in a module of its own where it does not fit.
This could not land with #4310, because another open group held spec/audit.py and tests/test_audit_helpers.py at the time.
Activity
Watch the Merge Bot's Auto-Merge and Re-Arm a Disable GitHub Makes (#…
Promote Develop to Main: Standup Ordering, Signal Handling, Merge Hol…
ptr727 commentedon Nov 20, 2026
Backlog burndown claim (2026-11-20 attended run, round 2, group 3): branch
burndown/merge-bot-stub-types-audit.Issues: #4313.
Predicted file set:
spec/audit.pyspec/audit_contract.pyspec/files.jsonspec/files.schema.jsonspec/validate.pytests/test_audit_helpers.pytests/test_audit_size.py(the new module's own ceiling)Generated from those: none.
Claim extended (2026-11-20):
spec/fidelity-model.md.Audit That a Merge-Bot Caller Stub Subscribes to auto_merge_disabled (#…