Skip to content

Commit 3bf9c5c

Browse files
pm: PD14 names the relay dequeue door and the low-risk arm's security conditions; CODEOWNERS and fleet workflow comments follow (#34256)
Part of #33768 <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi94aDHbe6SfNTi5CxVcVEY5m)_ Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:四个受管文件只改文字。AGENTS.md 第 14 条:已入队的受管 PR,由它的落地席位走中继 `pr_dequeue` 撤出(已有一次线上实测),其他席位或撤出没成功时,立即请你手工撤;低风险臂按 Tier S 落地,还要复审记录写 `Security-touching: no`,且点名的卡从没挂过 `security`。CODEOWNERS 抬头、fleet-write.yml、fleet-patrols.yml 只改注释。 - 为什么改:#33732 加了出队通道,#34133 给低风险臂加了安全条件,但第 14 条、CODEOWNERS 抬头和两个 workflow 注释还停在旧说法(卡 #33768 的复审尾项和两条接续说明)。 - 风险与回滚:只改规则文字和注释,没有代码、owner 行或 workflow 键的变动;AGENTS.md 仍是 1050 行,在上限内。回滚就是 revert。 - 先看:AGENTS.md 第 292–293 行(低风险臂条件)和第 302–303 行(出队)。 - 两分钟验证:`node scripts/pm/check-governed-queue-guard.mjs --self-test`(CODEOWNERS 镜像仍绿),`pnpm check:pm-skill-ratchet`(AGENTS.md 行数)。 - 需要你做的:本 PR 动 AGENTS.md、.github/CODEOWNERS、.github/workflows/fleet-write.yml、.github/workflows/fleet-patrols.yml(Tier H),保持 draft;契约复审由席位交 review#2,之后请 GOVERNED_APPROVERS 审批。 ## What changes - **`AGENTS.md`, Prime Directive 14** (two sentences, both paid inside PD14; the file stays at 1050 lines): - The dequeue sentence. It said no seat act is measured to dequeue a queued PR, so ask the maintainer. Since #33732 the relay has `pr_dequeue`, and one live stroke is measured: fleet-write run 43767458575 (2026-11-15 22:10Z, cause `seat-asks`, PR #34097). The mint carried `permission-merge-queues: write`, `dequeuePullRequest` answered 200, and the relay's read-back listed 25 entries without #34097 and read it still open and unmerged; its audit comment is 6902190812. The sentence now reads: a queued one's landing seat sends the relay's `pr_dequeue` (measured live, comment 6902190812); any other seat, or a stroke that does not land, asks the maintainer at once. "Landing seat" is the relay's own fence: cause `seat-asks` is accepted only from the seat that the PR body's signed trailer names (`landing-operations.md`, `lanes/queue.md`). Other seats are not the PR's landing seat, so the maintainer path stays for them. - The arm wording. Since #34133, `lowRiskArmVerdict` reads Tier S only on a record carrying `Security-touching: no` and no named card that carries or ever carried the `security` label. The Tier S parenthetical now says so. - Paid inside PD14 with two rewordings that keep the meaning: "a `## Contract review` record … with `Served-tier: CONTRACT_REVIEW_TIER` and a PASS verdict" became "a PASS `## Contract review` record … with `Served-tier: CONTRACT_REVIEW_TIER`", and "the owning seat lands it through the queue" became "the owning seat queues it". The touched lines are re-wrapped at the paragraph's 120-byte width. No line was bought by a re-wrap alone. - **`.github/CODEOWNERS` header** (comment lines only): - The title line now reads "every Tier H governed surface but the low-risk arm's rows". That matches the section line lower down ("less the low-risk arm's … rows"). - #33975 review N9: the hunk from `3bc27d49` is re-applied as it was. The ADR ruling sentence now says "in the root tree" and "lands under the low-risk arm's conditions", and both long lines are re-wrapped at the file's width. - No owner row, owner name or path row changed. `codeownersMirrorVerdict` (queue-guard self-test) stays green. - **`.github/workflows/fleet-write.yml`** (comment only): the `permission-merge-queues` comment named ONE consumer, `pr_enqueue_front`. It now names two, `pr_enqueue_front` and `pr_dequeue`, and says each travels alone. The NOT MEASURED wording stays and now also covers the dequeue mutation: whether `dequeuePullRequest` needs the grant at all, and what a token without it answers, is NOT MEASURED either, because the one live stroke carried the grant. That is the same statement `scripts/pm/fleet-write/ops.mjs` makes. No `with:`, `env:`, step or key changed. - **`.github/workflows/fleet-patrols.yml`** (comment only): the weekly governed-merges audit header defines BREACH. It now also covers an arm landing on a record stage reading Tier H, as `check-governed-merges.mjs` already prints ("no same-head at-tier PASS record, or a record stage at Tier H"). ## Why These are the governed-text items of card #33768: the stale `fleet-write.yml` comment and the PD14 sentence from PR #33732's Acceptance notes, plus the carry-over notes 6900367064 (CODEOWNERS header) and 6901240370 (the arm's security condition, the patrols BREACH line). They waited for PR #34115 (merged 2026-11-16 01:41Z), which changed the same PD14 line, and for PR #34133 (merged 2026-11-15 23:51Z). ## Verification - Premise on `origin/main` `7be32d39` (round 1 merged `origin/main` `b8456ebd`; it touches none of the four files): each quoted text was still there; `platform-readings.md` has no dequeue line. - `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at round-1 head `af9ef8f0` derived 48 commands; all 48 exit 0. `--ran`: 48 derived, 48 run, 0 NOT-MEASURED, 0 UNRUN. (Round 0 head `c6dcc41d` derived the same 48, all exit 0.) - The delta's two named self-tests also ran: `node scripts/pm/check-governed-queue-guard.mjs --self-test` (581 cases, includes `codeownersMirrorVerdict`) and `node scripts/pm/fleet-write/validate.mjs --self-test` (428 cases, includes the `permission-merge-queues` line pin). - Line budget: `AGENTS.md` 1050 → 1050 lines (ceiling 1050, `check-skill-line-ratchet.mjs`; `pnpm check:pm-skill-ratchet` green at `af9ef8f0`), 78025 → 78079 bytes, every touched line ≤ 120 bytes. `.github/CODEOWNERS` 65 → 68 lines, longest line 150 → 84 bytes. `fleet-write.yml` 198 → 202 lines. `fleet-patrols.yml` 1861 → 1862 lines. Every added `.github` line is ≤ 119 bytes. - Forced test edits: none. ## Review round 1 Contract review of record 6906023389 (review#2, PASS on `c6dcc41d`) has no required change. Round 1 head: `af9ef8f0` (S1/N2/N4 commit `2198eb03`, then a merge of `origin/main`). - S1, taken: PD14 now gives the landing seat a backstop. "any other seat, or a stroke that does not land, asks the maintainer at once" puts "at once" back on the asking. The reviewer's exact wording ("… asks the maintainer at once to remove it by hand") measured one line over under this paragraph's 120-byte greedy wrap, which is the wrap the paragraph already uses: 1051 lines. So "to remove it by hand" was dropped. The next clause, "then confirm from the remote that it is in neither the queue nor `origin/main`", still says what is asked. "for a queued one its landing seat" also became "a queued one's landing seat". AGENTS.md stays at 1050 lines, and every touched line is ≤ 120 bytes. - N2, taken: `fleet-write.yml` now says the dequeue grant is "NOT MEASURED either: the one live stroke carried the grant". Comment lines only. - N4, taken: "for its current head" is now "for the PR's current head". It fits on the same line. - S2, not taken here: the seat filed both followers on #33768 (carry-over note 6905853116), the queue-guard refusal texts and the `platform-readings.md` dequeue row. Nothing in this diff changes for it. - N1, not taken: the citation stays. The durable anchor will be the S2 row once it lands. - N3, not taken: `lowRiskArmVerdict` is cited as the full statement. No change. - N5, not taken: it is outside this diff (`landing-operations.md`). ## Acceptance notes - Left on the card, unticked: N1 and E1 (measured at the first live stroke of their kind; see below), D2 (needs a seat-to-session roster read), D4 (needs a byte budget), N2 (needs a ruled row-pin raise). - E1 reading available: run 43767458575 is the first live `seat-asks` stroke that E1 waits for. The executor logged the write-pace pause at 22:10:48.9Z and the landed line at 22:10:55.5Z. The removal-to-merge gap E1 asks about is not in that log, so it is NOT MEASURED here. Carrier: the seat (card item E1). - `scripts/pm/check-governed-queue-guard.mjs` still prints "no seat act is measured to take it out of the queue … So ask the maintainer AT ONCE" in both refusal remedies (about lines 1990 and 2957) and in two comments (about 4280 and 5160). Those remedies now lag PD14. They sit outside this PR's file surface. Carrier: the seat (a `domain:skills` tooling card). - `platform-readings.md` has no line for the measured dequeue stroke. PD14 cites the audit comment instead. Carrier: the seat (the card's N1/E1 recording step). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (n/a, no schema) - [x] 2. Every name I added uses the casing for its kind. (no names added) - [x] 3. No formatter ran; `pnpm lint` was not run (no lintable code changed: prose and comments only). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (nothing publishes: `skip-changeset`) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (n/a) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. (the `## 维护者速读` block is the allowed Chinese channel) - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmRoFewgpd9ro12rK2L <!-- signed: domain:skills#2 · os-steve · session_01ADHkmRoFewgpd9ro12rK2L --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 12b69e1 commit 3bf9c5c

