Skip to content

Commit 7aa8d51

Browse files
feat(plugin-security): delete the curated capability seeder — the boot writes no sys_capability row for the platform's capabilities (ADR-0131 D3, #15204 stage 6b-1b) (#22709)
Part of #15204 Clause-②: no **Stage 6b-1b of the cutover plan only** (claim amendment 6098440046): the curated and derived-default capability seeder `bootstrapSystemCapabilities` (`packages/plugins/plugin-security/src/bootstrap-system-capabilities.ts`) is deleted, with its test, its import and its one call in `security-plugin.ts`. This is a deletion only (batch #310 item 4). The rest of #15204 stays open. `bootstrapDeclaredCapabilities`, `capability-name-collision` and 6b-1a's transitional engine view are 6b-1c's and are kept as they are. No `sys_capability` row is deleted, `sys-capability.object.ts` is unchanged, and who may author a capability is unchanged (#22621 → A). **Landing:** after stage 5 (C9), per stage-0 order correction 3. This PR stays a draft until the PM schedules it. ## Premise, re-verified on `origin/main` `96469912` - The seeder is still on `main`: 995 lines, plus a 1,376-line test. Its only production caller is `security-plugin.ts` (import `:88`, call `:5015`). `index.ts` does not export it. - No branch or open PR deletes it. The other `claude/issue-15204-*` heads are s1, s3 and s6c-prep. Of these, only s6c-prep touches the module, and only to repoint one import (`per-organization-catalog` to `organization-scope`, 2 lines). Whichever of the two PRs lands second gets a modify/delete conflict on this file, and the fix is to keep the deletion. - After 6b-1a (#22669), the nine curated names resolve in the registry. This was measured on a booted showcase (below), and `builtin-capabilities.boot.test.ts` asserts it. ## Who reads `sys_capability` rows (re-measured on this tree) | reader | what it is | fresh database after this PR | |:--|:--|:--| | Setup nav `nav_capabilities` (`security-plugin.ts:1612`) and the object's list page | a UI listing of rows | lists only the package rows (showcase: 2, was 11). Correction 3 holds this PR behind C9, whose picker reads the registry | | `sys-capability.object.ts` lookup providers (`:122`, `:132`, `:142`) | the picker data source | same rows as above | | the curated-name row gate (`security-plugin.ts` `:7652`–`:7710`, stage 8-pre) | refuses a Setup row claiming a curated name | unchanged. It reads `PLATFORM_CAPABILITY_NAMES`, not the seeded rows; it reads a row only to detect a rename | | `cli/src/utils/organization-ownership-inventory.ts:349` | an ownership census of the table | counts fewer platform rows; no decision rides on it | | `lint/src/validate-capability-references.ts:97` | reads a stack's `data` seed declarations, not rows | unchanged | No runtime authorization path reads a row: grants resolve by the name in `systemPermissions` (`core/src/security`, `rest`, `objectql`, `services` grep: zero `sys_capability` reads). ## Measured fresh-database effect (showcase, `pnpm dev -- --fresh`, this branch, all three reads as `admin@objectos.ai`) | reading | before (`main`, from the 6b-1a report 6096357309 and the boot pin's old census) | after (this branch, measured) | |:--|--:|--:| | `GET /api/v1/data/sys_capability` (the Setup capability list) | 11 rows: 9 curated `platform` + 2 `package` | **2 rows**: `showcase.export_data`, `showcase.restricted_ops`, both `managed_by: package` | | `GET /api/v1/meta/capability` | 11 | 11 (the nine curated names plus the two package names) | | `GET /api/v1/meta/capability/manage_users` | 200 | 200 | | capability refusal or failure lines in the boot log | 0 | 0 | The derived half adds nothing: the 6b-1a report measured that every `systemPermissions` entry of the platform's default sets is curated, and the showcase's one non-curated grant (`showcase.export_data`) is its own declared capability. ## Changes - **Deleted:** `bootstrap-system-capabilities.ts` (995) and `bootstrap-system-capabilities.test.ts` (1,376). - **`security-plugin.ts`:** removed the import, the `bootstrapSystemCapabilities` try block, and the `materializedCapabilityNames` handoff. That variable existed only to feed the deleted call, and under `noUnusedLocals` it cannot stay. The `bootstrapDeclaredCapabilities` call, its arguments and the `withoutPlatformCapabilityDeclarations` view are unchanged; only its `const capOutcome =` binding goes. Two comments that would now be false are reworded: the seeding block and the curated-name gate's doc. - **Tests, each one classified:** - `bootstrap-seed-round-trips.test.ts`: the `#11451/#11520` describe asserts the seeder's own round trips, so its eight seeder cases go. One case (`the existing callers still emit their exact key set`) only calls `bootstrapDeclaredPermissions` and fences `buildExistingByName`. It is kept, in a describe of its own. - `bootstrap-declared-capabilities.test.ts` (measured here; not in the amendment's list): `CLAIMS a derived … placeholder` used the seeder only to set up a `platform` row, so it now inserts that row directly. `declared name suppresses the implicit derived placeholder`, and eight `#4967 Part 1` cases, assert how the two seeders combine, so they go. `materializedNames reconciles with the outcome counters` stays. The whole file goes in 6b-1c. - `builtin-capabilities.boot.test.ts` (measured here; 6b-1a's pin): its census expected the nine curated rows. It now expects only the stack's package row, on a fresh database and on a re-opened one, with zero writes on the second boot. This is the stage's acceptance pin. - `seed-name-lookup-degradation-audible.test.ts`, `bootstrap-platform-admin-seeded-provenance.test.ts`, `sys-capability.organization-unique.test.ts`, `driver-sql/…/sql-driver-declared-index-organization-respelling.test.ts`: each named the seeder in a comment only. The sentence that would now be false is reworded or dropped. No assertion changes. - **Comments in surviving modules that would now be false:** `builtin-capabilities.ts` (item 2 of its header), `spec/src/security/capabilities.ts` (its consumer list; doc comment only, no schema or export change), `lint/src/validate-capability-references.ts` (the "mirrors bootstrapSystemCapabilities" clause). - **Censuses, each regenerated by its own tool:** `scripts/engine-double-contract.baseline.json` loses the deleted test's row. `node scripts/tenant-audit-census.mjs --write` re-counted the write call sites (241 → 239, two erased-receiver sites gone). The hand-written prose counts on `content/docs/permissions/tenant-audit-census.mdx` are corrected to match, as the gate requires. - **Changeset:** `.changeset/15204-s6b1b-system-capability-seeder.md`, `@objectstack/plugin-security` minor. ## Verification - Build: `--filter '@objectstack/plugin-security...'`, `lint...`, `driver-sql...`, `dogfood^...`, `runtime...`, plus the packages `dual-build-cjs-loads` needed: all exit 0. - `plugin-security`: `typecheck` exit 0 (tsc, scripts, and `check:test-typecheck`, which covers the tests); `vitest run`: **197 files, 4055 passed / 45 skipped**, at `b88b3567`. The later commit `264e056d` touched only the two census docs. - `lint`: 135 files, 6231 passed; typecheck exit 0. `driver-sql`: the edited file passed 26 tests; typecheck exit 0. `runtime`: `standalone-stack-seeder-declaration-copy` passed 13 tests. - Dogfood pins that read capabilities: `security-catalog-showcase`, `audit-log-audit-capability`, `showcase-d3-d4-capabilities`, `me-apps-and-everyone-baseline` and `org-admin-affordance-reach`: 5 files, 69 passed. - `dispatch-gates --commands` derived 121 commands. `--ran` reconciles **121 derived, 121 run, 0 NOT-MEASURED, 0 UNRUN**. The first pass of four commands needed work before they passed: - `check-tenant-audit-census` and its self-test went red on this diff's real count change, and were fixed above. - `check-plugin-teardown-shape --self-test` needed an unshallowed clone. - `check:dual-build-cjs-loads` needed 8 packages built outside the closure. - **Line budget:** 2,930 changed lines (+83 / −2,847, 17 files), under 3,000. ## Acceptance notes - `sys-capability.object.ts:87` still says "The two production readers of the table are both seeders (`bootstrap-system-capabilities.ts`, `bootstrap-declared-capabilities.ts`)". The amendment excludes any change to that file, so it waits for stage 8, which retires the object. Carrier: stage 8. - The 6b-1a ACCEPT (6096401008) records the transitional view's deletion as owed by "6b-1b … together with the seeders". The later amendment 6098440046 moves it to 6b-1c, and the dispatch says not to touch it. This PR follows the amendment. - On a database that was already seeded, the curated `platform` rows stay (no row is deleted). They are no longer refreshed at boot, and stage 8 / C7b retire them. --- _Generated by [Claude Code](https://claude.ai/code/session_0113mDBBZPBFzvZqbJqfaFMv)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 149294c commit 7aa8d51

