Skill v1.0.2
currentAutomated scan100/100~1 modified
name: compare-nqe-results description: "Shows which rows a saved NQE query gains, loses or changes between two snapshots. Use when asked what changed between two snapshots for one kind of data, or to diff a query before and after." 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." license: Proprietary metadata: version: "1.0.2" cluster: "nqe" summary: "query rows changed" maturity: "3" tools: "snapshots, query"
compare-nqe-results
Intent
Answer "what changed in X between these two snapshots" as exact added, deleted and modified rows, for any data an NQE query can express. verify-change (view impact) counts differences by area; this skill shows the rows.
Inputs
What each input means, and the fields per object and action: fwdctl run compare-nqe-results --help, or reference/inputs.md.
Procedure
- Both snapshots must be processed. Otherwise
unknown. - Diff the query's results across the snapshots.
- Decide:
- Rows differ: ok, with the total, the counts by type, and the first
limitrows (before and after). - No differences: the skill runs the query once on the after snapshot. If it returns rows, ok with zero
differences; if it returns nothing, unknown, because an empty result on both sides says nothing about the network.
- Unknown query id: unknown.
- A prediction on either side is stated as a limit.
- A list inside a row (next hops, interfaces, tags) has no fixed order in NQE. If a query shows many changed rows that differ only in the order of such a list, order the list inside the query and run again (a field session saw about 15,000 false differences on forwarding entries; not checked against this skill's diff).
Evidence
One nqe item: the query id, both snapshot ids, the total, counts by type, and the rows.
Output
The envelope in schema/skill-result.schema.json.
Next actions
verify-change (view impact), verify-change, validate-nqe-query.
Running this skill
Run fwdctl run compare-nqe-results --help for the inputs and an example, then give them as one JSON object on stdin: fwdctl run compare-nqe-results < input.json. Read status (ok, failed, unknown, error) and the limits; unknown is never a pass.