๐ fix: P-15 close the gaps process-rules hit adopting itself
Merged
AT
1mo ago+173+173+012345678901234567890123456789-26-26-01234567890123456789
Slice: #40
Closes the three gaps process-rules hit adopting itself (P-14):
- onboard, read-only agent. When the agent can already read the repo (a public repo, or an organisation's base permission),
onboardnow offers the samegh api -X PUT repos/<slug>/collaborators/<agent> -f permission=pushgrant it offers when the agent has no access, then accepts the invitation as before. - pre-push, a merge of the default branch. Commits a remote already has, such as the default branch's, are not the push's own. A push whose own commits are all merges is judged by the branch's commits the merges did not bring in (a merge's first parent being the branch). A commit of the branch's own with no trailer is still refused.
- The pull request that first commits the settings. PR identity, Work rules and Design frames pass when the base branch has no
.github/process-rules.json, saying the repo is not adopted on its base yet, as for a feature that is off. They still read the settings only from the base, so a pull request cannot rename its own agent. The README note from #39 now says so.
docs/decisions.md records the owner's decision on #22: "Decision: add #40 (P-15) to roadmap v1."
pnpm check passes; the merge rule was also tried against real git on a scratch repository.
๐ค Generated with Claude Code