4 files changed

Lines changed: 36 additions & 28 deletions

File tree

‎.github/CODEOWNERS‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# .github/CODEOWNERS — governance routing: every Tier H governed surface to
2-
# every authorized approver.
1+
# .github/CODEOWNERS — governance routing: every Tier H governed surface but
2+
# the low-risk arm's rows to every authorized approver.
33
#
44
# The ruling this file helps enforce (maintainer, verbatim):
55
# 「adr 只能由维护者自己确认,人工合并,ai 不得擅自合并。」
6-
# It holds for every ADR change except an add-only note (no removed line, no `Status:` line, nothing under
7-
# `Decision`, no new, renamed or deleted file), which rides the low-risk arm (Ruling-ref Leehom, 「同意 把低风险的 Tier H 放权给座位」).
6+
# It holds for every ADR change except an add-only note in the root tree (no
7+
# removed line, no `Status:` line, nothing under `Decision`, no new, renamed or
8+
# deleted file), which lands under the low-risk arm's conditions (Ruling-ref
9+
# Leehom, 「同意 把低风险的 Tier H 放权给座位」).
810
#
911
# The owner list on EVERY row mirrors `GOVERNED_APPROVERS` in
1012
# scripts/pm/check-governed-queue-guard.mjs — the one list of accounts whose
@@ -17,8 +19,9 @@
1719
# any line names fewer or other owners than that constant, or when a Tier S row
1820
# (`.claude/**`, which lands on a seat's review of record) is routed here. A
1921
# Tier H row carrying the register's low-risk arm (`lowRisk`: the two skills
20-
# catalogs and the root ADR tree) has NO line here and reds if one is added: the relay's per-pull
21-
# review plan reads the arm and decides who is asked (ruling record 6891850019).
22+
# catalogs and the root ADR tree) has NO line here and reds if one is added:
23+
# the relay's per-pull review plan reads the arm and decides who is asked
24+
# (ruling record 6891850019).
2225
# Change the constant or the register first; this file follows in the same PR.
2326
#
2427
# What routing buys, and what it does not: GitHub requests a code owner's

