Repository navigation
docs(skills): the data skill says delete follows the record owner on public_read_write too - #39327
Conversation
… 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>
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaJjkQx5fPE4Fbmoeq Contract reviewServed-tier: PR #39327, card #39217. Read: the card body and its four comments, the PR body, the three-file net diff against ① Derived judgments
② Semver levelOne changeset, ③ Boundary flags
④ Design judgment
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. 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. Nits, left as written; neither moves the head:
Implemented-by: 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>
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaJjkQx5fPE4Fbmoeq Contract reviewServed-tier: 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 Check-runs on this head, all 51 concluded: 30 success, 20 skipped, 1 cancelled, none red. The cancelled one is an earlier run of ① Derived judgments
② Semver levelUnchanged and still right: one changeset, ③ Boundary flags
④ Design judgment
No new must-fix, no new should-fix. One nit, left as written; it does not move the head:
Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaJjkQx5fPE4Fbmoeq 席位核对ACCEPT (zone data-1203 L1) · Head-sha:
|
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd 维护者速读
席位核对ACCEPT · head
|
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Review request: 2026-12-03T13:28Z · |
Requested by Bill · project thread
Fixes #39217
Clause-②: no
Metadata-protocol: none
Skills-docs: updated here
维护者速读
What changes
skills/objectstack-data/rules/security.md, theallowDeletebullet. It saidallowDeleteremoves only rows the caller created, thatwriteScope: 'org'and Modify All widen it only onprivate/public_read, and that onpublic_read_writeneither does. It now states the one rule that runs onmainsince 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):private,public_readandpublic_read_write,allowDeleteremoves only rows the caller owns, and a creator who no longer owns the row cannot delete it;writeScope: 'org'ormodifyAllRecords: truewidens it, and only Modify All reaches a row with no owner;owner_only_deletes);deletepolicy widens either kind of object (the example is unchanged).controlled_by_parentcascade child needs edit on the master row. It now says acontrolled_by_parentdetail needs that by default however it is deleted (a detail declaringwriteRequiresMasterReadasks read instead, whichrules/relationships.mdteaches), 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).modifyAllRecordsno longer carries the warning "not apublic_read_writedelete".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, aprivateobject): its expected answer now opens with the owner rule, andowner_only_deletesleavesmust_contain. Added in review round 1 by claim amendment 7379269906.patchchangeset for@objectstack/skills.Edit on a
public_read_writeobject is unchanged, and the skill text about edit is not touched.Size readings
maindc4a2cd)rules/security.mdNet -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_writeobject 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
maindc4a2cd, with a scratch case added to a copy ofpackages/plugins/plugin-security/src/public-read-write-owner-delete.test.ts(the pin PR #39216 landed:ObjectKernel,ObjectQLPluginover better-sqlite3,SecurityPluginwithmember_default,SharingServicePlugin). The copy is not committed. Each cell was read on thepublic_read_writeobject and on itsprivatetwin, and the two agree in every cell:allowDelete, positionorg_member)public_read_write, 404 onprivate)readScope: 'org',writeScope: 'org'deletepolicystage == 'open'openclosedThe 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, head4033f1fd, re-ran the 15 skill, changeset and ratchet families of the same derived list, all exit 0), the 67 familiesnode scripts/pm/dispatch-gates.mjs --commandsderives from this diff;--ranreconciliation:67 derived famil(ies) accounted for.node scripts/check-skills-token-ratchet.mjs(61 authored bundle file(s) within their ceilings) and its--self-test.dist/of packages this diff does not build):pnpm check:dual-build-cjs-loads. CI owns it.pnpm check:pm-dispatch-gatesdid 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
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.skills/**that taught the creator floor was eval case 38 ofskills/objectstack-data/evals/hooks-security-seeds-datasources.json; it is corrected here (contract review 7379246800, S1). No eval case asks about a delete on apublic_read_writeobject.controlled_by_parentsentence says "by default"; the authored-policy route stays open on an object with no owner field (S2); the Modify All parenthesis is reworded.deleterow policy on the object, the owner of a row it did not create is refused 403 when the policy does not admit that row (policystage == 'open', rowclosed, owner holds onlyallowDelete), onpublic_read_writeand onprivatealike. 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.skill-evals. No eval case touches the changed cell.Verification
Read first:
skills/objectstack-data/rules/security.mdlines 23 to 37, then the row note inscripts/check-skills-token-ratchet.mjs.Two-minute check:
node scripts/check-skills-token-ratchet.mjsprints61 authored bundle file(s) within their ceilings, andwc -c skills/objectstack-data/rules/security.mdprints 19861.Generated by Claude Code