@vaudience/aigentflow-flow-validator 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/PARITY.md CHANGED
@@ -4,8 +4,37 @@ This document maps every rule in this JavaScript validator back to the AIgentFlo
4
4
  Go reference implementation, records the intentional divergences, and defines the
5
5
  discipline for keeping the two in sync.
6
6
 
7
- **Tracks AIgentFlow flow schema: `v2.831.0`** (`SPEC_VERSION` in [`src/spec/aigentflow-spec.json`](./src/spec/aigentflow-spec.json)), which adds the rule `unknown_function_operation` and a clearer `unknown_executor_scheme` message (package 0.23.0, below). Earlier: the rule `flow_data_key_reserved` (package 0.22.0). Earlier: the `here` executor scheme, the `strict_templates` flow key and the rule `template_default_piped` (package 0.21.0). Earlier: the warning `compliance_residency_unenforced` (package 0.20.0). `orchestrator.region` / `orchestrator.enforce_region` (package 0.19.0). Earlier: the AigentChat executor was removed (package 0.18.0). Earlier additions: the `examples:` block (package 0.17.0), `server_owned_query_key` (package 0.15.1) from the AIgentFlow release after v2.790.0, `credential_endpoint_unpaired` (package 0.15.2) from AIgentFlow v2.793.0 and the release after it, and `display_name_too_long` (package 0.15.3) from AIgentFlow v2.802.0.
8
-
7
+ **Tracks AIgentFlow flow schema: `v2.833.0`** (`SPEC_VERSION` in [`src/spec/aigentflow-spec.json`](./src/spec/aigentflow-spec.json)), which removes the `exons://` and `agent://` executors and the `ai://` agent-loop parameters and adds the errors `executor_removed` and `agentic_param_removed` (package 0.27.0, below). Earlier: it added the rule `unknown_function_operation` and a clearer `unknown_executor_scheme` message (package 0.23.0, below). Earlier: the rule `flow_data_key_reserved` (package 0.22.0). Earlier: the `here` executor scheme, the `strict_templates` flow key and the rule `template_default_piped` (package 0.21.0). Earlier: the warning `compliance_residency_unenforced` (package 0.20.0). `orchestrator.region` / `orchestrator.enforce_region` (package 0.19.0). Earlier: the AigentChat executor was removed (package 0.18.0). Earlier additions: the `examples:` block (package 0.17.0), `server_owned_query_key` (package 0.15.1) from the AIgentFlow release after v2.790.0, `credential_endpoint_unpaired` (package 0.15.2) from AIgentFlow v2.793.0 and the release after it, and `display_name_too_long` (package 0.15.3) from AIgentFlow v2.802.0.
8
+
9
+ > package 0.27.0 — **the agent surfaces are removed (BREAKING).** AIgentFlow v2.833.0 no longer
10
+ > runs agents of its own: the `ai://<provider>/…` agent loop, the `exons://` scheme and the
11
+ > `agent://` scheme are gone. Two new ERROR codes, both addressed to the step (`steps.<id>`, or
12
+ > `steps.<id>.loop.steps[<index>]` for a loop sub-step), as the atlas findings are, so a host that
13
+ > merges several verdicts drops a finding only when code and field both match.
14
+ > `executor_removed`: a step or loop sub-step whose executor scheme (the text before `://`,
15
+ > whitespace-trimmed, case-insensitive) is `exons` or `agent`; and a top-level `exons_uploads` key
16
+ > (field `exons_uploads`). A step on a removed scheme yields **only** this code: no
17
+ > `unknown_executor_scheme` warning and no executor-URL-shape error. `agentic_param_removed`: an
18
+ > `ai://` step or loop sub-step whose `query` carries any of `agentic`, `max_tool_turns`,
19
+ > `parallel_tool_calls`, `mcp_server_url`, `tool_auth_token`, `tool_discovery`, `discoverable_tools`,
20
+ > `enable_signals`, `deny_tools`, `max_tool_calls`, `require_confirmation`, `guardrails`,
21
+ > `timeout_seconds`. A key is refused on **presence**: a null value and `agentic: false` included.
22
+ > **One** finding per step, the keys sorted in the message. Only the `ai` scheme is judged. Not
23
+ > refused: a templated executor, `aiv://` (it keeps its own `agentic` flag), `atlas://`, any other
24
+ > scheme, `tools` / `tool_choice` / `autofix` / `content_parts` / `stream` on `ai://`, the flow-level
25
+ > `tool_discovery` / `discoverable_tools`, and the `orchestrator:` block's own keys. The vocabulary
26
+ > is the spec block `removedAgentSurfaces`. Removals: `exons` and `agent` leave `executorSchemes`
27
+ > (40 protocols; a near-miss no longer suggests them); `spec.exons` keeps only the frontmatter
28
+ > delimiter. The rules that judge the **orchestrator's** `.exons` document stay, since the
29
+ > orchestrator is not removed in this release; the flow-level `exons_uploads` key stays a known key
30
+ > so it reports `executor_removed` rather than `unknown_yaml_key`. `SPEC_VERSION` is `2.833.0`.
31
+ > Fixtures: `invalid-exons-step-attributes.yaml` and `valid-exons-step-attributes-skipped.yaml` are
32
+ > deleted (both judged an `exons://` step's inline document); added, byte-identical to the Go
33
+ > port's: `invalid-executor-removed-{exons,agent,scheme-case-whitespace,loop-substep,
34
+ exons-uploads}.yaml`, `invalid-agentic-param-removed{,-false,-null-value,-loop-substep}.yaml` and
35
+ > `valid-removed-surfaces-not-refused.yaml` (the no-false-positive control). The Go port carries the
36
+ > same two codes (v0.17.0).
37
+ >
9
38
  > package 0.26.0 — **three new rules, and the atlas rules brought in line with the reference.**
10
39
  > `reserved_input_name` (error): an input the flow declares under the top-level `query:` map, or as an
11
40
  > `input_schema` field name, that starts with two underscores. That namespace belongs to the platform
@@ -189,7 +218,7 @@ own state, so it is not seeded.` and the suggestion its text (spec keys `message
189
218
  > `executor_config.<provider>.base_url`). The provider is the literal segment of
190
219
  > `ai://<provider>/<operation>`, lower-cased for the lane test and printed as written; an
191
220
  > empty, slash-less or templated one is skipped, as are providers with no region lane
192
- > (anthropic native, scaleway, vaiembed) and `exons://` / `aiv://` steps. The
221
+ > (anthropic native, scaleway, vaiembed) and `aiv://` steps. The
193
222
  > orchestrator's provider is `execution.provider` of its `.exons` frontmatter, read by the
194
223
  > same light frontmatter reader the save-door rules use; a document that reader cannot
195
224
  > read the way the engine would is skipped. Finding: code `compliance_residency_unenforced`,
@@ -1114,7 +1143,7 @@ max_retries` and `QualityGateDefinition.max_retries` are unchanged. Removing
1114
1143
  > separate target functions; widening `hasCycle` too would invent a divergence
1115
1144
  > and emit a spurious `potential_infinite_loop` on any rendezvous or error
1116
1145
  > redirect back to an earlier step.
1117
- > 4. **`executorSchemes` is AIgentFlow's registered set exactly** (43 protocols at v2.608.0, 42 since the AigentChat executor was removed,
1146
+ > 4. **`executorSchemes` is AIgentFlow's registered set exactly** (43 protocols at v2.608.0, 42 since the AigentChat executor was removed, 40 since `exons` and `agent` were,
1118
1147
  > enumerated from `NewExecutorSchemaRegistry`). `web://` was missing, so a
1119
1148
  > correct step warned; nine schemes AIgentFlow does not register (`openai`,
1120
1149
  > `anthropic`, `perplexity`, `vertexai`, `ollama`, `vllm`, `aigentchat`,
package/README.md CHANGED
@@ -170,6 +170,7 @@ interface ValidationIssue {
170
170
  - **Connectivity** — `next.default` / `next.conditions[].goto` references (error; only `null` and `orchestrator` need no step, so `end` must name one, and is then an ordinary step); unreachable steps (warning); cycles (warning).
171
171
  - **Parallel + orchestrator routing** — `next.parallel` rendezvous/steps; `orchestrator` next requires an orchestrator block.
172
172
  - **Loop / for_each / throttle** — required fields, iteration limits, mutual exclusions, throttle ceilings.
173
+ - **Removed agent surfaces** — `executor_removed` (an `exons://` or `agent://` step, or the `exons_uploads` key) and `agentic_param_removed` (an `ai://` step carrying `agentic`, `max_tool_turns`, `mcp_server_url`, …); both errors, one finding per step.
173
174
  - **Orchestrator / campaign** — exons presence, trigger types, timer intervals, tool names; campaign requires an orchestrator and at least one child flow, each naming a `flow_id` or `flow_name`; `max_credits_per_child` >= 0.
174
175
  - **Orchestrator `.exons` frontmatter** — the document must open with a closed `---` frontmatter spec (`orchestrator_exons_parse_failed`) that sets `execution.provider` (`orchestrator_exons_no_provider`) and declares no `requirements.resources` (`exons_resources_unhonoured`); a tool that `orchestrator.tools` and the definition's `tools.allow` disagree about is never offered (`orchestrator_tool_withheld`, warning). The document body is not parsed: that needs the `.exons` engine (see PARITY.md).
175
176
  - **`executor_config` environment references** — a `${NAME}` value may name only the variables of the provider or protocol it is written under (`executor_config_env_scope`).
@@ -192,7 +193,7 @@ These need a live server / org context and are intentionally out of scope:
192
193
 
193
194
  - **Credentials** — whether a bound credential actually exists or is authorised.
194
195
  - **Model compliance** — the `compliance:` block is enforced against the provider catalogue at flow-create time on the server. (The one catalogue-free part, the warning `compliance_residency_unenforced` for an EU-only residency beside an unpinned call, is checked here.)
195
- - **`.exons` document bodies** — whether an inline `.exons` document parses and whether its tags can render (`exons_attributes`) needs the `.exons` template engine, which this package does not embed.
196
+ - **`.exons` document bodies** — whether the orchestrator's inline `.exons` document parses and whether its tags can render (`exons_attributes`) needs the `.exons` template engine, which this package does not embed.
196
197
  - **Template field resolution** — whether `.data.x.y` will actually be populated at runtime (we validate syntax, not data flow).
197
198
  - **Publish gates** — `visibility`/`classification`/template-metadata publish rules are server- and org-context dependent.
198
199