docs(agents): record why branch protection requires cargo and not docker #13
No reviewers
Labels
No labels
waiting-on-julian
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jlxq0/jmap-mcp!13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/branch-protection-note"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Branch protection is now armed on
main(enable_push=false,apply_to_admins=true,enable_status_check=true,status_check_contexts=["CI / cargo*"],required_approvals=0). This records whyCI / dockeris excluded, since the rule can show what is required but not why something is absent.The measurement
dockercarriesneeds: cargo(.forgejo/workflows/ci.yml:74). A Forgejo job skipped because the job it needs failed still postssuccessto the commit status. Six commits in this repo, both event types, 2026-08-16 to 2026-08-25:83396b91c0a9353dcf08af4d53bd20a5d394adfd01f77e76Requiring
CI / dockerwould build a gate satisfied by a commit where nothing was built.The glob is needed because the event suffix differs:
CI / cargo (push)on a branch push,CI / cargo (pull_request)on a PR head. Those four are the only contexts this repo has ever posted.Acceptance
The rule was not trusted from a read-back. On a throwaway branch
probe/bp-20260827: push one with no rule succeeded at exit 0; the rule was armed with these exact flags; push two, the same command, was refused.Remote head stayed at push ones sha while local advanced. Probe rule and probe branch then deleted,
git ls-remoteback to the four pre-existing heads.Repeated against the real rule on
main: this commit was made onmainandgit push origin mainwas refused withNot allowed to push to protected branch main, exit 1, remotemainunmoved ate48b733d. The token holds admin, soapply_to_admins=trueis proven rather than assumed. The commit was then moved here.Docs only.