From 155ffe4a9be9674824942109d7746405ca4247a5 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 01:15:38 +0000 Subject: [PATCH 1/3] docs(skills): name the capability advisory, the plugins[] wiring check and os verify --json capabilities The objectstack-data access-depth row and the objectstack-project check table now say an enterprise provider must be in plugins[], and that os validate warns while os verify reports the same check as advisories, carried on --json as `capabilities`. Paid by deleting restatement in the same files; no token ceiling moves. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01Utp6CazXu8zyYD5PC6J2u7 --- .changeset/35171-skills-verify-capabilities.md | 14 ++++++++++++++ skills/objectstack-data/SKILL.md | 11 +++++------ skills/objectstack-project/SKILL.md | 12 +++++------- 3 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 .changeset/35171-skills-verify-capabilities.md diff --git a/.changeset/35171-skills-verify-capabilities.md b/.changeset/35171-skills-verify-capabilities.md new file mode 100644 index 00000000000..47b97fdb41d --- /dev/null +++ b/.changeset/35171-skills-verify-capabilities.md @@ -0,0 +1,14 @@ +--- +'@objectstack/skills': patch +--- + +docs(skills): the hierarchy-scope row and the `os verify` row name the capability advisory, the `plugins[]` wiring check and `os verify --json`'s `capabilities` + +Clause-②: no +Metadata-protocol: none + +`objectstack-data`'s access-depth section now says the hierarchy-relative scopes need the `@objectstack/security-enterprise` plugin in `plugins[]`, not only installed, and that a missing or unwired plugin is only advised: `os validate` warns, and `os verify --json` lists it in `capabilities`. + +`objectstack-project`'s check table now says the `os validate` capability-provider check requires an enterprise provider in `plugins[]`, and the `os verify` row says the same check runs there as advisories only, carried on `--json` as `capabilities`. + +Both files pay for the new text by deleting restatement in the same file: the `private` row's pointer to the access-depth section below it, a duplicate link to the security rules that the quick reference already gives, the testing section's two opening sentences, which restated its heading, and "Nothing in its row is checked until someone runs it", which restated the clause before it. Neither file's token ceiling moves. diff --git a/skills/objectstack-data/SKILL.md b/skills/objectstack-data/SKILL.md index 37b2a1b4370..9aceb947ef9 100644 --- a/skills/objectstack-data/SKILL.md +++ b/skills/objectstack-data/SKILL.md @@ -78,7 +78,7 @@ removed): | Value | Who can read / write | |:--|:--| -| `private` | owner only (widen with sharing rules, RLS, or `readScope`/`writeScope`) | +| `private` | owner only | | `public_read` | everyone reads; the owner writes | | `public_read_write` | everyone reads and writes | | `controlled_by_parent` | inherited from the master record (`master_detail` children); a row with no (optional) master is its owner's | @@ -404,8 +404,6 @@ Per-object access control is authored in **permission sets**, not on the object schema. There is no object-level `permissions` key (and no `hooks` key either) — `ObjectSchema.create()` **rejects** both as unknown keys. -Full rules: **[Security & Access Control](./rules/security.md)**. - ### Access depth (scope-depth) — the ERP "see my unit / my unit and below" axis On an owner-scoped (`private`) object, a per-object grant in a permission set may @@ -414,9 +412,10 @@ hand-writing an RLS policy (ADR-0057 D1): `own` (default) · `own_and_reports` `unit` · `unit_and_below` · `org`. It resolves at request time into an `owner_id IN (…)` set and AND-injects like RLS. ⚠️ Open-core boundary (ADR-0016): only `own` and `org` work in open source — the hierarchy-relative three need the -paid `@objectstack/security-enterprise` plugin, **fail closed to `own`** without -it, and `defineStack` errors unless the grant declares -`requires: ['hierarchy-security']`. +paid `@objectstack/security-enterprise` plugin in `plugins[]`, **fail closed to +`own`** without it, and `defineStack` errors unless the grant declares +`requires: ['hierarchy-security']`. A missing or unwired plugin is only advised: +`os validate` warns, `os verify --json` lists it in `capabilities`. ### Ownership queues — park a record for a team to claim diff --git a/skills/objectstack-project/SKILL.md b/skills/objectstack-project/SKILL.md index 973235b1481..79e7cd8acd3 100644 --- a/skills/objectstack-project/SKILL.md +++ b/skills/objectstack-project/SKILL.md @@ -73,8 +73,7 @@ which automation fires · which screens change · translations · ## 2 · Testing: what the app pins, what the platform checks -The platform checks consistency. The app tests its own business facts. Run all -four before calling a change done (a scaffolded project's CI runs the first +Run all four before calling a change done (a scaffolded project's CI runs the first three; add `pnpm test` to its `ci.yml`). A project from `os init` has no `test` script: add vitest, `@objectstack/verify` and the script first. Only errors fail `validate` and `lint`; a warning, such as label case or an @@ -89,14 +88,13 @@ What the platform checks at 18.x, so the app never hand-writes it: | Tool | Checks | |:--|:--| -| `os validate` (the same rules `os build` runs) | Protocol schema; CEL expressions and their `record.` paths; references between metadata (fields, objects, views, actions, picklists, capabilities, approvers); dashboard widget bindings and dataset members; view, form and page shape; flow trigger readiness and undeclared flow cycles; sharing and row-level security enforceability; seed rows against state machines; package docs; a provider for every required capability | +| `os validate` (the same rules `os build` runs) | Protocol schema; CEL expressions and their `record.` paths; references between metadata (fields, objects, views, actions, picklists, capabilities, approvers); dashboard widget bindings and dataset members; view, form and page shape; flow trigger readiness and undeclared flow cycles; sharing and row-level security enforceability; seed rows against state machines; package docs; a provider for every required capability (enterprise: in `plugins[]`) | | `os lint` | The shared author-time rules again, plus its own: naming and label style, hook bodies that stop lowering to metadata-only bodies, and translation coverage (a missing non-source locale is an error only with `--i18n-strict`) | -| `os verify` | Boots the app and writes over REST: every field type round-trips. `--rls`: a user who cannot read a record cannot write it. Also opt-in: `--reference-shapes`, `--delete-behaviors`, `--unique-scopes`, `--parent-write-reach`, `--dashboard-windows`, `--multi-tenant` | +| `os verify` | Boots the app and writes over REST: every field type round-trips. `--rls`: a user who cannot read a record cannot write it. Also opt-in: `--reference-shapes`, `--delete-behaviors`, `--unique-scopes`, `--parent-write-reach`, `--dashboard-windows`, `--multi-tenant`. `os validate`'s provider check runs here as advisories only (`--json`: `capabilities`) | | `pnpm typecheck` | Types against `@objectstack/spec` | -⛔ `os verify` is not one of the four and not in the scaffold's CI. Nothing in -its row is checked until someone runs it: `npx os verify --rls` before a -release, or as a CI step. +⛔ `os verify` is not one of the four and not in the scaffold's CI: run +`npx os verify --rls` before a release, or as a CI step. `npx os explain` lists only the rules that carry an explanation, not every check. Unsure whether a check exists? Inject the defect and run the command: if it fails, the platform checks it. From 1e736af7d9efe5f8c3513416aa45117ee73708cb Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 01:16:57 +0000 Subject: [PATCH 2/3] docs(skills): keep the project skill's deletions off the testing intro Pay for the os verify row elsewhere in the same file, so the diff does not touch the paragraph a sibling scaffold PR rewrites. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01Utp6CazXu8zyYD5PC6J2u7 --- .changeset/35171-skills-verify-capabilities.md | 4 ++-- skills/objectstack-project/SKILL.md | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.changeset/35171-skills-verify-capabilities.md b/.changeset/35171-skills-verify-capabilities.md index 47b97fdb41d..1d95a4769b5 100644 --- a/.changeset/35171-skills-verify-capabilities.md +++ b/.changeset/35171-skills-verify-capabilities.md @@ -9,6 +9,6 @@ Metadata-protocol: none `objectstack-data`'s access-depth section now says the hierarchy-relative scopes need the `@objectstack/security-enterprise` plugin in `plugins[]`, not only installed, and that a missing or unwired plugin is only advised: `os validate` warns, and `os verify --json` lists it in `capabilities`. -`objectstack-project`'s check table now says the `os validate` capability-provider check requires an enterprise provider in `plugins[]`, and the `os verify` row says the same check runs there as advisories only, carried on `--json` as `capabilities`. +`objectstack-project`'s `os verify` row now says that `os validate`'s capability findings are advisory only there, carried on `--json` as `capabilities`. -Both files pay for the new text by deleting restatement in the same file: the `private` row's pointer to the access-depth section below it, a duplicate link to the security rules that the quick reference already gives, the testing section's two opening sentences, which restated its heading, and "Nothing in its row is checked until someone runs it", which restated the clause before it. Neither file's token ceiling moves. +Both files pay for the new text by deleting restatement in the same file: the `private` row's pointer to the access-depth section below it, a duplicate link to the security rules that the quick reference already gives, "so the app never hand-writes it" above the check table (the paragraph under it says so), and "Nothing in its row is checked until someone runs it", which restated the clause before it. Neither file's token ceiling moves. diff --git a/skills/objectstack-project/SKILL.md b/skills/objectstack-project/SKILL.md index 79e7cd8acd3..93703c0b90b 100644 --- a/skills/objectstack-project/SKILL.md +++ b/skills/objectstack-project/SKILL.md @@ -73,7 +73,8 @@ which automation fires · which screens change · translations · ## 2 · Testing: what the app pins, what the platform checks -Run all four before calling a change done (a scaffolded project's CI runs the first +The platform checks consistency. The app tests its own business facts. Run all +four before calling a change done (a scaffolded project's CI runs the first three; add `pnpm test` to its `ci.yml`). A project from `os init` has no `test` script: add vitest, `@objectstack/verify` and the script first. Only errors fail `validate` and `lint`; a warning, such as label case or an @@ -84,13 +85,13 @@ use it instead of re-checking them in a test. pnpm validate && pnpm lint && pnpm typecheck && pnpm test ``` -What the platform checks at 18.x, so the app never hand-writes it: +What the platform checks at 18.x: | Tool | Checks | |:--|:--| -| `os validate` (the same rules `os build` runs) | Protocol schema; CEL expressions and their `record.` paths; references between metadata (fields, objects, views, actions, picklists, capabilities, approvers); dashboard widget bindings and dataset members; view, form and page shape; flow trigger readiness and undeclared flow cycles; sharing and row-level security enforceability; seed rows against state machines; package docs; a provider for every required capability (enterprise: in `plugins[]`) | +| `os validate` (the same rules `os build` runs) | Protocol schema; CEL expressions and their `record.` paths; references between metadata (fields, objects, views, actions, picklists, capabilities, approvers); dashboard widget bindings and dataset members; view, form and page shape; flow trigger readiness and undeclared flow cycles; sharing and row-level security enforceability; seed rows against state machines; package docs; a provider for every required capability | | `os lint` | The shared author-time rules again, plus its own: naming and label style, hook bodies that stop lowering to metadata-only bodies, and translation coverage (a missing non-source locale is an error only with `--i18n-strict`) | -| `os verify` | Boots the app and writes over REST: every field type round-trips. `--rls`: a user who cannot read a record cannot write it. Also opt-in: `--reference-shapes`, `--delete-behaviors`, `--unique-scopes`, `--parent-write-reach`, `--dashboard-windows`, `--multi-tenant`. `os validate`'s provider check runs here as advisories only (`--json`: `capabilities`) | +| `os verify` | Boots the app and writes over REST: every field type round-trips. `--rls`: a user who cannot read a record cannot write it. Also opt-in: `--reference-shapes`, `--delete-behaviors`, `--unique-scopes`, `--parent-write-reach`, `--dashboard-windows`, `--multi-tenant`. `os validate`'s capability findings: advisory only (`--json`: `capabilities`) | | `pnpm typecheck` | Types against `@objectstack/spec` | ⛔ `os verify` is not one of the four and not in the scaffold's CI: run From bc862b7e68514161d152dbeb8d0f46a9c0bfc38e Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 02:06:32 +0000 Subject: [PATCH 3/3] docs(skills): restore the private row's widening pointer; pay with the search example's restating comment The private row in the served Object Definition section keeps its pointer to sharing rules, RLS and readScope/writeScope. The bytes are paid by the related-title search example's code comment, which restated the sentence above it. Same push: the CLI only advises on a missing or unwired plugin; the stack, not the grant, declares requires; the os verify row says the findings are advisory there. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01Utp6CazXu8zyYD5PC6J2u7 --- .changeset/35171-skills-verify-capabilities.md | 6 +++--- skills/objectstack-data/SKILL.md | 9 ++++----- skills/objectstack-project/SKILL.md | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.changeset/35171-skills-verify-capabilities.md b/.changeset/35171-skills-verify-capabilities.md index 1d95a4769b5..2aab2667f55 100644 --- a/.changeset/35171-skills-verify-capabilities.md +++ b/.changeset/35171-skills-verify-capabilities.md @@ -7,8 +7,8 @@ docs(skills): the hierarchy-scope row and the `os verify` row name the capabilit Clause-②: no Metadata-protocol: none -`objectstack-data`'s access-depth section now says the hierarchy-relative scopes need the `@objectstack/security-enterprise` plugin in `plugins[]`, not only installed, and that a missing or unwired plugin is only advised: `os validate` warns, and `os verify --json` lists it in `capabilities`. +`objectstack-data`'s access-depth section now says the hierarchy-relative scopes need the `@objectstack/security-enterprise` plugin in `plugins[]`, not only installed, and that the CLI only advises on a missing or unwired plugin: `os validate` warns, and `os verify --json` lists it in `capabilities`. The same sentence now says the stack, not the grant, declares `requires: ['hierarchy-security']`. -`objectstack-project`'s `os verify` row now says that `os validate`'s capability findings are advisory only there, carried on `--json` as `capabilities`. +`objectstack-project`'s `os verify` row now says that `os validate`'s capability findings are advisory there, carried on `--json` as `capabilities`. -Both files pay for the new text by deleting restatement in the same file: the `private` row's pointer to the access-depth section below it, a duplicate link to the security rules that the quick reference already gives, "so the app never hand-writes it" above the check table (the paragraph under it says so), and "Nothing in its row is checked until someone runs it", which restated the clause before it. Neither file's token ceiling moves. +Both files pay for the new text by deleting restatement in the same file: a duplicate link to the security rules that the quick reference already gives, the code comment in the related-title search example, which restated the sentence above it, "so the app never hand-writes it" above the check table (the paragraph under it says so), and "Nothing in its row is checked until someone runs it", which restated the clause before it. Neither file's token ceiling moves. diff --git a/skills/objectstack-data/SKILL.md b/skills/objectstack-data/SKILL.md index 9aceb947ef9..a0d7ad61577 100644 --- a/skills/objectstack-data/SKILL.md +++ b/skills/objectstack-data/SKILL.md @@ -78,7 +78,7 @@ removed): | Value | Who can read / write | |:--|:--| -| `private` | owner only | +| `private` | owner only (widen with sharing rules, RLS, or `readScope`/`writeScope`) | | `public_read` | everyone reads; the owner writes | | `public_read_write` | everyone reads and writes | | `controlled_by_parent` | inherited from the master record (`master_detail` children); a row with no (optional) master is its owner's | @@ -147,7 +147,6 @@ record's title, copy that title into a **stored field on this object** and declare *that* field searchable. A task list searched by project name: ```typescript -// `project_name` is a stored, denormalized mirror of the parent's title. { name: 'task', enable: { searchable: true }, @@ -413,9 +412,9 @@ hand-writing an RLS policy (ADR-0057 D1): `own` (default) · `own_and_reports` `owner_id IN (…)` set and AND-injects like RLS. ⚠️ Open-core boundary (ADR-0016): only `own` and `org` work in open source — the hierarchy-relative three need the paid `@objectstack/security-enterprise` plugin in `plugins[]`, **fail closed to -`own`** without it, and `defineStack` errors unless the grant declares -`requires: ['hierarchy-security']`. A missing or unwired plugin is only advised: -`os validate` warns, `os verify --json` lists it in `capabilities`. +`own`** without it, and `defineStack` errors unless the stack declares +`requires: ['hierarchy-security']`. The CLI only advises on a missing or unwired +plugin: `os validate` warns, `os verify --json` lists it in `capabilities`. ### Ownership queues — park a record for a team to claim diff --git a/skills/objectstack-project/SKILL.md b/skills/objectstack-project/SKILL.md index 93703c0b90b..a0b953b62ef 100644 --- a/skills/objectstack-project/SKILL.md +++ b/skills/objectstack-project/SKILL.md @@ -91,7 +91,7 @@ What the platform checks at 18.x: |:--|:--| | `os validate` (the same rules `os build` runs) | Protocol schema; CEL expressions and their `record.` paths; references between metadata (fields, objects, views, actions, picklists, capabilities, approvers); dashboard widget bindings and dataset members; view, form and page shape; flow trigger readiness and undeclared flow cycles; sharing and row-level security enforceability; seed rows against state machines; package docs; a provider for every required capability | | `os lint` | The shared author-time rules again, plus its own: naming and label style, hook bodies that stop lowering to metadata-only bodies, and translation coverage (a missing non-source locale is an error only with `--i18n-strict`) | -| `os verify` | Boots the app and writes over REST: every field type round-trips. `--rls`: a user who cannot read a record cannot write it. Also opt-in: `--reference-shapes`, `--delete-behaviors`, `--unique-scopes`, `--parent-write-reach`, `--dashboard-windows`, `--multi-tenant`. `os validate`'s capability findings: advisory only (`--json`: `capabilities`) | +| `os verify` | Boots the app and writes over REST: every field type round-trips. `--rls`: a user who cannot read a record cannot write it. Also opt-in: `--reference-shapes`, `--delete-behaviors`, `--unique-scopes`, `--parent-write-reach`, `--dashboard-windows`, `--multi-tenant`. `os validate`'s capability findings: advisory here (`--json`: `capabilities`) | | `pnpm typecheck` | Types against `@objectstack/spec` | ⛔ `os verify` is not one of the four and not in the scaffold's CI: run