Repository navigation
Commit 0a50588
committed
governed: a fork PR is a proposal, never a delivery — the FORK predicate beside PATH and SIZE, and the charter's 外部贡献 section
Ruled: batch 207 item 1, letter 是 (maintainer, verbatim: 「fork PR 的处理同意你的意见。」;
the director's record on the card carries the four-step intake). A pull request whose head
lives in another repository — head.repo.full_name differs from base.repo.full_name, or
head.repo is null because the fork was deleted (fail closed) — is a proposal, never a
delivery, whatever its paths: no AI seat flips it ready, enqueues it, arms auto-merge on it
or approves it; the owning seat adopts the diff onto an internal branch (Co-authored-by: the
contributor) and lands that.
scripts/pm/check-governed-merges.mjs (+80 net incl. self-tests): a third limb beside PATH and
SIZE. `forkVerdict(pull)` reads the pair off the PR object `--pr` already fetches;
`testVerdict` carries `fork` and `checks`; `landsByHumanMerge` fires on any limb, so the
fork exits on the existing GOVERNED code through the Tier H terminal with its own reason
sentence. `--pr` also reads the head's check-run count (one GET on the chosen channel): a
head with ZERO check runs prints NOT MEASURED — never green — in the register the size limb
already uses; `--test` / `--branch` cannot see a head repo and say NOT MEASURED there too.
Self-test battery beside the SIZE cases: fork head; deleted fork repo; same-repo head on
ordinary and on governed (H and S) paths unchanged; zero / non-zero / unread check runs;
the readings off an injected `--pr` fetch.
AGENTS.md (1109 → 1109): one sentence in Prime Directive 14's paragraph; paid by retiring
the Skills section's restatement of the register and its tiers, whose home is that
directive (lines 259–275). SKILL.md (+1, 815 → 816 / 819): one rule line in 入队与落地.
references/core-rules.md (151 → 151): the landing-rule line rewritten in place to carry
the twin. New references/external-contributions.md (16 lines, every line ≤ 120 bytes): the
ruled 外部贡献 section — card first, the human decides the problem, the seat adopts the
diff, a fork's CI is never approved by a seat, and the supply-chain clause deferred.
Claude-Session: https://claude.ai/code/session_017ETYWqMQD4qMtZzAGovWNi
Co-authored-by: Claude <noreply@anthropic.com>1 parent 8fc6a5f commit 0a50588
5 files changed
Lines changed: 119 additions & 22 deletions
File tree
- .claude/skills/pm-dispatch
- references
- scripts/pm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
| 643 | + | |
643 | 644 | | |
644 | 645 | | |
645 | 646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
265 | 267 | | |
266 | 268 | | |
267 | 269 | | |
| |||
797 | 799 | | |
798 | 800 | | |
799 | 801 | | |
800 | | - | |
801 | | - | |
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
| |||
0 commit comments