Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .changeset/37057-skill-sentences-follow-lint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@objectstack/skills': patch
---

docs(skills): objectstack-data names `actionLayout` among the keys only the paired `.custom` extension writes, and objectstack-automation says an option label in a flow filter or edge condition is refused

Clause-②: no
Metadata-protocol: none

objectstack-data: the sentence on what only the pair's object extension writes listed `fieldGroups` and `relatedLists`; it now names `actionLayout` too, with a pointer to objectstack-ui, where the key is taught, and says what differs for that key: it replaces each arm it writes, and outside a `.custom` package an action is placed by its own `locations` and `order`, not by `place`. Paid for in the same file by trimming three Quick Reference lines that repeated what the body says (naming, field types, "partial indexes").

objectstack-automation: the trap sentence said a label in a `filter` or an edge `condition` "is never checked". `flow-condition-option-label` now reads those positions, so the sentence says they are refused at publish like a start condition (where the field's options are inline), and that a filter for rows still holding the label takes a CEL envelope operand. Text only; no ceiling of the skills token ratchet moves.
8 changes: 4 additions & 4 deletions skills/objectstack-automation/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ Most are caught by `objectstack build`:

4. **A `select` is compared and written by its option `value`, never its label.**
The request says "Lost"; the row stores `lost`.
A start `condition: "record.status == 'Lost'"` or `fields: { status: 'Lost' }`
is refused at publish (inline options), else matches no row or fails the
run (`invalid_option`). A label in a `filter` or an edge `condition` is never
checked: it silently matches nothing. Read the field's `options`.
A start or edge `condition: "record.status == 'Lost'"`, or `filter` /
`fields: { status: 'Lost' }`, is refused at publish (inline options), else
matches no row or fails the run (`invalid_option`); a filter for rows still
holding the label takes a CEL envelope operand. Read the field's `options`.

---

Expand Down
17 changes: 9 additions & 8 deletions skills/objectstack-data/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ metadata:

## Quick Reference — Detailed Rules

- **[Naming Conventions](./rules/naming.md)** — snake_case rules, option values, config properties
- **[Field Types](./rules/field-types.md)** — All field types and configs
- **[Naming Conventions](./rules/naming.md)**
- **[Field Types](./rules/field-types.md)**
- **[Relationships](./rules/relationships.md)** — lookup vs master_detail, junction patterns, delete behaviors
- **[Validation Rules](./rules/validation.md)** — All validation types, script inversion, severity levels
- **[Index Strategy](./rules/indexing.md)** — btree/gin/gist/fulltext, composite indexes, partial indexes
- **[Index Strategy](./rules/indexing.md)** — btree/gin/gist/fulltext, composite indexes
- **[Data Lifecycle & Retention](./rules/lifecycle.md)** — `lifecycle` classes, retention/TTL/rotation/archive policies (not *hooks*); plus the **save notice** a hook hands the saver (`ctx.notice`)
- **[Lifecycle Hooks](./references/data-hooks.md)** — the lifecycle events, the sandboxed `body` (ctx + capability contract; the inline `handler` is deprecated), registration, canonical patterns
- **[Datasources & Federation](./rules/datasources.md)** — `defineDatasource`, external/federated objects (`remoteName`/`columnMap`), auto-connect gating, credentials; ❌ no `field.columnName` on external objects
Expand Down Expand Up @@ -382,11 +382,12 @@ declaration. Every field the pair adds ends in `__c` (`region__c`). The suffix i
reserved to the pair, so a `__c` field in any other package, or an unsuffixed
field in a `.custom` extension, is refused at save, publish and install and by
`os validate` / `os build`.
Only the pair's extension may also write `fieldGroups` and `relatedLists`, shaped
as on an object. A written key replaces that arrangement whole (the owner's and
every `place`): an unlisted field shows after the last group, an unnamed tab
still shows after the listed ones, and `{ list: 'crm_note', hidden: true }` hides
a tab. Outside a `.custom` package both keys are refused at those doors: use `place`.
Only the pair's extension also writes `fieldGroups`, `relatedLists` and `actionLayout`
(**objectstack-ui**), shaped as on an object. A written key replaces that arrangement
whole (the owner's and every `place`; `actionLayout`, each arm it writes): an unlisted
field shows after the last group, an unnamed tab after the listed ones, and
`{ list: 'crm_note', hidden: true }` hides a tab. Outside a `.custom` package they are
refused at those doors: use `place`, or for an action its own `locations` and `order`.
Studio's **Add field** on a base object writes the same extension, as an
`object_extension` item of the pair.

Expand Down
Loading