Commit 2dc0a77
docs(runtime,rest): name both causes of
Both dispatchers compute
`const next = from === undefined ? null : legalNextStates(schema, field, from);`
so `next: null` has two causes -- no `state_machine` rule governs the field,
and the caller omitted `?from=`. The comment immediately above each line named
only the first.
The `rest-server.ts` one was the sharper miss: it asserted a three-valued
answer and justified the tri-state on the grounds that a UI must be able to
tell the cases apart, directly above the line that folds a fourth input
condition onto the same `null`.
Both comments now match the semantics already asserted in
`docs/qa/platform-checklist/areas/api-backend.json` and the prose in
`content/docs/protocol/objectql/state-machine.mdx`. Comment text only -- every
changed line is a `//` comment; no expression, return shape or observable
behaviour moves.
Claude-Session: https://claude.ai/code/session_019siH5jDmk5hrayvfyojUqR
Co-authored-by: Claude <noreply@anthropic.com>next: null in the state-introspection comments (#11591)1 parent 12e306a commit 2dc0a77
2 files changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6296 | 6296 | | |
6297 | 6297 | | |
6298 | 6298 | | |
6299 | | - | |
6300 | | - | |
6301 | | - | |
6302 | | - | |
| 6299 | + | |
| 6300 | + | |
| 6301 | + | |
| 6302 | + | |
| 6303 | + | |
| 6304 | + | |
| 6305 | + | |
| 6306 | + | |
| 6307 | + | |
| 6308 | + | |
6303 | 6309 | | |
6304 | 6310 | | |
6305 | 6311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
237 | 242 | | |
238 | 243 | | |
239 | 244 | | |
| |||
0 commit comments