<< All versions

Skill v1.0.1

currentAutomated scan100/100
forwardnetworks/forward-skills/edit-synthetic-query

+3 new

──Details
PublishedNovember 9, 2026 at 05:01 AM
Content Hashsha256:04a643152004fb92...
Git SHA199b2cd81b29
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 3.9 KB)
SKILL.md3.9 KBactive
SKILL.md · 71 lines · 3.9 KB

name: edit-synthetic-query description: Attaches a saved NQE query to a synthetic node so Forward generates its connections from the rows, or detaches it. Dry run unless apply is true. Use when driving a node from a query. compatibility: Reading the skill needs nothing. To run its analyses against Forward: the fwdctl binary on PATH and FORWARD_URL, FORWARD_USERNAME and FORWARD_PASSWORD in the environment. metadata: version: "1.0.1" cluster: "edge-synthetic" summary: "query-driven synthetic node" maturity: "1" class: write effect: "network" secrets: "false" reversible: "true" tools: "synthetic nodes, nqe"


edit-synthetic-query

Intent

Forward can build a synthetic node's connections from a saved NQE query instead of a hand-written list: the node holds a query id, and Forward runs the query's last commit on the latest processed snapshot, one row per connection, merged with any manual connections. This skill points a node at such a query, swaps it, or removes it. It never writes the connections themselves, and it creates no node (the node must exist). This is a preview feature of Forward (not in its published API spec).

Inputs

Every input, what it means and what to read before applying: fwdctl run edit-synthetic-query --help (from reference/inputs.md). Read before applying: Backdate, Limits to state.

A backdate invalidates that snapshot and every later one (UNPROCESSED, not reprocessed for you) and cannot be undone: get approval of the backdate separately from the change.

Dry run

Without apply: true nothing is changed. The skill reads the node, then asks Forward to compute the query as if it were attached (this changes nothing) and returns mode: dry_run with one change (before and after query id) and the preview: the connection count, the first rows and any error. Show it to the person before applying.

Procedure

  1. Read the node. A missing node is unknown (nothing changed).
  2. With no query_id and no detach: list the saved queries whose rows fit the kind, and stop (ok, nothing changed).
  3. If the node already uses that query, say so (nothing to change).
  4. Preview the query with Forward's own compute. An error (COLUMN_DATATYPE_MISMATCH, MISSING_REQUIRED_COLUMNS, QUERY_RUN_ERROR, QUERY_MISSING, NO_LATEST_SNAPSHOT, INVALID_IDENTIFIER) is failed and the query is not attached.

Offline, fwdctl nqe lint --synthetic <kind> finds the row problems first (and fwdctl nqe template <kind> gives the starter query).

  1. Dry run: return the plan. With apply: true: set the query (or detach), then read the node back. The new query id must be there and its result error-free; anything else is failed, never ok.

Undo

The change's undo says what to run: this skill again with the previous query_id (or detach: true if there was none). A zero-row result is not an error and attaches fine, but it means the node has no dynamic connections: check the query before relying on it.

Evidence

One topology item with kind, node, query_before, mode, query_requested, the preview (or, listing, compatible_queries) and, once applied, result_after.

Output

The envelope in schema/skill-result.schema.json, with mode and changes.

Next actions

inspect-topology (kind external) to see the node with its query and generated connections; investigate-reachability to test a path through it.

Running this skill

Run fwdctl run edit-synthetic-query --help for the inputs and an example, then give them as one JSON object on stdin: fwdctl run edit-synthetic-query < input.json. It is a dry run unless the input has "apply": true; add that only after the dry run was accepted. Read status (ok, failed, unknown, error), mode and the limits; unknown is never a pass.

Examples

bash
echo '{"network_id": "<id>", "kind": "l3vpn", "name": "dir", "query_id": "Q_..."}' | fwdctl run edit-synthetic-query
← v1.0.0All versions