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 f4dbcc2
Browse filesBrowse the repository at this point in the historyBrowse files
feat(lint): five publish-time checks for metadata the runtime ignores, and four build probes over what landed (#35244)
Fixes#34776
Part of #35146
Clause-②: no (narrowing: four publish-time refusals of metadata the
schema accepts today)
Metadata-protocol: narrowed
Skills-docs: follow-up #35245
## 维护者速读
- 改了什么:发布时新增五条检查(四条拒绝、一条警告),拦住"能通过
schema、运行时却不起作用"的元数据;发布回执新增四条数据探针警告(仪表盘卡片全是
0、汇总字段从未计算、示例数据引用不存在的记录、流程连接器动作不存在)。原计划的第六条"布尔字段不应 required"经合同审查证伪,已从本
PR 移除。
- 为什么改:这些问题过去只在用户打开页面、保存记录或流程运行时才暴露;现在在发布那一刻就告诉作者,并给出修法。
- 风险与回滚:已存的元数据不会被改写,也不会在启动时被拒;下一次发布带这四类错误的元数据会被拒并给出修法。两个示例已补上
`initialStates` 与 `timeoutMs`,ADR-0087 账本已登记
`publish-refuses-metadata-the-runtime-ignores`。数据探针只读系统身份、只取判定所需列,并按组织隔离。回滚即
revert 本 PR。
-
先看:`packages/metadata-protocol/src/build-probes.ts`(汇总与示例引用两段读数据的逻辑:按组织隔离、只读示例数据自己的行)、`packages/lint/src/lint-flow-patterns.ts`(http
超时规则读节点级超时、0 视为无超时、durable
不报)、`packages/lint/src/validate-inert-object-declarations.ts`(空
`initialStates` 也算未声明)。
- 两分钟验证:`pnpm --filter @objectstack/metadata-protocol exec vitest run
--maxWorkers=2 src/build-probes-landed-data.test.ts`,预期 21 例全绿;其中
"scoped like the engine's reference audit"
一组断言每次读都带组织与投影列,另一组断言最小/最大/平均汇总的修法点名 `--recompute-undefined-on-empty`。
- 需要你做的:请在线程里的决策卡上确认是否去掉“布尔字段必填”这条检查(席位建议去掉,本 PR
已按此去掉)。其余无需决策,审核通过后由席位落地。
## What changes
**#34776: five authoring rules**, in the registry both the runtime
publish gate and `objectstack validate` / `lint` / `compile` / `build`
run. Each finding names its fix; `os explain RULE` carries the
reasoning.
| Rule | Tier | Runtime types | What it refuses |
|---|---|---|---|
| `flow-node-type-no-executor` | error | flow | a node whose `type` no
executor in this deployment runs (every run fails with `NO_EXECUTOR`) |
| `flow-approval-decision-unrouted` | error | flow (inside
`lintFlowPatterns`) | an `approval` node whose decision out-edges are
not exactly `approve` and `reject` (a decision no label claims runs
every out-edge, so both branches run) |
| `flow-http-timeout-missing` | warning | flow (inside
`lintFlowPatterns`) | an `http` node with no positive `config.timeoutMs`
and no positive node-level `timeoutMs`; a `durable: true` node is not
reported. Like every warning, it makes `os validate --strict` exit 1 |
| `state-machine-no-initial-states` | error | object | an active
`state_machine` validation with no `initialStates`, or an empty list |
| `action-no-object-binding` | error | action | a standalone action with
`locations` and no `objectName` (its button renders nowhere; the handler
still answers every object's action route) |
- Rule (1) is judged only against the **sealed** node-type vocabulary.
New `AutomationEngine.getSealedNodeTypeVocabulary()` answers `undefined`
until `sealNodeTypeVocabulary()` ran at `kernel:bootstrapped`, so a
boot-time read never judges a vocabulary that is still filling
(AGENTS.md "Startup registry reads"). The publish gate reads it per flow
write through `sealedFlowNodeTypeVocabulary`
(protocol-authoring-gate.ts). The CLI has no vocabulary (the stack does
not say which plugins the deployment loads), so the rule judges nothing
on the CLI.
- Rule (3) is a warning. The `http` executor arms its timer only when
`config.timeoutMs` is truthy (`timeoutMs ? setTimeout : undefined`, so
`0` arms none), and the engine races a node against node-level
`timeoutMs` only when it is positive (`dag-traversal.ts`). A `durable:
true` node hands the request to the outbox (or, on the save path, sends
it in the background) and does not hold the run; its one waiting arm (no
outbox wired, off the save path) is a deployment fact the lint cannot
see.
- Rule (4) reads `initialStates` as the engine does: `checkStateMachine`
treats an absent or empty list as no entry contract, and skips a rule
with `active: false`.
- Rule (5): `validateActionLocations` (`action-no-placement`) is an
advisory, CLI-only placement rule and the runtime gate does not run it
(measured in the registry: `surfaces: CLI_ONLY`). The binding question
is a separate gating rule that does run on runtime `action` writes.
- `protocol.ts` was at its facade line ceiling (11705 of 11705 on main).
The gate's host for `assertRuntimeAuthoringRules` is now the
draft-verdict host (`draftVerdictHost()`, a superset of the members it
reads), which removed a duplicated host literal and keeps the file at
11704 lines.
**#35146: four build probes** (warnings on the publish receipt, each
with `userMessage` in all eleven platform locales):
| Code | Artefact | What the person will see |
|---|---|---|
| `widget_empty_result` | dashboard (ref: dataset, member: widget) | the
card's real query answers only zero/null measures: an empty "0" tile |
| `rollup_never_computed` | object (ref: the object itself, member:
summary field) | a roll-up blank on every parent that has children |
| `seed_reference_unresolved` | seed (ref: object, member: field) |
sample records whose reference names no row: the reference leads nowhere
|
| `flow_connector_action_unresolved` | flow (ref: connector, member:
action) | a `connector_action` step the runtime cannot dispatch: refused
name, no handler, or degraded |
- `widget_empty_result` and `empty_query` are one `if / else if`: a
result with no rows stays `empty_query` (#25484). A no-dimension
aggregate over an object with no rows the caller sees answers one row
reading `0`, and is reported, since that is the card the person sees.
- The roll-up probe judges only parents a sampled child points at (via
`relationshipField`, else the one `master_detail`/`lookup` back to the
parent), only a field UNSET on all of them (a computed zero is a value),
and skips a roll-up with its own `filter`. It judges one organization at
a time, and forms each verdict and count inside it. Its repair names `os
migrate summary-nulls --apply` for `count` and `sum`, and `os migrate
summary-nulls --apply --recompute-undefined-on-empty object.field` for
`min`, `max` and `avg` (#15064: the plain run does not fill those), in
`fix` and in the eleven user sentences. It also says a package install
or upgrade materialises a roll-up it adds at the install door
(`summary-install-materialise.ts`) and that a child write recomputes the
parent that child names.
- The seed probe reads the rows the loader reports it landed
(`seedApplied.landed`, passed in as `seedLanded`), by id: the rows it
created, and the rows a seed key matched only when the seed's mode wrote
them (`upsert`, `update`). A row the loader did not land is not read,
judged or quoted. A stored dangling value does not block a later edit
(#29062: the write check judges only references a write adds), so the
finding says the reference leads nowhere, not that the record cannot be
saved.
- Every landed-data read runs under the system identity and is scoped
like the parent and target reads: the publishing organization when the
publish names one, else one organization at a time (each row's own
stamped organization, its column named by `resolveTenantFieldName`
through the new optional `ProbeEngine.getSchema`). The organization
rides the context's `tenantId`, so an object with no tenant column
(`sys_user`) is read unscoped by the engine. Each read is projected to
the columns it judges (`fields`), and each existence check is one `id
$in` read per organization, projected to `id`. The comment in
`build-probes.ts` states why the seed check does not reuse
`inspectDanglingReferences` (no row filter; one probe per value) and the
one residual (under a `group` tenancy posture the audit leaves its probe
unscoped; this probe stays in the row's organization).
- The connector probe asks the engine the same lookups, in the same
order, as the `connector_action` executor (`resolveConnectorInstanceFor`
for the publishing package, `resolveConnectorAction`,
`getConnectorDegradedReason`); publish passes the automation service and
`request.packageId`.
- Spec: descriptions only. `RuntimeBuildIssueSchema` (code list,
`severity` meaning per code group, `flow` artefact, `connector` ref,
`ref` and `member` meaning) and a state machine's `initialStates`
(omitted or empty, insert is not checked; the author-time rule refuses
that at publish). The protocol and validation references are
regenerated.
**Cloud sources ported** (read at cloud `origin/main`
c21b3723c41a66a9a3c0c27e0f80b87dec8f86f9, with `git show`, nothing
checked out):
- `packages/service-ai-studio/src/verify/data-reality.ts`: semantics and
fix text of `rollup_never_computed`, `widget_empty_result` and the
reference-integrity check (`seed_reference_unresolvable` there; here a
warning named `seed_reference_unresolved` as #35146 asks).
- `packages/service-ai-studio/src/verify/flow-reality.ts`:
`flow_connector_action_unresolved`.
- `packages/service-ai-studio/src/verify/graph-lint.ts`: read for the
approval-edge and state-machine semantics.
- `packages/service-ai-studio/src/verify/view-query-probe.ts`: read,
nothing ported (view column-summary query probes are outside both
cards).
- `packages/service-ai-studio/src/verify/flow-credential-door.ts`: read,
nothing ported. It is credential policy over the hosted vault, which is
hosted-only state.
## Tests
- New pins: `validate-flow-node-executors.test.ts`,
`validate-inert-object-declarations.test.ts`,
`validate-action-object-binding.test.ts`, two describes in
`lint-flow-patterns.test.ts`, `build-probes-landed-data.test.ts`, seven
new cases in `build-probes-user-message.test.ts`, two in
`flow-node-type-audit.test.ts`. Each rule and probe has a positive pin
and a must-stay-silent pin, plus the runtime gate path
(`runRuntimeAuthoringRules`) for the lint rules.
- This round: `initialStates: []` trips the rule, `active: false` is
silent, a required boolean is not refused at the gate; node-level
`timeoutMs` is honoured, `0` is no timer, `durable: true` is silent; the
seed probe ignores a row the seed did not write and a composite-key
seed; a describe asserts each landed-data read's `where`, `fields` and
context, with and without a publishing organization (a `sys_user` target
resolves unscoped).
- Round 4: the seed probe ignores a row the loader did not land (same
key, or another organization's), judges a matched row only under a
writing mode, and judges nothing without `landed`; the roll-up probe
forms its verdict and count inside one organization (a child of another
organization is not counted); `max` names
`--recompute-undefined-on-empty acct.deal_max` while `sum` names the
plain run; a negative `config.timeoutMs` is named as written.
- Updated fixtures: two `http` nodes in `lint-flow-patterns.test.ts`
gained `timeoutMs`; the object-write roster pin in
`runtime-gate.object-writes.test.ts` lists
`validateInertObjectDeclarations`; `build-probes.ts` is classified
`not-a-served-read` in the #22661 census
(`second-object-read-exposure.pin.test.ts`).
## Acceptance notes
- **Premise corrected: `field-boolean-required` is removed** (contract
review 6989419029, M1). The card's item 3 reads "A boolean field marked
`required` … The create form then refuses an unchecked switch." On
`main` neither half holds:
- The form: `ui/packages/core/src/validation/required-presence.ts`
treats `false` as present (it names cloud#972 as the defect it closed),
and the form renderer's `isMissingForRequired` uses it.
- The server: `FieldSchema.required` refuses `null`;
`record-validator.ts` (`isEmptyForRequired`) enforces it on a boolean,
so the flag guards something real.
- The platform's own objects carry the shape: `sys_webhook.active`,
`sys_job.active`, `sys_email_template.active`,
`sys_scim_connection_credential.active` (each `required: true,
defaultValue: true`), and `sys_scim_user.active` (required, no default).
- The cloud graph-lint grades the condition a warning, not an error.
So the rule would refuse metadata that works. It is gone from the rule,
its explanation, its export, its pins, the ADR-0087 entry and the
changeset. `Fixes#34776` stays: the card's goal is checks for metadata
that does nothing at run time, and this item turned out not to be one.
- **Examples (seat answer A, claim amendment 6987471285).** The five
state machines declare `initialStates`, and the four showcase `http`
nodes declare `timeoutMs: 10000`. `objectstack build` of app-crm and
app-showcase raises no finding.
- `crm_lead`: `['new']`, the field's default and the machine's only
root.
- `crm_opportunity`: all five stages. The app records deals already won
or lost: `OpportunityStageHook` sets the probability on INSERT for
exactly that case, and `test/opportunity-stage-hook.test.ts` creates
`closed_won`, `closed_lost` and `proposal` deals. A narrower list would
refuse those creates. Kept as the seat ruled.
- `showcase_account` `['prospect']`, `showcase_project` health
`['green']`, `showcase_task` `['backlog', 'todo']`: each is the field's
default (plus `todo` for a task). These three machines declare `events:
['update']`, so the server never runs them on create, and the list
states the entry without enforcing it. Seat answer B: skipping
update-only machines is follow-up #35251.
- **ADR-0087 (seat answer A).** One notice-only entry,
`publish-refuses-metadata-the-runtime-ignores`
(`packages/spec/src/migrations/entries/semantic/`), now naming four
errors and one warning. The changeset carries `adr-0087: registered`.
- **Draft door (#34766): accepted deviation, narrowed.**
`draftPublishJudgement` runs the authoring gate, so it carries the five
rules' findings. Three probes read what a publish landed, and a draft
lands none. `flow_connector_action_unresolved` reads no landed data, but
it is not on the draft door yet: its finding is a build-probe issue
(`code`, `fix`, `userMessage`), while the draft judgement answers gate
issues (`rule`, `path`, `hint`), and joining them is a shape choice for
its own card.
- **Skills text that teaches each trap** (not edited here): node types:
`skills/objectstack-automation/SKILL.md` (the plugin node-type table,
"no executor for the node type"); approval edges:
`skills/objectstack-automation/references/state-machines-and-approvals.md`
(the `approve` / `reject` out-edges); http timeout:
`skills/objectstack-automation/SKILL.md` (the `http` row, "always set
`timeoutMs`"); `initialStates`:
`skills/objectstack-data/rules/validation.md`; action binding:
`skills/objectstack-ui/rules/actions.md` ("A record button needs a
placement").
- The open seed loader already reports references it could not resolve
on `seedApplied`. `seed_reference_unresolved` is the check on what
actually landed.
- The `Clause-②:` line follows claim amendment 6991975639: four refusals
(`flow-http-timeout-missing` is a warning; `field-boolean-required` is
removed). The connector probe on the draft door is follow-up #35256.
## Verification
<details><summary>Round 4: red first, then the fix (at
370c46b)</summary>
- Run against this round's tests, the previous `build-probes.ts` and
`lint-flow-patterns.ts` (`git show HEAD~1`) failed: lint 1 of 294 (the
negative `timeoutMs` wording), and `build-probes-landed-data.test.ts` 8
of 21. The 8 were: a row the loader did not land; a matched row under
`ignore`; no `landed`; three seed scope cases; the roll-up count across
organizations; the `max` repair. The files were restored with `git
checkout HEAD --`, each blob hash was compared to `HEAD`, and `git diff
HEAD` was empty.
</details>
<details><summary>Round 4 ablations (at 370c46b): six, all
red</summary>
Each ran through `scripts/ablation-replace.mjs` (the anchor must hit
once and the write is verified on disk), under a trap that restores
`HEAD`. `git diff HEAD` was empty afterwards.
- `seed-landed-ids`: the read by the loader's ids is removed. 2 failed
of 21.
- `seed-matched-mode`: matched rows are judged under every mode. 1
failed of 21.
- `rollup-sample-scope`: the child sample is read unscoped. 2 failed of
21.
- `rollup-organizations`: a single unscoped pass. 1 failed of 21.
- `rollup-function`: the plain command for every function. 1 failed of
21.
- `http-negative`: only `0` is named. 1 failed of 294.
</details>
<details><summary>Local runs at 8122905 (main merged at cdb327f
through os-regen-merge.sh)</summary>
- `@objectstack/dogfood` (full battery, narrowing arm): lock VERDICT
command-exit 0. Test Files 482 passed, 3 skipped (485). Tests 4092
passed, 68 skipped (4160). The closure was built first with `pnpm
--filter '@objectstack/dogfood^...' build` (VERDICT command-exit 0).
- `@objectstack/lint`: 220 files, 9276/9276. Typecheck exit 0.
- `@objectstack/metadata-protocol`: 357 files passed, 9 skipped. 23207
tests passed, 45 skipped. Typecheck exit 0.
- `@objectstack/core` `vitest --project repo`: 8 files, 108/108.
- `@objectstack/spec`:
- `check:generated --fix` regenerated `protocol.mdx` on the merged tree;
every line main added there is present.
- `check:generated` on the merged head: all 14 artifacts are up to date.
- `src/migrations`: 198/198.
- Typecheck exit 0.
</details>
<details><summary>Gates at 8122905</summary>
- `dispatch-gates --ran`: 134 derived, 134 run, every one exit 0, 0
NOT-MEASURED.
- `overlap-check`: VERDICT clean (exit 0) against main and three open
PRs.
</details>
<details><summary>Round 3 (e4e9131 to 3cce87c), kept for the
record</summary>
- Red first:
- lint: 6 failed of 299.
- landed-data: 5 failed of 17.
- Nine ablations, all red:
- `sm-empty-list`
- `sm-inactive`
- `http-node-level`
- `http-zero`
- `http-durable`
- `seed-scope`
- `rollup-scope`
- `seed-own-rows`
- `row-organization`
- Dogfood at 7c71a0d: 482 files passed, 3 skipped. 4092 tests passed,
68 skipped.
- The CLI fixture `stack-conversion-record-door.test.ts` got a
node-level `timeoutMs`; its run passed 22/22.
</details>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01JQwxbXGvw43spR79ztEvWt
<!-- signed: repo:objectstack#1 · os-warren ·
session_01JQwxbXGvw43spR79ztEvWt -->
---------
Co-authored-by: Claude <noreply@anthropic.com>
Five authoring rules join the registry the runtime publish gate and `objectstack validate` / `lint` / `compile` run. Each finding names its fix.
17
+
18
+
-`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.
19
+
-`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.
20
+
-`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.
21
+
-`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`.
22
+
-`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.
23
+
24
+
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.
25
+
26
+
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.
27
+
28
+
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`.
|**layer**|`'runtime'`| ✅ | The ADR-0038 verification plane that found it. Always `runtime` on this report: these are the post-publish probes. |
492
-
|**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. |
492
+
|**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. |
493
493
|**artifact**|`{ type: string; name: string }`| ✅ | The published artifact whose runtime behaviour the finding is about. |
494
-
|**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. |
495
-
|**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. |
494
+
|**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. |
495
+
|**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. |
496
496
|**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`. |
497
497
|**fix**|`string`| optional | How to repair it, written for the same agent. Absent when the probe has no remedy to name. |
498
498
|**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. |
@@ -3024,10 +3024,10 @@ Answer to a device registration: the device id the client keeps
3024
3024
| Property | Type | Required | Description |
3025
3025
| :--- | :--- | :--- | :--- |
3026
3026
|**layer**|`'runtime'`| ✅ | The ADR-0038 verification plane that found it. Always `runtime` on this report: these are the post-publish probes. |
3027
-
|**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. |
3027
+
|**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. |
3028
3028
|**artifact**|`{ type: string; name: string }`| ✅ | The published artifact whose runtime behaviour the finding is about. |
3029
-
|**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. |
3030
-
|**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. |
3029
+
|**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. |
3030
+
|**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. |
3031
3031
|**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`. |
3032
3032
|**fix**|`string`| optional | How to repair it, written for the same agent. Absent when the probe has no remedy to name. |
3033
3033
|**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. |
@@ -3036,16 +3036,16 @@ Answer to a device registration: the device id the client keeps
3036
3036
3037
3037
| Property | Type | Required | Description |
3038
3038
| :--- | :--- | :--- | :--- |
3039
-
|**type**|`string`| ✅ | Metadata type of the artifact (`seed`, `view`, `object`, `dashboard`). |
3039
+
|**type**|`string`| ✅ | Metadata type of the artifact (`seed`, `view`, `object`, `dashboard`, `flow`). |
3040
3040
|**name**|`string`| ✅ | Item name of the artifact. On `probes_unavailable` it is the name of every dashboard whose widgets went unprobed, joined by `, `. |
3041
3041
3042
3042
### Nested Shape: `RuntimeBuildIssue.ref`
3043
3043
3044
3044
| Property | Type | Required | Description |
3045
3045
| :--- | :--- | :--- | :--- |
3046
-
|**type**|`string`| ✅ | Metadata type of what was exercised (`object`, `dataset`). |
3046
+
|**type**|`string`| ✅ | Metadata type of what was exercised (`object`, `dataset`, `connector`). |
3047
3047
|**name**|`string`| ✅ | Its item name. |
3048
-
|**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 `?`. |
3048
+
|**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. |
0 commit comments