Skill v1.0.1
currentAutomated scan100/100+2 new, ~1 modified
name: edit-change-set description: Builds a Predict change set from CLI commands or BGP advertisements and optionally predicts it, touching no device. Dry run unless apply is true. Use when staging or testing a change. 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: "change" summary: "stage a Predict change set" maturity: "3" class: write effect: "network" secrets: "false" reversible: "false" tools: "predict change sets"
edit-change-set
Intent
Turn "what if we did X" into a predicted, checkable answer. Predict works on Forward's copy of the network: the draft, its validation and its prediction reach no device. The skill authors no configuration. It stages exactly the commands and advertisements it is given, so where they come from (a person, an approved ticket) is on the caller.
Inputs
What each input means, and the fields per object and action: fwdctl run edit-change-set --help, or reference/inputs.md.
An EXISTING change set is managed with lifecycle (rename, duplicate, commit and the versions, tags, directory, predict, checks, ServiceNow change requests), the directories with directory_op, and several at once with bulk_delete; the same dry run and confirm rules apply. Read versions, config, objects and diffs with verify-change first (views history, config, objects, bgp_diffs).
Dry run
Without apply: true nothing is created. The skill returns mode: dry_run with the change set it would build (name, base snapshot, devices) and says the commands cannot be validated until the draft exists. Show that before applying.
Procedure
- Resolve the base snapshot. A change set with the same name on the same base is left alone: unknown, nothing created.
- With
apply: create the draft, then validate every device's commands with Forward. Any rejected line, or a validator that cannot
run, fails the skill and the draft is deleted again; nothing half-built is left. The finding lists the rejected lines.
- Stage the validated commands and advertisements.
- With
runas well: run the prediction and wait for it. Without it the limits say the change was not predicted.
An empty validation result is not proof the commands are right: the validator only knows the commands in its grammar.
Undo
- The draft is undone by deleting the change set; the applied change names its id. Nothing reached a device, so there is nothing else to
restore.
- A prediction cannot be undone: the predicted snapshot stays after the draft is deleted. That is why
runis a separate switch and
the skill is not marked reversible.
Evidence
Before staging, know what Predict can take: only IOS, IOS-XE, NX-OS, IOS-XR, ASA, EOS, Junos and SRX accept CLI (verify-change view commands lists them and the commands), PAN-OS changes are security rules only, validation is advisory, and what is modelled depends on org properties: read verify-change's reference/predict-limits.md (from Forward's source, not live-confirmed).
One predict item: the plan, the change_set_id, any command_errors, and the predicted_snapshot_id when run.
Output
The envelope in schema/skill-result.schema.json, with mode and changes.
Next actions
verify-change with view: describe to read it back, verify-change to compare the prediction with the base, verify-change with view: impact for who is reached.
Running this skill
Run fwdctl run edit-change-set --help for the inputs and an example, then give them as one JSON object on stdin: fwdctl run edit-change-set < 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
echo '{"network_id": "<id>", "name": "open 443", "devices": [{"device": "fw1", "commands": "..."}]}' | fwdctl run edit-change-set