Skip to content

Commit 490a141

Browse files
committed
docs(skills): the data skill's current_user table names a declared membership key (#25234)
Raises the security.md token ceiling 2543 -> 2563 per the maintainer ruling quoted in the ratchet row. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M4rJHRAZDFqLYQ9dHMH339
1 parent ce18e73 commit 490a141

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,15 @@ export const CEILINGS = new Map([
544544
// schema alone writes the refused shape. +63 tokens, zero headroom to absorb
545545
// any of it, ceiling +63. Maintainer ruling 2026-09-17 (recorded on #17359 as
546546
// comment 5710537499), verbatim and untranslated: 「security.md 允许增加到 2543」.
547-
['skills/objectstack-data/rules/security.md', 2543],
547+
// 2543 -> 2563 (#25234): the `current_user.*` placeholder table gains the
548+
// declared membership key row (`ObjectSchema.membershipKeys`, staged per
549+
// request since #25528), which the table did not teach, so an author reading
550+
// the bundle alone had no way to know a declared key resolves. +22 tokens on
551+
// a landed 2541, 2 absorbed by headroom, ceiling +20. Maintainer ruling
552+
// 2026-10-24 (project decision list item 9), verbatim and untranslated, the
553+
// line for item 8 of the same message elided:
554+
// 「9. 技能文档 security.md 的 token 上限 2543 → 2563 … 同意」.
555+
['skills/objectstack-data/rules/security.md', 2563],
548556
// 3024 -> 3109 (2026-08-31 app-repo-principles raise, see the block above).
549557
// Severity Levels listed the three values and left the CHOICE unstated: a
550558
// block rests on a judgement a person made, so a machine-inferred signal — a

‎skills/objectstack-data/rules/security.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ bridge (warns). The compiler resolves these
106106
| `current_user.organization_id` | the caller's tenant |
107107
| `current_user.org_user_ids` | ids of users in the same org (for `IN`) |
108108
| `current_user.positions` | the caller's positions (for `IN`; ADR-0090 D3) |
109+
| `current_user.KEY` | the set an object's `membershipKeys.KEY` declares (for `IN`) |
109110

110111
- Source: `node_modules/@objectstack/spec/src/security/rls.zod.ts` (policy
111112
shape, predicate grammar, `check` composition).

0 commit comments

Comments
 (0)