20 files changed

Lines changed: 105 additions & 2859 deletions
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@objectstack/plugin-security': minor
3+
'@objectstack/spec': patch
4+
'@objectstack/lint': patch
5+
---
6+
7+
feat(plugin-security): the boot no longer writes `sys_capability` rows for the platform's curated capabilities
8+
9+
Clause-②: no
10+
11+
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.
12+
13+
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.

‎content/docs/permissions/authorization.mdx‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ to write into another package's capability.
204204

205205
This **replaces the implicit back-door** where a capability existed only as an
206206
untitled placeholder derived from whatever a permission set happened to reference
207-
in `systemPermissions[]`. That derivation still runs for back-compat (a
208-
reference with no declaration keeps resolving as a `managed_by:'platform'`
209-
placeholder), but an explicit `defineCapability` takes precedence and — for a
210-
pre-existing derived placeholder — **claims** it, upgrading the row to package
207+
in `systemPermissions[]`. That derivation is retired: a reference with no
208+
declaration still matches by name at runtime but gets no `sys_capability` row.
209+
An explicit `defineCapability` takes precedence and — for a derived placeholder
210+
an older database still holds — **claims** it, upgrading the row to package
211211
provenance with the authored label/description/scope. This is the ADR-0066 D1
212212
direction: retire the implicit `managed_by`-guessing back-doors in favour of
213213
explicit, attributable declarations.
@@ -545,15 +545,17 @@ The complete, prioritized gap map lives in issue **#2561** (the production
545545

