Repository navigation
docs(skills): teach sharing.controlledByParent.writeRequiresMasterRead in the controlled_by_parent rules - #33427
Conversation
…d in the controlled_by_parent rules The relationship rules said every detail write needs edit on the master, with ownerMayEdit as the only opt-in. They now teach the read-on-master opt-in: what it admits, its parse refusals, the unchanged default, the ownership floor that still binds predicate and on-behalf-of writes, and the lint arm that stays silent. One eval prompt covers it. The lookup and junction examples drop boilerplate parents to stay inside the token ceiling. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5pfprxUTKxctsoaYzF
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: Inputs read: card #33374 body and all three comments (N1/N3 addendum 6882020972, claim 6883494291, dev report 6883705207); PR #33427 body, its 3-file list and the net diff against Check-runs on the head, polled until none was pending: 48 total, 30 success, 18 skipped, 0 failed, 0 cancelled. Green among them: Check Changeset, Governed Surface Queue Guard, PR-body guards, Lint and Repo Gates and every Lint shard (ESLint, PM dispatch-gates, docs and code guards, repo and tooling gates, CI release and engine gates, the scoped shards), Type Check (source gates, debt ledger, workspace, consumer gates) and TypeScript Type Check, Build Core, Test Core with its shards 1/8 and 2/8, Test UI, Dogfood Regression Gate, Live E2E UI. The commit-status API carries no statuses. ① Derived judgments
② Semver levelChangeset Clause-②: no, with ③ Boundary flags
④ Design judgment
Findings:
No must-fix, no should-fix. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-14T20:43Z · 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
|
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Correction: contract-review tierThe contract-review record(s) 6883930925 on this PR say This PR has already merged. The seat re-runs the review at |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: At-tier re-review of a merged head (merge commit 3968a57). The earlier record 6883930925 was served off-tier and is not used as evidence; ③ says which of its findings this review confirms. Inputs read: card #33374 body and all four comments (N1/N3 addendum 6882020972, claim 6883494291, dev report 6883705207, ACCEPT pointer 6883962683); PR #33427 body, its 3-file list, the net diff of the head against its merge base b462444; the check-runs on the head. Code outside the diff was read on Check-runs on the head: 55 total, 33 success, 22 skipped, none failed or cancelled. Green among them: Check Changeset, Governed Surface Queue Guard, PR-body guards, Lint and Repo Gates with every Lint shard, the Type Check shards and TypeScript Type Check, Build Core, Test Core and its shards, Test UI, Dogfood Regression Gate, Live E2E UI. State of ① Derived judgments
② Semver level
Clause-②: no, with ③ Boundary flags
④ Design judgment
Findings:
No must-fix, no should-fix. The head is merged, so each nit is a follow-up card at most, not a fix on this PR. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-15T00:50Z · 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 |
…i#33458) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X13WJLvJKXyx6BgqdzPrLLZ)_ Fixes objectstack-ai#32974 domain:skills#1 · os-project-manager · session_01FEkQ5nzn5SncinMdswdSzM Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:`objectstack-data` 技能的对象能力表(`enable`)加一行 `aiReadable`:只用于平台系统对象(`sys_*`,不含 `sys_metadata`、`sys_metadata_history`),开放只读 AI 访问(查询、取单条、聚合、describe、列表,永不写);应用对象从不声明它,连 `false` 也会在解析时被拒。 - 为什么改:objectstack-ai#32971 新增了 `enable.aiReadable`,技能文字没教,AI 照着能力表写应用对象时既不知道它存在,也不知道写在业务对象上会被拒。 - 风险与回滚:纯技能文字,一个文件加 1 行,外加一个 `@objectstack/skills` patch changeset;不动 schema、不动运行时;回滚即还原本 PR。 - 先看:`skills/objectstack-data/SKILL.md` 第 121 行(能力表最后一行)。 - 两分钟验证:`git diff origin/main -- skills/`,预期只见能力表末尾新增 `aiReadable` 一行,默认列为 `—`。 - 需要你做的:受管面 Tier H(`skills/**`):请批准或合并。 ## What changes - **`skills/objectstack-data/SKILL.md`, Object Capabilities (`enable`) table**, one row after `clone`: `| aiReadable | — | Platform sys_* objects only (not sys_metadata, sys_metadata_history): read-only AI access (query, get, aggregate, describe, list; no write). App objects never declare it, false included: refused at parse |` (backticks around the identifiers in the file). The Default column reads `—`, not `false`: an absent key is closed, and writing `false` on an app object is itself refused, so a `false` default would invite the one value that fails. - **`.changeset/32974-skills-enable-ai-readable-row.md`**: `'@objectstack/skills': patch`, carrying both declaration lines. ## Why Read on `origin/main` ba35dfd, `packages/spec/src/data/ai-read-exposure.ts`: - `aiReadExposureRefusal(objectName, enable)` judges any declared value (`false` included; only an absent or `undefined` key passes) in this order: first the stored-metadata family (`isStoredMetadataBodyObject`, `STORED_METADATA_BODY_OBJECTS` = `sys_metadata`, `sys_metadata_history`, in `packages/spec/src/kernel/stored-metadata-body-objects.ts`) is refused whatever the key says; then a `sys_` name (`/^sys_/i`) is accepted; every other name is refused ("is not a system object ... Remove it"). - `ObjectSchema`'s refinement calls it through `refuseMisplacedAiReadExposure` (`object.zod.ts`), so every door that parses an object refuses it: `ObjectSchema.create`, `defineStack`, `os validate` and the object save door. - `isAiReadExposed(schema)` answers `true` only for the boolean `true` on a `sys_*` object outside that family. - The key is live after objectstack-ai#32442: `isAiReadExposed` is read by `packages/runtime/src/domains/mcp.ts`, `packages/mcp/src/mcp-http-tools.ts` and `packages/mcp/src/stdio-data-bridge.ts`, and two platform objects declare it (`sys_user` in `platform-objects`, `sys_approval_request` in `plugin-approvals`). The `.describe` text in `ObjectCapabilities` says the same as the new row. ## Acceptance notes - No eval is added or extended: no eval under `skills/objectstack-data/evals/` asks for the `enable` table (the only `trackHistory` hit is a `must_not_contain` in a lifecycle eval), and `objects-fields-relationships.json` and `rules/relationships.md` belong to open PRs objectstack-ai#33394 and objectstack-ai#33427 and are untouched. - The order expected `SKILL.md` might sit at its token ceiling; measured headroom was 59 tokens before the row and 0 after, so no other text was cut and no ceiling moved. The review round's fix (naming the two refused objects) was paid inside the row itself (`never a write` to `no write`, `An app object never declares` to `App objects never declare`). ## Verification Head `fa4ef05c`, base `origin/main` ba35dfd. <details><summary>Line and token budget (skills/**)</summary> - `skills/objectstack-data/SKILL.md`: 477 to 478 lines, 26441 to 26678 bytes; token ratchet 6606 to 6665 (ceiling 6665, headroom 0). No ceiling raised. - Whole package, all `skills/*/SKILL.md`: 4602 to 4603 lines, 235787 to 236024 bytes. Bundle total (whole shipped tree): 244310 to 244369 tokens. - `node scripts/pm/check-skill-line-ratchet.mjs`: exit 0. `node scripts/check-skills-token-ratchet.mjs`: exit 0. </details> <details><summary>Derived gates: 46 derived, 44 run green, 2 NOT MEASURED</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 46 families for the two paths; each was run with its exit code captured before any pipe. - 41 exit 0 on the first run, among them `check-adr-0087-registration`, `check-empty-changeset`, `check-skills-token-ratchet` (scan and `--self-test` each), `@objectstack/spec check:skill-docs`, `check:doc-authoring`, `check:nul-bytes`, `check:pm-governed-merges`, `check:published-files`, `check:skill-compatibility`, `check:skill-frame-sync`, `check:skill-identifier-liveness`, `check:skill-links`. - `@objectstack/lint check:doc-formula-expressions`: first exit 3 (no lint dist); exit 0 after `pnpm --filter "@objectstack/lint..." build` under the verify lock (VERDICT command-exit 0, 89s; rebuilt for head fa4ef05, 73s). - `check:dts-closure` and `check:sourcemap-no-sources-content`: first exit 3, then exit 0 after that build, sweeping only the 5 built packages, not every package's `dist/`. - NOT MEASURED, exit 3 PREREQUISITE NOT MET (every package's `dist/`): `check:dual-build-cjs-loads`, `check:lean-entry-closure`. No package source is touched, so no full build was paid; CI builds and runs them. - `--ran`: "46 derived famil(ies) accounted for — 44 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)". - CI families are read from this PR's check-runs, not re-run here. </details> <details><summary>Tier and governed readings</summary> - `dispatch-gates --tier`: MANDATORY contract-review tier, `skills/**` under clause ① (the published catalog); no one-line exit for this surface. - `node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-7ha66d`: exit 3, GOVERNED, landing tier H (人合). 1 of 2 paths on the register (`skills/**`); the changeset is not. Size +11 / -0, under the 3000 threshold. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5nzn5SncinMdswdSzM <!-- signed: domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…data eval for the parent-path currencyField (objectstack-ai#33394) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XCXXX7Dqm1Mqyhe3PJayP6o)_ Fixes objectstack-ai#32392 domain:skills#1 · os-project-manager · session_01FEkQ5kJc3VU2HmGSE78u8t Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:`objectstack-ui` 仪表盘规则里关于 `currencyMode: 'record'` 金额的那句,补上「`currencyField` 是父路径(如 `'invoice.currency_code'`)的金额,任何分组都不放行」,指向 objectstack-data → Field Types → Currency,并给出两种可用的单币种口径(该金额的 `homeAmount` 字段,或父对象的 `summary`);`objectstack-data` 的 eval 新增一例:发票明细金额跟随发票币种、`lookup` 路径被拒。 - 为什么改:旧句只说「按其代码字段分组即可」,作者照着对父路径金额按路径分组,在 `main` 上会被拒(引擎聚合门与分析 cube 门都拒);而父路径写法上线后 eval 里还没有一例测它。 - 风险与回滚:纯技能文字与 eval,不动 schema、不动运行时;`dashboards.md` 改 4 行删 4 行,token 6232 到 6226(付账删了同一注释里两个住在包源码的从句);回滚即还原本 PR。 - 先看:`skills/objectstack-ui/rules/dashboards.md` 第 306–311 行;再看 eval 文件末尾第 18 例。 - 两分钟验证:`git diff origin/main -- skills/`,预期仪表盘规则只见那一处括号补句与两个删去的从句,eval 只多出第 18 例,其 `must_contain` 每项都在 `expected_output` 里。 - 需要你做的:受管面 Tier H(`skills/**`):请批准或合并。 ## What changes - **`skills/objectstack-ui/rules/dashboards.md` lines 306–311** (a comment inside the `os:check` dataset example). "A `currencyMode: 'record'` amount refuses `currency`, and sum/avg/min/max unless grouped by its code field" now continues "(a parent-path `currencyField` admits none, objectstack-data → Field Types → Currency: measure its `homeAmount` field or the parent's `summary`)". The data skill's owner text is linked by name, not restated. - **Paid for in the same comment** (token ratchet, headroom 0 before): two clauses whose home is the package source are deleted. - "then the column carries `currencyField` (the per-row code column); a `count` never does": the result column's wire shape, documented on `AnalyticsResult.fields[].currencyField` in `packages/spec/src/contracts/analytics-service.ts` (lines 93–110) and produced at `packages/services/service-analytics/src/analytics-service.ts:3666-3693`. A dashboard author writes nothing from it. - "Not judged: `currency` over a `dynamic` field, a `fixed` code against the tenant's": the measure-currency check's non-judgements, stated in `packages/services/service-analytics/src/measure-currency-coherence.ts` (module header, "Not judged"). - **`skills/objectstack-data/evals/objects-fields-relationships.json` eval 18.** An invoice whose lines' `amount` follows the invoice's `currency_code` through the `master_detail` (`currencyField: 'invoice.currency_code'`), the `lookup` alternative refused, the invoice `subtotal` a `summary` that declares its own record currency, and `ERR_CURRENCY_CODE_REQUIRED` for a blank parent code. `must_contain`: `master_detail`, `currencyField: 'invoice.currency_code'`, `iso_4217_currency`, `summary`, `ERR_CURRENCY_CODE_REQUIRED`; `must_not_contain`: `currencyMode: 'fixed'`, `Field.lookup('invoice')`. - **`.changeset/32392-skills-parent-currency-path-follow-ups.md`**: `'@objectstack/skills': patch`, carrying both declaration lines. ## Why The card asked for the sentence to be written to what `main` does today ("edge 2 may have moved"). It has not moved. Read on `origin/main` 6538ba4: - **Engine door.** `packages/objectql/src/record-currency-aggregate-door.ts:175-181`: when the amount's `currencyField` resolves to a parent path, the door pushes a refusal before it looks at `groupBy` at all ("No groupBy admits it: a dotted group key is read as a column of this row, which holds no code"). The only exit is the roll-up's own recompute through that same `master_detail` (`ROLLUP_AGGREGATE_OPTION`), which no caller can set. The refusal text names the two remedies the new sentence names: a stored home-currency amount field, or a summary rolled up through the `master_detail`. - **Test pinning it.** `packages/objectql/src/record-currency-guards.test.ts:496-519`, "an aggregate over a child amount that follows its parent is refused whatever it groups by (ADR-0144 D6, Open item 14)": ungrouped, grouped by `invoice.currency_code` (string and object form) and grouped by `invoice` are each refused `INVALID_FIELD`. The same describe pins the parent's roll-up as one total per currency when grouped by the parent's own code (`:526-536`). - **Analytics cube door.** `packages/services/service-analytics/src/cube-record-currency-door.ts:97-107` admits a grouping only when a dimension's column is the code field on the same object. For a path amount the code field is the dotted `invoice.currency_code`, while the dimension resolver (`analytics-service.ts:4173-4198`, `assertRecordCurrencyGrouped`) answers the last segment of a dimension's `sql` and the object that segment sits on, so no dimension can match. No analytics test pins a parent-path amount; this reading is from code. The engine door underneath refuses the aggregate regardless. - **A path amount may declare `homeAmount`**: `record-currency-guards.test.ts:686-703` (`gp_line.amount` with `currencyField: 'invoice.currency_code'` and `homeAmount`), so "measure its `homeAmount` field" is reachable. Business reason (from the card): an AI author building invoice dashboards over line items reads the dashboards rule; the old sentence led to a refused dashboard, and the data skill's new parent-path rule (PR objectstack-ai#32384) had no eval measuring it. ## Acceptance notes - **The order's "package eval-shape check" does not exist for this bundle.** `ui/scripts/check-skill-eval-tokens.mjs` (`check:skill-eval-tokens`) walks only `skills/objectui/evals/*.json` (its `--list` names ten files, none under `skills/objectstack-data/`), and no other script reads `skills/objectstack-*/evals/`. The README's shape was checked with a one-off script over the whole file: eval 18 is clean (every `must_contain` literal in `expected_output`, no `must_not_contain` literal in it), and each of its `must_contain` literals occurs in the data bundle's markdown (1 to 41 occurrences). - **Pre-existing shape misses in the same file**, not touched here: eval 11 (`type: 'select'`, `type: 'state_machine'`), eval 12 (`type: 'summary'`, `type: 'formula'`) and eval 14 (`label: '公司名称'`, `value: 'active'`) carry `must_contain` literals absent from their `expected_output`. Noted, not filed: no gate reads this bundle's evals. - **Analytics refusal prose for a path amount (read-only inference, not measured).** For a parent-path amount the cube door's message would advise "add the dimension over 'invoice.currency_code'", a grouping the same door then refuses again (`cube-record-currency-door.ts:109-125`). Unmeasured through a public door here; the engine door's own message names the right remedies. ## Verification Head `d57adb94` (merge of `origin/main` 3968a57 after objectstack-ai#33427 took eval 17; ours renumbered to 18), first measured on `527f63ef` over base 6538ba4; derived gates rerun on `d57adb94`: 42 exit 0, the same 2 NOT MEASURED. <details><summary>Line and token budget (skills/**)</summary> - Net lines in `skills/**`: +23 / -4. `skills/objectstack-ui/rules/dashboards.md`: 474 to 474 lines, 24926 to 24902 bytes; token ratchet 6232 to 6226 (ceiling 6232, headroom 6). The first two wordings measured +19 and +13 over; the sentence was shortened and the two package-homed clauses deleted; no ceiling moved, no re-wrap counted as payment. - `skills/objectstack-data/evals/objects-fields-relationships.json`: 296 to 315 lines, 4463 to 4834 tokens (eval fixture, measured, not ratcheted). - Whole package, all `skills/*/SKILL.md`: 4602 to 4602 lines (no SKILL.md touched). Bundle total (whole shipped tree): 244310 to 244675 tokens (base computed from the two per-file deltas, -6 and +371). - `node scripts/pm/check-skill-line-ratchet.mjs`: exit 0. `node scripts/check-skills-token-ratchet.mjs`: exit 0. </details> <details><summary>Derived gates: 44 derived, 42 run green, 2 NOT MEASURED</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 44 families for the three paths. Each was run with its exit code captured before any pipe, after building `@objectstack/formula` and `@objectstack/lint` under the verify lock (VERDICT command-exit 0, 90s): - 42 exit 0, among them `check-adr-0087-registration` (scan and `--self-test`), `check-changeset-no-major`, `check-empty-changeset` (scan and `--self-test`), `check-skills-token-ratchet` (scan and `--self-test`), `@objectstack/lint check:doc-formula-expressions`, `check:doc-authoring`, `check:nul-bytes`, `check:pm-governed-merges`, `check:published-files`, `check:skill-compatibility`, `check:skill-frame-sync`, `check:skill-identifier-liveness`, `check:skill-links`, `check:dts-closure`, `check:sourcemap-no-sources-content`. - NOT MEASURED, exit 3 PREREQUISITE NOT MET (each reads every package's `dist/`): `check:dual-build-cjs-loads`, `check:lean-entry-closure`. No package source is touched; CI builds and runs them. - `--ran` reconciliation: "44 derived famil(ies) accounted for — 42 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)". - Extra, not derived: `pnpm --filter @objectstack/spec check:skill-examples` exit 0 after building the `@objectstack/client-react` closure under the verify lock (VERDICT command-exit 0, 195s): "344 prose examples type-check across 3 surface(s)". That covers the edited `os:check` block. - CI families are read from this PR's check-runs, not re-run here. </details> <details><summary>Tier and governed readings</summary> - `dispatch-gates --tier`: MANDATORY contract-review tier, both `skills/**` paths under clause ① (the published catalog); no one-line exit for this surface. - `node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-z8yej2`: exit 3, GOVERNED, landing tier H (人合). 2 of 3 paths hit the register (`skills/**` x2); the changeset is not on it. Size +33 / -4, under the 3000 threshold. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5kJc3VU2HmGSE78u8t <!-- signed: domain:skills#1 · os-project-manager · session_01FEkQ5kJc3VU2HmGSE78u8t --> <!-- signed: domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb --> Co-authored-by: Claude <noreply@anthropic.com>
Requested by Leehom · project thread
Fixes #33374
domain:skills#1 · os-project-manager · session_01FEkQ5pfprxUTKxctsoaYzF
Clause-②: no
Metadata-protocol: none
维护者速读
objectstack-data技能的关系规则(rules/relationships.md)原来只教「明细的每次写入都要主记录的编辑权,唯一开关是ownerMayEdit」,现在补上第二个开关writeRequiresMasterRead:打开后,能读主记录的人按明细对象自己的权限、行级与字段级安全新增、修改、删除;默认不变。同时写明三处拒绝(与ownerMayEdit: true同时声明、非controlled_by_parent对象、写在上一层)、所有权底线仍约束批量写与代他人写、相关 lint 在该明细上不报。eval 新增第 17 例。main上线这个键,技能文字却仍说「每次写入都要主记录编辑权」,AI 作者照着写会错过这个开关,或把它写到非明细对象上被拒。relationships.mdtoken 4127 到 4127(上限 4127,零余量),新增文字由删去 lookup 与多对多示例里的两段样板父对象付账;回滚即还原本 PR。skills/objectstack-data/rules/relationships.md的「Writes undercontrolled_by_parent— two opt-ins」一节;再看 eval 文件末尾第 17 例。node scripts/check-skills-token-ratchet.mjs,预期 exit 0、relationships.md is 4127 tokens (ceiling 4127; headroom 0)。skills/**):请批准或合并。What changes
skills/objectstack-data/rules/relationships.md, the rule's home. The section "Owner edits undercontrolled_by_parent—ownerMayEdit" becomes "Writes undercontrolled_by_parent— two opt-ins". By default every write needs edit on the master.ownerMayEdit: truekeeps its old meaning (the row owner's by-id update only).writeRequiresMasterRead: trueis new: whoever reads the master inserts, updates and deletes the detail under the detail's own object permissions, RLS and FLS, re-points and each opted-in chain hop too; on behalf of another user, both users must read the master. The ownership floor (rows the caller created) still binds predicate and on-behalf-of updates and deletes (N3). Refused besideownerMayEdit: true, off acontrolled_by_parentobject, and one level up (sharing.KEY). The lintsecurity-controlled-by-parent-owner-policy-without-opt-inis silent on such a detail. The code example shows the new key with "or ownerMayEdit" so the refused pair is never copied as one literal.ownerMayEdit" to "read-on-master opt-ins (below)"), and the optional-master paragraph (setting or emptying a master asks read underwriteRequiresMasterRead, edit even underownerMayEdit).accountobject and the junction example's two side objects (project,employee), each a name-onlyObjectSchema.create, are replaced by one comment naming them. They taught nothing the surrounding prose and the child objects do not.skills/objectstack-data/evals/objects-fields-relationships.jsoneval 17. Order lines anyone who can see the order may add, change or remove:controlled_by_parentwithwriteRequiresMasterRead: true, notownerMayEdit, not one level up.must_contain:controlled_by_parent,master_detail,controlledByParent,writeRequiresMasterRead: true;must_not_contain:sharing: { writeRequiresMasterRead. The set already covered the master-edit rule (eval 2,ownerMayEdit), so the order's condition for adding one holds..changeset/33374-skills-teach-write-requires-master-read.md:'@objectstack/skills': patch, both declaration lines.origin/main:skills/objectstack-data/SKILL.md(itscontrolled_by_parentrow says "inherited from the master record", still true),references/lint-rules.md(does not list the owner-policy lint),skills/objectstack-ui/rules/record-page.md(anos:checkexample, no write rule stated). No restatement outside the rule's home.Why
Read on
origin/mainb462444 (PR #33369 merged), not from the card's summary:packages/spec/src/data/object.zod.ts:3162-3195(refuseControlledByParentWriteRequiresMasterReadMisplaced: refused offcontrolled_by_parent, refused besideownerMayEdit: truewith "Delete ownerMayEdit; writeRequiresMasterRead already admits the owner"),:4244-4246(strictsharingblock's guidance for the key one level up),:4210-4216(read on the master is the master question for every write; absent orfalse, master edit)..changeset/33250-controlled-by-parent-write-requires-master-read.md(insert single and batch, by-id and predicate update and delete, re-point and emptying, each hop whose detail opted in; on-behalf-of asks each context). The body-named master goes through the same chain walk (security-plugin-cbp-write-gate.ts:540-553,askBodyNamedMastercallsassertControlledByParentChainEditable).security-plugin-authz-middleware.ts:740-746,delegatorOwnWriteFloorOptions). Confirmed identical with the ADR-0055: record the 2026-11-14 amendment, writeRequiresMasterRead (read on the master is enough to write, by opt-in) #33373 ADR-0055 amendment thread (branchclaude/project-thread-mllmvl).@objectstack/lintparagraph (no new rule; the owner-policy arm stands down on a declaring detail).Ruling: Leehom 2026-11-14, A+ (record 6880588685 on #33250): 「开关打开后,能读主记录的人按子对象自己的授权新增、修改、删除,默认不变。」
Acceptance notes
master_detailparent-currency path owes two follow-ups (ui dashboards aggregate rule, data eval case) #32392, awaiting merge), which also appends eval 17 to the same file. Whichever lands second mergesorigin/mainand renumbers to 18; the order expected this.#owner-edits-under-controlled_by_parent--ownermayeditis gone.git grepover the whole tree finds no link to it.403 PERMISSION_DENIED, by-id update and delete404 RECORD_NOT_FOUND) and the lifecycle verbs. They live in the ADR amendment (ADR-0055: record the 2026-11-14 amendment, writeRequiresMasterRead (read on the master is enough to write, by opt-in) #33373) and the permissions docs; the file has no headroom for them.Verification
Head
4629a84a, baseorigin/mainb462444.Line and token budget (skills/**)
skills/objectstack-data/rules/relationships.md: 419 to 399 lines, 16505 to 16508 bytes; token ratchet 4127 to 4127 (ceiling 4127, headroom 0). Paid by deleting three boilerplate parent objects; no ceiling moved, no re-wrap counted as payment. First wording measured +14 tokens over and was shortened.skills/objectstack-data/evals/objects-fields-relationships.json: 296 to 313 lines, 17850 to 19199 bytes (eval fixture, measured, not ratcheted).skills/*/SKILL.md: 4602 to 4602 lines (no SKILL.md touched).node scripts/pm/check-skill-line-ratchet.mjs: exit 0.node scripts/check-skills-token-ratchet.mjs: exit 0.Derived gates: 44 derived, 42 run green, 2 NOT MEASURED
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 44 families for the three paths. Each was run on head4629a84awith its exit code captured before any pipe, after building@objectstack/formulaand@objectstack/lintunder the verify lock (VERDICT command-exit 0, 104s):check-skills-token-ratchet(scan and--self-test),check-empty-changeset(scan and--self-test),check-changeset-no-major,check-adr-0087-registration,@objectstack/lint check:doc-formula-expressions,check:doc-authoring,check:nul-bytes,check:pm-governed-merges,check:published-files,check:skill-compatibility,check:skill-frame-sync,check:skill-identifier-liveness,check:skill-links,check:dts-closure,check:sourcemap-no-sources-content.dist/):check:dual-build-cjs-loads,check:lean-entry-closure. No package source is touched; CI builds and runs them.--ranreconciliation: "44 derived famil(ies) accounted for — 42 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)".check:skill-examplesis not derived and not run: noos:checkblock is touched.Tier and governed readings
dispatch-gates --tier: MANDATORY contract-review tier, bothskills/**paths under clause ① (the published catalog); no one-line exit for this surface. This thread ran at the claim's default model; the seat's in-seat contract review is the owed record.node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-jqd53n: exit 3, GOVERNED, landing tier H (人合). 2 of 3 paths hit the register (skills/**x2); the changeset is not on it. Size +47 / -40, under the 3000 threshold.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5pfprxUTKxctsoaYzF