Skip to content

Docs code samples, family close-out: workflows, approvals, actions and cel pages show flow and view samples that @objectstack/spec 17.7.0 refuses; add a docs-sample parse gate so the family stays closed #316

Description

@objectstack-fleet

Found while #307 was staged on 2026-10-06, measured on @objectstack/spec 17.7.0, the npm latest. It belongs to the same family as #301 and #307: a reader who copies one of these samples gets a schema error. Priority: P2.

Findings

Page Sample What 17.7.0 says
build/automation/workflows.mdx:104 defineFlow refused: label missing on the flow, and on nodes.0 and nodes.3
build/automation/approvals.mdx:216 defineFlow refused: nodes.0.label and nodes.4.label missing
build/interface/actions.mdx:119 defineView refused: unrecognized key actions
build/interface/actions.mdx:63, :127-133 old { type: 'action', action, inputs, record } step the pre-nodes/edges flow shape that #307 retired
reference/cel.mdx the "Flow guard" { when: … } step the same retired step shape

Method: #307's, in scratchpad/issue-307/spec-check/scripts/{extract,flows-check,views-check,controls}.mjs on the seat's box. Extract each published fenced block, strip only TS syntax, wrap it minimally, parse it, and run refusal controls. Builtin nodes are also checked against getBuiltinNodeConfigContracts.

Done looks like

Order

After #307 lands. It may be split into two PRs, the page fixes and then the gate, if that is smaller to review.


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions