Repository navigation
docs(skills): an owner, assignee or 负责人 in a request is the injected owner_id - #33555
Conversation
…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
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: 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 ① Derived judgments
② Semver levelClause-②: no — correct. The changeset ③ Boundary flags
④ Design judgment
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: 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 |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb 维护者速读
席位核对Verdict: ACCEPT, held for the maintainer · head
Implemented-by: |
…-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
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: At-tier delta review of PR #33555 (card #33506) on top of record 6886756656, which holds base ① Derived judgments
② Semver levelClause-②: no — correct, unchanged from the base. The changeset is still ③ Boundary flags
④ Design judgment
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 (
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: 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 |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb 维护者速读(重新交接)
席位核对Verdict: ACCEPT, held for the maintainer (re-hand after a main merge) · head
|
…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>
…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>
… 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>
…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>
Requested by Leehom · project thread
Fixes #33506
domain:skills#1 · os-project-manager · session_01FEkQ5ocBJgBm6Bz2yqoibS
Clause-②: no
Metadata-protocol: none
维护者速读
owner_id,不另建字段;只有需求明确区分「负责人」和另一位处理者时才加一个user字段,且标签不得与对象上任何可见字段重名(点名注入列owner_idOwner/负责人、created_by创建人、updated_by更新人、created_at、updated_at),并说明它不授予访问权。快速模板里的工单示例去掉了assigned_to字段,新增 eval 19(工单应用 + 负责人)。assignee字段,表格两列「负责人」、看板重复显示,而只有owner_id决定记录可见性。技能里的快速模板正好教了一个assigned_to用户字段。@objectstack/skillspatch。回滚即还原本 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 sameowner_idanswers a request's assignee, 负责人 or 处理人, and that a handler the request names apart from the owner is auserfield 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 dropsassigneefrom itsuser-field examples so the two places no longer disagree.references/examples-objects.md, Quick-Start Template (cross-reference 1). Thesupport_casetemplate declaredassigned_to: { type: 'user' }beside the injectedowner_id: the exact shape the staging build produced. It is replaced by the comment// assignee: the injected owner_id.rules/field-types.md,userrow (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 expectsowner_idreused and must not containassignee:,assigned_to:orlabel: '负责人'.The label set is measured, not guessed:
packages/spec/src/data/injected-system-column-provenance.tsdefines the injected columns (owner_idlabelOwner, not hidden;created_at,created_by,updated_at,updated_bynot hidden;organization_id,owning_business_unit_id,queuehidden), andSYSTEM_FIELD_LABELSinpackages/spec/src/system/i18n-resolver.tsserves their zh-CN labels (owner_id→ 负责人,created_by→ 创建人,updated_by→ 更新人,created_at→ 创建时间,updated_at→ 更新时间).Acceptance notes
git grepoverpackages/lint/src,packages/spec/src,packages/objectql/srcandpackages/cli/srcfor 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.assigned_toas the owner column.skills/objectstack-ui/rules/list-views.mdhas{ field: 'assigned_to', label: 'Owner' }and a "mine" filter onassigned_to(lines 53, 60, 101, 321),rules/actions.md:44uses it as a param, andevals/views-apps-actions-pages.jsoneval 1 answers a prompt's "owner" column withassigned_to. That is outside this order's surface (two cross-references); reported to the seat as a follow-up.SKILL.mdis 6657 tokens against its 6665 ceiling (6606 on the original basee3f0cfd4; 6665 on today'smain, after docs(skills): the object enable table names aiReadable #33458'saiReadablerow 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-0120and(ADR-0146 D10)asides; the line "Toggle system behaviours per object:" that restates its heading; theObjectExtensionSchemaandPermissionSetSchema.objects.*schema pointers (references/_index.mdalready points atobject.zod.tsandpermission.zod.ts); the internal constant nameBASE_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.4fccfc87,origin/main7f0e38a2). docs(skills): objectstack-data evals 11, 12 and 14 spell their own must_contain literals #33586 added its own eval 18 toobjects-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'sfield-types.mdlines are intact; this PR's diff there is still only theuserrow'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 indist/skills).Readings against today's
main7f0e38a2(lines, then tokens; the gate's count, which leaves out the release-stamp line):skills/objectstack-data/SKILL.mdskills/objectstack-data/references/examples-objects.mdskills/objectstack-data/rules/field-types.mdskills/objectstack-data/evals/objects-fields-relationships.jsonskills/*/SKILL.mdtogetherceil(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.check:dual-build-cjs-loadsexit 3 is PREREQUISITE NOT MET (it reads every package'sdist/; no package is touched, so no full build is owed): NOT MEASURED here, CI runs it. Outside the derivation, the editedos:checkblock was verified withpnpm --filter @objectstack/spec run check:skill-examples:: exit 0.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5ocBJgBm6Bz2yqoibS