Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
d1cac64
wip: six publish-time rules and sealed node-type vocabulary
claude Nov 18, 2026
42672fb
test: pins for the six publish-time rules
claude Nov 18, 2026
c65d17a
feat(metadata-protocol): four build probes over what landed
claude Nov 18, 2026
a8d9400
docs(spec): regenerate the protocol reference for the probe codes
claude Nov 18, 2026
ccfd1c1
chore: changeset for the six publish-time checks and four build probes
claude Nov 18, 2026
48e5d43
fix: keep protocol.ts within its ceiling, seat the probe doubles, upd…
claude Nov 18, 2026
cd15670
test: the probe doubles refuse a where operator they do not implement
claude Nov 18, 2026
96552bd
Merge origin/main into claude/issue-34776-publish-checks-build-probes
claude Nov 18, 2026
e45bb89
feat: examples declare their entry states and http timeouts; ADR-0087…
claude Nov 18, 2026
b2b0dbf
fix: scope the probes' target and parent reads; classify build-probes…
claude Nov 18, 2026
e4e9131
fix: contract review round: drop field-boolean-required, scope and pr…
claude Nov 18, 2026
8abe2c0
Merge remote-tracking branch 'origin/main' into claude/issue-34776-pu…
claude Nov 18, 2026
7c71a0d
docs: regenerate the protocol reference on the merged tree
claude Nov 18, 2026
3cce87c
test(cli): give the conversion-door fixture's http node a node-level …
claude Nov 18, 2026
e275c3e
chore(changeset): the Clause-② line counts four refusals
claude Nov 18, 2026
370c46b
fix: scope the probes' seed-row and child-sample reads; name the roll…
claude Nov 18, 2026
4be98b6
Merge remote-tracking branch 'origin/main' into claude/issue-34776-pu…
claude Nov 18, 2026
8122905
docs: regenerate the protocol reference on the merged tree
claude Nov 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .changeset/34776-publish-checks-build-probes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
'@objectstack/lint': minor
'@objectstack/metadata-protocol': minor
'@objectstack/service-automation': minor
'@objectstack/spec': minor
---

feat(lint): five publish-time checks for metadata that passes the schema and does nothing at run time, and four build probes over what landed

Clause-②: no (narrowing: four publish-time refusals of metadata the schema accepts today)
Metadata-protocol: narrowed
Skills-docs: follow-up #35245

<!-- adr-0087: registered publish-refuses-metadata-the-runtime-ignores -->

Five authoring rules join the registry the runtime publish gate and `objectstack validate` / `lint` / `compile` run. Each finding names its fix.

- `flow-node-type-no-executor` (error): a flow node whose `type` no executor in this deployment runs fails every run with `NO_EXECUTOR`. Judged only against the automation engine's SEALED node-type vocabulary, which the publish gate reads from the new `AutomationEngine.getSealedNodeTypeVocabulary()` (it answers `undefined` until `sealNodeTypeVocabulary()` ran at `kernel:bootstrapped`). The CLI does not know which plugins a deployment loads, so it judges nothing here.
- `flow-approval-decision-unrouted` (error): an `approval` node whose decision out-edges are not labelled exactly `approve` and `reject` runs every out-edge for a decision no label claims, so the approving and the rejecting branch both run.
- `flow-http-timeout-missing` (warning): an `http` node with no positive `config.timeoutMs` and no positive node-level `timeoutMs` waits on a slow upstream for as long as the connection stays open; the engine arms no default timer. A `durable: true` node, which does not wait on the endpoint, is not reported. Like every warning, it makes `os validate --strict` exit 1.
- `state-machine-no-initial-states` (error): an active `state_machine` validation without `initialStates` (or with an empty list) lets a record be created already in any state. Add `initialStates`.
- `action-no-object-binding` (error): a standalone action that declares `locations` but no `objectName` binds to no object, so its button never renders. Set `objectName`, or write `locations: []` for a headless action.

