Commit fc2acf0
committed
fix(spec): stop routing automation authors at the ADR-0020-retired state machine
The published `objectstack-automation` index pointed at
`automation/state-machine.zod.ts`. ADR-0020 retired that shape AS A
RECORD-LIFECYCLE DECLARATION -- the top-level `workflow` metadata type and
`object.stateMachines` are both gone -- and a record's legal transitions are
now a `state_machine` validation rule in `data/validation.zod.ts`, which was
already the last entry of the same list. So the index did not merely
over-promise: it pointed at something the platform deliberately removed from
this package's surface. The file's one surviving door is `ai/agent.zod.ts`'s
`lifecycle`, an objectstack-ai door, and that index reaches it transitively.
The other direction, from the same audit: the two per-node-type `config`
schemas the body teaches were in no package's list at all. Screen `fields` and
the ADR-0031 loop/parallel/try_catch containers reach
`automation/builtin-node-config.zod.ts`; `NotifyConfigSchema` and the `http`
`timeoutMs` reach `automation/io-node-config.zod.ts`. An agent told to always
read the source for exact field shapes had no route to either.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2oQebDDxYKfWZusyd8GXk1 parent 3e9e2f6 commit fc2acf0
2 files changed
Lines changed: 16 additions & 2 deletions
File tree
- packages/spec/scripts
- skills/objectstack-automation/references
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
132 | 139 | | |
133 | 140 | | |
134 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
135 | 148 | | |
136 | 149 | | |
137 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | | - | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
0 commit comments