‎.github/workflows/fleet-patrols.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,10 +1472,11 @@ jobs:
14721472
# * a CLEAN week — the sweep exits 0 and no low-risk arm landing reads
14731473
# ⛔ BREACH — writes NOTHING. The run summary and the uploaded JSON are the
14741474
# record that it ran; the Actions run list is the heartbeat.
1475-
# * a BREACH (an arm landing without a same-head at-tier PASS record) or a
1476-
# NOT MEASURED week (exit 2: a repo, a window edge, an attribution or an arm
1477-
# read the sweep could not make; exit 1 or no JSON: it could not sweep at
1478-
# all) opens or refreshes ONE card for the maintainer.
1475+
# * a BREACH (an arm landing without a same-head at-tier PASS record, or on
1476+
# a record stage reading Tier H) or a NOT MEASURED week (exit 2: a repo, a
1477+
# window edge, an attribution or an arm read the sweep could not make;
1478+
# exit 1 or no JSON: it could not sweep at all) opens or refreshes ONE
1479+
# card for the maintainer.
14791480
#
14801481
# The card enters `pm:awaiting-maintainer` with a `Maintainer-action:` line:
14811482
# AGENTS.md Prime Directive 14 already decides what a seat landing without its

‎.github/workflows/fleet-write.yml‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,18 @@ jobs:
170170
# warning by removing the input. ⛔ A refused mint fails this step with zero writes; no step here
171171
# ever mints an un-narrowed token instead.
172172
permission-repository-advisories: ${{ steps.validate.outputs.permission_repository_advisories }}
173-
# ONE consumer: the `pr_enqueue_front` row — `enqueuePullRequest(jump: true)`, the front of a base's merge
174-
# queue, which reorders every queued pull behind it ("Jump to the front of the queue" is a repository
175-
# permission above write). Minted ONLY for a stroke carrying that op, which travels alone, the same way as
176-
# `permission-actions`: the validator writes `permission_merge_queues=write` for it and an EMPTY value for
177-
# every other stroke, so every other run's token is exactly what it was. The App installation must hold
178-
# `Merge queues: write` (a maintainer's setting); without it this mint fails with zero writes. Whether
179-
# GitHub honours the jump for an App token is NOT MEASURED until the first live stroke, whose read-back
180-
# judges it (`scripts/pm/fleet-write/execute.mjs`, "The front-of-queue enqueue").
173+
# TWO consumers, one at a time: the `pr_enqueue_front` row — `enqueuePullRequest(jump: true)`, the front
174+
# of a base's merge queue, which reorders every queued pull behind it ("Jump to the front of the queue" is
175+
# a repository permission above write) — and the `pr_dequeue` row — `dequeuePullRequest`, which takes one
176+
# pull out of its base's queue. Each travels alone; the grant is minted ONLY for a stroke carrying one, the
177+
# same way as `permission-actions`: the validator writes `permission_merge_queues=write` for it and an
178+
# EMPTY value for every other stroke, so every other run's token is exactly what it was. The App
179+
# installation must hold `Merge queues: write` (a maintainer's setting); without it this mint fails with
180+
# zero writes. Whether GitHub honours the jump for an App token is NOT MEASURED until the first live
181+
# stroke, whose read-back judges it (`scripts/pm/fleet-write/execute.mjs`, "The front-of-queue enqueue").
182+
# Whether `dequeuePullRequest` needs this grant at all, or what a token without it answers, is
183+
# NOT MEASURED either: the one live stroke carried the grant (`scripts/pm/fleet-write/ops.mjs`, "The one
184+
# row that takes a pull OUT of the merge queue").
181185
permission-merge-queues: ${{ steps.validate.outputs.permission_merge_queues }}
182186