What was accepted before and is refused at publish now: a flow with an unrouted approval decision or a node type the deployment cannot run, a state machine without `initialStates`, a placed action with no object. The fix for each is in the finding.

Four post-publish build probes report, as warnings on the publish receipt, what the person will see: `widget_empty_result` (a dashboard card whose real query reads only zeros), `rollup_never_computed` (a roll-up blank on every parent that has children), `seed_reference_unresolved` (a sample record the seed loader landed whose reference names no row in the organization that record belongs to, so the reference leads nowhere) and `flow_connector_action_unresolved` (a `connector_action` step naming a connector or action this environment does not serve). Each carries its sentence for the person in every platform locale. `RunBuildProbesOptions` gains `automation`, `packageId` and `seedLanded`; the publish passes the automation engine's connector lookups, the publishing package and its `seedApplied.landed` ids. `ProbeEngine` gains an optional `getSchema`, which names the column a row's organization is stamped in; the roll-up and seed probes judge each row inside that organization.

New exports: `@objectstack/lint` adds `validateFlowNodeExecutors`, `validateInertObjectDeclarations`, `validateActionObjectBinding`, their finding types, and the rule ids `FLOW_NODE_TYPE_NO_EXECUTOR`, `FLOW_APPROVAL_DECISION_UNROUTED`, `FLOW_HTTP_TIMEOUT_MISSING`, `STATE_MACHINE_NO_INITIAL_STATES`, `ACTION_NO_OBJECT_BINDING`; `@objectstack/metadata-protocol` adds the `ProbeAutomation` and `SeedLandedRows` types; `@objectstack/service-automation` adds `AutomationEngine.getSealedNodeTypeVocabulary()`. `@objectstack/spec` changes only descriptions: those of `RuntimeBuildIssueSchema`, and that of a state machine validation's `initialStates`.
2 changes: 1 addition & 1 deletion content/docs/deployment/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ os compile --json # JSON output for CI pipelines
→ Normalizing stack definition...
→ Lowering inline handlers...
→ Validating protocol compliance...
→ Running author-time rules (70)...
→ Running author-time rules (73)...
→ Checking that every required capability has a provider installable in this edition...
→ Collecting package docs (ADR-0046)... 0 collected
→ Writing artifact...
Expand Down
2 changes: 1 addition & 1 deletion content/docs/deployment/validating-metadata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ A clean run walks the registry and reports timing:
Config: /path/to/support-desk/objectstack.config.ts
Load time: 21ms
→ Validating against ObjectStack Protocol...
→ Running author-time rules (70)...
→ Running author-time rules (73)...
→ Checking that every required capability has a provider installable in this edition...
→ Checking package docs (ADR-0046)...

Expand Down
2 changes: 1 addition & 1 deletion content/docs/getting-started/build-with-claude-code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ visible: 'status != "resolved"'
◆ Validate
────────────────────────────────────────
→ Validating against ObjectStack Protocol...
→ Running author-time rules (70)...
→ Running author-time rules (73)...

