Repository navigation
Commit a3f6799
committed
docs(skills): the security rule states a grant's uniqueness by the declared
`skills/objectstack-data/rules/security.md`'s grant paragraph closed with a
sentence naming `permission_set_id` as a legacy column not to write. The
grant object no longer declares that column (a write naming it is refused
`400 INVALID_FIELD`), so the sentence taught an AI author a key the declared
shape does not have. One line replaces it: one grant per user, set and
organization, enforced by the join object's `unique: 'organization'` index
on (`user_id`, `permission_set`, `organization_id`). Net 0 lines; the
token ratchet reads 2494 -> 2502 against ceiling 2543. The file ships in
`@objectstack/skills` (`dist/skills/**` via sync-catalog), so a patch
changeset accompanies it.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VqGhCg9wdsBXPz54uAEWg7unique: 'organization' index, in place of the retired permission_set_id column1 parent 1ced0f8 commit a3f6799
2 files changed
Lines changed: 10 additions & 1 deletion
| 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 | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments