Skip to content

docs(skills): an owner, assignee or 负责人 in a request is the injected owner_id - #33555

Merged
os-zhuang merged 3 commits into
mainfrom
claude/project-thread-8pbyhe
Nov 15, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/project-thread-8pbyhe

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #33506

domain:skills#1 · os-project-manager · session_01FEkQ5ocBJgBm6Bz2yqoibS

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:objectstack-data 技能的「Record owner」规则写明:需求里的负责人、处理人、assignee、owner 就是平台注入的 owner_id,不另建字段;只有需求明确区分「负责人」和另一位处理者时才加一个 user 字段,且标签不得与对象上任何可见字段重名(点名注入列 owner_id Owner/负责人、created_by 创建人、updated_by 更新人、created_at、updated_at),并说明它不授予访问权。快速模板里的工单示例去掉了 assigned_to 字段,新增 eval 19(工单应用 + 负责人)。
  • 为什么改:staging 上 AI 搭建的工单应用多建了一个标签也叫「负责人」的 assignee 字段,表格两列「负责人」、看板重复显示,而只有 owner_id 决定记录可见性。技能里的快速模板正好教了一个 assigned_to 用户字段。
  • 风险与回滚:只改对外发布的技能文字和一条 eval,无代码、无契约改动;@objectstack/skills patch。回滚即还原本 PR。
  • 先看:skills/objectstack-data/SKILL.md 的 Record owner 行;references/examples-objects.md 快速模板的 // assignee 行;evals/objects-fields-relationships.json 的 id 19。
  • 两分钟验证:node scripts/check-skills-token-ratchet.mjs | grep objectstack-data/SKILL.md,预期 6657 tokens (ceiling 6665; headroom 8)。
  • 需要你做的:审阅并合并(skills/** 属 Tier H,需你亲手合并或授权批准)。

What changes

All in skills/objectstack-data/ (one owner file for the rule, two cross-references, one eval):

  • SKILL.md, Relationship Patterns → Record owner row (the rule). The row already said "never a hand-added owner / person in charge lookup". It now says the same owner_id answers a request's assignee, 负责人 or 处理人, and that a handler the request names apart from the owner is a user field that grants no access, with a label no other visible field carries, the injected columns included: owner_id (Owner, 负责人), created_by (创建人), updated_by (更新人), created_at (创建时间), updated_at (更新时间). The Field Type Selection bullet drops assignee from its user-field examples so the two places no longer disagree.
  • references/examples-objects.md, Quick-Start Template (cross-reference 1). The support_case template declared assigned_to: { type: 'user' } beside the injected owner_id: the exact shape the staging build produced. It is replaced by the comment // assignee: the injected owner_id.
  • rules/field-types.md, user row (cross-reference 2). The example list reads (reviewer, watchers) instead of (assignee, watchers); same byte count.
  • evals/objects-fields-relationships.json, eval 19 (and one README phrase). The prompt asks, in Chinese, for a ticket app whose 负责人 can be reassigned. It expects owner_id reused and must not contain assignee:, assigned_to: or label: '负责人'.

The label set is measured, not guessed: packages/spec/src/data/injected-system-column-provenance.ts defines the injected columns (owner_id label Owner, not hidden; created_at, created_by, updated_at, updated_by not hidden; organization_id, owning_business_unit_id, queue hidden), and SYSTEM_FIELD_LABELS in packages/spec/src/system/i18n-resolver.ts serves their zh-CN labels (owner_id → 负责人, created_by → 创建人, updated_by → 更新人, created_at → 创建时间, updated_at → 更新时间).

Acceptance notes

  • No build check exists today. git grep over packages/lint/src, packages/spec/src, packages/objectql/src and packages/cli/src for a duplicate- or colliding-label rule has no hit. The check is split to build validation: report two visible fields with the same label on one object (split from #33506) #33545 and is not touched here.
  • The objectstack-ui skill still teaches assigned_to as the owner column. skills/objectstack-ui/rules/list-views.md has { field: 'assigned_to', label: 'Owner' } and a "mine" filter on assigned_to (lines 53, 60, 101, 321), rules/actions.md:44 uses it as a param, and evals/views-apps-actions-pages.json eval 1 answers a prompt's "owner" column with assigned_to. That is outside this order's surface (two cross-references); reported to the seat as a follow-up.
  • Token payment, no ceiling raised. SKILL.md is 6657 tokens against its 6665 ceiling (6606 on the original base e3f0cfd4; 6665 on today's main, after docs(skills): the object enable table names aiReadable #33458's aiReadable row spent the headroom round 1 had used). The new text costs about 82 tokens, all paid by deleting restatement in the same file: the (maintainer ruling 2026-08-13) aside; the (ADR-0113), (ADR-0061), ADR-0120 and (ADR-0146 D10) asides; the line "Toggle system behaviours per object:" that restates its heading; the ObjectExtensionSchema and PermissionSetSchema.objects.* schema pointers (references/_index.md already points at object.zod.ts and permission.zod.ts); the internal constant name BASE_FIELD_DISPLAY_WHITELIST; "See rules/validation.md for all types and examples." (the Quick Reference list links it); and a shorter new sentence. No eval expects any of the deleted text.
  • Round 2 merge (4fccfc87, origin/main 7f0e38a2). docs(skills): objectstack-data evals 11, 12 and 14 spell their own must_contain literals #33586 added its own eval 18 to objects-fields-relationships.json; main's file is kept whole and this PR's eval follows unchanged as id 19. docs(skills): a stored computed field reads only its own row; name the cross-record and volatile-input warnings #33589's field-types.md lines are intact; this PR's diff there is still only the user row's example word.

Verification

Changed: 6 files, +40 / -19 (head a2d3008d). dispatch-gates --tier: Model tier — MANDATORY: claude-fable-5-2 (skills/**, no one-line exit). check-governed-merges --branch: GOVERNED, Tier H (5 of 6 paths on the register; the changeset is not), 59 changed lines, under 3000. Changeset: .changeset/33506-skills-owner-id-for-assignee.md, '@objectstack/skills': patch (skills/** ships in dist/skills).

Readings against today's main 7f0e38a2 (lines, then tokens; the gate's count, which leaves out the release-stamp line):

File Lines before → after Tokens before → after (ceiling)
skills/objectstack-data/SKILL.md 478 → 473 6665 → 6657 (6665)
skills/objectstack-data/references/examples-objects.md 191 → 191 1723 → 1724 (1728)
skills/objectstack-data/rules/field-types.md 246 → 246 3206 → 3206 (3208)
skills/objectstack-data/evals/objects-fields-relationships.json 332 → 348 eval fixture, not ratcheted
All skills/*/SKILL.md together 4593 → 4588 59058 → 59050 (ceil(bytes / 4), stamp lines included)
47 derived gate families on a2d3008 (round 1 on 0249dda, same list and verdicts): 46 exit 0, 1 NOT MEASURED; `--ran` reconciliation 47 / 47

Closure built first under the verify lock: turbo run build --filter=@objectstack/lint... --filter=@objectstack/client-react..., VERDICT command-exit 0.

node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-doc-route-spelling.mjs --advisory :: exit 0
node scripts/check-doc-route-spelling.mjs --self-test :: exit 0
node scripts/check-dts-emitted.mjs --self-test :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-skills-token-ratchet.mjs :: exit 0
node scripts/check-skills-token-ratchet.mjs --self-test :: exit 0
node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:corpus-claim-drift :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:merge-driver :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:published-files :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:role-word :: exit 0
pnpm check:skill-compatibility :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:skill-links :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm --filter @objectstack/spec run check:skill-docs :: exit 0
pnpm --filter @objectstack/spec run check:skill-refs :: exit 0
pnpm check:dts-closure :: exit 0
pnpm check:dual-build-cjs-loads :: exit 3
pnpm check:lean-entry-closure :: exit 0
pnpm check:sourcemap-no-sources-content :: exit 0

check:dual-build-cjs-loads exit 3 is PREREQUISITE NOT MET (it reads every package's dist/; no package is touched, so no full build is owed): NOT MEASURED here, CI runs it. Outside the derivation, the edited os:check block was verified with pnpm --filter @objectstack/spec run check:skill-examples :: exit 0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5ocBJgBm6Bz2yqoibS

…owner_id

objectstack-data's Record owner row now covers a request's assignee,
负责人 or 处理人, and names the visible injected columns a separate
handler field must not share a label with. The Quick-Start Template drops
its assigned_to user field, field-types.md stops naming assignee as a
user-field example, and eval 18 asks for a ticket app with a 负责人.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5ocBJgBm6Bz2yqoibS
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0249dda86acac57ba79167155b4f7e814d93672c
Local-runs: none
Scope: skills/objectstack-data/SKILL.md, skills/objectstack-data/evals/README.md, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/references/examples-objects.md, skills/objectstack-data/rules/field-types.md + none

PR #33555, card #33506. Read: the card body and its three comments (triage, claim, os-dev-report), the PR body and file list, the net diff against main (6 files, +34 / -10), and the check-runs on the head. Code read on main, not reviewed: packages/spec/src/data/injected-system-column-provenance.ts, packages/spec/src/data/injected-system-columns.ts, packages/spec/src/system/i18n-resolver.ts.

① Derived judgments

  • Accept-set: unchanged. The diff touches no schema, no validator and no runtime; nothing an author could publish yesterday is refused today, and nothing new is admitted. Right.
  • Public surface: the published skills/objectstack-data text only (it ships in @objectstack/skills). One rule row widened, one template field removed, two example words swapped, one eval added. Right.
  • No file in the diff implements or enforces the rule (+ none). The duplicate-label build check is build validation: report two visible fields with the same label on one object (split from #33506) #33545 and is not in this diff; the rule is taught, not enforced, until that lands. Right as scoped by the claim.
  • Check-runs on the head (43): every completed run is success or skipped, including Lint · docs & code guards, Lint · repo & tooling gates, Lint · PM dispatch-gates, Check Changeset, Governed Surface Queue Guard, PR-body guards, Build Core and all three Type Check runs. Two runs were still in_progress when this record was rendered: Test Core (1/8) and Test Core (2/8). No package code is in the diff, so they cannot be moved by it, but the seat confirms both green before adopting this record.

② Semver level

Clause-②: no — correct. The changeset .changeset/33506-skills-owner-id-for-assignee.md names '@objectstack/skills': patch; the package exists at packages/skills/package.json, skills/** is what it publishes, and a prose-and-eval change with no contract change is a patch, in the same shape as the skills changesets already on main (for example 32429-skills-namespace-literal-runs.md). Metadata-protocol: none is correct: no metadata key is added, removed or re-read. The changeset body matches the tree.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Deviation, claim line says model: opus while the tier derivation answers the contract tier for skills/**: answered by this record, which is the tier-of-record review.
  • Deviation, the eval README phrase edited beside the eval: accepted, same eval surface, one clause.
  • Deviation, no assignee on the PR: process only, no effect on the contract.
  • Out-of-scope finding (objectstack-ui teaches assigned_to as the owner column): it does contradict the new rule, and the seat owes a follow-up card. Read on main: skills/objectstack-ui/rules/list-views.md line 60 is { field: 'assigned_to', label: 'Owner' }, which is exactly a second field carrying the injected owner_id label; line 101 filters "mine" on assigned_to where the data skill now says "My records" views read owner_id; evals/views-apps-actions-pages.json eval 1 answers the prompt word "owner" on support_case with an assigned_to filter, and eval 12 repeats it; rules/actions.md line 44 takes assigned_to as a param. After this PR the mismatch is sharper than before: the data skill's Quick-Start support_case no longer declares assigned_to, so the ui skill's examples and eval 1 now name a field its own companion template does not have. An agent that loads both skills is told owner_id by one and assigned_to labelled Owner by the other, so the staging shape is prevented for the data skill alone, not end to end. Lesser instances for the same card: objectstack-ui/rules/list-views.md lines 265 and 270 and rules/dashboards.md line 268 (assignee), objectstack-query/SKILL.md lines 290 to 292 and its eval at line 36, objectstack-automation/SKILL.md line 116 (record.assignee). None is in this diff, so none is graded here.
  • Closing keyword: the PR body says Fixes #33506. The card's acceptance 2 (a readable build error) lives on build validation: report two visible fields with the same label on one object (split from #33506) #33545, and acceptance 1 holds end to end only once the ui follow-up above lands. Whether the card closes on this merge is the seat's call; the follow-up card should exist before it does.

④ Design judgment

skills/objectstack-data/SKILL.md — holds.

  • The rule against the code. resolveInjectedSystemColumns gives a custom object owner_id when ownership is omitted or 'user', the object is not managedBy and not sys_*: the row's "ownership: 'user', the default" is accurate. OWNER_FIELD_DEF is label: 'Owner', readonly: false, not hidden, reassignable: the row's claim that reassignment is a write to owner_id and that the column is visible is accurate. AUDIT_FIELD_DEFS carries no hidden on created_at, created_by, updated_at, updated_by, while organization_id is hidden: true: the row lists exactly the visible injected columns. SYSTEM_FIELD_LABELS serves zh-CN 负责人, 创建人, 更新人, 创建时间, 更新时间 for those five, applied while the served label still equals the English default: every label the row prints matches byte for byte.
  • Against the staging shape. Staging produced assignee (type: 'user', label 负责人) beside owner_id (served label 负责人). The row now maps the request word itself (assignee, 负责人, 处理人) to owner_id and names 负责人 as a taken label; the Field Type Selection bullet no longer offers assignee as its first example of a user field, which on main contradicted the Record owner row eleven lines below it. A build that follows this file does not produce the staging shape.
  • Does it forbid a legitimate separate assignee? No. "A handler the request names apart from the owner is a user field" keeps the case open, with two conditions that are both true of the platform: it grants no access (only owner_id feeds owner-scoped visibility), and its label must be free. The card's own suggestion of 处理人 as a non-colliding label survives: 处理人 alone is the owner, 处理人 beside a 负责人 is the separate field.
  • Attempt to break it. An object with ownership: 'none', 'org' or 'business_unit' has no owner_id, so "负责人 is owner_id" has no column to land on; the row already confines 'none' to a shared catalog or a pure junction, where a 负责人 request implies the default tier, so the row steers correctly. A task app where a manager creates and assigns under sharingModel: 'private' loses the creator's view after reassignment; that is what ownership means on the platform, it is already the taught behaviour for 负责人 on main (eval 13), and the queue section of the same file (line 443) already forbids a per-record assigned_to. Not a defect of this change.
  • nit: the parenthetical gives both locales for owner_id (Owner, 负责人) and zh-CN only for the four audit columns, whose English labels are Created By, Last Modified By, Created At, Last Modified At. The general clause ("a label no other visible field carries, injected ones included") covers them; the list is illustrative. The file sits at its token ceiling, so this is left as an accepted deviation.
  • nit: the token payment removes the only ADR-0061 and ADR-0113 citations and the ruling date from objectstack-data. They are provenance asides, no behaviour is taught by them, and no eval expects them. Accepted.

skills/objectstack-data/references/examples-objects.md — holds. The Quick-Start support_case on main declared assigned_to: { type: 'user' } beside the injected owner_id, the staging shape taught by the template itself. It is now the comment // assignee: the injected owner_id. Nothing else in the block refers to the removed key (the validation is on status; no index, no field group, no highlight names it), and the os:check block is covered by the green docs gates. The cross-skill consequence is recorded under ③.

skills/objectstack-data/rules/field-types.md — holds. (reviewer, watchers) replaces (assignee, watchers) in the user row; it agrees with the SKILL.md bullet and stays inside the file's ceiling.

skills/objectstack-data/evals/objects-fields-relationships.json — holds. Eval 18 is the card's acceptance 1 scenario (a Chinese prompt for a ticket app with a reassignable 负责人), and its expected output agrees with the row and with the code read above. It is not a duplicate of eval 13 (same word, visibility framing, asserts no sys_user lookup): 18 asserts the field keys and the label the staging build actually wrote. The JSON parses and the id sequence continues.

  • nit: must_not_contain label: '负责人' misses a double-quoted duplicate and would false-fail a harmless { field: 'owner_id', label: '负责人' } view column; assignee: and assigned_to: would false-fail an answer that quotes the forbidden shape in order to reject it. Same substring convention as the neighbouring evals (eval 13); no effect on the contract.
  • nit: the expected output prints ownership: 'user', the string eval 13 lists under must_not_contain. It is prose in an expected output, not an assertion; the two evals do not conflict mechanically.

skills/objectstack-data/evals/README.md — holds. One clause naming the new coverage; accurate.

Findings: no must-fix, no should-fix, four nits, all left as accepted deviations (a fix on these files is prose-face only and is not required). The round ends here.

Implemented-by: claude/project-thread-8pbyhe
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T00:40Z · isolated sub-agent at CONTRACT_REVIEW_TIER · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

维护者速读

席位核对

Verdict: ACCEPT, held for the maintainer · head 0249dda86acac57ba79167155b4f7e814d93672c · card #33506 · report 6886530096 · contract review 6886756656 (PASS, served at CONTRACT_REVIEW_TIER, model verified by the seat; Ruling-ref for the in-seat review: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb option A).

  • Shape: draft → main, Fixes #33506. skills/objectstack-data/ (SKILL.md, references/examples-objects.md, rules/field-types.md, evals/objects-fields-relationships.json, evals/README.md) and one @objectstack/skills patch changeset. GOVERNED, Tier H (skills/**). Clause-②: no; Metadata-protocol: none.
  • Review: the rule matches injected-system-columns.ts (owner_id injected unless ownership opts out, not on managedBy or sys_* objects), its provenance (visible, reassignable, label Owner), and SYSTEM_FIELD_LABELS (zh-CN 负责人, 创建人, 更新人, 创建时间, 更新时间). A separately named handler stays legal with a free label.
  • Accepted deviations (nits): the label list gives both locales only for owner_id; the token payment drops the objectstack-data ADR-0061 / ADR-0113 provenance asides; eval 18's must_not_contain substrings follow the file's single-quote convention; eval 18 prints ownership: 'user' in prose.
  • Follow-ups: skills(objectstack-ui, query, automation): stop teaching assigned_to / assignee as the record owner beside owner_id (follow-up of #33506) #33560 (objectstack-ui, query and automation still teach assigned_to / assignee as the owner; until it lands the fix holds for the data skill only); build validation: report two visible fields with the same label on one object (split from #33506) #33545 (the build-time duplicate-label check, split from this card).
  • Gates: 46 of 47 derived exit 0 (check:dual-build-cjs-loads NOT MEASURED, no package code). Check-runs on the head all concluded, none failed. Token ratchet 6665 of 6665, no ceiling raised.
  • Process: the thread ran at the claim's default tier; this in-seat review is at CONTRACT_REVIEW_TIER.
  • Landing: Tier H. The seat does not flip this PR ready or enqueue it. It needs the maintainer's merge, or an authorised APPROVED review after which the seat lands it.

Implemented-by: claude/project-thread-8pbyhe
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 15, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 15, 2026 01:42
@os-zhuang
os-zhuang enabled auto-merge November 15, 2026 01:42
@os-zhuang
os-zhuang disabled auto-merge November 15, 2026 02:51
@os-zhuang
os-zhuang enabled auto-merge November 15, 2026 02:51
@os-zhuang
os-zhuang disabled auto-merge November 15, 2026 02:51
…-8pbyhe

# Conflicts:
#	skills/objectstack-data/evals/objects-fields-relationships.json
… merge

main's aiReadable row spent the headroom this branch had used; drop
two more ADR asides, the ObjectExtensionSchema and PermissionSetSchema
pointers (references/_index.md carries object.zod.ts and
permission.zod.ts), the BASE_FIELD_DISPLAY_WHITELIST constant name and
the validation.md link the Quick Reference list already gives.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5ocBJgBm6Bz2yqoibS
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: a2d3008d8b87a23dbcd0aa8fcb11295335eb6c35
Local-runs: none
Scope: skills/objectstack-data/SKILL.md, skills/objectstack-data/evals/README.md, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/references/examples-objects.md, skills/objectstack-data/rules/field-types.md + none

At-tier delta review of PR #33555 (card #33506) on top of record 6886756656, which holds base 0249dda8. The delta is merge commit 4fccfc87 (parents 0249dda8 and main 7f0e38a2) plus the ratchet-payment commit a2d3008d. Read: the card body and its five comments, the base record, the PR body and file list, the net diff against main 7f0e38a2 (6 files, +34 / -10), the merge commit against git's own three-way merge of its parents, the payment commit, and the check-runs on the head. Read on the head tree, not reviewed: skills/objectstack-data/references/_index.md, rules/indexing.md, rules/security.md, skills/objectstack-platform/SKILL.md, scripts/check-skills-token-ratchet.mjs, packages/spec/src/data/object.zod.ts, packages/spec/src/data/field-customization.ts, packages/spec/src/security/permission.zod.ts.

① Derived judgments

  • Accept-set: unchanged, as on the base. No schema, validator or runtime file is in the net diff. Right.
  • Public surface: the published skills/objectstack-data text only. Against the base record the delta adds no rule and removes none; it renumbers one eval and deletes provenance asides and pointers. Right.
  • The merge commit. git merge-tree --write-tree 0249dda8 7f0e38a2 reports exactly one conflict, skills/objectstack-data/evals/objects-fields-relationships.json; SKILL.md and rules/field-types.md auto-merge. The tree of 4fccfc87 differs from git's own result in that one file only, so the eval file is the only hand resolution. git diff 7f0e38a2 4fccfc87 touches the same six files as the PR and nothing else: the merge carried nothing foreign in.
  • No file in the diff implements or enforces the rule (+ none); the build check stays on build validation: report two visible fields with the same label on one object (split from #33506) #33545.
  • Check-runs on the head (41 at the time of rendering). Completed and green: Check Changeset, Governed Surface Queue Guard, PR-body guards, Lint · PM dispatch-gates, Check PR Size, Build Core, Plan Test Core shards, Test UI, Dogfood Regression Gate, three scoped Lint runs, Auto Label, filter. No run has failed. Still in progress when this record was rendered: Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · ESLint, the four Type Check runs, Test Core (1/8), Test Core (2/8), Live E2E UI. Lint · docs & code guards is the run that answers the token ratchet and the skill-link gates for this delta, so this record does not stand in for it: the seat confirms it and the others green before adopting.

② Semver level

Clause-②: no — correct, unchanged from the base. The changeset is still '@objectstack/skills': patch; the delta changes prose and one eval id only. Its payment sentence was updated in a2d3008d and matches the tree: one ruling date, four ADR asides (ADR-0061, ADR-0113, ADR-0120, ADR-0146 D10), two zod pointers, one constant name, the sentence restating a heading, one duplicate link. Metadata-protocol: none is correct. Check Changeset is green on the head.

③ Boundary flags

④ Design judgment

skills/objectstack-data/evals/objects-fields-relationships.json — the resolution holds. Main has 18 evals, ids 1 to 18; the head has 19, ids 1 to 19, unique and sequential. The head's first 18 entries are equal to main's, entry for entry (parsed comparison), so #33586's eval 18 is kept whole and nothing of main's is lost or altered. The head's last entry equals the base's last entry in every key but id (18 became 19): prompt, expected output and assertions unchanged, no duplicate. The net diff against main is the one appended entry. evals/README.md names no eval id, so nothing there went stale.

skills/objectstack-data/rules/field-types.md — holds. Net diff against main is one line, the user row's (assignee, watchers) to (reviewer, watchers); #33589's stored-computed-field lines are byte-identical to main. 12821 bytes, 3206 of 3208 tokens.

skills/objectstack-data/references/examples-objects.md and evals/README.md — unchanged from the base record; hold. 1724 of 1728 tokens.

skills/objectstack-data/SKILL.md — the payment holds; no rule lost. Measured by the script's own convention (utf8 bytes less the version stamp line, over 4, rounded up): 26646 bytes less 20 gives 6657, against the ceiling 6665 at scripts/check-skills-token-ratchet.mjs line 664, which the diff does not touch. Main's aiReadable row (#33458) is present whole. Each cut, and where the fact still lives:

  • ADR-0120 aside on the no-unique-validation note: the rule sentence and its link to rules/validation.md § Uniqueness stay; the ADR number is carried by rules/indexing.md (the unique row and the heading "Unique scope — always state it (ADR-0120)"). Provenance only.
  • ADR-0146 D10 aside: the sentence keeps its pointer to objectstack-platform § Customizing an installed package, which cites ADR-0146. The decision number D10 is no longer anywhere in skills/; provenance only, the .custom pair, the __c suffix and the refusal are all still taught.
  • "See rules/validation.md for all types and examples.": duplicated by the Quick Reference entry at line 43, same target, same description. The Uniqueness deep link remains.
  • BASE_FIELD_DISPLAY_WHITELIST: an internal constant of packages/spec/src/data/field-customization.ts; the keys it holds (label, description, inlineHelpText, placeholder, option label) are still listed in the sentence. An author never writes the name.
  • ObjectExtensionSchema and PermissionSetSchema.objects.* pointers: see the nit below. The authoring entry points (defineObjectExtension(...) with its keys, the five depth values and requires: ['hierarchy-security']) all stay in the text.
  • Evals: no expected_output or assertion under skills/objectstack-data/evals, nor under any other skill's evals, names ADR-0120, ADR-0146, D10, ADR-0061, ADR-0113, the ruling date, either schema name, either zod file, the constant, or the deleted link sentence.

Attempt to break it: the cuts are parentheticals and trailing "Schema:" sentences, so no table row, list item or heading anchor changed; the one sentence whose line break moved (A patch carries display keys only:) still reads correctly. The Record owner row, the Field Type Selection bullet and the base record's readings against injected-system-column-provenance.ts and SYSTEM_FIELD_LABELS are byte-identical to the base head. No regression in the base record's scope.

  • nit: the payment commit and the changeset say references/_index.md "already carries" the two zod pointers. It carries the two FILES (data/object.zod.ts, security/permission.zod.ts), and SKILL.md line 470 links the index, so an agent reaches them; it does not carry the two SYMBOLS. Its export summary for object.zod.ts names ApiMethod, ApiOperationSchema, ObjectCapabilities, IndexSchema, TenancyConfigSchema, and for permission.zod.ts ObjectAccessScopeSchema, ObjectPermissionSchema and three others; ObjectExtensionSchema and PermissionSetSchema are now named nowhere under skills/objectstack-data. Both exist (object.zod.ts line 5716, permission.zod.ts line 1167) and a grep in the named file finds them, and the authoring surface is defineObjectExtension / definePermissionSet, which stay. No effect on what an agent authors. Accepted deviation; the index is generated, so the fix, if wanted, is a follow-up on the generator's export summary.
  • nit: PR body stale as listed under ③ (eval id, token reading, payment list, gate base). Prose-face fix; does not move the head.
  • nit (carried from the base, unchanged): the four nits of record 6886756656 stand as accepted deviations.

Findings: no must-fix, no should-fix, two new nits. The round ends here, subject to the in-progress check-runs named under ① completing green.

Implemented-by: claude/project-thread-8pbyhe
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T05:29Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

@os-zhuang
os-zhuang enabled auto-merge November 15, 2026 05:35
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

维护者速读(重新交接)

席位核对

Verdict: ACCEPT, held for the maintainer (re-hand after a main merge) · head a2d3008d8b87a23dbcd0aa8fcb11295335eb6c35 · card #33506 · at-tier record 6886756656 (PASS on 0249dda8) and at-tier merge delta 6889767336 (PASS on this head, CONTRACT_REVIEW_TIER, served model verified by the seat; Ruling-ref for the in-seat review: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb option A). Supersedes ACCEPT on 0249dda8.

scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…mmons approvers (objectstack-ai#33686)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XLJr2V87HYchxuvLUeM3yUW)_

Fixes objectstack-ai#33540

domain:skills#1 · os-project-manager · session_01FEkQ5oDmvJaKtcHYvPTR9P

Clause-②: no
Metadata-protocol: none

## 维护者速读

- **改了什么**: 中继在 `pr_ready` 之后决定要不要请 os-zhuang / hotlong 审时,先用低风险 skills
臂自己的读法读这个 PR(PR 正文、标签、文件状态、timeline、changeset、目录文件 mode),臂判 Tier S
就不请任何人;臂判 H、或任何一项读不到,照旧请两位。
- **为什么改**: objectstack-ai#33531 落地后队列守卫已经让低风险 skills 措辞 PR
走席位落地,但中继的请审计划只看路径,仍把两位维护者拉回来,等于把放权又收回去了。
- **风险与回滚**: 只在「全部受管命中都是 skills 目录行、且在 objectstack」时才读;读不到一律按原样请审(fail
closed),所以最坏情况是多请一次,不会漏请。回滚即 revert 这一个文件。
- **先看**: `scripts/pm/fleet-write/execute.mjs` 的 `lowRiskReadingFor` /
`lowRiskCheckoutFor`(读法和 fetch 深度)、`requestGovernedReview`
里新加的那段、`governedReviewPlan` 多出的 `lowRisk` 参数。
- **两分钟验证**: `node scripts/pm/fleet-write/execute.mjs --self-test`,预期
375 例全过(governed-review 这一组 45 例)。
- **需要你做的**: 无,席位落地。

## What changes

All in `scripts/pm/fleet-write/execute.mjs`.
`scripts/pm/check-governed-merges.mjs` is read, not edited: every reader
below is already exported there.

1. **The plan takes the arm's reading.** `governedReviewPlan` gains
`lowRisk` and chains the register exactly as `governedTierFor` does:
`applyLowRiskArm(applyWorkflowSplit(matched, …), repoId, lowRisk)`, then
`landingTierOf`. Only a reading `lowRiskArmVerdict` holds to every
condition moves the catalog rows to S. `null` (every path-only call)
keeps them H, so existing callers answer as before. The plan also
returns `lowRiskVerdict` for the row's words.
2. **The reading, built from the register's own readers**
(`lowRiskReadingFor`). No second parser: `pullLowRiskReading` over the
pull answer the follow-up already reads (body, labels, fork predicate);
`pullCatalogStatuses` over the file walk it already reads;
`fetchTimelineOver` over the relay token (every page, or NOT MEASURED);
`pullChangesetReading` and `pullCatalogReading` from the relay's
checkout.
3. **The checkout** (`lowRiskCheckoutFor`). The relay checks out `main`
at depth 1. `GET /compare/{base.sha}...{head.sha}` answers the merge
base and `ahead_by`; the checkout must be the target by its `origin`;
the head is fetched by sha at depth `ahead_by + 1`. Every commit on the
shortest path from the head down to its merge base is in the compare's
ahead set, so that depth holds the merge base, and `pullCatalogReading`
computes the merge base in the checkout itself, as `--pr` does. The
merge base is handed in as the base, so `git merge-base` answers it back
only when it really is an ancestor of the head here. Past
`LOW_RISK_FETCH_DEPTH_CAP` (200 commits), the reading is NOT MEASURED.
4. **When it reads** (`lowRiskArmReadable`). Only on a Tier H plan whose
every governed hit is a catalog row carrying `lowRisk` for the target.
It is a cost gate, the same shape as `workflowSplitReadable`: it can
keep a plan H, never move one to S. A mixed pull (`.claude/**` beside
`skills/**`) or another repository (objectui) costs no timeline walk,
compare or fetch, and the row says why.
5. **The follow-up** (`requestGovernedReview`). After the pull is
re-read and the workflow split is judged, a readable plan is re-planned
with the reading. Tier S writes one row (`… lands on a seat's review of
record — no review requested · low-risk skills arm read: Tier S
(ruling)`) and requests nobody; no review list is read. Tier H continues
to the reviews read and requests as today, and the row lists every
reason the arm gave.
6. **The header** of the file gains a paragraph on the arm under "The
governed-review follow-up".

Fail closed, each measured in the self-test: no checkout, an unread
timeline, a refused compare, a head past the fetch cap, a checkout of
another repository, a fetch that throws, a head the fetch cannot bring,
and a pull answer with no head sha each request BOTH approvers, and the
row reads `low-risk skills arm read: Tier H, fail closed — REASON`.

## Tests

`node scripts/pm/fleet-write/execute.mjs --self-test`: 375 cases across
28 batteries pass. The governed-review battery goes from 36 to 45 cases
(floor raised to 45, measured: a floor of 46 reds with "registered 45
case(s)"); its name now says how a skills-only pull is judged. New
cases:

- the plan: a low-risk skills-wording pull read by the arm is Tier S
with no approver; `null`, an unmeasured reading, or a reading with the
timeline, changesets and catalog files not read keeps H and plans both;
- the same pull with `Clause-②: yes`, a `security` label, a `security`
label removed in the timeline, a security-named catalog path, an added
catalog file, a changeset that also releases `@objectstack/spec`, or a
`packages/**` path beside it plans BOTH approvers;
- the row's words, and `lowRiskArmReadable` (objectstack catalog rows
read; `AGENTS.md` beside them, or objectui, not read, with the words
why);
- the run through a fake platform and checkout: a Tier S skills pull
requests no one, reads no reviews, reads the timeline once and fetches
`fetch --no-tags --depth=3 origin HEAD` for `ahead_by: 2`; a security
label, an added file, or a catalog path turned symlink (`120000`)
requests both and names the reason; the eight unreadable readings above;
a mixed pull and an objectui pull are not read.

The fake platform's response now carries `ok` as a real `Response` does,
because `fetchTimelineOver` reads it (the relay's own `rest` reads the
status only). Before that line was added, the Tier S run case failed
with "its timeline was not read (… HTTP 200)", which is the fail-closed
direction.

**Live probe (read-only, not committed).** From a fresh `git clone
--depth=1` of objectstack, `lowRiskReadingFor` on merged PR objectstack-ai#33555 (a
real skills-wording PR) with GETs over `gh api`: the head fetched at
depth `ahead_by + 1`, the merge base computed in the clone, all five
catalog files read `modified` `100644` to `100644`, the changeset read
at the head, 28 timeline events read, and the plan answered Tier S. So
the reading can be made in the relay's own checkout shape; the order's
fallback ("if the reading cannot be made in the relay, the plan
summons") does not apply.

## Acceptance notes

- `scripts/pm/check-governed-merges.mjs` header (the arm section, around
"every path-only reader (`--test`, `--branch`, the CODEOWNERS mirror,
the prose gate, the relay's review plan) answers exactly as before, and
the approvers are still summoned") now overstates the relay: the relay
reads the arm. That file is out of this card's surface, so the sentence
is left; carrier: none.
- The register reads `scripts/pm/**` as NOT governed
(`check-governed-merges.mjs --branch`, below), while the card body calls
this change Tier S. The landing route is the seat's to read.

## Verification

All local readings at head `2e18efd8`.

<details><summary>Derived gates: 36 of 36 run, every one exit
0</summary>

`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 36 families on this diff (1 path, vs
merge base `d4e3dcc6e`). Each was run with its exit code captured before
any pipe:

```text
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:pm-close-cards :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-fleet-write-dispatch :: exit 0
pnpm check:pm-fleet-write-execute :: exit 0
pnpm check:pm-fleet-write-validate :: exit 0
pnpm check:pm-issue-transfer :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pm-write-pace :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:watch-hint-literal :: exit 0
```

`node scripts/pm/dispatch-gates.mjs --ran FILE`: `✓ dispatch-gates
--ran: 36 derived famil(ies) accounted for — 36 run, 0 NOT-MEASURED (a
DERIVED zero — all 36 recorded an exit code and none of them is 3).`

</details>

<details><summary>Tier and governed-surface readings</summary>

- `dispatch-gates --tier`: "Model tier — no path-derived mandate: the
surface hits none of the 4 declared glob(s)"; 268 changed lines (+260 /
-8), under the 3000-line human-merge threshold.
- `check-governed-merges.mjs --branch claude/project-thread-nthn1w`:
"governed-surface predicate: 0 of 1 path(s) hit the register … NOT
governed — ordinary queue landing applies to a PR with exactly this file
list." Head repo NOT MEASURED there (a `--branch` reading); `--pr` reads
it.
- No package is touched, so no build closure, package test or typecheck
is owed; `skip-changeset` (`scripts/pm/**` ships in no package).

</details>


---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5oDmvJaKtcHYvPTR9P)_

Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…uery and automation examples (objectstack-ai#33720)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XGruGA9LzTe9xWiqzBAzg8y)_

Fixes objectstack-ai#33560

Clause-②: no
Metadata-protocol: none

Signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5m9ZMjU7EYnzJH8T6s

## 维护者速读

- 改了什么:`objectstack-ui`(列表视图、动作、仪表盘)、`objectstack-query`(expand
示例)、`objectstack-automation`(notify 收件人)里把「负责人」写成 `assigned_to` /
`assignee` 字段的示例,全部改成平台注入的 `owner_id`;删掉把 `assigned_to` 列标成 "Owner"
的那一列;「我的」筛选旁加一处指向 objectstack-data § Relationship Patterns 的交叉引用。eval
同步:ui 视图 eval 1、12 与 query eval 4 期望 `owner_id`;ui eval 2 的参考答案不再含有它自己
`must_not_contain` 禁止的字面量。
- 为什么改:PR objectstack-ai#33555 已在 objectstack-data 里规定负责人 / 处理人 =
`owner_id`,其它技能还在教另造一个负责人字段,同时加载的 agent
会拿到互相矛盾的教学,建出两个「负责人」列,而「我的记录」视图和按负责人可见性只读 `owner_id`。
- 风险与回滚:只改技能示例文字、eval 与一个 patch changeset,不碰 schema 与运行时;回滚即还原本 PR。五个文件
token 都没超上限、上限未动(automation 6861/6861 字节数不变)。
- 先看:`skills/objectstack-ui/rules/list-views.md` 第 53、60、101
行;`skills/objectstack-ui/evals/views-apps-actions-pages.json` eval
1、2、12。
- 两分钟验证:`git grep -nE "assigned_to|\bassignee\b" -- 'skills/*.md'`,预期只剩
objectstack-data 的规则本身(SKILL.md 313、441 行)和 examples-objects.md 88
行的注释,以及 objectui protocol.md 300 行的 `assignee` 到 `owner_id` 映射。
- 需要你做的:受管面 Tier H(`skills/**`),席位的达档契约复审 PASS 记录在案后,请合并。

## What changes

Every published example that used `assigned_to` / `assignee` as the
record owner beside the injected `owner_id` now names `owner_id`.
Measured on `main` @ 6ff3eee (the card's line numbers were taken on
8e63ed8; all still hold except dashboards, now line 269):

| File | Line | Was | Now |
|:--|:--|:--|:--|
| `skills/objectstack-ui/rules/list-views.md` | 53 | simple `columns`
with `'assigned_to'` | `'owner_id'` |
| same | 60 | `{ field: 'assigned_to', label: 'Owner' }`, a second field
carrying the injected owner's label | `{ field: 'owner_id' }` (its
injected label is already Owner) |
| same | 101 | "mine" rule on `assigned_to`, comment glossing
`{current_user_id}` | rule on `owner_id`; the comment now reads "mine:
the record owner (objectstack-data § Relationship Patterns)", the one
cross-reference this PR adds |
| same | 265, 270 | kanban `columns` with `'assignee'` | `'owner_id'` |
| same | 321 | gantt `columns` with `'assigned_to'` (not cited by the
card, same pattern) | `'owner_id'` |
| `skills/objectstack-ui/rules/actions.md` | 44 | Reassign Lead `params:
[{ field: 'assigned_to' }]` | `owner_id`: reassigning a lead changes its
owner |
| `skills/objectstack-ui/rules/dashboards.md` | 269 | metric `filter: {
assignee: '{current_user_id}' }` | `owner_id` |
| `skills/objectstack-query/SKILL.md` | 290, 292 | `fields` and `expand`
on `assignee` | `owner_id`, spelled as the spec's own `expand` example
(`packages/spec/src/data/query.zod.ts:392`, `expand: { owner_id: {
object: 'user', ... } }`) |
| `skills/objectstack-automation/SKILL.md` | 115 | notify `recipients`
`record.assignee` | `record.owner_id` (node `tell_owner`, label "Notify
Owner") |

No separate handler field was kept anywhere: in every site the example
meant the owner, so no "grants no access" sentence was owed. The rule
itself is not restated; the list-view comment points at objectstack-data
§ Relationship Patterns (the Record owner row PR objectstack-ai#33555 added,
`skills/objectstack-data/SKILL.md:313`).

### Evals

- `skills/objectstack-ui/evals/views-apps-actions-pages.json` eval 1:
the owner column and the `my_open` filter are `owner_id`; `must_contain`
gains `owner_id`, `must_not_contain` gains `'assigned_to'` (quoted, so
the "never an `assigned_to` field" prose does not trip it).
- Eval 12: the "mine" rule is `owner_id`; same two assertion additions.
- Eval 2 (scope add 6888544144): the assertion is right and the
reference prose was wrong. `rules/navigation.md:39` teaches the
approvals inbox gated by `requiresService: 'approvals'`, so
`requiresObject: 'sys_approval_request'` in `must_not_contain` is
correct; the `expected_output` spelled that literal inside its own
"never ..." warning. It now says "never a `requiresObject` gate on
`sys_approval_request`".
- `skills/objectstack-query/evals/filters-pagination-search.json` eval 4
(outside the order's named surface; covered by the ruling "any other
eval answering owner with `assigned_to`"): its prompt asks for the
task's assignee, which the objectstack-data rule maps to `owner_id`; it
answered with an `assignee` field and would contradict the query
SKILL.md example this PR changes. Now `owner_id`, `must_contain` gains
`owner_id`.
- Self-check over both eval files: every `must_contain` literal occurs
in its own `expected_output`, and no `must_not_contain` literal does
(before: ui eval 2 hit `requiresObject: 'sys_approval_request'`; after:
0 hits).

### Token budget, paid in place

| File | Tokens before / after / ceiling | Bytes before / after | Lines
|
|:--|:--|:--|:--|
| `objectstack-ui/rules/list-views.md` | 3446 / 3444 / 3451 | 13783 /
13776 | 334 / 334 |
| `objectstack-ui/rules/actions.md` | 2453 / 2452 / 2453 | 9810 / 9807 |
185 / 185 |
| `objectstack-ui/rules/dashboards.md` | 6230 / 6230 / 6232 | 24918 /
24918 | 475 / 475 |
| `objectstack-query/SKILL.md` | 4596 / 4596 / 5547 | 18403 / 18403 |
439 / 439 |
| `objectstack-automation/SKILL.md` | 6861 / 6861 / 6861 | 27464 / 27464
| 463 / 463 |

The cross-reference is paid for in list-views.md by the swaps
(`assigned_to` to `owner_id` is 3 bytes shorter), the dropped redundant
`label: 'Owner'`, and the `({current_user_id} = the signed-in user)`
gloss, whose home is `skills/objectstack-ui/SKILL.md:205` (the token
vocabulary). No ceiling moved. Package total, all eleven
`skills/*/SKILL.md`: 4588 lines and 236197 bytes before and after. Eval
JSON is measured, not ratcheted.

## Tests

Skill text and evals only: no package is touched, so no package test,
typecheck or ablation is owed. The five edited `os:check` blocks
type-check: `pnpm --filter @objectstack/spec check:skill-examples` exit
0 ("346 prose examples type-check across 3 surface(s)").

## Acceptance notes

- Remaining `assignee` / `assigned_to` in published skills are correct
and untouched: the objectstack-data rule itself (`SKILL.md:313`,
`:441`), `references/examples-objects.md:88` (`// assignee: the injected
owner_id`), objectui `rules/protocol.md:300` (maps `assignee` to
`owner_id`), and the evals whose `must_not_contain` forbids
`assigned_to` (data, platform, automation). `ui/skills/**`: no hit.
- The order's surface listed `skills/objectstack-query/SKILL.md` but not
its eval file; the eval edit is declared above.

## Verification

- `dispatch-gates --tier`: MANDATORY contract-review tier (`skills/**`,
clause ①, no one-line exit). This thread ran on the default tier; the
at-tier contract review is the seat's.
- `check-governed-merges.mjs --branch claude/project-thread-s3x4uf`:
GOVERNED, landing tier H, `skills/**` ×7, +30 / -20 over 8 files, under
the human-merge threshold. The low-risk arm reads NOT MEASURED from a
branch (no PR to read); `--pr` reading in the report.
- Ratchets on head 10f2b24: `check-skills-token-ratchet` exit 0;
`check-skill-line-ratchet` exit 0.
- Derived gates (`dispatch-gates --commands`), run on head 10f2b24
after `turbo run build --filter=@objectstack/lint...
--filter=@objectstack/formula... --filter=@objectstack/client-react...`
under the verify lock (VERDICT command-exit 0): **47 derived, 46 exit 0,
1 exit 3 NOT MEASURED** (`check:dual-build-cjs-loads` reads every
package's `dist`; no package is touched, CI runs it). `dispatch-gates
--ran`: 47 accounted for, 46 run, 1 NOT-MEASURED, 0 UNRUN.

<details><summary>47 derived gates plus skill-examples, each with its
exit code</summary>

```text
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-doc-route-spelling.mjs --advisory :: exit 0
node scripts/check-doc-route-spelling.mjs --self-test :: exit 0
node scripts/check-dts-emitted.mjs --self-test :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-skills-token-ratchet.mjs :: exit 0
node scripts/check-skills-token-ratchet.mjs --self-test :: exit 0
node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm --filter @objectstack/spec run check:skill-docs :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:corpus-claim-drift :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:dts-closure :: exit 0
pnpm check:dual-build-cjs-loads :: exit 3
pnpm check:gitlink-declared :: exit 0
pnpm check:lean-entry-closure :: exit 0
pnpm check:merge-driver :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:published-files :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:role-word :: exit 0
pnpm check:skill-compatibility :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:skill-links :: exit 0
pnpm check:sourcemap-no-sources-content :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm --filter @objectstack/spec check:skill-examples :: exit 0
```

</details>

- Every family CI runs beyond the derived list: read off this PR's
check-runs.

---

_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5m9ZMjU7EYnzJH8T6s)_

<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5m9ZMjU7EYnzJH8T6s -->

Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
… hand-named owner (objectstack-ai#33726)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XRXLMvWNpgJCkzEB9DNFRey)_

Fixes objectstack-ai#33722

Clause-②: no
Metadata-protocol: none

Signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5nj2HhB4M8Anj58gqj

## 维护者速读

- 改了什么:`objectstack-data` 的 hooks 参考(`references/data-hooks.md`)里
`ctx.api.object('task').find(...)` 示例按负责人过滤时用的是自造的 `owner` 字段,改成平台注入的
`owner_id`;顺带把同一技能 eval 6 里「`owner` 是持有工单的人」这个自造负责人字段改名为
`reviewer`(与负责人无关的另一个角色),其考点 `deleteBehavior` 不变。
- 为什么改:PR objectstack-ai#33555 已规定负责人 = `owner_id`、不另造负责人字段;这个示例还在教另一套写法。实测:在没有
`owner` 字段的对象上,旧写法被拒(`400 INVALID_FILTER`),新写法正确返回。
- 风险与回滚:只改技能示例文字、一个 eval 与一个 patch changeset,不碰 schema 与运行时;回滚即还原本
PR。token 上限未动(data-hooks.md 10004/10011)。
- 先看:`skills/objectstack-data/references/data-hooks.md` 第 304
行;`skills/objectstack-data/evals/objects-fields-relationships.json` eval
6。
- 两分钟验证:`git grep -nE "owner: uid|is the agent who holds" --
skills/objectstack-data`,预期零命中(退出码 1)。
- 需要你做的:受管面(`skills/**`),席位的达档契约复审 PASS 记录在案后,按其档位落地(Tier H 请合并;低风险臂读作
Tier S 则由席位入队)。

## What changes

| File | Where | Was | Now |
|:--|:--|:--|:--|
| `skills/objectstack-data/references/data-hooks.md` | line 304, the
`ctx.api.object(name)` query-shape block | `find({ where: { $and: [{
done: false }, { owner: uid }] } })` | `{ owner_id: uid }` |
| `skills/objectstack-data/evals/objects-fields-relationships.json` |
eval 6 prompt and expected_output | `owner` "is the agent who holds it",
a hand-named record owner as a required `user` field | `reviewer` "is
the lead who signs it off", a role apart from the owner |
| `.changeset/33722-skills-data-hooks-owner-id-filter.md` | new | |
`'@objectstack/skills': patch` |

The data rule is not restated; the example only stops contradicting it
(`skills/objectstack-data/SKILL.md:313`, Record owner row).

### Sweep of `skills/objectstack-data/**` (order ruling 3)

`git grep -nE "\b(owner|assigned_to|assignee)\b"` over the bundle on
`main` @ 48e6959, every hit read:

- **Fixed, data-hooks.md:304**: the card's site.
- **Fixed, evals/objects-fields-relationships.json eval 6**: the prompt
named `owner` as "the agent who holds" the ticket, and the reference
answer made it a `required` `user` field. That is the hand-named owner
family: a model following SKILL.md:313 ("also when the request says
assignee ... never a hand-added owner field") answers `owner_id` and
contradicts this eval. The eval tests `deleteBehavior` on a `user`
field, so the field is now `reviewer`, a handler the request names apart
from the owner. Its assertions name no field and are unchanged;
self-check: every `must_contain` literal is still in its
`expected_output`, no `must_not_contain` literal is.
- **Correct, untouched**: SKILL.md 77-87 (sharing-model prose about "the
owner"), 296, 312-313, 373-378 (package owner of an extension), 406-442
(`owner_id`, queue claim, the `assigned_to` prohibition);
`examples-objects.md:88` (`// assignee: the injected owner_id`);
`rules/relationships.md` 85-108, 369 ("never an owner field copied by
hooks", `owner_id`); `rules/security.md` 84-85, 111-199 (`owner_id`
policies, the `owner` membership tier); `references/seeds.md:141`;
data-hooks.md 769-771 (`owner_id`); evals that forbid
`assigned_to`/`assignee:` or expect `owner_id` (README:9;
hooks-security-seeds-datasources 37, 57, 77-81, 127, 167, 177-191;
objects-fields-relationships 123, 229-233, 298, 334-342).

## Tests

Skill text and eval only: no package is touched, so no package test,
typecheck or ablation is owed. The order asked for the filter shape the
hook API on `main` really accepts, read off the runtime rather than the
skill:

- Code path: `ctx.api.object(name).find(q)` is
`ObjectRepositoryFacet.find`
(`packages/objectql/src/engine-object-repository.ts:55`), which spreads
`q` into `engine.find(objectName, { ...q, context })`; `where` with
`$and` is the engine's filter DSL.
- Throwaway probe, deleted before commit (memory recipe: real
`ObjectQL`, `SqlDriver` better-sqlite3, `QuickJSScriptRunner`,
`bindHooksToEngine`, hook passed through `HookSchema.parse`; `task` rows
u1/open, u1/done, u2/open), run with `pnpm --filter @objectstack/runtime
exec vitest run --maxWorkers=2 src/sandbox/zz-probe-33722.test.ts` after
`turbo run build --filter=@objectstack/runtime^...` under the verify
lock (VERDICT command-exit 0): exit 0, 2/2.
- New line `find({ where: { $and: [{ done: false }, { owner_id: uid }] }
})` in a `beforeInsert` body: `found = 1` (the one open u1 task).
- Old line `{ owner: uid }` on the same `task` (no `owner` field): the
write is refused, `mapDataError` answers `400` `INVALID_FILTER` ("A
filter on object 'task' names a column the database could not resolve
...").

## Acceptance notes

- `uid` stays an unbound name, as the block's other lines use bare `id`;
binding it (`ctx.user?.id`) was not ordered and an undefined comparand
is its own question.
- Eval JSON is measured, not ratcheted.

## Verification

- Line and token budget: `data-hooks.md` 892 / 892 lines, 40013 / 40016
bytes, 10004 / 10004 tokens (ceiling 10011, untouched). Eval file 348 /
348 lines, 21847 / 21862 bytes. Package total, all `skills/*/SKILL.md`:
4588 lines and 236182 bytes before and after.
`check-skills-token-ratchet` exit 0; `check-skill-line-ratchet` exit 0.
- `dispatch-gates --tier`: MANDATORY `claude-fable-5-2` (`skills/**`,
clause ①, no one-line exit). This thread ran on the configured session
model; the at-tier contract review is the seat's.
- `check-governed-merges.mjs --branch claude/project-thread-0h6njx`:
GOVERNED, `skills/**` ×2, +13 / -3 over 3 files, under the human-merge
threshold; low-risk arm NOT MEASURED from a branch (fail closed to Tier
H). The `--pr` reading is in the os-dev-report.
- Derived gates (`dispatch-gates --commands`) on head 5744090, after
`turbo run build --filter=@objectstack/lint...
--filter=@objectstack/formula...`: **46 derived, 45 exit 0, 1 exit 3 NOT
MEASURED** (`check:dual-build-cjs-loads` reads every package's `dist`;
no package is touched, CI runs it). `dispatch-gates --ran`: 46 accounted
for, 45 run, 1 NOT-MEASURED, 0 UNRUN.

<details><summary>46 derived gates, each with its exit code</summary>

```text
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-doc-route-spelling.mjs --advisory :: exit 0
node scripts/check-doc-route-spelling.mjs --self-test :: exit 0
node scripts/check-dts-emitted.mjs --self-test :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-skills-token-ratchet.mjs :: exit 0
node scripts/check-skills-token-ratchet.mjs --self-test :: exit 0
node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm --filter @objectstack/spec run check:skill-refs :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:corpus-claim-drift :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:dts-closure :: exit 0
pnpm check:dual-build-cjs-loads :: exit 3
pnpm check:gitlink-declared :: exit 0
pnpm check:lean-entry-closure :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:published-files :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:role-word :: exit 0
pnpm check:skill-compatibility :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:skill-links :: exit 0
pnpm check:sourcemap-no-sources-content :: exit 0
pnpm check:watch-hint-literal :: exit 0
```

</details>

- Every family CI runs beyond the derived list: read off this PR's
check-runs.

---

_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5nj2HhB4M8Anj58gqj)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5nj2HhB4M8Anj58gqj -->

Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…udges each on a same-head at-tier PASS record (objectstack-ai#33711)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X5SKzXRHQWjMHXgyfyiaqkP)_

Fixes objectstack-ai#33603

Clause-②: no
Metadata-protocol: none

domain:skills#1 · os-project-manager · session_01FEkQ5kXwEA8abP4hMhtodW

## 维护者速读

- 改了什么:合后审计 `check-governed-merges.mjs` 现在对每个 skills 合并,用队列守卫自己的 arm
读法和记录读法再读一遍落地提交。按守卫自己的顺序判:合并前有授权批准或授权入队的,算维护者的合并,留在维护者清单并写明谁放行;其余 arm 判为
Tier S 的合并单独列出,每条再查同 head、达档、PASS、出自守卫信任的作者、合并前已存在且未再编辑的复核记录,且该 PR
确实以这个提交落地(`merge_commit_sha`),缺了就标 ⛔ BREACH。另外修了 objectstack-ai#33616 评审留下的三处:校验器比对
`advisorModel`、拒收把复核交给子代理的转录,post-stamped 对校验器自测的 spawn 加超时并转出子进程的失败行。
- 为什么改:AGENTS.md 第 14 条把合后审计定为座位落地的补偿控制,但它按路径分类,arm 落地看起来和「Tier H
无批准」一模一样(卡 objectstack-ai#33603,评审 6886787995 N3);objectstack-ai#33616 的复核记录把校验器残项挂到本卡。
- 风险与回滚:只动三个 `scripts/pm/` 工具文件,审计仍是只报告;读不到时记 NOT MEASURED、整轮
INCOMPLETE(退出 2),不会把未读的合并报成干净。校验器更严:复核会话里调用过 Agent / Task / Workflow /
SendMessage 的转录现在被拒,要传子代理自己的输出。回滚即还原本 PR。
- 先看:`scripts/pm/check-governed-merges.mjs` 的
`readArmLanding`(新,读法全部来自队列守卫)和 `renderReport`
的分列;`scripts/pm/verify-review-tier.mjs` 的 `SUB_AGENT_TOOLS` 判断。
- 两分钟验证:`node scripts/pm/check-governed-merges.mjs --since-ref
objectstack=b937b75f --repos objectstack`,预期 objectstack-ai#33668、objectstack-ai#33555、objectstack-ai#33632 三条
skills 合并都留在维护者清单,各带一行「cleared by an authorized enqueue (os-zhuang)」;没有
BREACH。
- 需要你做的:定合后审计的周期执行人(本 PR 建议:定时 workflow,由席位立卡交你,见下文 Owner);本 PR
本身无,席位落地。

## What changes

**Part 1, the audit (`scripts/pm/check-governed-merges.mjs`).**

- `readArmLanding` reads every skills landing in the sweep again with
the queue guard's own readers on the landed commit (the commit the merge
group judged): `decomposeGovernedWork`, `readLowRiskTier` (the
register's `lowRiskArmVerdict`), `landsOnLowRiskArm`, then
`recordAuthorTrusted`, `recordVerdict` and `lowRiskRecordVerdict`. One
reader: no predicate is restated here; the guard is imported lazily
(`loadArmReaders`, `ARM_READER_EXPORTS`), and a missing export or failed
load is NOT MEASURED.
- Five states. `pass`: the arm reads Tier S and a same-head record that
stands at the tier and reads PASS exists. `breach`: the arm reads Tier S
and no such record exists. `cleared`: the arm reads Tier S, and an
authorized approval or enqueue cleared it first. `tier-h`: the arm reads
H (its reasons are printed under the row), or the landing crosses the
3,000-line human-merge line. `not-measured`: the pull, the timeline or a
comment thread could not be read.
- The legs run in the guard's own order (`entrySatisfied`): an
authorized approval (`authorizedApprovalVerdict` on `makeReviewReader`),
then an authorized enqueue (`enqueuerFromTimeline`,
`authorizedEnqueueVerdict` on the timeline already fetched), then the
record. A landing cleared by either of the first two is `cleared`: the
maintainer's merge, kept on the maintainer's list with who cleared it,
never a BREACH.
- Each leg reads only what existed before the landing. Reviews and
timeline events count strictly before `merged_at`: on a queue merge the
`removed_from_merge_queue` event shares the merge's instant (measured on
objectstack-ai#33555, objectstack-ai#33632 and objectstack-ai#33616), so the post-merge timeline would always read
the enqueuer as undetermined. Comments count only from an author the
guard trusts (`recordAuthorTrusted` on `recognisers.trustedAuthors`, the
objectstack-ai#33687 binding: the relay's identity and `GOVERNED_APPROVERS`), and only
when created and last edited (`updated_at`) at or before the landing. So
a record any commenter posted cannot excuse a landing, an untrusted row
cannot shadow a trusted one, and a record written or edited after the
landing cannot excuse it; a BREACH whose only record was edited after
the landing names that comment.
- The record's head is tied to the landed commit: the attribution read
now carries `merge_commit_sha`, and a pull GitHub says is not merged (no
`merged_at`) or merged as another commit is a BREACH with that reason,
never `pass`. A failed attribution read is NOT MEASURED. Reads ride the
channel that attributed the row (`makePullReader`, `makeTimelineReader`,
`makeCommentReader`), and each one counts in the API lookup total.
- The report lists arm landings (`pass` and `breach`) apart, after the
maintainer's list, under their own contract lines; the head counts them
and their breaches. `cleared`, `tier-h` and `not-measured` rows stay on
the maintainer's list with an arm cell. A `not-measured` row makes the
sweep INCOMPLETE (exit 2) and the banner names it. `--json` carries the
reading as `entries[].arm`.
- Neither dispatch awaits at module scope any more (`main().then`,
`selfTest().then`): the guard imports this file at module scope, so an
awaiting dispatch deadlocks the lazy import (exit 13). The two comments
that said the lazy door is shut here were corrected.
- The register header's arm section says what the sweep now does and its
limit: it reads the record, not the run that wrote it. At the seat's
request, the line that called the relay's review plan path-only now says
the plan is not path-only from objectstack-ai#33540: `governedReviewPlan`
(`scripts/pm/fleet-write/execute.mjs`) reads the arm with its readers.
objectstack-ai#33686 has since merged, so the line holds on main.

**Part 2, the owner.** Proposed below; no workflow and no rule line in
this PR.

**Part 3, the verifier residuals (PR objectstack-ai#33616's records 6888257144 N5 and
6888534276 N7 and N10).**

| Residual | Verdict | Where |
|:--|:--|:--|
| `advisorModel` not compared | Fixed. Present and not null, it must
equal the tier. Measured present on every assistant entry of a real
session transcript, equal to the served model. |
`verify-review-tier.mjs`, 2 pin rows |
| A model value with a context suffix refuses an at-tier run | Closed.
Fails closed by design, and measured unreachable here: a session
configured with `[1m]` records `message.model`, `requestedModel`,
`advisorModel` and the identity attachment without the suffix (129
turns). Accepting a suffix would widen the accept set on an unseen
shape. The header says so. | header only |
| A nested sub-agent's transcript is not followed | Fixed by refusing
instead of following: an assistant turn that calls `Agent`, `Task`,
`Workflow` or `SendMessage` (`SUB_AGENT_TOOLS`) refuses, naming the tool
and asking for the transcript of the agent that ran the review, one that
called no other agent (a seat that reviewed in-seat beside unrelated
agents passes the review's own sub-agent file). Following would need the
child's file, which the transcript does not name. |
`verify-review-tier.mjs`, 3 pin rows |
| A delegating session passing its own transcript passes whatever served
its sub-agent | Fixed by the same refusal (a session that spawned its
reviewer is refused). | 1 pin row |
| A cleanly truncated transcript prefix passes | Closed. No honest run
writes a prefix: the record is the final turn's text, so a prefix
without that turn is a copy the seat cut, the dishonest route the card
leaves to the audit. A completeness test would rest on `stop_reason`,
which this session cannot measure for a sub-agent output; a wrong guess
would refuse every at-tier record. Named in the header's boundary. |
header only |
| The verifier self-test spawn has no timeout and hides the child's
failure lines | Fixed. `timeout: 120000`, and `childRunDetail` puts the
timeout or signal, the exit and the child's own failing case lines into
the case's detail. | `post-stamped.mjs`, 1 pin row |
| A raw relay `comment` / `comment_edit` op is not judged for tier | Not
here: it lives in `scripts/pm/fleet-write/` (the relay's door), outside
this card's file surface and on the same files as objectstack-ai#33540. Belongs on its
own card. | report |

## Owner of the weekly audit

Proposed owner: **a scheduled workflow**, filed by the seat for the
maintainer (this PR adds none). Reasons:

- The audit is the compensating control for seat landings, and the
skills seat lands most of the arm's PRs. A seat patrol would have the
audited party run its own audit.
- A workflow runs whether or not a seat is staffed; seats go off duty
and a patrol stops with them.
- It needs only an objectstack checkout with history, `--repos
objectstack`, a topological `--since-ref` from the last run's printed
tip (or `--since 8d` for overlap), and a read token. A ⛔ BREACH or
`not-measured` row can be surfaced in the job summary; making the job
red on `entries[].arm.state === 'breach'` would be a reader of `--json`,
not a change here.

The interim, until the workflow lands: the skills seat's patrol runs
`node scripts/pm/check-governed-merges.mjs --since 8d --repos
objectstack` weekly and posts the arm section to the seat post. That
line does not fit
`.claude/skills/pm-dispatch/references/lanes/skills.md`: 35 lines
against a ceiling of 35, headroom 0 (`check-skill-line-ratchet`), so it
is reported here and not added.

## Tests

- `node scripts/pm/check-governed-merges.mjs --self-test`: 728
assertions. New battery `⚖️ objectstack-ai#33603: ...` (38 cases, floor 38; roster
floor 37 to 38). It loads the REAL guard through `loadArmReaders` and
drives `readArmLanding` with fake fetchers and a fake git: pass on the
PR thread and on the card; breach for no record, a FAIL record, a record
on another head, a record below the tier, an unsigned record, a record
from an untrusted author, a record posted after the landing, a record
edited after it (the reason names the edited comment), a pull merged as
another commit and a pull closed unmerged; an untrusted FAIL after a
trusted PASS does not shadow it (and a trusted one does); cleared for an
authorized approval and an authorized enqueue on the measured
queue-merge timeline, with controls that a seat-account enqueue, a
post-landing approval and an unauthorized approval clear nothing; tier-h
for a `security` label, `Clause-②: yes`, a path outside the allowlist in
the same commit and an oversized landing; not-measured for an unread
pull, review list, timeline, comment thread or merge, and for readers
that did not load; null without a catalog row or a PR number; the
report's head count, its apart section and a cleared row staying on the
maintainer's list; the INCOMPLETE banner; and a structural pin that
neither dispatch awaits at module scope.
- `node scripts/pm/verify-review-tier.mjs --self-test`: 27 cases across
6 batteries (new battery: advisor, sub-agent spawn, and the refusal's
advice naming the reviewing agent).
- `node scripts/pm/post-stamped.mjs --self-test`: 787 cases across 29
batteries (record-tier battery floor 15 to 16).
- A live sweep on this head, read-only, from `b937b75f`: 8 governed
merges. The three skills landings, objectstack-ai#33668, objectstack-ai#33555 and objectstack-ai#33632, read Tier
S on the arm and were each enqueued by `os-zhuang` before the merge, so
each is `cleared` and stays on the maintainer's list; nothing is listed
apart and nothing is a BREACH; exit 0. (Before the review fix, objectstack-ai#33555
and objectstack-ai#33632 were listed apart as PASS.)

<details><summary>Ablations, each restored and `git diff` checked empty:
the first five on the first commit, the next six on the first review-fix
commit, the last two on the second</summary>

```text
the merge-time filter on comment rows removed      -> ✗ a-PASS-record-posted-AFTER-the-landing-is-a-BREACH
the apart filter in renderReport removed           -> ✗ arm-landings-are-listed-AFTER-the-maintainers-list-never-in-it
any non-unreadable record read as pass             -> ✗ no-record / FAIL-record / record-on-another-head is a BREACH
the sub-agent spawn refusal disabled               -> ✗ 3 verifier cases (nested reviewer, delegating session, other tool names)
the advisorModel comparison disabled               -> ✗ an advisor model off the tier refuses
the authorized-approval leg disabled               -> ✗ 1 case (an approval before the landing clears it)
the authorized-enqueue leg disabled                -> ✗ 1 case (an enqueue clears it)
timeline events counted AT merged_at, not before   -> ✗ 1 case (the measured queue-merge timeline)
the merge_commit_sha tie disabled                  -> ✗ 1 case (a pull merged as another commit)
the not-merged check disabled                      -> ✗ 1 case (a pull closed unmerged)
the updated_at filter disabled                     -> ✗ 1 case (a record edited after the landing)
the author binding disabled                        -> ✗ the untrusted-author cases
the edited-after note disabled                     -> ✗ 1 case (the BREACH names the edited comment)
```

</details>

## Acceptance notes

- An arm landing the maintainer's account enqueued is the maintainer's
merge by the guard's own reading, whoever prepared it; the sweep follows
that reading and does not second-guess it.
- The record's existence is all the audit adds; it cannot tell a record
from the run that served it (the verifier's boundary). Body and labels
are read as they are now; a removed `security` label is still caught by
the timeline.
- The arm reads today's register, so a skills landing from before the
arm existed (objectstack-ai#33632 landed 05:14Z, the arm at 05:57Z) is listed apart
when it qualifies. It had its PASS record, so it is not a breach.
- `contract-review.md`'s rule line on session evidence (「卡线程或席内复核」) does
not yet say that a session which spawned or messaged a sub-agent is
refused; the refusal text says what to pass. Carrier: the skills seat
(the file is at its 63-line ceiling).
- Raw relay `comment` / `comment_edit` ops not judged for tier: carrier,
the skills seat, as its own card (relay files).

## Verification

Gate list `dispatch-gates --commands` on this diff: 35 families, all run
locally; results below. `dispatch-gates --tier`: no path-derived mandate
(floor sonnet, default opus, ceiling fable); 449 changed lines, under
3,000. `check-governed-merges --branch claude/project-thread-sgww6y`:
NOT governed (0 of 3 paths on the register).

On head c48e9f1 (rebased on main `48e69596`, which carries objectstack-ai#33686 and
objectstack-ai#33687), every derived family ran and exited 0: `dispatch-gates --ran`
reconciles 35 derived, 35 run, 0 NOT-MEASURED. One gate went red on the
first pass of the first round and was fixed in its own commit:
`check:pm-dispatch-gates` refused a helper named like a compound
self-test (`childSelfTestDetail`, not in `COMPOUND_ANCHOR_LEDGER`); it
is now `childRunDetail`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5kXwEA8abP4hMhtodW)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01FEkQ5kXwEA8abP4hMhtodW

<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5kXwEA8abP4hMhtodW -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI 搭建新增的「负责人」字段与系统字段 owner_id 同名,表格出现两列「负责人」、看板卡片重复显示

3 participants