You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 45d5e28
Browse filesBrowse the repository at this point in the historyBrowse files
feat(spec,lint)!: type an action's description, each param's helpText and each outcomeMessages entry as template slots; refuse ${…} there
#27948, ruling A, step 2. The five action copy keys speak one hole syntax:
- spec: `ActionSchema.description` and each `outcomeMessages` entry become
`actionCopyTemplateSlot`s with the inline locale map, and
`ActionParamSchema.helpText` one without it (it was a plain string). A
bare string parses to `{ dialect: 'template', source }`; a blank or
`${…}` sentence still parses, so a stored action loads. Describes teach
`{{ }}`; refusals name each slot (`ActionCopyKey` widened, page rows keep
`ActionRowCopyKey`). `ActionLike` (i18n-resolver) types the envelope.
- lint: the action copy door judges the three per path
(`description`, `params[N].helpText`, `outcomeMessages.OUTCOME`) through
`closedScopeTemplateRefusal` over `confirmText`'s roots for the dialog
copy and `successMessage`'s for an outcome; every finding an error, so
validate / compile fail and the publish gate answers 422. An inline
`properties.action` is judged on its params' helpText.
- ledgers: expression-conformance rows for the two new surfaces; the
outcomeMessages liveness evidence names `{{ }}`.
- platform-objects tests read the parsed copy as written.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibwQ8tWwY7TiHQPMCHR
|**supportsOverlay**|`boolean`| ✅ | Whether a stored overlay row of an item a managed package ships may be removed through the ordinary delete door without the type's environment-overlay permission: the removal removes no managed definition, and changes what is served for permission alone; it opens no save and it decides no read |
795
795
|**domain**|`string`| ✅ | Protocol domain |
796
-
|**actions**|`{ name: string; label: string \| Record<string, string>; description?: string \| Record<string, string>; objectName?: string; … }[]`| optional | Declarative type-level actions (buttons) the metadata-admin UI renders for this type |
796
+
|**actions**|`{ name: string; label: string \| Record<string, string>; description?: string \| object \| string \| Record<string, string>; objectName?: string; … }[]`| optional | Declarative type-level actions (buttons) the metadata-admin UI renders for this type |
797
797
798
798
799
799
---
@@ -970,7 +970,7 @@ Metadata query with filtering, sorting, and pagination
970
970
| **membershipKeys** | `Record<string, { userField: string; valueField: string; filter?: string; label?: string; … }>` | optional | Membership keys this object defines, by name: each makes `current_user.KEY` the set of `valueField` values on this object's rows whose `userField` is the signed-in user and on which the optional `filter` holds, for a row-level security policy to read with `in` (e.g. `supplier in current_user.portal_supplier_ids`, declared on a supplier-contact object as `portal_supplier_ids: { userField: 'user', valueField: 'supplier', filter: 'active == true' }`). Declare a key on the one object whose rows define it; a key name is one request-wide name, so declaring it on two objects is refused, and the kernel's own names (`id`, `organization_id`, `positions`, `org_user_ids`, `accessible_org_ids`, `email`, `queues`) are refused. The set is read once per request, only when a policy reads the key, as a system read inside the caller's organization and regardless of what the caller may read on this object, so the caller needs no read on it; it holds at most 1,000 values, and a larger set, a failed read, a `filter` that does not compile for this object, or a key a registered membership resolver also owns makes every policy reading it match no rows. Whoever can write this object's rows can grant the key. |
971
971
|**externalSharingModel**|`never`| optional |[REMOVED]`object.externalSharingModel` was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove) — it never had an effect: no request resolves an external principal, and the external rung of the authorization kernel (ADR-0095) admits explicitly shared rows only, never an org-wide default, so the value changed no answer for anyone. Delete the key. `sharingModel` is the one org-wide default; a principal reaches a row it does not own through an explicit share, and an anonymous reader through a share link (`publicSharing`). 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. |
|**actions**|`{ name: string; label: string \| Record<string, string>; description?: string \| Record<string, string>; objectName?: string; … }[]`| optional | Global and Object Actions. Unique per scope, not per stack: the runtime keys every action by its owning object's name (or 'global' when object-less), a colon, then the action name, and defineStack refuses two declarations that resolve to one key — both here, both on one object's actions, or one in each position, identical twins included (an embedded action is keyed by the object it is written on, not by its own objectName). One global and one object-bound action may share a name; on that object's route the object's own actions take precedence for by-name readers. composeStacks runs the same key rule across its input stacks (counting distinct stacks, not sites) and names both source stacks on a collision. |
125
+
|**actions**|`{ name: string; label: string \| Record<string, string>; description?: string \| object \| string \| Record<string, string>; objectName?: string; … }[]`| optional | Global and Object Actions. Unique per scope, not per stack: the runtime keys every action by its owning object's name (or 'global' when object-less), a colon, then the action name, and defineStack refuses two declarations that resolve to one key — both here, both on one object's actions, or one in each position, identical twins included (an embedded action is keyed by the object it is written on, not by its own objectName). One global and one object-bound action may share a name; on that object's route the object's own actions take precedence for by-name readers. composeStacks runs the same key rule across its input stacks (counting distinct stacks, not sites) and names both source stacks on a collision. |
|**actions**|`{ name: string; label: string \| Record<string, string>; description?: string \| Record<string, string>; objectName?: string; … }[]`| optional | Global and Object Actions. Unique per scope, not per stack: the runtime keys every action by its owning object's name (or 'global' when object-less), a colon, then the action name, and defineStack refuses two declarations that resolve to one key — both here, both on one object's actions, or one in each position, identical twins included (an embedded action is keyed by the object it is written on, not by its own objectName). One global and one object-bound action may share a name; on that object's route the object's own actions take precedence for by-name readers. composeStacks runs the same key rule across its input stacks (counting distinct stacks, not sites) and names both source stacks on a collision. |
375
+
|**actions**|`{ name: string; label: string \| Record<string, string>; description?: string \| object \| string \| Record<string, string>; objectName?: string; … }[]`| optional | Global and Object Actions. Unique per scope, not per stack: the runtime keys every action by its owning object's name (or 'global' when object-less), a colon, then the action name, and defineStack refuses two declarations that resolve to one key — both here, both on one object's actions, or one in each position, identical twins included (an embedded action is keyed by the object it is written on, not by its own objectName). One global and one object-bound action may share a name; on that object's route the object's own actions take precedence for by-name readers. composeStacks runs the same key rule across its input stacks (counting distinct stacks, not sites) and names both source stacks on a collision. |
0 commit comments