Skip to content

Compare captures and prepare a change draft

A comparison needs two known snapshots in the same authorized analysis scope. Record source and target IDs explicitly, with their independent collection-time provenance and parser coverage. Import order, lexicographic ID order and file modification times do not establish collection order.

Understand the type of difference

Helper What it compares What it does not prove
query_batch diff_summary Selected identity keys using diff_kind Full semantic/body differences
diff_snapshots Keys in parsed, raw, topology or OC tables A value change when the identity key is unchanged
diff_configs Saved CLI text for a device and command Why the change occurred or current device state
inspect_blast_radius Removal from an observed graph Policy, forwarding or packet reachability

For key comparisons, added means target minus source and removed means source minus target. Check exact totals separately from bounded samples and preserve per-direction has_more/truncation. Optional source tables can be absent. Select the relevant available table rather than pretending every source exists.

Verify the comparison path on the fixture

This self-comparison is a smoke check, not evidence of a real network change. It uses the actual imported synthetic snapshot twice and a known available table:

SKILLS_PYTHON=/absolute/path/to/skills-venv/bin/python
export OLAV_HOME=/absolute/path/to/new-synthetic-analysis
"$SKILLS_PYTHON" -I -B -c 'import json,os; from pathlib import Path; sid=json.loads((Path(os.environ["OLAV_HOME"])/"import.json").read_text())["snapshot_id"]; print(json.dumps({"snapshot_id_1":sid,"snapshot_id_2":sid,"table_name":"raw_output_store"}))' | "$SKILLS_PYTHON" -I -B -m olav_skills run reporter diff_snapshots

Expected: status: success, zero added keys and zero removed keys. For a real comparison, replace the two inputs with verified source/target IDs from your own imports into that scope. A zero key delta can still hide changed bodies or changed field values. Use targeted evidence or the saved-text diff where applicable.

In 0.2, diff_configs requires device, one exact command and two explicit SIDs. It reads verified historical raw from the native ledger, with a precisely matching last-writer fallback marked partial; it does not require saved snapshot raw files. Read the source and ordered-group contract. Presentation parameters never remove hard bounds.

Turn evidence into a draft

An engineering change draft should identify actual endpoints/platforms, interfaces, routing context, constraints, unknowns and impact evidence. Include complete reviewed implementation steps, symmetric rollback, expected post-checks and a pre-change verification section. Existing captured state can be stale. A human or host writes the draft using authorized tools; generate_change_plan is a separate bulk model-pattern artifact helper, not a generic intent-to-configuration compiler.

Olav Skills 0.2 can check draft structure and selected evidence from an exact recorded snapshot. check_change_plan always returns decision: not_approved. Review unknowns and failures before seeking human approval. Synthetic example · Pre-check contract

The optional simulator skill compares only concrete packets in two host-prepared Batfish models; it does not validate a whole plan. Historical Batfish or sim references in preserved workflows are not executable validation. A graph impact calculation or well-formatted Markdown does not certify a change. Before application, independently verify against current authorized network state and the appropriate external testing process. The Skills package does not execute device configuration or schedule a maintenance window.

Topology and report checks

For historical neighbor content, read topology changes and use reporter compare_topology with exact recorded IDs. Link observations and their source coverage differ from physical availability. Before delivering a report, citation checks can check explicit claim/citation mappings against a separately selected trusted evidence context. Mapping consistency does not establish prose truth.