183187
# The sender gate, then the actions in order, then the step summary —

‎AGENTS.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -289,18 +289,18 @@ See `ui/AGENTS.md` for the app-id / localStorage / auth gotchas.
289289
(人合: every row outside Tier S): those four lift only for an authorized APPROVED review by an account in
290290
`GOVERNED_APPROVERS`, on ANY commit and not dismissed; that word is spent once per PR — the OWNING seat then lands
291291
it, later pushes included; the click stays the maintainer's. **Tier S** (席内达档 L2 审核落地: `.claude/**`,
292-
objectstack workflow edits (`readWorkflowDiff`), skills-only wording and add-only ADR notes (`lowRiskArmVerdict`;
293-
the seat labels unnamed security teaching) read as S): those four lift once the PR thread or its card carries a
294-
`## Contract review` record for the PR's current head with `Served-tier: CONTRACT_REVIEW_TIER` and a PASS verdict
295-
and every check is green — the owning seat lands it through the queue. A PR whose only governed paths are register
296-
rows the queue leg regenerates byte-exact clears with zero approvals — an uncertified recompute, drift or a
297-
hand-authored sibling keeps it governed. ⛔ **No agent seat submits an approving review on a governed-surface PR,
298-
under any account** — an authorized account is agent-operated too; "CI is green" says nothing about a governance
299-
change. An authorized account's enqueue is a review record too: ⛔ never a seat's.
292+
objectstack workflow edits (`readWorkflowDiff`), skills-only wording and add-only ADR notes (`lowRiskArmVerdict`, on
293+
a `Security-touching: no` record, no named card ever labelled `security`; the seat labels unnamed security teaching)
294+
read as S): those four lift once the PR thread or its card carries a PASS `## Contract review` record for the PR's
295+
current head with `Served-tier: CONTRACT_REVIEW_TIER` and every check is green — the owning seat queues it. A PR
296+
whose only governed paths are register rows the queue leg regenerates byte-exact clears with zero approvals — an
297+
uncertified recompute, drift or a hand-authored sibling keeps it governed. ⛔ **No agent seat submits an approving
298+
review on a governed-surface PR, under any account** — an authorized account is agent-operated too; "CI is green"
299+
says nothing about a governance change. An authorized account's enqueue is a review record too: ⛔ never a seat's.
300300

301301
**Already armed or queued when you read this?** Disable auto-merge AND convert it back to **draft**, which disarms
302-
an unqueued PR; no seat act, those two included, is measured to dequeue one (`platform-readings.md`, queue
303-
membership), so ask the maintainer at once to remove a queued PR by hand — then confirm from the remote that it is
302+
an unqueued PR; a queued one's landing seat sends the relay's `pr_dequeue` (measured live, comment 6902190812); any
303+
other seat, or a stroke that does not land, asks the maintainer at once — then confirm from the remote that it is
304304
in neither the queue nor `origin/main`. **Draft is no barrier by itself — the barrier is this directive**, and a
305305
spent approval or a standing record IS the review record, ⛔ not a relaxation. Behind it: the queue guard refuses a
306306
governed diff without its tier's record; CODEOWNERS routes every Tier H surface but the low-risk arm's rows to the

0 commit comments

Comments
 (0)