Repository navigation
docs(sharing): list the tri-state write verdicts and the set form; correct the per-row cost in the 35802 release note - #38007
Conversation
…rrect the per-row cost in the 35802 release note The services.sharing page now lists checkEdit / checkDelete (allow / abstain / deny), their canEdit / canDelete projection, and the optional set form checkEditMany / checkDeleteMany with the per-record fallback. The 35802 note (shipped in 19.0.0-next.0) stated a per-row cost for a predicate write that #35934 made stale for the bundled sharing service. Its cost paragraph is amended in place, in plugin-security's CHANGELOG and in the consumed .changeset/pre/ copy that the stable cut re-applies. Fixes #37563 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVoRLoKr6LLz2gnWG3
📓 Docs Drift Check
What this run could not see
Coarse fallback — 18 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head 5502338 · card #37563 · area s2-data · 2026-11-27T15:57ZL1 checklist (no review face on this file list past the declaration fallback: this record is the review of record)
Tier: S. Landing: ready and auto-merge in this stroke. |
Requested by Sales · project thread
Fixes #37563
Clause-②: no
Metadata-protocol: none
维护者速读
checkEdit/checkDelete(allow / abstain / deny)、它们和canEdit/canDelete的关系,以及可选的集合形式checkEditMany/checkDeleteMany和缺省时逐条回退;已发布的 35802 发版说明里那段「每行成本」原位改正。What changes
content/docs/kernel/runtime-services/sharing-service.mdx: the method list gainscheckEdit/checkDeleteand the optionalcheckEditMany?/checkDeleteMany?; a new section "The write verdicts: tri-state, two-state and set form" states the three verdicts and their bases, thatcanEdit/canDeleteare the not-denyprojection, and the set form's terms (one verdict per id in order, same bases and verb boundary, reads grow per chunk, 1,000 ids per chunk in the bundledSharingService, feature-detected with a per-record fallback, fail-closed per chunk). Returns lists the new return types. Every sentence is taken frompackages/spec/src/contracts/sharing-service.ts(theSharingWriteVerdictandISharingServicedoc blocks),packages/plugins/plugin-sharing/src/sharing-service.ts(WRITE_VERDICT_CHUNK = 1000, the abstain arms) andpackages/plugins/plugin-security/src/security-plugin-sharing-verdicts.ts(thetypeof … === 'function'detection and the batch of 25).@objectstack/plugin-security19.0.0-next.0: its cost paragraph is amended in place. It now states the set-form cost the bundled sharing service has since sharing: a predicate write asks one write verdict per candidate row, so a member bulk update over 10,000 rows owned by others costs ~5 s for no extra row; give ISharingService a bulk write-scope and verdict contract #35934 (chunks of 1,000; on 10,000 rows 24 / 13 / 14 store reads, the figures measured in the 35934 note) and keeps the old per-row measurements as the cost of a sharing service without the set form. Nothing else in the note moves.DELIBERATE CORRECTION
This PR rewrites somebody else's release note, in two places, with the same text:
packages/plugins/plugin-security/CHANGELOG.md, section19.0.0-next.0, the 35802 entry — AGENTS.md Documentation Guardrails row forpackages/*/CHANGELOG.md: a factual error in a released entry is amended in that entry in a dedicated docs-only PR..changeset/pre/35802-predicate-write-floor-deferral.md, the consumed prerelease copy. The stable cut re-applies every consumed changeset (scripts/changeset-changelog.mjs, "The stable cut folds its prerelease sections"), so without this the 19.0.0 section would print the stale paragraph again, and the fold would keep the amended next.0 section beside it with a warning. Changing both keeps them byte-equal, so the fold drops the prerelease section as usual.The paragraph replaced: "The by-id decision costs one sharing verdict, a few store reads, for each matched row the floor does not already admit. Measured on SQLite in memory:". The paragraph put in its place begins "The by-id decision is one sharing verdict for each matched row the floor does not already admit. The bundled sharing service (
@objectstack/plugin-sharing) answers all of them through its set form…", followed by "A sharing service that does not implement the set form is askedcheckEdit/checkDeleteonce per row, 25 at a time, with the same answers, and then each verdict costs a few store reads. Measured on SQLite in memory with the per-row form:" ahead of the unchanged bullets.Because the PR changes an existing changeset and adds none,
Check Changesetis red by design (route 0, ruling D on #18375); it carries noskip-changesetlabel.Verification
git diff).node_modules.check:docs-audit-scope(dependency-free) passes. CI runs the rest.Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses. (no code)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/. — one deliberate hand edit of a released CHANGELOG entry, the docs-only route AGENTS.md prescribes for a factual error.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgVoRLoKr6LLz2gnWG3