Skip to content

Commit f42a1dd

Browse files
committed
chore(changeset): name spec and lint, whose shipped doc comments this PR corrects
Claude-Session: https://claude.ai/code/session_0113mDBBZPBFzvZqbJqfaFMv Co-authored-by: Claude <noreply@anthropic.com>
1 parent 264e056 commit f42a1dd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.changeset/15204-s6b1b-system-capability-seeder.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
'@objectstack/plugin-security': minor
3+
'@objectstack/spec': patch
4+
'@objectstack/lint': patch
35
---
46

57
feat(plugin-security): the boot no longer writes `sys_capability` rows for the platform's curated capabilities
@@ -9,3 +11,5 @@ Clause-②: no
911
The curated and derived-default capability seeder (`bootstrapSystemCapabilities`) is deleted. On a fresh database the boot writes no `sys_capability` row for the nine curated platform capabilities (`manage_users`, `manage_org_users`, `manage_metadata`, `manage_platform_settings`, `setup.access`, `setup.write`, `studio.access`, `manage_sharing`, `view_all_audit_log`), and none for a name a permission set grants in `systemPermissions` without declaring it. The curated capabilities are served by the registry: `GET /api/v1/meta/capability` lists them and `GET /api/v1/meta/capability/:name` answers each one's definition, as before. Declare a capability your package grants with `defineCapability` (`stack.capabilities`); a declared capability is still seeded as a package row.
1012

1113
No authorization decision changes: a grant is still resolved by the capability name in `systemPermissions`, and no runtime check reads a `sys_capability` row. On a database that was already seeded, the existing rows stay as they are; they are no longer refreshed at boot.
14+
15+
In `@objectstack/spec` (`PLATFORM_CAPABILITIES`) and `@objectstack/lint` (`validateCapabilityReferences`), the doc comments now name the registry instead of the retired seeder; no behaviour changes there.

0 commit comments

Comments
 (0)