[ADR-0090 D12] Delegation boundary: sys_business_unit.name of the subtree root. Required and non-blank: an empty or whitespace-only value names no business unit and is refused.
includeSubtree
boolean
optional (default: true)
Cover descendant business units too (default true)
manageAssignments
boolean
optional (default: false)
Manage user↔position assignments within the subtree
manageBindings
never
optional
[REMOVED] permission.adminScope.manageBindings was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove, ADR-0090 D12) — nothing honoured it once the position-to-permission-set binding rows it gated were retired: a position's sets are part of its definition (ADR-0131 D3), and that definition is written through the metadata door, which admits a manage_metadata holder and reads no adminScope. Delete the key; a delegate's scope is placement, assignment and the allowlist — businessUnit with includeSubtree, manageAssignments, and assignablePermissionSets. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
authorEnvironmentSets
never
optional
[REMOVED] permission.adminScope.authorEnvironmentSets was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove, ADR-0090 D12) — nothing honoured it once permission sets stopped being rows: a permission set is an environment metadata definition (ADR-0131 D3), written through the metadata door, which admits a manage_metadata holder and reads no adminScope. Delete the key; a delegate's scope is placement, assignment and the allowlist — businessUnit with includeSubtree, manageAssignments, and assignablePermissionSets. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
assignablePermissionSets
string[]
optional (default: [])
Allowlist of permission-set names the delegate may hand out
Edit permission. Requires read on the same entry (allowRead, viewAllRecords or modifyAllRecords): an object permission that edits a record also reads it.
allowDelete
boolean
optional (default: false)
Delete permission. Requires read on the same entry (allowRead, viewAllRecords or modifyAllRecords): an object permission that deletes a record also reads it.
allowExport
boolean
optional
User-level export axis over read (opt-in grant). true = export granted (still bounded by read); unset/false = no export. Merged most-permissively like the CRUD bits; NOT implied by viewAllRecords/modifyAllRecords.
allowTransfer
boolean
optional (default: false)
[RBAC-gated; ENFORCED via the insert/update owner_id guard] Change record ownership (assign/reassign/disown owner_id)
allowRestore
never
optional
[REMOVED] objects.<object>.allowRestore was removed in @objectstack/spec 17 (ADR-0049): the restore ObjectQL operation it claimed to gate did not exist then, so granting the bit delivered nothing. Delete the key. The operation now exists with the recycle bin (ADR-0148), and its grants are spelled allowRestoreOwnDeleted (restore the entries you deleted) and manageRecycleBin (restore any entry). Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
allowPurge
never
optional
[REMOVED] objects.<object>.allowPurge was removed in @objectstack/spec 17 (ADR-0049): the purge ObjectQL operation it claimed to gate did not exist then, so granting the bit delivered nothing (a compliance/GDPR erase the author believed was permission-locked was not). Delete the key. The operation now exists with the recycle bin (ADR-0148), and its grant is spelled manageRecycleBin (purge an entry, empty an object's entries, and the permanent delete). Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
allowRestoreOwnDeleted
boolean
optional
Recycle bin: restore the entries of this object the caller deleted. Bounded by read; implied by manageRecycleBin and modifyAllRecords, not by allowDelete.
manageRecycleBin
boolean
optional
Recycle bin administration on this object: restore any entry, not only your own, and purge (the permanent delete, purging one entry, emptying the object's entries). Bounded by read; implied by modifyAllRecords.
viewAllRecords
boolean
optional (default: false)
View All Data (Bypass Sharing)
modifyAllRecords
boolean
optional (default: false)
Modify All Data (Bypass Sharing) — bypasses sharing rules and ownership on the objects record sharing enforces on; on an object with NO owner field sharing abstains, so the platform created_by write floor still applies. Includes delete: an omitted allowDelete parses to true, and an explicit allowDelete: false beside it is refused.
Server-resolved effective API operations for this object. Present only when the object tightens exposure via apiMethods; absent = default-allow. The frontend renders this effective set, never the raw whitelist. Vocabulary is the EFFECTIVE ApiOperation set (six primitives + eight derived verbs), not the authored six-value ApiMethod enum.
Row condition narrowing where this entry votes, authored in canonical CEL like rowLevelSecurity[].using (a field of this object compared with a literal or a current_user.* value using ==, !=, <, <=, >, >= or in, combined with && / ||; e.g. status in ["approved", "signing", "active"]). Absent, the entry votes on every row. Present, the entry votes as declared on the rows the condition matches and is ABSENT on every other row, so the most-permissive merge across the caller's sets is unchanged: a set that locks a field only from a stage onward does not lock the rows before it, and a co-held set that says nothing about the field still lifts nothing, unless it holds the super-user bypass on the object (its own entry for the object, otherwise its '*' wildcard). Such a set votes on every field of the object, on every row, whatever when says: viewAllRecords votes readable: true, and modifyAllRecords votes readable: true and editable: true, so a row-conditioned lock never binds a Modify All holder. View All never grants an edit. Otherwise union without deny is unchanged. The write gate judges the condition on the stored row BEFORE an update (so a lock on status in [...] holds on an approved row even when the write changes status) and on the incoming row of an insert, as the caller sent it. It reaches the EDIT vote only — reads are judged row-blind — so readable: false beside a when is refused at parse time: keep readable: true (the default) on a row-conditioned entry. Where no row can be judged (a predicate update with no row address, a stored row the caller cannot read, a condition that does not resolve for the request) the entry is judged as its lock: it contributes no edit grant on that write. Validated like an RLS predicate at authoring and publish time: the fields it names must exist on the entry's object and it may not reach across a relation; a condition that cannot be lowered is refused there, never dropped at runtime. Readers that hold no row (/auth/me/permissions, the object-wide field projections, the write preview on an update) report a row-conditioned entry as its lock, so a client never advertises an edit the gate refuses. The record-scoped field projection (GET /data/{object}/{id}/field-access, the answer a record's edit form reads) holds the row: it judges the condition on the stored row exactly as the write gate does on an update of that row, so a lock that applies only from a stage onward disables the field only on the rows it names.
rollupSourceUnreadableReason
string
optional
Authoring-time acknowledgement, read only by os lint (the runtime does not read it): why holders of this set are meant to read this roll-up summary column although the set cannot read the child object, the aggregated child field or a child field the roll-up's filter tests (e.g. 'Service staff read account totals but not invoice rows'). Declared on the set's entry for the summary column, it turns that set's security-rollup-source-unreadable warning for the column into an info note quoting the reason, so os lint --strict passes; every other finding is unchanged. The runtime does not read the key, but the entry that carries it is an ordinary declaring entry: it votes readable: true in the field merge (only declaring sets vote, and the most permissive vote wins), so on a set that had no entry for the column, adding one to carry the reason restores the column for holders whose other sets mask it. A blank reason is refused, and so is a reason beside readable: false, an entry that declares no read to acknowledge.
Edit permission. Requires read on the same entry (allowRead, viewAllRecords or modifyAllRecords): an object permission that edits a record also reads it.
allowDelete
boolean
optional (default: false)
Delete permission. Requires read on the same entry (allowRead, viewAllRecords or modifyAllRecords): an object permission that deletes a record also reads it.
allowExport
boolean
optional
User-level export axis over read (opt-in grant). true = export granted (still bounded by read); unset/false = no export. Merged most-permissively like the CRUD bits; NOT implied by viewAllRecords/modifyAllRecords.
allowTransfer
boolean
optional (default: false)
[RBAC-gated; ENFORCED via the insert/update owner_id guard] Change record ownership (assign/reassign/disown owner_id)
allowRestore
never
optional
[REMOVED] objects.<object>.allowRestore was removed in @objectstack/spec 17 (ADR-0049): the restore ObjectQL operation it claimed to gate did not exist then, so granting the bit delivered nothing. Delete the key. The operation now exists with the recycle bin (ADR-0148), and its grants are spelled allowRestoreOwnDeleted (restore the entries you deleted) and manageRecycleBin (restore any entry). Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
allowPurge
never
optional
[REMOVED] objects.<object>.allowPurge was removed in @objectstack/spec 17 (ADR-0049): the purge ObjectQL operation it claimed to gate did not exist then, so granting the bit delivered nothing (a compliance/GDPR erase the author believed was permission-locked was not). Delete the key. The operation now exists with the recycle bin (ADR-0148), and its grant is spelled manageRecycleBin (purge an entry, empty an object's entries, and the permanent delete). Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
allowRestoreOwnDeleted
boolean
optional
Recycle bin: restore the entries of this object the caller deleted. Bounded by read; implied by manageRecycleBin and modifyAllRecords, not by allowDelete.
manageRecycleBin
boolean
optional
Recycle bin administration on this object: restore any entry, not only your own, and purge (the permanent delete, purging one entry, emptying the object's entries). Bounded by read; implied by modifyAllRecords.
viewAllRecords
boolean
optional (default: false)
View All Data (Bypass Sharing)
modifyAllRecords
boolean
optional (default: false)
Modify All Data (Bypass Sharing) — bypasses sharing rules and ownership on the objects record sharing enforces on; on an object with NO owner field sharing abstains, so the platform created_by write floor still applies. Includes delete: an omitted allowDelete parses to true, and an explicit allowDelete: false beside it is refused.
Permission set name (lowercase snake_case). A set is identified by its package and name: a name has one holder per namespace, so packages of two namespaces may each hold a set of one name, while two packages of one namespace, a package with no namespace, a platform package (base, system, sys), the environment and the platform-requested guest_portal share one set of it
label
string
optional
Display label
description
string
optional
Human-readable description shown in Setup
packageId
string
optional
[ADR-0086 D3] Owning package id for a package-shipped set (absent = env-authored); a value that disagrees with the package that ships the set, or that it is saved into, is refused by the stack schema (defineStack, os validate, os build), the package registration, and the metadata save, restore and publish doors
managedBy
never
optional
[REMOVED] permission.managedBy was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove, ADR-0086 D3) — nothing ever read the authored key: no seeder, package upgrade or lock consulted it, so package never made a set upgrade-owned and platform or user never shielded one from an upgrade. Delete the key; a set's provenance is the package that ships it, decided from that package's artifact and recorded as packageId, and a set authored in this system carries neither. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
isDefault
boolean
optional (default: false)
[ADR-0090 D5] App baseline for the everyone position: app-level sets are auto-bound at boot (guarded, idempotent); package-level sets become install-time suggestions an admin confirms
Edit permission. Requires read on the same entry (allowRead, viewAllRecords or modifyAllRecords): an object permission that edits a record also reads it.
allowDelete
boolean
optional (default: false)
Delete permission. Requires read on the same entry (allowRead, viewAllRecords or modifyAllRecords): an object permission that deletes a record also reads it.
allowExport
boolean
optional
User-level export axis over read (opt-in grant). true = export granted (still bounded by read); unset/false = no export. Merged most-permissively like the CRUD bits; NOT implied by viewAllRecords/modifyAllRecords.
allowTransfer
boolean
optional (default: false)
[RBAC-gated; ENFORCED via the insert/update owner_id guard] Change record ownership (assign/reassign/disown owner_id)
allowRestore
never
optional
[REMOVED] objects.<object>.allowRestore was removed in @objectstack/spec 17 (ADR-0049): the restore ObjectQL operation it claimed to gate did not exist then, so granting the bit delivered nothing. Delete the key. The operation now exists with the recycle bin (ADR-0148), and its grants are spelled allowRestoreOwnDeleted (restore the entries you deleted) and manageRecycleBin (restore any entry). Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
allowPurge
never
optional
[REMOVED] objects.<object>.allowPurge was removed in @objectstack/spec 17 (ADR-0049): the purge ObjectQL operation it claimed to gate did not exist then, so granting the bit delivered nothing (a compliance/GDPR erase the author believed was permission-locked was not). Delete the key. The operation now exists with the recycle bin (ADR-0148), and its grant is spelled manageRecycleBin (purge an entry, empty an object's entries, and the permanent delete). Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
allowRestoreOwnDeleted
boolean
optional
Recycle bin: restore the entries of this object the caller deleted. Bounded by read; implied by manageRecycleBin and modifyAllRecords, not by allowDelete.
manageRecycleBin
boolean
optional
Recycle bin administration on this object: restore any entry, not only your own, and purge (the permanent delete, purging one entry, emptying the object's entries). Bounded by read; implied by modifyAllRecords.
viewAllRecords
boolean
optional (default: false)
View All Data (Bypass Sharing)
modifyAllRecords
boolean
optional (default: false)
Modify All Data (Bypass Sharing) — bypasses sharing rules and ownership on the objects record sharing enforces on; on an object with NO owner field sharing abstains, so the platform created_by write floor still applies. Includes delete: an omitted allowDelete parses to true, and an explicit allowDelete: false beside it is refused.
Row condition narrowing where this entry votes, authored in canonical CEL like rowLevelSecurity[].using (a field of this object compared with a literal or a current_user.* value using ==, !=, <, <=, >, >= or in, combined with && / ||; e.g. status in ["approved", "signing", "active"]). Absent, the entry votes on every row. Present, the entry votes as declared on the rows the condition matches and is ABSENT on every other row, so the most-permissive merge across the caller's sets is unchanged: a set that locks a field only from a stage onward does not lock the rows before it, and a co-held set that says nothing about the field still lifts nothing, unless it holds the super-user bypass on the object (its own entry for the object, otherwise its '*' wildcard). Such a set votes on every field of the object, on every row, whatever when says: viewAllRecords votes readable: true, and modifyAllRecords votes readable: true and editable: true, so a row-conditioned lock never binds a Modify All holder. View All never grants an edit. Otherwise union without deny is unchanged. The write gate judges the condition on the stored row BEFORE an update (so a lock on status in [...] holds on an approved row even when the write changes status) and on the incoming row of an insert, as the caller sent it. It reaches the EDIT vote only — reads are judged row-blind — so readable: false beside a when is refused at parse time: keep readable: true (the default) on a row-conditioned entry. Where no row can be judged (a predicate update with no row address, a stored row the caller cannot read, a condition that does not resolve for the request) the entry is judged as its lock: it contributes no edit grant on that write. Validated like an RLS predicate at authoring and publish time: the fields it names must exist on the entry's object and it may not reach across a relation; a condition that cannot be lowered is refused there, never dropped at runtime. Readers that hold no row (/auth/me/permissions, the object-wide field projections, the write preview on an update) report a row-conditioned entry as its lock, so a client never advertises an edit the gate refuses. The record-scoped field projection (GET /data/{object}/{id}/field-access, the answer a record's edit form reads) holds the row: it judges the condition on the stored row exactly as the write gate does on an update of that row, so a lock that applies only from a stage onward disables the field only on the rows it names.
rollupSourceUnreadableReason
string
optional
Authoring-time acknowledgement, read only by os lint (the runtime does not read it): why holders of this set are meant to read this roll-up summary column although the set cannot read the child object, the aggregated child field or a child field the roll-up's filter tests (e.g. 'Service staff read account totals but not invoice rows'). Declared on the set's entry for the summary column, it turns that set's security-rollup-source-unreadable warning for the column into an info note quoting the reason, so os lint --strict passes; every other finding is unchanged. The runtime does not read the key, but the entry that carries it is an ordinary declaring entry: it votes readable: true in the field merge (only declaring sets vote, and the most permissive vote wins), so on a set that had no entry for the column, adding one to carry the reason restores the column for holders whose other sets mask it. A blank reason is refused, and so is a reason beside readable: false, an entry that declares no read to acknowledge.
Row predicate, authored in canonical CEL (ADR-0058 D1): the rows a select policy lets a caller read, and the existing rows an update or delete policy lets a caller change or remove. On an insert or an update, when no applicable policy for that operation declares check, each applicable policy's using also stands in as its check on every row written (see check); on an insert policy that is its only effect. It enforces when the predicate lowers to an ObjectQL filter: a field compared against a literal or a current_user.* context value using ==, !=, <, <=, > or >=; in against a current_user.* array or an inline literal list (e.g. status in ['draft', 'pending']); these combined with && / ||; or the bare allow-all true. Anything that does not lower fails closed — the policy matches zero rows. The legacy SQL-ish spellings are still accepted through a transitional bridge that rewrites = to == and IN to in (deprecated under ADR-0058 D1); SQL AND / OR / NOT IN / IS NULL / LIKE are NOT bridged and fail closed. Needed on a select or delete policy (a check there is refused); optional on an insert, update or all policy that declares check.
check
string
optional
Validation condition judged on every row an insert or an update writes (enforced at application level): each row of an insert, an array insert included, as its beforeInsert hooks leave it, and each row an update changes, by id or multi: true, as the prior row merged with the final payload after its beforeUpdate hooks. One failing row refuses the whole write. A by-id update is also judged, before its hooks, on the prior row merged with the change set as sent. The default to using is decided per operation across the applicable policies, not per policy: when any applicable policy for that operation declares check, only the declared checks decide (OR-combined) and a USING-only sibling adds nothing; only when none declares check does each applicable policy's using stand in as its check (OR-combined). Applicable = not enabled: false, object matches or is '*', operation matches or is 'all', and the caller holds one of its positions when it lists any. Refused on a policy whose operation is select or delete, which write no new row to check: limit the rows such a policy admits with using, and declare the check on an insert, update or all policy.
positions
string[]
optional
Positions this policy applies to (omit for all)
enabled
boolean
optional (default: true)
Whether this policy is active
tags
never
optional
[REMOVED] rowLevelSecurity[].tags was removed in @objectstack/spec 17.5.0 (ADR-0049 enforce-or-remove) — nothing ever read it: the RLS compiler never consulted a policy's tags and nothing else acted on them, so a tag scoped, restricted and reported nothing. Delete the key. A tag never limited whom a policy applies to; to do that, list the positions in positions. A policy is identified by its name and its object; say why it exists in description. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
[ADR-0090 D12] Delegation boundary: sys_business_unit.name of the subtree root. Required and non-blank: an empty or whitespace-only value names no business unit and is refused.
includeSubtree
boolean
optional (default: true)
Cover descendant business units too (default true)
manageAssignments
boolean
optional (default: false)
Manage user↔position assignments within the subtree
manageBindings
never
optional
[REMOVED] permission.adminScope.manageBindings was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove, ADR-0090 D12) — nothing honoured it once the position-to-permission-set binding rows it gated were retired: a position's sets are part of its definition (ADR-0131 D3), and that definition is written through the metadata door, which admits a manage_metadata holder and reads no adminScope. Delete the key; a delegate's scope is placement, assignment and the allowlist — businessUnit with includeSubtree, manageAssignments, and assignablePermissionSets. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
authorEnvironmentSets
never
optional
[REMOVED] permission.adminScope.authorEnvironmentSets was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove, ADR-0090 D12) — nothing honoured it once permission sets stopped being rows: a permission set is an environment metadata definition (ADR-0131 D3), written through the metadata door, which admits a manage_metadata holder and reads no adminScope. Delete the key; a delegate's scope is placement, assignment and the allowlist — businessUnit with includeSubtree, manageAssignments, and assignablePermissionSets. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
assignablePermissionSets
string[]
optional (default: [])
Allowlist of permission-set names the delegate may hand out