Repository navigation
Commit cb38a8c
docs(skills): the data skill's current_user table names a declared membership key (#25586)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} -->
_Requested by **Tesla** · [project
thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoJLr1A7TYy1k6cGE23eo9VQ)_
Part of #25234
The Tier H follow-up to ruling A on #25234 (landing plan 6370632236). It
is governed (`skills/**`), so a maintainer merges it. #25528 made a
declared membership key (`ObjectSchema.membershipKeys`) live, and #25550
made its authoring refusals live. The data skill's `current_user.*`
placeholder table still listed only the kernel's keys, so an author
reading the bundle alone had no way to learn that a declared key
resolves.
## The change
- `skills/objectstack-data/rules/security.md` gains one row in the
placeholder table:
> | `current_user.KEY` | the set an object's `membershipKeys.KEY`
declares (for `IN`) |
- `scripts/check-skills-token-ratchet.mjs`: the file's ceiling goes from
2543 to 2563, with the ruling quoted in the row's comment.
## The maintainer ruling
Tesla, 2026-10-24T01:28:57Z, project decision list item 9, verbatim and
untranslated (the same message also approved item 8, whose line is
elided here):
> 9. 技能文档 security.md 的 token 上限 2543 → 2563 … 同意
## Why the row is shorter than the one proposed with the ruling
The ruling was asked for a 20-token raise with the shorter row from
report 6374979058, measured at 2563 against the file as it stood then.
#25429 (0949fe5) then landed on this file and brought it to 2541,
leaving 2 tokens of headroom. The proposed row now measures 2602, which
is 39 over the ruled ceiling. So the row is trimmed to fit the ruled
2563 exactly, rather than asking for a second raise. The trimmed row
drops the resolution detail (the roster's `valueField` and `userField`,
the caller's organisation, and the 1,000-value bound that fails closed).
That detail is in `rls.zod.ts`'s "Where a membership key comes from"
section, which the table's own Source line points to, and in the
`membershipKeys` describe in `object.zod.ts`.
## Checks
- `node scripts/check-skills-token-ratchet.mjs`: `security.md` is 2563
tokens, ceiling 2563, headroom 0, exit 0. `--self-test`: 79 cases pass.
- `node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derives 52 families on this head (11 changed
lines). All 52 ran one at a time under `os-verify-lock.sh`, exit 0.
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01M4rJHRAZDFqLYQ9dHMH339
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 543b3d1 commit cb38a8c
3 files changed
Lines changed: 19 additions & 1 deletion
File tree
- .changeset
- scripts
- skills/objectstack-data/rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
548 | 556 | | |
549 | 557 | | |
550 | 558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
0 commit comments