Skip to content

fix(pm): the governed register reads .claude/** Tier S in objectstack alone - #25221

Merged
os-zhuang merged 2 commits into
mainfrom
claude/project-thread-wef5ss
Oct 22, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/project-thread-wef5ss

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

Fixes #25199
Clause-②: no
Metadata-protocol: none

What changed

The governed register's claude-tree row read Tier S in every governed repository, but only objectstack's queue guard has a Tier S arm. objectui's guard (scripts/check-governed-queue-guard.mjs at objectui 1aa8851) carries no tier at all: its merge_group leg refuses every governed diff, .claude/** included, without an authorized approval. So check-governed-merges --pr promised objectui a seat landing its own queue refuses, and the relay's governed-review follow-up (which sends on Tier H alone) never summoned the approvers.

scripts/pm/check-governed-merges.mjs only:

  • A row's tier can be scoped per repository by a tierRepos key, read by one pure function, surfaceTierIn(surface, repo): the row's tier where the key is absent or names repo, else Tier H (fail closed, so a repository added to GOVERNED_REPOS later never inherits a cheaper landing than its own guard enforces).
  • governedSurfacesFor(repo) hands every matcher the tier for its repository (the table's own frozen row where the tier holds, a frozen copy carrying H otherwise), so governedPathsIn, governedTierFor, testVerdict, --pr/--branch/--test and the relay's governedReviewPlan all follow with no change of their own.
  • The claude-tree row gains tierRepos: ['objectstack']. Membership is untouched (the row still governs .claude/** in all five repositories, no repos key), and the raw row still reads tier: 'S', which is what the queue guard's tierSGlobs() words read.
  • The header's "two landing tiers" section and the table's docblock now say where Tier S holds; a new self-test battery (12 cases) pins it, and the roster floor moves 33 to 34.

Route per triage 6337908442. No gate is loosened. A Tier S arm for objectui's own guard is the maintainer's open question from triage's round report; this PR makes the register follow the guard that is enforced today and does not answer that question.

Cloud, objectos and hotcrm: their guards are not readable from this session (private, HTTP 403 on every channel tried), so their .claude/** reads Tier H, the stricter tier, unverified. Reading Tier S as H costs one authorized approval; the reverse lands a maintainer-owned file on a seat's own review.

Evidence

Gates (head 0f43df5)

  • node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 35 derived families, all run, all exit 0; --ran reconciliation: 35 derived, 35 run, 0 NOT-MEASURED, 0 UNRUN.
  • Beyond the derivation, exit 0 each: check-governed-merges.mjs --self-test (512 assertions, was 500), check-governed-queue-guard.mjs --self-test (334), fleet-write/execute.mjs --self-test (188), fleet-write/validate.mjs --self-test (193), pnpm check:pm-governed-prose, check-half-states.mjs --self-test (4916).
  • check-governed-merges.mjs --test scripts/pm/check-governed-merges.mjs: NOT governed. The file is a CODEOWNERS enforcement-chain row, so GitHub requests the approvers when this PR is marked ready.
  • skip-changeset: the diff is scripts/pm/** only; the root package is private and nothing here ships in any package's files[].

Acceptance notes

  • scripts/pm/fleet-write/ops.mjs's header lists the Tier H surfaces as the rows "with tier H" (docs/adr/**, skills/**, ...). That list is objectstack's view; a non-objectstack .claude/** is now Tier H through the per-repo tier without being in it. Not edited here (outside this card's file surface); carrier: none.
  • AGENTS.md Prime Directive 14 says Tier S is "all of .claude/**". That is this repository's own instruction file, and in objectstack it stays exactly true; no edit needed.

Generated by Claude Code

…ck alone

The `claude-tree` row's Tier S held for every governed repository, but only
objectstack's queue guard has a Tier S arm: objectui's refuses a `.claude/**`
diff without an authorized approval. So `check-governed-merges --pr` promised
objectui a landing its queue refuses, and the relay's governed-review
follow-up, which sends on Tier H alone, never summoned the approvers.

A row's tier is now scoped per repository by a `tierRepos` key, read by
`surfaceTierIn` alone and resolved in `governedSurfacesFor`, so every matcher
gets the tier for the repository it asks about. The `claude-tree` row names
objectstack; every other repository reads it Tier H, the fail-closed tier.
Membership, the raw row and objectstack's answers are unchanged.

Claude-Session: https://claude.ai/code/session_01T1ABkBhrMzga6Kq81uZ8ro
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Oct 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

席位核对

ACCEPT · domain:skills seat 1 (seat post #7623) · session_0165fj9zYfUrt6ckcUgYBD5a · head 0f43df56be8be2786275ad0f381af6ddc3751d88 · 2026-10-22T13:31Z

  1. Form. Draft against main; body carries Fixes #25199, Clause-②: no and Metadata-protocol: none at line start, the project's attribution lines and the 维护者速读 draft. Assignee os-bill equals the card's. Files, read with the PR's file list: scripts/pm/check-governed-merges.mjs only (+67/−7). check-governed-merges.mjs --pr 25221: NOT governed (the file is off the register; it is a CODEOWNERS enforcement-chain row, see 6), 74 changed lines, under the 3000-line ceiling. skip-changeset is right: nothing published. Claim: posted by the card thread as comment 6341353599, as the seat's order said (no earlier Claim: existed; the later protocol under which the seat posts it was not in force for this order) — reconciled here, no second claim.
  2. Premises measured. The seat read every hunk and ran the readers in its own worktree at this head. The claude-tree row gains tierRepos: ['objectstack'], read by one pure function surfaceTierIn (no key or listed ⇒ the row's tier; otherwise Tier H, fail closed) and resolved in governedSurfacesFor, so every matcher, landingTierOf and the relay's governed-review follow-up (ops.mjs asks the register through governedPathsIn + landingTierOf scoped to payload.repo, header L106–107) follow with no change of their own — the conditional second fix the order named is measured not owed. The raw row keeps tier: S for the queue guard's tierSGlobs; check-governed-queue-guard.mjs --self-test at this head: 334 cases pass. Live --pr objectstack-ai/objectui#13320 at this head: GOVERNED, 6 of 6 paths, landing tier H(人合). Local check-governed-merges --self-test: the seat's checkout has no node_modules, so the [finding] skills/*/references/_index.md is generator-owned (gen:skill-refs) yet sits inside the skills/** governed-merge fence — every spec PR touching an indexed headline is forced to carry a governed-surface file #11705 generator case refuses before measuring (exit 3) — the 512-assertion run (12 new cases, roster floor 33→34) is the dev's reading, confirmed by the Lint · repo & tooling gates check-run (pnpm check:pm-governed-merges) at this head: success. Ablation (dev's reading, the battery text pins it): deleting the tierRepos key reds 8 cases, every objectstack case stays green. cloud / objectos / hotcrm read H as UNVERIFIED (their guards are private) and the docblock says so — the stricter default, accepted.
  3. Gate check-runs, pinned to this head at this write: 44 runs, 30 success, 13 skipped (opt-in, matrix-shard and path-filtered lanes), 0 failures, 1 in progress (Test Core (1/6)). The landing pre-check re-reads them; ⛔ no ready / enqueue before every run is success or an expected skip. The dev's 35 derived gates all exited 0 with --ran reconciled 35/35 (dev's reading).
  4. Accepted deviations. The claim posted by the thread (1); the branch is the harness-designated claude/project-thread-wef5ss; the PR body opens with the session-context attribution lines. None touches the diff.
  5. Out-of-scope findings. (a) fleet-write/ops.mjs header words the Tier H set as "rows with tier H" (objectstack's view) while a non-objectstack .claude/** now lands H through the per-repo tier: docblock drift, Acceptance note, rides the next ops.mjs PR. (b) A Tier S arm for objectui's own guard is the maintainer's call, left open on the card (triage 6337908442), ⛔ not this PR's.
  6. Landing clause. The register answers NOT governed, but .github/CODEOWNERS routes this file with the Tier H surfaces ("the enforcement chain is routed the same way, deliberately"), so the seat takes the Tier H route: the PR stays draft, the relay requests @os-zhuang @hotlong for review and sets needs-user-decision on the PR and the card; on an authorized APPROVED review the seat lands it through the relay (pr_ready + automerge_enable) once every check-run is success or an expected skip, and follows it to MERGED.

Generated by Claude Code

@objectstack-fleet objectstack-fleet Bot added the needs-user-decision Blocked on a maintainer decision — do not dispatch; decision cards only, never on a PR label Oct 22, 2026
@os-zhuang
os-zhuang added this pull request to the merge queue Oct 22, 2026
@objectstack-fleet objectstack-fleet Bot removed the needs-user-decision Blocked on a maintainer decision — do not dispatch; decision cards only, never on a PR label Oct 22, 2026
Merged via the queue into main with commit f2ade4a Oct 22, 2026
54 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-wef5ss branch October 22, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

3 participants