Skip to content

Commit e7e8775

Browse files
committed
docs(skills,automation): name the check os validate does not perform yet
Contract review 6526392518 must-fix 1: "os validate does not judge it yet" left its antecedent open, and the open PR for #27968 makes registration and os validate judge the value-slot envelope (not the schema fit). All three sites now say os validate does not judge the input against the action's inputSchema, true in either landing order. Paid in integration-recipes.md by recipe 1's "holds GetBalance alone" comment: the comment above it says the document is trimmed to the operations the app calls, and the flow below calls GetBalance. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwp1Wc6nB6ePmS4ePn
1 parent f2cd1d9 commit e7e8775

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎content/docs/automation/connectors.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ retry):
456456
| MCP server unreachable / `tools/list` fails; remote spec URL unreachable or transiently failing (408/429/5xx) | **Not fatal**: the instance registers **degraded** (visible on `GET /api/v1/automation/connectors` with the reason), dispatches fail with that reason, and the platform retries on a 5s→5min backoff — recovery is automatic |
457457
| A retry of a degraded instance reaches the upstream and meets a configuration fault (an `include` naming a tool or operation the upstream does not offer) | **Not fatal**: the instance stays **degraded**, now with the configuration reason, and is **not retried** — dispatches fail saying to edit its declaration; an edit of the entry (or a restart) re-attempts it |
458458
| Wrong spec URL (other 4xx) or unparseable document | Configuration fault — **hard boot error** |
459-
| A `connector_action` input that, once evaluated, breaks the action's `inputSchema` (a missing `required` parameter, a wrong `type`) | **The step fails before dispatch** with `VALIDATION_ERROR`, naming each parameter path, and nothing is sent; a `fault` edge or `try_catch` can route it. Supply the parameter or send the declared type: text is never converted, so cast it in a CEL envelope (`int()`, `double()`, `bool()`). `GET /api/v1/automation/connectors` lists the schema; `os validate` does not judge the input yet |
459+
| A `connector_action` input that, once evaluated, breaks the action's `inputSchema` (a missing `required` parameter, a wrong `type`) | **The step fails before dispatch** with `VALIDATION_ERROR`, naming each parameter path, and nothing is sent; a `fault` edge or `try_catch` can route it. Supply the parameter or send the declared type: text is never converted, so cast it in a CEL envelope (`int()`, `double()`, `bool()`). `GET /api/v1/automation/connectors` lists the schema; `os validate` does not judge the input against the `inputSchema` yet |
460460
| A bad entry arrives via **runtime reload** (a Studio publish, a direct active save through `PUT /api/v1/meta/connector/:name`, or a delete, made on any replica — peers reconcile on [cluster lane 2](/docs/kernel/cluster#62-the-cluster-invalidation-family); or a dev reload) | Logged and **skipped**, never crashing the live server; a changed instance's old connector keeps serving until its replacement materializes |
461461

462462
## Catalog descriptors: entries without a `provider`

‎skills/objectstack-automation/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Flows are built from **built-in node types** (plugins register more, e.g.
8585
|:-----|:--------|
8686
| `http` | Call an external HTTP API — always set `timeoutMs` (unset = no timeout). `url` and `headers` are served as written with the definition to every member who can read flows — only `signingSecret` and a start node's `secret` are withheld — so never a credential there: a credential means a declared connector called via `connector_action` |
8787
| `notify` | Send a notification through the messaging service (inbox by default) |
88-
| `connector_action` | Dispatch an action of a declared connector (§ *Integrations are declared, not coded*) or a plugin's. `connectorConfig.input` is a value-slot map like `subflow` `input`, judged once evaluated against the action's `inputSchema` (`required`, `type`, `properties`, `items`) before dispatch: a breach fails the step `VALIDATION_ERROR` (`fault`-routable), nothing sent. `os validate` does not judge it yet |
88+
| `connector_action` | Dispatch an action of a declared connector (§ *Integrations are declared, not coded*) or a plugin's. `connectorConfig.input` is a value-slot map like `subflow` `input`, judged once evaluated against the action's `inputSchema` (`required`, `type`, `properties`, `items`) before dispatch: a breach fails the step `VALIDATION_ERROR` (`fault`-routable), nothing sent. `os validate` does not judge the `inputSchema` fit yet |
8989
| `script` | Call a **registered** function named by `config.function` (see *Valid-but-silently-wrong* #3) |
9090
| `screen` | Display a UI form to the user (screen flows only). `config.fields[]`: `{ name, label, type, required, options, defaultValue }`, `type` an open widget hint; `'file'` renders the upload widget and resumes with the `sys_file` id bound to `name` — a later `create_record` / `update_record` writes it into a `file` field, which claims the file: collect first, write after the last screen. `'record_link'` (never `'record'`, an object field type) takes no input — it shows the `reference` record whose id `defaultValue` evaluates to, by display name, as a link to its record page: the result screen of a flow that created records, `{ name: 'account_link', type: 'record_link', reference: 'crm_account', defaultValue: { dialect: 'cel', source: 'account.id' } }` over a `create_record` `outputVariable: 'account'`. Both keys required; `required` / `options` / `placeholder` / `min` / `max` refused; a resume value under its name refused (`400 INVALID_SCREEN_INPUT`). A completed `end` `message` is refused and a markdown link in a screen `description` renders literally. Next / Submit and "Step N of M" are not authored: the engine reads the graph when the screen pauses and serves `progress` (`nextScreen: 'none' | 'possible' | 'certain'`; `step` / `stepCount` only when every path agrees), which alone labels the button and draws the counter. A `decision`, `fault` edge, loop back, non-screen pause (`approval`, `wait`) or `subflow` after a screen answers `possible` — "Next", no count. `progress` in a node `config` is refused; never hand-roll a button label or step counter into `fields` |
9191

‎skills/objectstack-automation/references/integration-recipes.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ deployment and to the sender. Scaffolded apps list the three executors in
2323
`VALIDATION_ERROR` (`fault`-routable) naming each path, nothing sent. Text
2424
is never converted: cast a string-held id,
2525
`path: { dialect: 'cel', source: '{"petId": int(record.vendor_id)}' }`.
26-
`os validate` does not judge it yet.
26+
`os validate` does not judge the `inputSchema` fit yet.
2727
- The answer lands as `<nodeId>.<key>` (`rest` / `openapi`: `{ status, ok, body }`;
2828
`mcp`: `{ ok, content, structuredContent? }`), read from a later node's value
2929
slot: `{ dialect: 'cel', source: 'bal.body.available[0].amount' }`.
@@ -40,7 +40,7 @@ deployment and to the sender. Scaffolded apps list the three executors in
4040
// it in the package, package-relative.
4141
export const StripeConnector = defineConnector({
4242
name: 'stripe', label: 'Stripe', type: 'api', provider: 'openapi',
43-
providerConfig: { spec: './src/connectors/stripe.trimmed.json' }, // holds `GetBalance` alone
43+
providerConfig: { spec: './src/connectors/stripe.trimmed.json' },
4444
auth: { type: 'bearer', credentialRef: 'STRIPE_SECRET_KEY' }, // admin sets STRIPE_SECRET_KEY
4545
});
4646
// crm_account gains `stripe_available` (currency) and `stripe_synced_at` (datetime).

0 commit comments

Comments
 (0)