@vaudience/aigentflow-flow-validator 0.27.0 → 0.28.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 +64 -1
- package/README.md +3 -1
- package/dist/cli.js +281 -167
- package/dist/index.cjs +276 -165
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +276 -165
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/PARITY.md
CHANGED
|
@@ -4,7 +4,70 @@ 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.
|
|
7
|
+
**Tracks AIgentFlow flow schema: `v2.837.0`** (`SPEC_VERSION` in [`src/spec/aigentflow-spec.json`](./src/spec/aigentflow-spec.json)), which makes `nexus://` the canonical agent-runtime scheme with `atlas://` as its alias, removes signals, dynamic flow modification and campaigns (`signal_removed`, `flow_modification_removed`, `removed_key_ignored`, `campaign_removed`) and drops share links from the removal advice (package 0.28.0, below). Earlier: it removed 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.28.0 — **`nexus://` with `atlas://` as its alias; signals, DFM and campaigns removed
|
|
10
|
+
> (BREAKING).** `SPEC_VERSION` is `2.837.0`. Contracts: AIgentFlow's traps doc, sections "An executor
|
|
11
|
+
> scheme with two spellings", "AGENTCUT B1 validator contract" and "AGENTCUT B2 validator contract".
|
|
12
|
+
>
|
|
13
|
+
> _`nexus://` (AIgentFlow v2.835.0)._ `nexus` joins `executorSchemes` (no `unknown_executor_scheme`
|
|
14
|
+
> warning). The `atlasExecutor` block names `scheme: nexus` and `aliases: [atlas]`; every rule
|
|
15
|
+
> (`atlas_operation_unknown`, `atlas_agent_missing`, `atlas_agent_not_literal`,
|
|
16
|
+
> `atlas_capabilities_not_literal`, `atlas_prompt_missing`, `atlas_prompt_both`,
|
|
17
|
+
> `atlas_capability_ref_invalid`, `atlas_model_not_literal`, `atlas_param_refused`) answers
|
|
18
|
+
> identically for both spellings; the codes keep their `atlas_` prefix, and the messages say
|
|
19
|
+
> `nexus://` / "Nexus". The scheme match stays exact and case-sensitive. An AigentChat-shaped
|
|
20
|
+
> `nexus://<org>/<agent>` (that executor was removed in v2.819.0) is now `atlas_operation_unknown`,
|
|
21
|
+
> no longer an `unknown_executor_scheme` warning; `aigentchat://` stays an unknown scheme.
|
|
22
|
+
>
|
|
23
|
+
> _Signals and DFM (AIgentFlow v2.834.0)._ **`signal_removed`** (ERROR): `orchestrator.enable_signals:
|
|
24
|
+
true`; one of `aif_signal_complete`, `aif_signal_need_human`, `aif_signal_delegate`,
|
|
25
|
+
> `aif_signal_need_tool`, `aif_signal_modify_flow` in `orchestrator.tools`, `deny_tools`,
|
|
26
|
+
> `require_approval_for` (field = the list) or in the orchestrator definition's `tools.allow` (field
|
|
27
|
+
> `orchestrator.exons`), ONE finding per list naming the removed names in list order, each once; and
|
|
28
|
+
> `enable_signals` on an `aiv://` step or loop sub-step (on presence, null included).
|
|
29
|
+
> **`flow_modification_removed`** (ERROR): a `dfm_suggestion` trigger (one finding, field
|
|
30
|
+
> `orchestrator.triggers`) and `flow_modification_allowed` in any step's or loop sub-step's query.
|
|
31
|
+
> Step keys skip templated executors, removed schemes and `flow://` (its query is the child's inputs).
|
|
32
|
+
> **`removed_key_ignored`** (WARNING, never an error): `checkpoint.pre_dfm` (any non-null value; AIgentFlow
|
|
33
|
+
> wrote it into stored flows itself) and `orchestrator.enable_signals: false`. A YAML null on either
|
|
34
|
+
> block key is absent.
|
|
35
|
+
>
|
|
36
|
+
> _Campaigns (AIgentFlow v2.836.0)._ **`campaign_removed`** (ERROR): a `campaign` key with ANY non-null
|
|
37
|
+
> value (field `campaign`; the block is refused whole), one of `aif_campaign_spawn`,
|
|
38
|
+
> `aif_campaign_status`, `aif_campaign_results`, `aif_campaign_cancel` in one of the four tool lists
|
|
39
|
+
> (one finding per list), and a `campaign_child_completed` / `campaign_child_failed` trigger (one
|
|
40
|
+
> finding, the removed types in order). Steps are never judged.
|
|
41
|
+
>
|
|
42
|
+
> _Removals._ The removed tool and trigger names leave `orchestrator.tools` / `orchestrator.triggers`
|
|
43
|
+
> but are TOLERATED by `orchestrator_tool_unknown` and `orchestrator_trigger_unknown` (also under
|
|
44
|
+
> `strictRegistries`), so each is reported once, with advice. `orchestrator_tool_withheld` loses its
|
|
45
|
+
> signal exemption and its campaign arm and never names a removed tool; `orchestratorToolAllow` drops
|
|
46
|
+
> `enableSignalsDefault`, `signalTools` and `campaignTools`. The campaign rules are deleted
|
|
47
|
+
> (`campaign_requires_orchestrator`, `campaign_handoff_step_unknown`,
|
|
48
|
+
> `campaign_invalid_max_credits_per_child`, `campaign_no_child_flows`, `campaign_child_flow_no_id`, and
|
|
49
|
+
> the retired-key arm for `campaign.budget_max_per_child`), and the `campaign` block decodes untyped
|
|
50
|
+
> (`knownKeys`: `any`; `CampaignConfig` and `CampaignChildFlowDef` are gone), so nothing inside it is
|
|
51
|
+
> an unknown key. `enable_signals` and `pre_dfm` stay in `knownKeys`.
|
|
52
|
+
>
|
|
53
|
+
> _Share links (AIgentFlow v2.837.0)._ The `executor_removed` / `agentic_param_removed` suggestion is
|
|
54
|
+
> AIgentFlow's current `SUGGESTION_REMOVED_AGENT_ADVICE`: it writes `nexus://`, says share links no
|
|
55
|
+
> longer exist, and names the run's responsible person.
|
|
56
|
+
>
|
|
57
|
+
> _Fixtures_, byte-identical to the Go port's (v0.18.0). Added: `valid-nexus-agent-run`,
|
|
58
|
+
> `valid-nexus-capability`, `valid-atlas-alias-agent-run`, `invalid-nexus-agent-missing`,
|
|
59
|
+
> `invalid-nexus-loop-substep-agent-not-literal`, `invalid-nexus-aigentchat-shape`,
|
|
60
|
+
> `invalid-signal-removed-{enable-signals,tool-lists,aiv-step}`,
|
|
61
|
+
> `invalid-flow-modification-removed-{trigger,step}`,
|
|
62
|
+
> `warn-removed-key-ignored-{pre-dfm,enable-signals-false}`, `valid-signal-surfaces-not-refused`,
|
|
63
|
+
> `invalid-campaign-removed-{block,empty-block,retired-key,tool-lists,triggers}` and
|
|
64
|
+
> `valid-campaign-surfaces-not-refused`. Renamed: `warn-removed-executor-nexus` →
|
|
65
|
+
> `warn-removed-executor-aigentchat` (aigentchat:// only). Edited: `warn-orchestrator-tool-withheld-named`,
|
|
66
|
+
> `valid-orchestrator-tool-allow-consistent`, `valid-orchestrator-tool-allow-absent` (no removed names).
|
|
67
|
+
> Deleted: `valid-campaign-handoff`, `valid-campaign-decoded-shapes`,
|
|
68
|
+
> `invalid-campaign-{handoff-unknown-step,no-child-flows,child-flow-no-id}`,
|
|
69
|
+
> `invalid-retired-campaign-budget-max-per-child`, `valid-orchestrator-tool-allow-campaign`,
|
|
70
|
+
> `warn-orchestrator-tool-withheld-{campaign,signals-off}`.
|
|
8
71
|
|
|
9
72
|
> package 0.27.0 — **the agent surfaces are removed (BREAKING).** AIgentFlow v2.833.0 no longer
|
|
10
73
|
> runs agents of its own: the `ai://<provider>/…` agent loop, the `exons://` scheme and the
|
package/README.md
CHANGED
|
@@ -171,7 +171,9 @@ interface ValidationIssue {
|
|
|
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
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.
|
|
174
|
-
- **Orchestrator
|
|
174
|
+
- **Orchestrator** — exons presence, trigger types, timer intervals, tool names.
|
|
175
|
+
- **Removed surfaces** — the `exons://` / `agent://` executors and the `ai://` agent-loop parameters (`executor_removed`, `agentic_param_removed`); agent signals and dynamic flow modification (`signal_removed`, `flow_modification_removed`, and the `removed_key_ignored` warning for `checkpoint.pre_dfm` and `orchestrator.enable_signals: false`); campaigns (`campaign_removed`: the `campaign:` block, the campaign tools and triggers).
|
|
176
|
+
- **Nexus agent steps** — `nexus://agent/run` and `nexus://capability/<ref>` (also written `atlas://`, an accepted alias): a literal agent and capabilities, exactly one of `prompt` / `prompt_template`, a valid capability reference, no refused parameters (`atlas_*` codes).
|
|
175
177
|
- **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).
|
|
176
178
|
- **`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`).
|
|
177
179
|
- **Server-owned query keys** — a step's or loop sub-step's `query:` may not declare `aiv_api_key`, `aiv_base_url` or `aiv_delegation`, which only the server sets (`server_owned_query_key`).
|