✗ Author-time rules failed (1 issue)
• stack · action 'resolve_ticket' visible: bare reference `status` — a
Expand Down
18 changes: 9 additions & 9 deletions content/docs/references/api/protocol.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,10 @@ Canonical cross-paradigm action/node descriptor (ADR-0018)
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **layer** | `'runtime'` | ✅ | The ADR-0038 verification plane that found it. Always `runtime` on this report: these are the post-publish probes. |
| **severity** | `Enum<'error' \| 'warning'>` | ✅ | `error`: the published artifact is broken at runtime, or the check that judges it could not run (`object_field_ref_rule_failed`). `warning`: a dashboard widget was not probed, so nothing is known about it. Neither fails the publish. |
| **severity** | `Enum<'error' \| 'warning'>` | ✅ | `error`: the published artifact is broken at runtime, or the check that judges it could not run (`object_field_ref_rule_failed`). `warning`: a dashboard widget was not probed, so nothing is known about it (`widget_not_probed`, `probes_unavailable`); what landed reads in a way the person will notice although it may be the truth (`widget_empty_result`, `rollup_never_computed`); or what landed is wrong in a way that depends on data or on what the environment serves rather than on the artifact alone: a stored reference that names no row (`seed_reference_unresolved`), a flow step that fails on every run that reaches it until the connector it names is served (`flow_connector_action_unresolved`). Neither fails the publish. |
| **artifact** | `{ type: string; name: string }` | ✅ | The published artifact whose runtime behaviour the finding is about. |
| **ref** | `{ type: string; name: string; member?: string }` | optional | What the probe exercised, when that is not the artifact itself: the object a seed loads into or a view reads, the dataset a widget is bound to. Absent when the finding is about the artifact as a whole. |
| **code** | `string` | ✅ | Stable machine id of the finding class, lowercase snake: a diagnostics code carried in a 200, not an ADR-0112 error code. The probes emit `seed_not_applied`, `view_read_failed`, `object_field_ref_unknown`, `object_field_ref_rule_failed`, `empty_query`, `widget_query_failed`, `widget_not_probed` and `probes_unavailable`. The list is the producer's and may grow: a consumer treats an id it does not know as any other finding. |
| **ref** | `{ type: string; name: string; member?: string }` | optional | What the probe exercised: the object a seed loads into or a view reads, the dataset a widget is bound to, the connector a flow step dispatches, or the published object itself when `member` names the field the finding is about (a roll-up). Absent when the finding is about the artifact as a whole. |
| **code** | `string` | ✅ | Stable machine id of the finding class, lowercase snake: a diagnostics code carried in a 200, not an ADR-0112 error code. The probes emit `seed_not_applied`, `view_read_failed`, `object_field_ref_unknown`, `object_field_ref_rule_failed`, `empty_query`, `widget_query_failed`, `widget_not_probed`, `probes_unavailable`, `widget_empty_result`, `rollup_never_computed`, `seed_reference_unresolved` and `flow_connector_action_unresolved`. The list is the producer's and may grow: a consumer treats an id it does not know as any other finding. |
| **message** | `string` | ✅ | What is wrong, written for the AGENT that built the app (ADR-0038): English, naming the exact artifact and member by machine name. Not the sentence for the person who published; that is `userMessage`. |
| **fix** | `string` | optional | How to repair it, written for the same agent. Absent when the probe has no remedy to name. |
| **userMessage** | `string` | optional | The finding's sentence for the PERSON who published, composed by its producer in the request's locale (else the workspace default locale, else `en`) — the same field name and producer-marked meaning as `RuntimeAuthoringIssueSchema.userMessage` and `ApiErrorSchema.userMessage`. It names an artifact by its label where the probe can read one, else by its machine name; an object the publishing caller was refused, or whose read access could not be decided, by the machine name the refusal carries, its label unread. Present when the producer authors a user sentence for this `code`, which the probes do for every code they emit; absent, a consumer shows its own generic sentence. Consumers render it as received and keep no per-code translation table; `code` stays the stable id and `message` / `fix` stay the agent-facing text. |
Expand Down Expand Up @@ -3024,10 +3024,10 @@ Answer to a device registration: the device id the client keeps
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **layer** | `'runtime'` | ✅ | The ADR-0038 verification plane that found it. Always `runtime` on this report: these are the post-publish probes. |
| **severity** | `Enum<'error' \| 'warning'>` | ✅ | `error`: the published artifact is broken at runtime, or the check that judges it could not run (`object_field_ref_rule_failed`). `warning`: a dashboard widget was not probed, so nothing is known about it. Neither fails the publish. |
| **severity** | `Enum<'error' \| 'warning'>` | ✅ | `error`: the published artifact is broken at runtime, or the check that judges it could not run (`object_field_ref_rule_failed`). `warning`: a dashboard widget was not probed, so nothing is known about it (`widget_not_probed`, `probes_unavailable`); what landed reads in a way the person will notice although it may be the truth (`widget_empty_result`, `rollup_never_computed`); or what landed is wrong in a way that depends on data or on what the environment serves rather than on the artifact alone: a stored reference that names no row (`seed_reference_unresolved`), a flow step that fails on every run that reaches it until the connector it names is served (`flow_connector_action_unresolved`). Neither fails the publish. |
| **artifact** | `{ type: string; name: string }` | ✅ | The published artifact whose runtime behaviour the finding is about. |
| **ref** | `{ type: string; name: string; member?: string }` | optional | What the probe exercised, when that is not the artifact itself: the object a seed loads into or a view reads, the dataset a widget is bound to. Absent when the finding is about the artifact as a whole. |
| **code** | `string` | ✅ | Stable machine id of the finding class, lowercase snake: a diagnostics code carried in a 200, not an ADR-0112 error code. The probes emit `seed_not_applied`, `view_read_failed`, `object_field_ref_unknown`, `object_field_ref_rule_failed`, `empty_query`, `widget_query_failed`, `widget_not_probed` and `probes_unavailable`. The list is the producer's and may grow: a consumer treats an id it does not know as any other finding. |
| **ref** | `{ type: string; name: string; member?: string }` | optional | What the probe exercised: the object a seed loads into or a view reads, the dataset a widget is bound to, the connector a flow step dispatches, or the published object itself when `member` names the field the finding is about (a roll-up). Absent when the finding is about the artifact as a whole. |
| **code** | `string` | ✅ | Stable machine id of the finding class, lowercase snake: a diagnostics code carried in a 200, not an ADR-0112 error code. The probes emit `seed_not_applied`, `view_read_failed`, `object_field_ref_unknown`, `object_field_ref_rule_failed`, `empty_query`, `widget_query_failed`, `widget_not_probed`, `probes_unavailable`, `widget_empty_result`, `rollup_never_computed`, `seed_reference_unresolved` and `flow_connector_action_unresolved`. The list is the producer's and may grow: a consumer treats an id it does not know as any other finding. |
| **message** | `string` | ✅ | What is wrong, written for the AGENT that built the app (ADR-0038): English, naming the exact artifact and member by machine name. Not the sentence for the person who published; that is `userMessage`. |
| **fix** | `string` | optional | How to repair it, written for the same agent. Absent when the probe has no remedy to name. |
| **userMessage** | `string` | optional | The finding's sentence for the PERSON who published, composed by its producer in the request's locale (else the workspace default locale, else `en`) — the same field name and producer-marked meaning as `RuntimeAuthoringIssueSchema.userMessage` and `ApiErrorSchema.userMessage`. It names an artifact by its label where the probe can read one, else by its machine name; an object the publishing caller was refused, or whose read access could not be decided, by the machine name the refusal carries, its label unread. Present when the producer authors a user sentence for this `code`, which the probes do for every code they emit; absent, a consumer shows its own generic sentence. Consumers render it as received and keep no per-code translation table; `code` stays the stable id and `message` / `fix` stay the agent-facing text. |
Expand All @@ -3036,16 +3036,16 @@ Answer to a device registration: the device id the client keeps

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | Metadata type of the artifact (`seed`, `view`, `object`, `dashboard`). |
| **type** | `string` | ✅ | Metadata type of the artifact (`seed`, `view`, `object`, `dashboard`, `flow`). |
| **name** | `string` | ✅ | Item name of the artifact. On `probes_unavailable` it is the name of every dashboard whose widgets went unprobed, joined by `, `. |

### Nested Shape: `RuntimeBuildIssue.ref`

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | Metadata type of what was exercised (`object`, `dataset`). |
| **type** | `string` | ✅ | Metadata type of what was exercised (`object`, `dataset`, `connector`). |
| **name** | `string` | ✅ | Its item name. |
| **member** | `string` | optional | The dashboard widget the finding is about, when the finding is about one widget: its `id`, else its `title` as a string, else `?`. |
| **member** | `string` | optional | The part of it the finding is about: the dashboard widget, when the finding is about one widget (its `id`, else its `title` as a string, else `?`); the field of an object (a roll-up, a reference column); the action of a connector. |


---
Expand Down
Loading
Loading