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 e07adc1
Browse filesBrowse the repository at this point in the historyBrowse files
docs(skills): the button rule stays in the automation entry as one clause
Contract review 7364905628, S1: the entry told an author to set
runAs: 'system' for a readonly write and had dropped the limit that a
button cannot start such a flow, a trap no publish-time check covers. One
clause on that bullet restores it: a button starts a system flow only as
screen / api, or through a subflow node. Paid inside the entry (the notify
row's purpose, the integrations pointer, the last runAs bullet, item 3's
sentence, which now follows its script node). Also from that review: "nor a
counter field" in the assignment rule, and the ratchet block's routing-row
wording.
The entry is 8,991 bytes and 190 lines; its row is re-pinned at the
measurement, 2242 to 2241.
Claude-Session: https://claude.ai/code/session_01Utp6Caj1WJjAUzogG5YWv5
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/34770-automation-skill-router.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ docs(skills): the objectstack-automation entry file is cut back to the router bu
7
7
Clause-②: no
8
8
Metadata-protocol: none
9
9
10
-
`skills/objectstack-automation/SKILL.md` goes from 10.8 KB to 9.0 KB (215 lines to 189). No heading changes, the frontmatter is byte-identical, and nothing an author can write changes: this is wording only. The seven sections a hosted door serves by heading keep their headings and their JSON and TypeScript blocks.
10
+
`skills/objectstack-automation/SKILL.md` goes from 10.8 KB to 9.0 KB (215 lines to 190). No heading changes, the frontmatter is byte-identical, and nothing an author can write changes: this is wording only. The seven sections a hosted door serves by heading keep their headings and their JSON and TypeScript blocks.
11
11
12
12
**What the entry keeps.** The four first checks and the "nothing to read yet" line; the routing list; a flow's project form and its `type` list with `type: 'schedule'` and where the cadence sits; `variables` as an array; the trigger on the start node's `config`; the `type: 'approval'` node; the two node tables with the `save_notice` translation key (`flows.{flow}.notices.{node_id}.message`, read in the saver's locale); the `notify` node with its recipient forms, the source pair rule and the option label evaluated once per run; the five failure-routing and `runAs` rules, the delegated-administration gate whole; the `null` filter operand; the four accepted-then-wrong items; `defineAssignmentRule` beside its approval node; and the declared-connector rule.
13
13
@@ -17,15 +17,15 @@ Metadata-protocol: none
17
17
- The routing table is a list of three files. Its row for triggers is part of the `references/examples-flows.md` line, its row for assignment rules is a link inside `## Assignment rules`, and `## Integrations are declared, not coded` names its reference file as a path, since the routing list links it.
18
18
- The gloss on `autolaunched` ("no user interaction: started by events, APIs or other flows"): `references/examples-flows.md` § Flow Types.
19
19
- The second `variables` entry (`{ name: 'approval_result', type: 'boolean', isOutput: true }`): the contract, `FlowVariableSchema` in `node_modules/@objectstack/spec/src/automation/flow.zod.ts`.
20
-
-`create_record`, `update_record` and `delete_record` share one table row; "Call an HTTP API" and "Display a UI form" left the `http` and `screen` rows; the `connector_action` row no longer says its `connectorConfig.input` is a value-slot map (`references/examples-flows.md` § External Integration — the rest).
20
+
-`create_record`, `update_record` and `delete_record` share one table row; "Call an HTTP API" and "Display a UI form" left the `http` and `screen` rows, and the `notify` row points at its section below; the `connector_action` row no longer says its `connectorConfig.input` is a value-slot map (`references/examples-flows.md` § External Integration — the rest).
21
21
- From the `notify` JSON node: `message` with its `date:long` formatter and the `sourceObject` / `sourceId` / `actionUrl` keys. Both examples now stand in `references/examples-flows.md` § `notify` — the rest; the entry keeps the rule (the pair is a pair, and a notify that writes none of the three links to the trigger record).
22
-
- "A button cannot start a `runAs: 'system'``autolaunched`, `record_change` or `schedule` flow: elevate the write, not the flow, through a `subflow` node": `references/examples-flows.md` § Failure routing & `runAs` — the rest, which already said it in full with the `403`.
22
+
- "A button cannot start a `runAs: 'system'``autolaunched`, `record_change` or `schedule` flow: elevate the write, not the flow, through a `subflow` node" is one clause now, on the same bullet: "A button starts a system flow only as `screen` / `api`, or through a `subflow` node." The long form, with the `403` and why the `subflow` route is preferred, is `references/examples-flows.md` § Failure routing & `runAs` — the rest. The last bullet of that section reads "gate an elevated flow here", without repeating `screen` / `api`.
23
23
- From § Filter operands: "evaluated before the query" is cut; "a dropped condition widens a query" and "a computed operand is a value, never a query operator" are what `references/examples-flows.md` § Filter operands — the rest already says at more length (the dropped condition that lets a `delete_record` empty the object; the value types a computed operand may be); "route around the node with a `decision`; to match an empty field, write the literal `null`" moved there.
24
24
- From item 1 of § Valid-but-silently-wrong: `input.*` and `collection` (the reference lists whose slots they are), the `registerFlow` and executor doors and the `has(record.owner) ? record.owner : null` spelling (moved to item 1 of the reference's § Value slots), and the run user `current_user.id` (already there). The entry still names `objectstack validate` and `expression-invalid`.
25
-
- From item 3: the second node of the JSON pair. The entry says in one clause what the later node writes; the node itself moved to item 2 of the reference's § Value slots. The remaining node's names are shorter (`helpdesk.triage`, `category`).
25
+
- From item 3: the second node of the JSON pair. The entry says in one sentence, under the `script` node, what the later `update_record` writes; the node itself moved to item 2 of the reference's § Value slots. The remaining node's names are shorter (`helpdesk.triage`, `category`).
26
26
- "Most are caught by `objectstack build`" under § Valid-but-silently-wrong: cut, with no other home. First check 4 says most traps pass `os validate`, and each item says where it is refused.
27
-
- From § Assignment rules: "it routes each inserted row whose `owner_id` and `queue` are both still empty, once, never on update" and the long form of the hook-and-counter warning: `references/examples-flows.md` § Assignment rules, which already held both.
27
+
- From § Assignment rules: "it routes each inserted row whose `owner_id` and `queue` are both still empty, once, never on update" and the long form of the hook-and-counter warning: `references/examples-flows.md` § Assignment rules, which already held both. The entry keeps "never a hook that picks an owner, nor a counter field".
28
28
29
-
**`references/examples-flows.md`** grows by 776 bytes, all of it text that left the entry and had no other home (listed above). Nothing else in it changed. The skill as a whole is 1,042 bytes smaller.
29
+
**`references/examples-flows.md`** grows by 776 bytes, all of it text that left the entry and had no other home (listed above). Nothing else in it changed. The skill as a whole is 1,043 bytes smaller.
30
30
31
-
**Ratchet.**`scripts/check-skills-token-ratchet.mjs`: the `skills/objectstack-automation/SKILL.md` row goes 2696 to 2242 and the `references/examples-flows.md` row 6433 to 6627, each pinned at its file's measurement with no headroom; the sum of ceilings falls by 260.
31
+
**Ratchet.**`scripts/check-skills-token-ratchet.mjs`: the `skills/objectstack-automation/SKILL.md` row goes 2696 to 2241 and the `references/examples-flows.md` row 6433 to 6627, each pinned at its file's measurement with no headroom; the sum of ceilings falls by 261.
Copy file name to clipboardExpand all lines: skills/objectstack-automation/SKILL.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ A human sign-off is a `type: 'approval'` node.
83
83
| Node | Purpose |
84
84
|:--|:--|
85
85
|`http`| Set `timeoutMs`. `url` and `headers` are served to every member who can read flows: never a credential there, use a declared connector. Retried after a record change: `durable: true`|
86
-
|`notify`|Send a notification (below)|
86
+
|`notify`|See below |
87
87
|`connector_action`| Dispatch a declared connector's action. `connectorConfig.input` is judged against the action's `inputSchema` only at dispatch |
88
88
|`script`| Call a **registered** function (*Valid-but-silently-wrong*#3) |
89
89
|`screen`| Screen flows only: `config.fields[]`. An upload is `type: 'file'`, a link to a created record `type: 'record_link'`; Next / Submit is never authored |
@@ -114,7 +114,8 @@ fan-out.
114
114
-**A failed node is routed by a `fault` edge**, `{ source, target, type: 'fault' }`.
115
115
A `label: 'error'` alone does nothing: an ordinary edge traverses on SUCCESS.
116
116
-**Writing a `readonly` field? Set `runAs: 'system'`.** Under the default
117
-
`runAs: 'user'` the engine **strips** it and the step succeeds.
117
+
`runAs: 'user'` the engine **strips** it and the step succeeds. A button
118
+
starts a system flow only as `screen` / `api`, or through a `subflow` node.
118
119
-**Elevation stops at identity assignment**: a `runAs: 'system'` write of
119
120
`sys_user_position`, `sys_user_permission_set`, `sys_invitation` or
120
121
`sys_member` is refused `PERMISSION_DENIED`. Grant a position or permission
@@ -124,8 +125,7 @@ fan-out.
124
125
-**A `runAs: 'system'` sweep must pin its organization**, or it reads and
125
126
writes across every tenant.
126
127
-**Who may START a flow: `requiredPermissions: ['…']` on the flow.** Gate an
127
-
elevated `screen` / `api` flow here, never on `current_user.positions`
128
-
inside it.
128
+
elevated flow here, never on `current_user.positions` inside it.
129
129
130
130
### Filter operands (`config.filter`)
131
131
@@ -146,9 +146,7 @@ node.**
146
146
✅ `source: 'newRec.id'`
147
147
3.**`script` nodes call a registered function — nothing else.**
148
148
`config.function` names one registered in `defineStack({ functions })`: a
149
-
PURE compute step that receives `ctx.input` and **returns** a value. A
150
-
later **declarative** node persists its `outputVariable` (an
0 commit comments