Repository navigation
docs(skills): objectstack-data security.md teaches that a package's sharing rule resolves its queue recipient from its package - #31777
Merged
Conversation
…esolving from its package Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRBKizw1wwxaE5fdqj
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRBKizw1wwxaE5fdqj
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRBKizw1wwxaE5fdqj
…et restored (36 B over ceiling) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRBKizw1wwxaE5fdqj
…and definePermissionSet comment; changeset lists every cut Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRBKizw1wwxaE5fdqj
Contributor
Author
|
domain:skills#2 · zhuangjianguo · session_01QsR2jT34CXs5fCn3BDirZw 维护者速读
席位核对Head-sha:
|
os-zhuang
marked this pull request as ready for review
November 9, 2026 03:52
os-zhuang
enabled auto-merge
November 9, 2026 03:52
This was referenced Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Steedos · project thread
Fixes #31735
Clause-②: no
Metadata-protocol: none
维护者速读
objectstack-data技能rules/security.md补了一条:软件包里声明的共享规则把队列当接收方时,队列名先找本包的队列,再找它声明依赖的包(加sys)里唯一的那个;都没有包声明时才落到组织自建的sys_queue行。三种拒绝各带例子和引擎的拒绝码:范围外outside-closure(含只有环境项持有);两个依赖都持有ambiguous-in-closure;规则能找到的那个之外还有一个非依赖包持有ambiguous-in-environment。eval 加了第 18 个用例。skills/objectstack-data/rules/security.md第 169–175 行新段落;同文件其余删减;evals/hooks-security-seeds-datasources.json的 id 18。node scripts/check-skills-token-ratchet.mjs,预期 security.md 一行显示 3764 tokens、ceiling 3768,退出 0。skills/**)。What changes
skills/objectstack-data/rules/security.mdgains one bullet under the membership-key "Choose by what the rows are keyed on" bullet, the one that sends a team's records to a sharing rule withsharedWith: { type: 'queue', value: QUEUE_NAME }. It teaches what the merged engine does (packages/plugins/plugin-sharing/src/sharing-rule-service.tsassertQueueRecipientReachable,packages/objectql/src/package-scoped-resolver.tsresolvePackageScopedName):dependenciesclosure plussys, else, when no package or environment item declares the name, an organization'ssys_queuerow (the resolver's not-found passes through to the queue service);outside-closure(resolver L198, L408): the only holder is a package outside the closure, or an environment-authored item (D3 (a)); example: only a non-dependency holdssupport;ambiguous-in-closure(resolver L194, L399): two dependencies hold the name, and step 2 refuses before anything else is asked;ambiguous-in-environment(resolver L196, L360): the holder the rule reaches (its own package or one dependency) and a non-dependency both hold it; the package check passes, then the queue service, which has no caller package, refuses a name two packages hold (package-scoped-declarations.tsresolveDeclaredName; PR feat(plugin-sharing)!: declared sharing rules, queues and assignment rules resolve on (package, name) #31728's acceptance note, carrier spec: IOwnershipQueueService reads take the caller package, so a queue recipient resolves by D3 from its rule (ADR-0150, follow-up of E4) #31734);PackageScopedNameRefusedError,code = 'RESOURCE_CONFLICT'(package-scoped-declarations.tsL181), warned once (reportRefusedDeclaration), and each recompute keeps the rule's standing grants (sharing-rule-service.tsL1511–1527).(PermissionSetSchema.rowLevelSecurity)after "permission set / profile" (41 B). Survivor: the same sentence namesrowLevelSecurityon a permission set.=/IN (...)predicate still compiles through a deprecated bridge (98 B). Not a restatement: the file now teaches canonical CEL only.IN)" notes in thecurrent_user.*table (42 B). Survivor:field in current_user.ARRAYin the predicate list above.isDefaultsets)" after theeveryonebaseline in the Positions section (19 B). Survivor: theisDefault: truebullet that defines it.tenancycomment "not a tenant object → Layer 0 contributes nothing" (55 B). Survivor: the blockquote below it.requiredPermissionsparagraph (AND-gate, strictest-wins).@objectstack/plugin-security)" aftersys_user_permission_set(33 B), a package pointer an author never writes (seat ruling A).(definePermissionSet)example comment and the field-lock recipe docs link.skills/objectstack-data/evals/hooks-security-seeds-datasources.jsongains case 18, placed right after the queue case 8:com.acme.crmshares escalated cases withsupport_tier2, the queuecom.acme.helpdeskships.must_contain:type: 'queue',dependencies,outside-closure;must_not_contain:name: 'support_tier2'(redeclaring the queue in the rule's package makes a second holder, refused too). Ids 1–17 keep their numbers because changesets cite them.SKILL.md§ Ownership queues (L425) read, not edited: no sentence there is false after E4 (it names the queue, the claim and the move; it says nothing about how a rule resolves the name).'@objectstack/skills': patch.Tests
Docs and eval only; no runtime code moved, so no package suite is owed.
Acceptance notes
ui/scripts/check-skill-eval-tokens.mjs(exit 0) readsskills/objectui/evalsonly, so it does not grade case 18. Its threemust_containtokens were checked by hand as whole tokens of the bundle: all three are inrules/security.md,dependenciesalso inreferences/_index.md.check:skill-examplesis not in the derived set and was not run: noos:checkblock was touched (the one edited code block, the admin-only recipe, is unmarked).outside-closureonly, so the rework's split of the two ambiguity codes leaves it unchanged.Verification
Readings at head
bdbe806f(objectstack-ai/objectstack;origin/mainc2bb879f):skills/objectstack-data/rules/security.mdskills/objectstack-data/evals/hooks-security-seeds-datasources.jsonskills/**/SKILL.mdskills/objectstack-data/**/*.mdDerived gates (dispatch-gates --commands, 44 families)
43 exit 0.
pnpm check:dual-build-cjs-loadsexits 3 (PREREQUISITE NOT MET, needs every package's dist): NOT MEASURED, left to CI.pnpm check:lean-entry-closureexited 3 first and 0 after building@objectstack/objectql.dispatch-gates --ran: 44 derived, 43 run, 1 NOT-MEASURED, 0 UNRUN. Prerequisite builds: formula + lint (5 tasks), objectql (14 tasks).Generated by Claude Code