Repository navigation
fix(pm): the governed register reads .claude/** Tier S in objectstack alone - #25221
Merged
Merged
Conversation
…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>
…s absent Claude-Session: https://claude.ai/code/session_01T1ABkBhrMzga6Kq81uZ8ro Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
席位核对ACCEPT ·
Generated by Claude Code |
os-zhuang
approved these changes
Oct 22, 2026
os-zhuang
marked this pull request as ready for review
October 22, 2026 13:33
os-zhuang
enabled auto-merge
October 22, 2026 13:33
os-zhuang
approved these changes
Oct 22, 2026
This was referenced Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Bill · project thread
Fixes #25199
Clause-②: no
Metadata-protocol: none
What changed
The governed register's
claude-treerow 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.mjsat objectui1aa8851) carries no tier at all: itsmerge_groupleg refuses every governed diff,.claude/**included, without an authorized approval. Socheck-governed-merges --prpromised 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.mjsonly:tiercan be scoped per repository by atierReposkey, read by one pure function,surfaceTierIn(surface, repo): the row'stierwhere the key is absent or namesrepo, else Tier H (fail closed, so a repository added toGOVERNED_REPOSlater 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), sogovernedPathsIn,governedTierFor,testVerdict,--pr/--branch/--testand the relay'sgovernedReviewPlanall follow with no change of their own.claude-treerow gainstierRepos: ['objectstack']. Membership is untouched (the row still governs.claude/**in all five repositories, noreposkey), and the raw row still readstier: 'S', which is what the queue guard'stierSGlobs()words read.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
8a0c369, six.claude/hooks/paths), through--rooton an objectui checkout and--branch(the--prread answers HTTP 403 for objectui on every channel here):15764cd):GOVERNED — Tier S(席内达档复核落地), exit 3;GOVERNED — a human merge is the review recordwith⚖️ landing tier: H(人合), exit 3.governedReviewPlanfromfleet-write/execute.mjson the same six paths:objectstack-ai/objectuianswers tierH, requestingos-zhuang,hotlong;objectstack-ai/objectstackanswers tierS, nothing sent.ops.mjsandexecute.mjsare unchanged.tierSGlobs()reads.claude/**before and after; the per-repo tier table differs only in the four non-objectstack rows ofclaude-tree;check-governed-queue-guard.mjs --self-testprints the same output before and after (334 cases).tierReposkey deleted throughscripts/ablation-replace.mjs, mutation and restore verified on disk, blob back to HEAD2dc2457c): the self-test reds with 8 failures, among them the objectui and cloud/objectos/hotcrm Tier H cases and the Walled boot refusal reads "was anything declared", not "did any administrator result" — a REFUSED OS_PLATFORM_OWNER_EMAIL boots a walled deployment with ZERO platform admins and no refusal #13320 replay; the objectstack Tier S case, the objectstack Walled boot refusal reads "was anything declared", not "did any administrator result" — a REFUSED OS_PLATFORM_OWNER_EMAIL boots a walled deployment with ZERO platform admins and no refusal #13320 case and the membership case stay green. A first attempt with an empty--replacementwas a no-op (the tool refused to run the command) and is not counted.Gates (head
0f43df5)node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 35 derived families, all run, all exit 0;--ranreconciliation: 35 derived, 35 run, 0 NOT-MEASURED, 0 UNRUN.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 isscripts/pm/**only; the root package is private and nothing here ships in any package'sfiles[].Acceptance notes
scripts/pm/fleet-write/ops.mjs's header lists the Tier H surfaces as the rows "with tierH" (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.mdPrime 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