Skip to content

Commit e374974

Browse files
committed
docs(adr-0142): amend D3 for the kernel-side queues key; re-lock the security.md token ceiling
Claude-Session: https://claude.ai/code/session_01WGufzhD6Fqfyavauv2KoGA Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8660c53 commit e374974

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

‎docs/adr/0142-ownership-queue-membership-claim-and-assignment-rules.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,12 @@ seed claim, to ADR-0117's future stamp. Merge question 1 states what the two oth
353353

354354
**Who sees it.** The members of Q read and edit the records sitting in Q through one more pre-resolved membership set,
355355
`current_user.queues` — the queue names the caller belongs to in the active organization, computed by the queue service
356-
from the caller's positions, teams and units against the queues' member specifications; the queue service is the
357-
registered `IRlsMembershipResolver` for that one key, so an authored policy or view can read it too. The disjunct
356+
from the caller's positions, teams and units against the queues' member specifications; `queues` is a reserved key
357+
(`RESERVED_RLS_MEMBERSHIP_KEYS`) that `@objectstack/plugin-security` resolves kernel-side from the queue service, the way
358+
it resolves `positions`, so an authored policy or view can read it too, and an app `IRlsMembershipResolver` that answers
359+
`queues` is screened out and fails closed (**Amended** 2026-10-28, ruling
360+
[`6457475657`](https://github.com/objectstack-ai/objectstack/issues/25769#issuecomment-6457475657) on #25769, letter A;
361+
this sentence first made the queue service the registered `IRlsMembershipResolver` for the key). The disjunct
358362
`owner_id IS NULL AND queue IN (current_user.queues)` lands at four sites: beside the `ownerMatch` of `buildReadFilter`;
359363
in `buildWriteFilter`'s update arm beside the share ids, never its delete arm; in `checkEdit` as a positive basis of its
360364
own, tested before the public-OWD `abstain` and apart from `matchesOwnerScope`, the fast path `checkDelete` shares; and

‎scripts/check-skills-token-ratchet.mjs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,10 @@ export const CEILINGS = new Map([
690690
// 2956 at headroom 0, ceiling +737. No repeated passage in the file to
691691
// cut first (measured: no sentence repeats). Maintainer ruling 2026-10-27 on the decision card 「skills 修复卡的教学和 eval 都撞 token 天
692692
// 花板,怎么付?」, tap A, verbatim and untranslated: 「A:先削重复,余额按实测提高」.
693-
['skills/objectstack-data/rules/security.md', 3693],
693+
// 3693 -> 3687 (#27016): RE-LOCK at the landed count. `queues` joins the
694+
// kernel names a membership key may not take (+3 tokens), paid by cutting
695+
// "not a stamp on every data row," from the membership-keys intro; net -6.
696+
['skills/objectstack-data/rules/security.md', 3687],
694697
// 3024 -> 3109 (2026-08-31 app-repo-principles raise, see the block above).
695698
// Severity Levels listed the three values and left the CHOICE unstated: a
696699
// block rests on a judgement a person made, so a machine-inferred signal — a

0 commit comments

Comments
 (0)