|
| 1 | +--- |
| 2 | +'@objectstack/skills': patch |
| 3 | +--- |
| 4 | + |
| 5 | +docs(skills): the objectstack-data and objectstack-automation entry files become routers |
| 6 | + |
| 7 | +Clause-②: no |
| 8 | +Metadata-protocol: none |
| 9 | + |
| 10 | +`skills/objectstack-data/SKILL.md` goes from 26.9 KB to 9.0 KB and `skills/objectstack-automation/SKILL.md` from 28.2 KB to 10.7 KB. Each now holds three things: four first checks (the installed `@objectstack/spec` version, what the project already has, the type's contract, `os validate`) and what to do when there is nothing to read yet (say so, and still give the whole definition as code), the traps that parse and then fail at run time, and a table that says which file to open for what you are writing. No rule's teaching changes. Text moved, and this entry says where it went. The ten skill files the move touches are 1.6 KB larger together (161.5 KB to 163.0 KB): objectstack-data is 2.3 KB smaller, objectstack-automation 3.9 KB larger. |
| 11 | + |
| 12 | +**objectstack-data.** The entry keeps `Conditional Field Rules`, `Object Definition`, `Field Type Selection`, `Relationship Patterns`, `Validation Patterns` and `Access depth` under their headings, each cut to the rules that fail silently. What left: |
| 13 | + |
| 14 | +- The object key table (the `color` row among it), the `enable` table (`fieldHistory`, `trackHistory`), `Search Fields (searchableFields)` and `Object Extension Model` (an extension's `place`, the paired `.custom` package's `fieldGroups` / `relatedLists` / `actionLayout`) are in `references/examples-objects.md` (`#object-keys`, `#search-fields-searchablefields`, `#object-extension-model`). |
| 15 | +- `Schema evolution on an existing database` is `rules/field-types.md#changing-a-field-that-has-data`, and objectstack-project points there now. The detail of choosing a type (a box that must be checked, the seeded-row default, why a person stays optional) is `rules/field-types.md#choosing-a-type`. |
| 16 | +- The `Conditional Field Rules` example and its bullets (`showOnCreate` among them), and what a bare field ref does at run time, are `rules/validation.md#conditional-field-rules`. The note that an omitted optional field reads as `null` on insert is `rules/validation.md#script-validation`. |
| 17 | +- `Ownership queues` and the mechanics of `readScope` / `writeScope` are in `rules/security.md`. |
| 18 | +- A handler named apart from the record owner is `rules/relationships.md#record-owner-and-other-people-on-a-record`. |
| 19 | +- Anchors that no longer exist in `SKILL.md`: `#skill-boundaries`, `#quick-reference--detailed-rules`, `#object-capabilities-enable`, `#search-fields-searchablefields`, `#schema-evolution-on-an-existing-database`, `#common-patterns`, `#naming-rules-summary`, `#index-patterns`, `#object-extension-model`, `#security--access-control`, `#ownership-queues--park-a-record-for-a-team-to-claim`, `#verify-your-work`, `#references`. `#conditional-field-rules`, `#object-definition`, `#field-type-selection`, `#relationship-patterns` and `#validation-patterns` still do. |
| 20 | + |
| 21 | +**objectstack-automation.** The entry keeps `Data Operations`, `External Integration`, `notify`, `Failure routing & runAs`, `Filter operands (config.filter)`, `Valid-but-silently-wrong (passes build, fails at runtime)` and `Integrations are declared, not coded` under their headings, each cut to the rules that fail silently. Beside them it states the facts of a flow's shape an answer needs before it opens a second file: a project flow is `defineFlow` in a `*.flow.ts`, the five flow `type`s (`type: 'schedule'` and where its cadence sits), `variables`, the trigger on the start node, the `approval` node, the option label of a notice (evaluated once per run), and `Assignment rules` (`defineAssignmentRule`, beside the approval node for the same queue). What left: |
| 22 | + |
| 23 | +- `references/examples-flows.md` now also holds `Flow Types`, packaged flows (`.custom` overrides, `defaultActive`), the control-flow node table, the detail of the `http`, `connector_action` and `screen` nodes, `Triggers` (the `requires` tokens, the trigger types) and `Assignment rules` in full (ordered entries, `least_loaded`, a packaged rule's queue). For `notify`, failure routing and `runAs`, filter operands and value slots, a section titled "the rest" holds what the entry's section no longer says. Of the option-label trap, the entry keeps the rule and its outcome (a label is refused at publish where the options are inline, else it matches no row or fails the run); the example, and the filter operand for rows that still hold a label, are in the rest section. |
| 24 | +- `references/integration-recipes.md` now also holds `Inbound webhook (api) triggers` and the list of cases that are platform code. |
| 25 | +- Anchors that no longer exist in `SKILL.md`: `#when-to-use-this-skill`, `#flows--visual-logic-orchestration` (now `#flows`), `#flow-types`, `#control-flow`, `#human-decision`, `#flow-variables`, `#assignment-rules--route-a-new-record-to-a-queue-or-a-person` (now `#assignment-rules`), `#triggers--event-driven-automation` and its four subsections, `#verify-your-work`, `#references`. |
| 26 | + |
| 27 | +**Not carried over, because the contract or a check already says it.** From objectstack-data: the `label`, `datasource`, `displayNameField`, `searchable`, `apiEnabled`, `files` and `clone` rows (their defaults are in `data/object.zod.ts`, which the entry's third check points at), the `titleFormat` row (a save and `os validate` refuse the key by name), the four-row `sharingModel` table (the four values are one bullet of `Object Definition`), the `Skill Boundaries` table (it listed the neighbouring skills, which the description still names), and the sections that only listed the other files (the rules list, `Naming Rules Summary`, `Index Patterns`). |
| 28 | + |
| 29 | +**One correction.** The multi-value lookup note in objectstack-data showed a `{record.tags.0}` token "in flow values". A flow value slot refuses that token, as objectstack-automation teaches. The note, now in `rules/relationships.md`, shows the CEL spelling `record.tags[0]`. objectstack-automation's value-slot rule likewise shows the CEL spelling (`has(record.owner) ? record.owner : null`, `record.tags[0]`) and no longer prints the refused token beside it: the refusal names the spelling. |
| 30 | + |
| 31 | +**Three eval cases accept the spellings the bundles teach.** Each failed correct answers on a literal: `flows-triggers-approvals` case 1 now forbids `values: {`, the key form a node carries, where it forbade the bare word `values:` that a prose heading also spells; `hooks-security-seeds-datasources` case 7 takes the refusal's translation as the nested `hooks: {` literal, as its JSON spelling, or as the dotted key `hooks.<hook>.refusals.CREDIT_LIMIT.message` that `references/data-hooks.md` teaches; `objects-fields-relationships` case 10 takes the yes/no field as `type: 'boolean'` or as `Field.boolean(`. A recorded round regrades the three as changed cases, outside its pass rates. |
0 commit comments