546546
- **Deny/muting layer** (ADR-0066 ⑦⑧) — union-only grants can't take access
547547
away; needed for large-org governance and packaged-set adjustment.
548-
- **Capability registry** (ADR-0066 D1) — **landed**: capabilities are seeded
549-
as first-class `sys_capability` records from the canonical list in
548+
- **Capability registry** (ADR-0066 D1, ADR-0131 D3) — **landed**: the
549+
platform's curated capabilities, from the canonical list in
550550
`@objectstack/spec` (`security/capabilities.ts` → `PLATFORM_CAPABILITIES`),
551-
seeded by `packages/plugins/plugin-security/src/bootstrap-system-capabilities.ts`.
551+
are declared `capability` metadata served by the registry
552+
(`registerBuiltinCapabilities`, `GET /api/v1/meta/capability`), with no
553+
`sys_capability` row.
552554
A **package** now DEFINES its own capabilities explicitly via
553555
[`defineCapability` / `stack.capabilities`](#package-capability-declaration-adr-0066-d1),
554556
seeded with `managed_by:'package'` + `package_id` provenance by
555557
`bootstrap-declared-capabilities.ts` — replacing the implicit
556-
derive-from-`systemPermissions` back-door (which stays for back-compat).
558+
derive-from-`systemPermissions` back-door (now retired).
557559
The authoring lint (ADR-0066 ⑨) is also **landed**: `validateCapabilityReferences`
558560
(`@objectstack/lint`) warns at author time (`os validate` / `os lint`) when a
559561
`requiredPermissions` names a capability registered nowhere — no built-in, no

‎content/docs/permissions/capabilities.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ behind that behaviour are set out in
220220
the scope and the provenance that make a capability reviewable, attributable and
221221
uninstallable — but no authorization check reads it. Permission-set grants and
222222
resource `requiredPermissions` match capability names **as strings**; the only
223-
production readers of the table are the two boot seeders. The row's `active`
223+
production reader of the table is the declared-capability boot seeder. The row's `active`
224224
flag is a catalogue/visibility flag with no authorization effect: clearing it
225225
revokes nothing. Withdraw a capability by withdrawing the **grant**.
226226
</Callout>

‎content/docs/permissions/permission-sets.mdx‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const SalesUser = definePermissionSet({
4040
// Tab/app visibility
4141
tabPermissions: { app_crm: 'default_on', app_admin: 'hidden' },
4242

43-
// System capabilities (flat strings, resolved against sys_capability)
43+
// System capabilities (flat strings, matched by capability name)
4444
systemPermissions: ['export_reports'],
4545
});
4646
```
@@ -147,8 +147,12 @@ the anchor decides *which* unit `unit*` means.
147147
148148
## Capabilities & required permissions (ADR-0066)
149149

150-
- **Capabilities** are first-class `sys_capability` records — named privileges
151-
such as `manage_users`, `manage_metadata`, `setup.access`, `studio.access`.
150+
- **Capabilities** are named privileges such as `manage_users`,
151+
`manage_metadata`, `setup.access`, `studio.access`. The platform's curated
152+
ones are declared `capability` metadata served by the registry
153+
(`GET /api/v1/meta/capability`) and have no `sys_capability` row; a
154+
capability a package declares with `defineCapability` is also seeded as a
155+
`sys_capability` row.
152156
Grant them via `systemPermissions`; declare them as prerequisites via an
153157
object/field/app `requiredPermissions` (an **AND**-gate checked before any
154158
CRUD grant).

‎content/docs/permissions/tenant-audit-census.mdx‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ what moved this page's population from 225 to 227; nothing about the two sites
8383
changed, only whether this instrument could see them.
8484

8585
**The expensive failure direction is a keyword.** Sites whose receiver the author
86-
typed `any` have no type to read, and there are 53 of them — just over a fifth
86+
typed `any` have no type to read, and there are 51 of them — just over a fifth
8787
of the population, concentrated in exactly the seed and bootstrap paths this
8888
control exists for. Scoring an unreadable receiver as "not an engine" would have
8989
dropped every one of them silently, with a clean exit and a smaller number that
@@ -122,7 +122,7 @@ are reported as `undecidable` rather than assumed either way.
122122

123123
The same holds twice over for the context. An options argument spelled as a
124124
literal can be read; one spelled `options`, `{ ...opts }`, or handed through a
125-
forwarding shim cannot, and **53 of the 241 sites are spelled that way**. A
125+
forwarding shim cannot, and **53 of the 239 sites are spelled that way**. A
126126
context resolved from an inline literal or a local `const` can be tested for
127127
`isSystem`; one arriving from a helper call cannot.
128128

@@ -187,10 +187,10 @@ reproduce them. Where it disagrees, it disagrees on the page:
187187

188188
| carried figure | where it survives | this census |
189189
| :--- | :--- | ---: |
190-
| 175 write call sites | quoted in the merged changeset | **241** |
190+
| 175 write call sites | quoted in the merged changeset | **239** |
191191
| 24 carrying no tenant context | quoted in the merged changeset | **2** provable and tenancy-enabled; **32** more whose options argument is unreadable |
192-
| 127 of 175 statically decidable, 48 runtime-parameter-name sites | restated on the `isSystem`-scoping card | **160 of 241** decidable, **81** undecidable |
193-
| 135 (77%) silenced by the `isSystem` guard before the posture gate | the lost issue body — **no surviving corroboration** | **not reproduced**: 128 decidably elevated, 0 decidably not, 105 undecidable |
192+
| 127 of 175 statically decidable, 48 runtime-parameter-name sites | restated on the `isSystem`-scoping card | **160 of 239** decidable, **79** undecidable |
193+
| 135 (77%) silenced by the `isSystem` guard before the posture gate | the lost issue body — **no surviving corroboration** | **not reproduced**: 126 decidably elevated, 0 decidably not, 105 undecidable |
194194
| 141 and 132, two independent re-derivations | the card that filed this work | — |
195195

196196
**The differences are not reconciled, and deliberately so.** The old census's
@@ -200,18 +200,18 @@ be stated is what this instrument counts, which is written above and re-runnable
200200
at any commit.
201201

202202
Two structural facts do plausibly widen this reading against any hand or regex
203-
one, and both are counted in the generated tables below: the 53 sites reached
203+
one, and both are counted in the generated tables below: the 51 sites reached
204204
through an erased (`any`) receiver, and the 53 that name their object through a
205205
`const` rather than inline. An instrument that read either the way a person does
206206
would report a smaller number and would not say so.
207207

208208
The fourth row is the one worth flagging to anyone citing it. **The 135 / 77%
209209
figure has no surviving corroboration anywhere in the tree.** This census reads
210-
128 of 241 (53%) as decidably elevated, with 105 more whose elevation is a
210+
126 of 239 (53%) as decidably elevated, with 105 more whose elevation is a
211211
run-time fact — so the claim is neither confirmed nor refuted, and the honest
212212
answer is that a static reading cannot settle it.
213213

214-
⇒ **Cite `2 / 241`, and say what it is**: the sites whose options argument was
214+
⇒ **Cite `2 / 239`, and say what it is**: the sites whose options argument was
215215
READ and holds no tenant context, against a decidably tenancy-enabled object.
216216
That is the control's provable yield surface. ⛔ Do not cite it as "the sites
217217
without tenant context" — **32 further sites** have an options argument this
@@ -223,30 +223,30 @@ cannot read, and they are neither in nor out.
223223

224224
| what | count |
225225
| :--- | ---: |
226-
| write call sites on the application surface | **241** |
226+
| write call sites on the application surface | **239** |
227227
| …whose object name is statically decidable | 160 |
228-
| …whose object name is chosen at run time | 81 |
228+
| …whose object name is chosen at run time | 79 |
229229
| …against an object with tenancy ENABLED | 159 |
230230
| …against an object that declares tenancy off | 1 |
231-
| threading a tenant context | 180 |
231+
| threading a tenant context | 178 |
232232
| PROVABLY carrying none (options read, no context key) | **8** |
233233
| …of those, against a decidably tenancy-enabled object | **2** |
234234
| options argument UNREADABLE — may or may not carry one | 53 |
235235
| …of those, against a decidably tenancy-enabled object | 32 |
236-
| threading a decidably ELEVATED (`isSystem`) context | 128 |
236+
| threading a decidably ELEVATED (`isSystem`) context | 126 |
237237
| threading a context that is decidably NOT elevated | 0 |
238238
| threading a context whose elevation is a run-time fact | 105 |
239239

240240
| how the instrument reached the site | count |
241241
| :--- | ---: |
242242
| receiver carried a readable engine type | 188 |
243243
| receiver erased, placed by the object NAME | 33 |
244-
| receiver erased, placed by an `object: string` PARAMETER | 15 |
244+
| receiver erased, placed by an `object: string` PARAMETER | 13 |
245245
| receiver erased, placed by an `UNTYPED_RECEIVERS` row | 5 |
246246

247247
| object name spelled inline | 107 |
248248
| object name spelled through a `const` | 53 |
249-
| object name is an `object: string` parameter | 19 |
249+
| object name is an `object: string` parameter | 17 |
250250
| object name is some other run-time expression | 62 |
251251

252252
### Subtractions the census could NOT defend — enforced
@@ -297,13 +297,13 @@ holds still. They are required to be HERE and to say WHEN they were true;
297297
their values are not compared. The reasoning, and the measurement behind it,
298298
are in `scripts/check-tenant-audit-census.mjs`.
299299

300-
Measured on 2026-10-09 at `5551f8d8d`.
300+
Measured on 2026-10-10 at `b88b35678`.
301301

302302
| corpus scale (not enforced) | count |
303303
| :--- | ---: |
304-
| tracked non-test sources scanned | 625 |
304+
| tracked non-test sources scanned | 631 |
305305
| engine-shaped types recognised | 72 |
306-
| declared objects in the registry | 116 |
306+
| declared objects in the registry | 117 |
307307
| same-named calls subtracted as non-engine | 162 |
308308

309309
{/* END GENERATED: tenant-audit-census */}

‎docs/audits/2026-08-tenant-audit-write-call-sites.counts.md‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ silent, and `node scripts/tenant-audit-census.mjs --write` is the resolution.
3333

3434
| Measure | Value |
3535
|---|---:|
36-
| Write call sites | 241 |
36+
| Write call sites | 239 |
3737
| Object name statically decidable | 160 |
38-
| Object name chosen at run time | 81 |
38+
| Object name chosen at run time | 79 |
3939
| Against a tenancy-enabled object | 159 |
4040
| Against an object declaring tenancy off | 1 |
41-
| Threading a tenant context | 180 |
41+
| Threading a tenant context | 178 |
4242
| Provably carrying none | 8 |
4343
| …and decidably tenancy-enabled | 2 |
4444
| Options argument unreadable | 53 |
4545
| …and decidably tenancy-enabled | 32 |
46-
| Threading a decidably elevated context | 128 |
46+
| Threading a decidably elevated context | 126 |
4747
| Threading a decidably non-elevated context | 0 |
4848
| Threading a context of undecidable elevation | 105 |
4949

@@ -90,13 +90,13 @@ holds still. They are required to be HERE and to say WHEN they were true;
9090
their values are not compared. The reasoning, and the measurement behind it,
9191
are in `scripts/check-tenant-audit-census.mjs`.
9292

93-
Measured on 2026-10-09 at `5551f8d8d`.
93+
Measured on 2026-10-10 at `b88b35678`.
9494

9595
| corpus scale (not enforced) | count |
9696
| :--- | ---: |
97-
| tracked non-test sources scanned | 625 |
97+
| tracked non-test sources scanned | 631 |
9898
| engine-shaped types recognised | 72 |
99-
| declared objects in the registry | 116 |
99+
| declared objects in the registry | 117 |
100100
| same-named calls subtracted as non-engine | 162 |
101101

102102
## Every site
@@ -165,8 +165,6 @@ Measured on 2026-10-09 at `5551f8d8d`.
165165
| `packages/plugins/plugin-security/src/bootstrap-declared-positions.ts` | `update` | `object` | undecidable | context, elevation undecidable | 1 |
166166
| `packages/plugins/plugin-security/src/bootstrap-platform-admin.ts` | `insert` | `object` | undecidable | elevated | 1 |
167167
| `packages/plugins/plugin-security/src/bootstrap-platform-admin.ts` | `update` | `object` | undecidable | elevated | 1 |
168-
| `packages/plugins/plugin-security/src/bootstrap-system-capabilities.ts` | `insert` | `object` | undecidable | elevated | 1 |
169-
| `packages/plugins/plugin-security/src/bootstrap-system-capabilities.ts` | `update` | `object` | undecidable | elevated | 1 |
170168
| `packages/plugins/plugin-security/src/claim-seed-ownership.ts` | `update` | `schema.name` | undecidable | elevated | 1 |
171169
| `packages/plugins/plugin-security/src/cleanup-package-permissions.ts` | `delete` | `object` | undecidable | elevated | 1 |
172170
| `packages/plugins/plugin-security/src/grant-permission-set-name-backfill.ts` | `insert` | `DATA_MIGRATION_FLAG_OBJECT` | undecidable | elevated | 1 |

‎packages/drivers/driver-sql/src/sql-driver-declared-index-organization-respelling.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ describe('#8323 — declared unique indexes on the platform’s tenant-scoped ob
379379
// The NULL-safe key part is what makes this hold: a bare
380380
// `(organization_id, name)` composite would be NULL-distinct under SQL,
381381
// so every platform-seeded capability could be duplicated at will.
382-
// `bootstrapSystemCapabilities` upserts by name and depends on it.
383382
const d = makeDriver();
384383
await d.initObjects(FIXED_APP as any);
385384

‎packages/lint/src/validate-capability-references.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
* (`stack.capabilities`) — the explicit, package-provenanced declaration
2020
* (ADR-0066 D1), materialized at boot by `bootstrapDeclaredCapabilities`,
2121
* 3. every capability a permission set in this stack GRANTS via
22-
* `systemPermissions` (granting a capability also declares it — mirrors
23-
* the runtime `bootstrapSystemCapabilities` derived-defaults rule), and
22+
* `systemPermissions` (granting a capability also declares it), and
2423
* 4. any `sys_capability` row shipped as seed data.
2524
*
2625
* WARNING, not error: a single package's lint cannot see capabilities declared

0 commit comments

Comments
 (0)