Skip to content

docs(skills): the data skill says delete follows the record owner on public_read_write too - #39327

Merged
os-zhuang merged 2 commits into
mainfrom
claude/project-thread-j0hd2u
Dec 3, 2026
Merged

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

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

Fixes #39217

Clause-②: no
Metadata-protocol: none
Skills-docs: updated here

维护者速读

  • 用户能看到什么变化:数据技能里讲「谁能删记录」的那一条改了。现在写的是:有负责人字段的对象上,不管是私有、公开只读还是公开读写,删除都跟着记录负责人走;负责人的上级或有「全部修改」权限的人也能删;创建了记录但已不再负责的人不能删。
  • 为什么做:PR fix(sharing)!: delete on an owned public_read_write object follows the record's owner #39216 已按你的裁决「删除统一跟着负责人走」改了平台行为,技能里还写着「公开读写对象只有创建人能删、全部修改也不放宽」,会把 AI 教错。
  • 出错会怎样:只是技能文字,没有运行时行为变化;写错了撤回这一个改动即可。
  • 要你做什么:这是对外发布的技能,需要你批准。技能 token 上限没有抬,反而降了 1 个。

What changes

  • skills/objectstack-data/rules/security.md, the allowDelete bullet. It said allowDelete removes only rows the caller created, that writeScope: 'org' and Modify All widen it only on private / public_read, and that on public_read_write neither does. It now states the one rule that runs on main since PR fix(sharing)!: delete on an owned public_read_write object follows the record's owner #39216 (ruling of record 7288570890, option C, with the three follow-up rulings 7363759845, 7363783625 and 7364954150, all built in that PR):
    • on private, public_read and public_read_write, allowDelete removes only rows the caller owns, and a creator who no longer owns the row cannot delete it;
    • writeScope: 'org' or modifyAllRecords: true widens it, and only Modify All reaches a row with no owner;
    • an object with no owner field keeps the creator rule (owner_only_deletes);
    • an authored delete policy widens either kind of object (the example is unchanged).
  • Same bullet, the cascade sentence. It said a controlled_by_parent cascade child needs edit on the master row. It now says a controlled_by_parent detail needs that by default however it is deleted (a detail declaring writeRequiresMasterRead asks read instead, which rules/relationships.md teaches), which covers the detail deleted directly (the should-fix the contract review of PR docs(skills): the data skill says where Modify All lifts the delete floor, and that hiding a field keeps the object read #39140 routed to this card).
  • Same file, the Three axes gloss. modifyAllRecords no longer carries the warning "not a public_read_write delete".
  • scripts/check-skills-token-ratchet.mjs: the file's row moves 4967 to 4966, pinned at the measurement, with its note.
  • skills/objectstack-data/evals/hooks-security-seeds-datasources.json, case 38 (the eval case of this bullet, a private object): its expected answer now opens with the owner rule, and owner_only_deletes leaves must_contain. Added in review round 1 by claim amendment 7379269906.
  • One patch changeset for @objectstack/skills.

Edit on a public_read_write object is unchanged, and the skill text about edit is not touched.

Size readings

before (main dc4a2cd) after
rules/security.md 19868 bytes, 4967 tokens 19861 bytes, 4966 tokens

Net -7 bytes, which is -1 token. The card's acceptance asks for a net token change of at most 0.

Why

Ruling C on #38517, the maintainer's words verbatim: 「删除统一跟着负责人走」. PR #39216 built it and named this card as its skills follow-up. Until this lands the published skill tells an author that a Modify All holder is refused a delete on a public_read_write object and that the creator keeps it, and both are now false on an object with an owner field.

Tests

No test changes: the diff is skill text, one eval case, a ratchet row and a changeset.

What the new sentences say was read off the real stack on main dc4a2cd, with a scratch case added to a copy of packages/plugins/plugin-security/src/public-read-write-owner-delete.test.ts (the pin PR #39216 landed: ObjectKernel, ObjectQLPlugin over better-sqlite3, SecurityPlugin with member_default, SharingServicePlugin). The copy is not committed. Each cell was read on the public_read_write object and on its private twin, and the two agree in every cell:

caller (all hold allowDelete, position org_member) row result on both models
owner who did not create the row its own deleted
creator who no longer owns the row another user's refused (403 on public_read_write, 404 on private)
stranger with readScope: 'org', writeScope: 'org' another user's deleted
the same stranger a row with no owner refused 403
stranger with an authored delete policy stage == 'open' another user's, open deleted
the same stranger another user's, closed refused 403

The committed pin covers the rest the bullet names: a Modify All holder deletes an ownerless row, and an object with no owner column keeps the creator floor.

Local run at head 3cbf63ed (review round 1, head 4033f1fd, re-ran the 15 skill, changeset and ratchet families of the same derived list, all exit 0), the 67 families node scripts/pm/dispatch-gates.mjs --commands derives from this diff; --ran reconciliation: 67 derived famil(ies) accounted for.

  • 65 exited 0, among them node scripts/check-skills-token-ratchet.mjs (61 authored bundle file(s) within their ceilings) and its --self-test.
  • NOT MEASURED, 1 family, exit 3 (it reads built dist/ of packages this diff does not build): pnpm check:dual-build-cjs-loads. CI owns it.
  • NOT MEASURED, 1 family: pnpm check:pm-dispatch-gates did not finish inside a 240 s local limit (exit 124). CI owns it.

Both are derived only because the diff touches a file under scripts/ (the ratchet row). The first 55 families ran on the tree before the changeset was added and the 12 the changeset adds ran after it; the two skill files are byte-identical between the two runs.

Acceptance notes

  • Card acceptance, first line: "The lines above state the C rule; no line teaches the creator floor for delete on public_read_write." The gloss, the bullet and the cascade sentence are the three places note 7349345438 lists, and all three are rewritten. The only sentence that still names the creator rule limits it to an object with no owner field.
  • Card acceptance, second line: "Net token change ≤ 0 against the ratchet row." The row goes down by 1.
  • The one other place under skills/** that taught the creator floor was eval case 38 of skills/objectstack-data/evals/hooks-security-seeds-datasources.json; it is corrected here (contract review 7379246800, S1). No eval case asks about a delete on a public_read_write object.
  • Review round 1 also closed: the controlled_by_parent sentence says "by default"; the authored-policy route stays open on an object with no owner field (S2); the Modify All parenthesis is reworded.
  • Measured and not taught here: with an authored delete row policy on the object, the owner of a row it did not create is refused 403 when the policy does not admit that row (policy stage == 'open', row closed, owner holds only allowDelete), on public_read_write and on private alike. So a policy written to widen delete also takes the delete away from owners outside it. Same scratch run as the table above. The zone decides whether this is a card.
  • Not run: a paired model probe of the old and new text, and skill-evals. No eval case touches the changed cell.

Verification

Read first: skills/objectstack-data/rules/security.md lines 23 to 37, then the row note in scripts/check-skills-token-ratchet.mjs.

Two-minute check: node scripts/check-skills-token-ratchet.mjs prints 61 authored bundle file(s) within their ceilings, and wc -c skills/objectstack-data/rules/security.md prints 19861.


Generated by Claude Code

… owner on public_read_write

The delete bullet of rules/security.md still taught the creator floor and that
Modify All does not widen a public_read_write delete. Since the ruling of
record 7288570890 was built, delete on an owned public_read_write object
follows the owner, a write depth above the owner, or Modify All, as on private.
The bullet states that one rule, keeps the creator floor for an object with no
owner field, and says a controlled_by_parent detail needs edit on its master
however it is deleted. The Three axes gloss loses its exception. The ratchet
row moves 4967 -> 4966. One patch changeset for the skills bundle.

Claude-Session: https://claude.ai/code/session_01Utp6CZwqQ1RFdmgYVfLL8G
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 3, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CaJjkQx5fPE4Fbmoeq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 3cbf63edf2c1b499807ee68056e8881e0cb48439
Local-runs: none
Scope: skills/objectstack-data/rules/security.md + scripts/check-skills-token-ratchet.mjs
Security-touching: yes

PR #39327, card #39217. Read: the card body and its four comments, the PR body, the three-file net diff against main (merge-base dc4a2cd; main has since moved to 6b2e596 without touching any of the three paths), and the 47 check-runs on this head (29 success, 18 skipped, none red, none pending). Cited code was read on origin/main, never built or run. Security-touching: yes is meant: every changed hunk of the skill file teaches who may delete a record.

① Derived judgments

  • Published accept set: unchanged. No schema, no export, no runtime path is in the diff; nothing a metadata author can write is added, refused or re-read. Right.
  • Published surface that does move: the text of one hand-authored bundle file, skills/objectstack-data/rules/security.md, in three places (the Three axes gloss, the allowDelete bullet, the cascade sentence). Right that it publishes: @objectstack/skills ships the file.
  • What the bullet now teaches beyond the card's letter: the base rule for private and public_read also changes from "rows the caller created" to "rows the caller owns". The card names only public_read_write. The wider statement is right on main (the private twin in packages/plugins/plugin-security/src/public-read-write-owner-delete.test.ts answers every cell as the public_read_write object does), and one rule cannot be stated without it. It is also what separates the bullet from its eval case: S1 below.
  • Ratchet row skills/objectstack-data/rules/security.md 4967 → 4966: the shrink direction, pinned at the measurement. The file is 19864 bytes at this head and 19868 on main; ceil(19864 / 4) is 4966. Right.
  • Card acceptance, line 2 (net token change at most 0): met, minus 1.
  • Card acceptance, line 1 (the lines state the C rule; no line teaches the creator floor for delete on public_read_write): met in the skill file. The one remaining creator sentence is scoped to an object with no owner field, which ruling 7288570890 point 2 leaves unchanged.

② Semver level

One changeset, '@objectstack/skills': patch, with Clause-②: no and Metadata-protocol: none in both the changeset and the PR body. The diff publishes corrected prose and nothing an author can write, so the kind is none and none takes patch (AGENTS.md, Post-Task Checklist step 3). No arm is owed: the behaviour change, with its narrowing, shipped in PR #39216 under its own declaration; this diff only describes it. Check Changeset concluded success on this head. The level and both lines are right.

③ Boundary flags

  • open_questions: none raised.
  • Deviation, the patch changeset: right, see ②.
  • Deviation, gate families run outside the verify lock, and the two families the dev could not measure locally (pnpm check:dual-build-cjs-loads, pnpm check:pm-dispatch-gates): answered by the head's check-runs, which are all green or skipped; Lint · PM dispatch-gates and Build Core concluded success.
  • Deviation, a local commit reworded before the first push: no effect on the reviewed tree; the branch carries one commit.
  • Out-of-scope observation 1, eval case 38 in skills/objectstack-data/evals/hooks-security-seeds-datasources.json: not out of scope for this review. It is the eval case of the bullet this PR rewrites. Graded as S1 in ④.
  • Out-of-scope finding 2, an authored delete policy also refuses an owner outside it: this is the composition security-plugin-rls-filter.ts documents at its plugin-security: on a by-id write, a sharing allow drops owner_only_writes out of the OR of permissive policies, so an owner-creator holding an authored widener is refused on their own row #35917 note on main (where an authored term stands in Layer 1's OR the platform floor stays one term of it, and the authored term bounds every row the floor does not admit), so it predates this PR and no sentence in this diff says the contrary ("removes only rows the caller owns" is an upper bound, and "so does an authored delete row policy" is true of the rows the policy admits). Whether an owner's delete under ruling C should survive beside an authored delete policy is a platform question for the maintainer, not a wording question. Escalated to the zone as a card; the skill follows whatever that card settles.
  • Not run, declared by the dev: skill-evals and a paired model probe. With S1 open this matters: nothing measured how the new text answers case 38.
  • The PR body's statement that the eval file "is held by another claim": not verifiable from the inputs of this review. Neither the card thread nor the tree names that claim.
  • SQL push-down: no query, no id materialisation and no in-app join in the diff. Nothing to find.
  • Author: the PR's user.login is objectstack-fleet[bot]; no relay-bypass note is owed.

④ Design judgment

skills/objectstack-data/rules/security.md, sentence by sentence against main:

  • Gloss, "viewAllRecords / modifyAllRecords (bypass sharing)" without the public_read_write delete warning: holds. SharingService.checkDelete no longer abstains on a declared public_read_write object with an owner column (ownershipDecidesDeleteOnOpenWrites, writeOwdForVerb), so the Modify All step answers allow there.
  • "allowDelete removes only rows the caller owns, on private, public_read and public_read_write": holds. writeVerdicts step 5 is ownership at write depth, default own; an unset model on a custom object resolves to private (effectiveSharingModel), so the three named models cover every owned object that is not a controlled_by_parent detail.
  • "a creator who no longer owns it cannot": holds. checkDelete answers deny, and the pin refuses it on both twins.
  • "no edit share widens it": holds. writeVerdicts step 6 is update only (ADR-0111 D3).
  • "writeScope: 'org' (or modifyAllRecords: true, alone on an ownerless row) does": holds. matchesOwnerScope refuses a row with no owner before it reads the scope; only the Modify All step reaches it. The pin's "a row with no owner is deleted only by a Modify All holder" agrees.
  • "so does an authored delete row policy": holds for the rows the policy admits (ruling 7288570890 point 2: such policies "still reach the compiler and still widen").
  • "No owner field: only the creator deletes (owner_only_deletes)": holds for the floor, for depth and for Modify All (checkDelete abstains on !hasOwnerField, so nothing replaces the floor). It does not hold for the authored policy: S2.
  • "Each cascade child needs its own allowDelete and row rule": holds; the pin refuses the whole cascade when one child is another user's.
  • "a controlled_by_parent detail, however deleted, edit on its master row": holds as the default. The master gate asks update on the master whatever the detail's verb (masterGateCoversOperation, assertMasterRowEditable), on a direct by-id delete as on a cascade leg, which is the case note 7349345438 routed here. The two opt-ins and the optional master are taught in rules/relationships.md and are not restated here, as before.

scripts/check-skills-token-ratchet.mjs (the gate that enforces the bundle's token ceiling on the hits file): the row reads 4966, equal to the measurement, and its note describes the three text changes as the diff makes them. Agrees with the contract. The note inherits S2's reading ("keeps the creator floor for an object with no owner field") and follows whatever wording closes S2.

No must-fix. Two findings owe a delta review of their fix.

S1 (should-fix) — the bullet's own eval case now contradicts it, and nothing in the tree carries the correction.
Case 38 of skills/objectstack-data/evals/hooks-security-seeds-datasources.json landed with this bullet in PR #37762 (its changeset: "One eval case per rule"). It asks about a private object. Its expected answer opens "allowDelete alone deletes only rows the caller created", which the rewritten bullet denies in so many words and which main denies in both directions (on the private twin the owner who did not create the row deletes it, and the creator who no longer owns it is refused). It also asserts must_contain: owner_only_deletes, a token the rewritten bullet now attaches only to an object with no owner field, so an answer drawn from the new text for an owned private object has no reason to carry it. The skill is the right side of the disagreement and the eval is stale, but at this head the bundle teaches one rule and is graded against another, and the next eval round reads that as a regression of the skill. The PR body's Skills-docs: updated here line says, by its definition in the claim template, that the evals exercise what the diff teaches; they do not. The claim's File-surface line allows the widening once the file is named in the report, and it was named. Closes on either: case 38 corrected in this PR (the opening sentence to the owner rule, owner_only_deletes out of must_contain), or the card or PR that carries that correction named by number on this PR, with the body line changed to its follow-up form.

S2 (should-fix) — the authored-policy route lost "on any object", and the sentence added after it reads as closing that route where it is the only one.
main taught "an authored delete row policy does, on any object". The head teaches "so does an authored delete row policy: …. No owner field: only the creator deletes (owner_only_deletes)." On an object with no owner field an authored delete policy still widens: checkDelete abstains, the floor stays, and Layer 1 is the OR of the floor and the authored term, so a non-creator deletes a row the policy admits; ruling 7288570890 point 2 says so for exactly the objects it leaves unchanged. Note 7349345438 asked for the phrase to be narrowed for one case, a controlled_by_parent detail deleted directly, and the new cascade sentence already covers that case on its own. Dropping the phrase also dropped the no-owner-field case, and "only the creator deletes" now tells the author of an ownership: 'org' or 'none' object that nothing widens delete there, when the policy is the one thing that does. Closes on wording that keeps the policy route open without an owner field (the no-owner sentence placed before the policy clause, or "only the creator, or such a policy"), inside the ratchet row.

Nits, left as written; neither moves the head:

  • N1 (nit): "(or modifyAllRecords: true, alone on an ownerless row)" parses two ways, and both are true.
  • N2 (nit): the bullet's only depth example is writeScope: 'org'; the card's "a manager above the owner" is carried by § Access depth and SKILL.md. Accepted.

Implemented-by: claude/project-thread-j0hd2u
Reviewed-by: session_01Utp6CaJjkQx5fPE4Fbmoeq

VERDICT: PASS

The controlled_by_parent clause says "by default" (a detail declaring
writeRequiresMasterRead asks read on its master). The no-owner-field sentence
moves ahead of the authored delete policy, which widens on both kinds of
object. Modify All is the one route to an ownerless row. The bullet's eval
case expects the owner rule and no longer requires owner_only_deletes.
security.md 19864 -> 19861 bytes; the ratchet row stays 4966.

Claude-Session: https://claude.ai/code/session_01Utp6CZwqQ1RFdmgYVfLL8G
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CaJjkQx5fPE4Fbmoeq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 4033f1fdafa07917ee93aa6ee876110e0ce2226b
Local-runs: none
Scope: skills/objectstack-data/evals/hooks-security-seeds-datasources.json, skills/objectstack-data/rules/security.md + scripts/check-skills-token-ratchet.mjs
Security-touching: yes

DELTA review from head 3cbf63e (record 7379246800: PASS, should-fix S1 and S2, nits N1 and N2) to this head, PR #39327, card #39217. One commit on top of the reviewed head, four files, 13 insertions and 14 deletions. Read: that commit's diff, the PR body as it now stands, claim amendment 7379269906 on the card, and the check-runs on this head. Cited code was read on origin/main (now ccc0838; none of the PR's four paths has moved there since the merge-base), never built or run. Security-touching: yes is meant, as before.

Check-runs on this head, all 51 concluded: 30 success, 20 skipped, 1 cancelled, none red. The cancelled one is an earlier run of PR-body guards, superseded 2 seconds later by a run of the same check that concluded success.

① Derived judgments

  • Published accept set: still unchanged. The delta adds no schema, export or runtime path.
  • The delta widens the PR's file list by one path under skills/**, the eval fixture skills/objectstack-data/evals/hooks-security-seeds-datasources.json (case 38 only), under claim amendment 7379269906. reviewFace now returns it as a second hits path; it is on the Scope: line and judged in ④. Right that it carries no ceiling: the token ratchet measures eval fixtures and ratchets none of them.
  • Ratchet row skills/objectstack-data/rules/security.md: stays 4966. The file is 19861 bytes at this head (19864 at the reviewed head, 19868 on main), and ceil(19861 / 4) is 4966, so the row is still pinned at the measurement. Right.
  • Card acceptance: both lines still met. Net token change against main is minus 1; no line under skills/** now teaches the creator floor for an object with an owner field, the eval included.

② Semver level

Unchanged and still right: one changeset, '@objectstack/skills': patch, Clause-②: no, Metadata-protocol: none. The delta edits the changeset's prose only (the no-owner-field policy route, "by default", the eval case, 19861 bytes); each of the four statements matches the tree. Both Check Changeset runs on this head concluded success.

③ Boundary flags

  • No new dev flag and no open_questions entry came with the delta; the card carries no second report, only the claim amendment.
  • Claim amendment 7379269906: the eval file is now inside the claim, for case 38's opening sentence and its must_contain token. The diff touches exactly those two lines of that file. The amendment names an overlap with a measurement hold on cases 22 and 24 of the same file; case 38 is a different case and the two lines changed are inside it.
  • The PR body's earlier statement that the eval file was held by another claim is gone; the body now says the case is corrected here, which the tree confirms.
  • Carried from record 7379246800, unchanged by the delta and still with the zone: whether an owner's delete should survive beside an authored delete policy (the plugin-security: on a by-id write, a sharing allow drops owner_only_writes out of the OR of permissive policies, so an owner-creator holding an authored widener is refused on their own row #35917 composition on main). No sentence of the delta says the contrary.
  • Still not run, as the dev declares: skill-evals and a paired model probe. Case 38's expected answer was judged here by reading, not by a model run.
  • SQL push-down: no query in the delta. Nothing to find.
  • Author: the PR's user.login is objectstack-fleet[bot].

④ Design judgment

skills/objectstack-data/rules/security.md, the sentences the delta changed, against main:

  • "⚠️ not a creator who no longer owns it; no edit share widens it": same two statements as the reviewed head, reworded. Both hold (checkDelete answers deny for the former creator; writeVerdicts has no share step for delete).
  • "{ allowRead: true, allowDelete: true, writeScope: 'org' } or modifyAllRecords: true (alone reaches an ownerless row) does": holds, and the parenthesis now reads one way. matchesOwnerScope refuses a row with no owner before it reads the scope, so only the Modify All step admits it.
  • "No owner field: only the creator (owner_only_deletes). An authored delete policy widens either:" holds. The no-owner sentence now comes before the policy clause, and "either" spans the owned models and the no-owner-field object, which is what main does: checkDelete abstains without an owner field, the floor stays, and an authored term ORs beside it in Layer 1. A controlled_by_parent detail is not swept into "either": the next sentence states its rule for every way it is deleted.
  • "A cascade child needs its own allowDelete and row rule; a controlled_by_parent detail, however deleted, by default edit on its master row": holds, and "by default" now agrees word for word with rules/relationships.md ("by default, every write needs edit on the master"), which teaches the two opt-ins and the optional master.

skills/objectstack-data/evals/hooks-security-seeds-datasources.json, case 38, against its unchanged prompt (a private crm_contact, a set with readScope: 'org' and allowDelete, a 403 on a contact an admin imported):

  • "allowDelete alone deletes only rows the caller owns (owner_id)": the rewritten bullet's first sentence, and what main runs on a private object.
  • "the imported contacts belong to the admin": holds for the import the prompt describes. The import runner writes under the importing caller's own context (packages/core/src/utils/import-runner.ts, writeCtx), and the authorization middleware stamps an empty owner to the acting user (packages/plugins/plugin-security/src/owner-anchor-stamp.ts, step 3.5). It also explains the prompt's 403 rather than a 404: the SDR reads the row and does not own it.
  • "readScope: 'org' widens reads, never deletes" and "On an object with an owner field a delete is allowed by owning the row, a write depth of org, or Modify All": hold for an owned row, which is the scenario's row.
  • The grant and the closing sentence about shares are unchanged from main.
  • must_contain is now writeScope: 'org' and allowDelete: true. Both tokens stand in the rewritten bullet verbatim, and the expected answer carries both. owner_only_deletes is gone from the assertion and from the expected answer, matching the bullet, which names that policy only for an object with no owner field. The file parses; it holds 38 cases.

scripts/check-skills-token-ratchet.mjs: the row is unchanged at 4966; its note now says the creator floor is kept for an object with no owner field "where such a policy still widens" and gives 19861 bytes. Both agree with the hits file at this head.

  • S1: closed. Case 38 is corrected in this PR, on the first of the two closing conditions: its expected answer opens with the owner rule and owner_only_deletes is out of must_contain. The skill and its eval case now teach one rule.
  • S2: closed. The bullet keeps the authored-policy route open without an owner field ("widens either"), inside the ratchet row, and the ratchet note and the changeset say the same.
  • N1: resolved by the reworded parenthesis.
  • N2: unchanged, accepted as before.

No new must-fix, no new should-fix.

One nit, left as written; it does not move the head:

  • N3 (nit): case 38's prompt asks that SDRs delete "any contact in the organization", and its expected answer leads with writeScope: 'org', which does not reach a contact with no owner; the bullet now says only Modify All does. The expected answer already offers modifyAllRecords: true as the alternative, and the scenario's rows are owned, so the case holds. The prompt and that token are as they were on main.

Implemented-by: claude/project-thread-j0hd2u
Reviewed-by: session_01Utp6CaJjkQx5fPE4Fbmoeq

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CaJjkQx5fPE4Fbmoeq

席位核对

ACCEPT (zone data-1203 L1) · Head-sha: 4033f1fdafa07917ee93aa6ee876110e0ce2226b · 2026-12-03T13:26Z

  • 形态: one PR, Fixes #39217, three surfaces — skills/objectstack-data/rules/security.md, eval case 38 of skills/objectstack-data/evals/hooks-security-seeds-datasources.json (claim amendment 7379269906), the objectstack-data ratchet row; patch changeset for @objectstack/skills. Clause-②: no, Metadata-protocol: none, Skills-docs: updated here.
  • 前提实测: rewritten sentences read against origin/main by an isolated L1 (two rounds): owner / write depth / Modify All delete on private, public_read, public_read_write (sharing-service.ts:356, 376, 996, 1458); creator-not-owner 403 (sharing-plugin.ts:1674); no owner field keeps the creator rule and an authored delete policy still widens there (security-plugin-rls-filter.ts:399–445); controlled_by_parent needs edit on the master by default, read under writeRequiresMasterRead (security-plugin-cbp-write-gate.ts:965, matches relationships.md:65).
  • 门禁 check-runs: head 4033f1f, 30 success, 20 skipped, 1 cancelled PR-body guards superseded by a later success of the same check; none red.
  • 接受的偏差: L2 N2 and N3 nits left (accepted in 7379819983). Ratchet row 4966 = ceil(19861/4), net -1 token against 4967.
  • 范围外去向: authored delete policy refuses the owner of a row they did not create → filed Sharing: an authored delete policy refuses the owner of a row they did not create (ownership adds no rows beside the policy), against ruling C #39339 (finding, p2). No other skills file teaches the creator floor for public_read_write delete.
  • 落地条款: Tier H (skills/**). Contract review PASS at this head: 7379819983 (delta, S1/S2 closed; first round 7379246800). Owed: seat ACCEPT + handoff to the approver; the seat lands after approval.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

维护者速读

席位核对

ACCEPT · head 4033f1fdafa07917ee93aa6ee876110e0ce2226b · repo:objectstack@os-bill

  1. Shape: 4 files, +34/−13:
    • skills/objectstack-data/rules/security.md.
    • Eval case 38 in hooks-security-seeds-datasources.json (claim amendment 7379269906).
    • The objectstack-data row in scripts/check-skills-token-ratchet.mjs: 4967 → 4966.
    • One changeset.
  2. Premise measured: per zone ACCEPT 7379838106, the rewritten sentences match main. That covers owner, write depth and Modify All delete across the three sharing models (sharing-service.ts 356, 376, 996, 1458), and the creator-not-owner 403 (sharing-plugin.ts 1674).
  3. Gates:
    • Check-runs at this head: 30 success, 20 skipped, none red. One cancelled run was superseded by a green run of the same check.
    • Contract review at CONTRACT_REVIEW_TIER: PASS 7379246800, then delta PASS 7379819983 at this head with S1 and S2 closed.
  4. Accepted deviations: L2 nits N2 and N3.
  5. Out of scope: Sharing: an authored delete policy refuses the owner of a row they did not create (ownership adds no rows beside the policy), against ruling C #39339. Skills-docs: updated here.
  6. Landing: governed, 47 lines. Review is requested from os-zhuang; the seat lands after approval. On merge, Data skill: security.md still teaches the creator floor for public_read_write delete; rewrite to "delete follows the owner" once PR #39216 lands (ruling C on #38517) #39217 closes.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

Review request: 2026-12-03T13:28Z · os-zhuang, please approve at head 4033f1fdafa07917ee93aa6ee876110e0ce2226b. Seat ACCEPT above; contract review delta PASS 7379819983 at this head. Governed as skills text. The seat lands it after your approval.

@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 Dec 3, 2026
@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 3, 2026 13:29
@os-zhuang
os-zhuang marked this pull request as ready for review December 3, 2026 14:55
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 3, 2026
@os-zhuang
os-zhuang removed this pull request from the merge queue due to a manual request Dec 3, 2026
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 534a61d Dec 3, 2026
58 of 59 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-j0hd2u branch December 3, 2026 15:35
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 3, 2026
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 size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants