Metadata-Version: 2.5
Name: olav-skills
Version: 0.3.0
Summary: Standalone deterministic network skills and standard skill resources
Project-URL: Repository, https://github.com/james-olavai/olav-skills
Project-URL: Issues, https://github.com/james-olavai/olav-skills/issues
Project-URL: Documentation, https://github.com/james-olavai/olav-skills/tree/main/docs
License: # Business Source License 1.1
        
        **Parameters**
        
        * **Version:** 0.10.0
        * **Last Updated:** 2026-03-06
        * **Licensor:** DATATECHIE PTY LTD
        * **Registered Address:** Footscray, VIC 3011, Australia
        * **Copyright:** Copyright © 2024-2026 DATATECHIE PTY LTD. All rights reserved.
        * **Software:** olav (including all core orchestration logic, agent skills, and middleware)
        * **Change Date:** 2030-01-01
        * **Change License:** Apache License, Version 2.0
        * **Additional Use Grant:** See section "Additional Use Grant" below.
        * **Partner Program:** Commercial licensing details at [olavai.com/partners](https://olavai.com/partners) (TBA).
        
        ---
        
        ## 1. The License Text
        
        The Licensor hereby grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Software.
        
        **Production use** is allowed ONLY under the conditions specified in the **Additional Use Grant** below.
        
        Any use of the Software in production for purposes not explicitly permitted by the Additional Use Grant requires a separate commercial license as part of the **olav Partner Program**.
        
        ---
        
        ## 2. Additional Use Grant
        
        You are authorized to use the Software in a production environment under the following conditions:
        
        ### A. Internal Expert Use (Free)
        
        1. **Personal Use:** You may use the Software for personal, non-commercial research and experimentation.
        2. **Internal Enterprise Use:** Organizations may use the Software for their **own internal infrastructure management**, provided that:
        * The Software is used to manage infrastructure **owned or leased by that organization**.
        * The use is not intended to provide services to any third party.
        * Contractors, consultants, and part-time staff acting **on behalf of and under the direction of** the organization are permitted to operate the Software for that organization's internal use.
        
        
        
        ### B. Prohibited Commercial Use (Partner License Required)
        
        The following use cases are **EXPRESSLY PROHIBITED** under this Free Grant and require joining the **olav Partner Program**:
        
        * **Managed Service Providers (MSP):** Using olav to manage, monitor, or operate infrastructure belonging to third-party clients.
        * **Cloud Service Providers (CSP):** Offering olav as a hosted service, managed instance, or via an API to external customers.
        * **Outsourced Operations:** A third-party firm using the Software to manage **another organization's** infrastructure as a commercial service (note: contractors working under the direction of the infrastructure owner for internal use are permitted under §A.2).
        * **Bundling & Resale:** Packaging olav within a commercial product, hardware appliance, or proprietary software suite.
        * **Commercial Consulting:** Selling "olav Implementation" or "Expert Skill Tuning" as a paid service to third parties.
        
        ---
        
        ## 3. Vision & Philosophy
        
        The licensing model of **olav** reflects our core architectural values:
        
        * **Empowerment over Displacement:** olav is designed to liberate engineers from trivial, repetitive tasks, not to serve as an interface for cutting professional labor costs.
        * **Robustness over Cost:** We believe expertise is the only true firewall. By restricting use to direct employees or certified partners, we ensure that critical infrastructure is managed by those with the skin in the game and the necessary domain depth.
        * **Professional Respect:** We prioritize the technical sovereignty of the individual architect. If you are a professional making your own network more robust, this tool is yours. If you are a corporation seeking to arbitrage professional knowledge through cheap labor, you must contribute back to the ecosystem.
        
        ---
        
        ## 4. Partner Program & Licensing
        
        Organizations that fall under the "Prohibited Commercial Use" category must obtain a **Commercial Partner License**. Benefits include:
        
        * Legal right to resell/package olav-based services.
        * Direct architectural support and audit trails for compliance.
        
        For inquiries, contact: **james@olavai.com**
        
        ---
        
        ## 5. Change License
        
        On the **Change Date (2030-01-01)**, this license will automatically convert to the **Apache License, Version 2.0**. This ensures the long-term openness of the core framework while protecting the initial phase of expert-led innovation.
        
        ---
        
        ## 6. Disclaimer & Limitation of Liability
        
        ### AS-IS Provision
        
        **THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND**, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT.
        
        DATATECHIE PTY LTD makes no representations or warranties regarding:
        * The accuracy, completeness, or reliability of the Software
        * The suitability of the Software for any particular purpose
        * The absence of errors, defects, or malicious code
        * The uninterrupted or error-free operation of the Software
        
        ### AI-Generated Output Notice
        
        The Software uses large language models (LLMs) to generate responses, tool calls, and operational recommendations. **AI-generated outputs are non-deterministic and may contain errors.** Users must:
        
        * **Review all AI-generated actions** before applying them to production infrastructure
        * **Not rely solely on AI outputs** for critical infrastructure decisions without human verification
        * Understand that the Software's Agent Harness provides safety layers (HITL approval, sandbox isolation, read-only enforcement) but **cannot guarantee the correctness of LLM-generated content**
        
        ### User's Responsibility
        
        By downloading, installing, or using the Software, you acknowledge and accept responsibility for:
        
        * Reviewing and approving all actions the Software takes in your infrastructure
        * All data processed, modified, or deleted by the Software
        * Configuration errors that may result in unintended network changes
        * Security vulnerabilities you may fail to patch
        * Compliance with local regulations in your jurisdiction
        
        ### Limitation of Liability
        
        **TO THE MAXIMUM EXTENT PERMITTED BY LAW**, DATATECHIE PTY LTD SHALL NOT BE LIABLE FOR ANY OF THE FOLLOWING, WHETHER BASED ON WARRANTY, CONTRACT, TORT, STRICT LIABILITY, OR ANY OTHER LEGAL THEORY:
        
        * **Indirect Damages:** Loss of profits, revenue, data, goodwill, or business opportunity
        * **Special/Consequential Damages:** Damages arising from network downtime, unauthorized access, or third-party claims
        * **Direct Damages Cap:** The total liability of DATATECHIE PTY LTD shall not exceed the amount paid for the license (if Partner tier), or zero dollars (if Free Grant users)
        
        This limitation applies even if DATATECHIE PTY LTD has been advised of the possibility of such damages.
        
        ### Indemnification
        
        Users using the Software shall **indemnify and hold harmless** DATATECHIE PTY LTD, its officers, employees, and partners from any third-party claims, damages, or costs (including legal fees) arising from:
        * User's use of the Software
        * User's breach of this License
        * User's negligence or misuse of the Software
        * User's unauthorized modification or redistribution
        
        ### Acceptance of Terms
        
        **Use of the Software constitutes acceptance of this entire License.** You agree that:
        * You have read and understood all terms
        * You assume all risks of using the Software
        * You will not hold DATATECHIE PTY LTD liable for any damages
        * DATATECHIE PTY LTD is not liable for third-party claims against you
        
        If you do not accept these terms, **you must cease use of the Software immediately and delete all copies**.
        
        ---
        
        ## 7. Governing Law & Jurisdiction
        
        This License shall be governed by and construed in accordance with the laws of **Victoria, Australia**, without regard to its conflict of laws principles.
        
        * **Jurisdiction:** Exclusive jurisdiction for any disputes lies with the courts of Victoria, Australia
        * **Dispute Resolution:** Before initiating legal proceedings, parties agree to attempt good-faith negotiation
        * **Attorney's Fees:** The prevailing party in any legal proceeding shall be entitled to recover reasonable attorney's fees and costs
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: duckdb<2.0,>=1.5.6
Requires-Dist: netconan>=0.13
Requires-Dist: netutils>=1.17.1
Requires-Dist: networkx>=3.6.1
Requires-Dist: ntc-templates>=9.1.0
Requires-Dist: pydantic>=2.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: textfsm>=2.1.0
Provides-Extra: simulator
Requires-Dist: pybatfish==2025.7.7.2423; extra == 'simulator'
Description-Content-Type: text/markdown

# Olav Skills

Olav Skills is the Python toolkit behind OLAV’s offline network analysis
workflow. Network operations and NetDevOps teams use it to query device
inventories, inspect recorded topology, compare snapshots, pre-check draft
changes and produce reports with source evidence. The CLI and nine Agent Skills
work with a local DuckDB database.

[Website](https://olavai.com/) · [Documentation](https://docs.olavai.com/) ·
[中文文档](https://docs.olavai.com/zh/) · [PyPI](https://pypi.org/project/olav-skills/) ·
[Browser demo](https://olavai.com/demo/)

Collect device output in the authorized environment, then transfer a reviewed
offline bundle to the analysis environment. The collector is a separate tool.
Device credentials stay on the collection side.
[Architecture and data flow](https://olavai.com/architecture/)

## Current release

[Olav Skills 0.3.0](https://pypi.org/project/olav-skills/0.3.0/) adds two
skills for host-bound services. `api-query` reads NetBox sites, devices and
interfaces and reconciles registered names with a recorded snapshot.
`simulator` compares concrete packets in two prepared Batfish models and needs
the optional `simulator` extra. Reporter can draft and preview audit profiles,
and analyzer can review interface and BGP observations in one snapshot. Query
and reconciliation results state per-device coverage and unknown values.
[Release notes](https://docs.olavai.com/changelog/)

The Python distribution and command are both `olav-skills`. The Python namespace
is `olav_skills`. See the [migration guide](https://docs.olavai.com/migration/)
if you use the earlier `olav` or `olav-netops` distributions.

## Install 0.3.0

Use Python 3.11 or newer and a dedicated environment:

```sh
python3 -m venv ~/.venvs/olav-skills
. ~/.venvs/olav-skills/bin/activate
python -m pip install olav-skills==0.3.0
olav-skills version
olav-skills doctor
olav-skills list
```

For configuration-change simulation, install `olav-skills[simulator]==0.3.0`
instead.

### Try a synthetic snapshot

Run the packaged example in a new analysis directory:

```sh
analysis_dir=$(mktemp -d)
python -I -B -m olav_skills.examples.synthetic_walkthrough --home "$analysis_dir"
```

The example validates and imports an offline bundle, checks the exact device
set R1/R2, and writes a topology artifact and a source-linked report. It runs
without model credentials or device access.
[Offline walkthrough](https://docs.olavai.com/offline-data/)

### Connect your harness

Choose the binding command for your harness:

```sh
olav-skills install --harness codex --scope user
olav-skills install --harness claude-code --scope user
olav-skills install --harness pi --scope user
```

OpenCode can discover the skills installed through the Codex-compatible
`.agents/skills/` layout. Install from the intended Python environment, then
repeat the binding after upgrading the package or moving the environment.
[Installation and project scope](https://docs.olavai.com/installation/) ·
[Compatibility](https://docs.olavai.com/reference/compatibility/) ·
[OpenCode skill discovery](https://opencode.ai/docs/skills/#discovery)

For OLAV’s local AI workflows, **Gemma 4 31B IT** or **Qwen3.8-27B** is the
minimum recommended model. The CLI can also run the packaged tools directly.
[Minimum models and test notes](https://olavai.com/local-models/)

### Try the browser demo

The public Demo uses Open WebUI and two synthetic networks. Request access by
email, set a password from the one-time link, and select a tenant in the model
picker to try inventory, topology or report queries.
[Demo welcome page](https://olavai.com/demo/) ·
[Demo walkthrough](https://olavai.com/blog/olav-demo-is-live/) ·
[Open WebUI guide](https://docs.olavai.com/openwebui/)

## Skills

| Skill | Responsibility |
| --- | --- |
| `netops` | Skill navigation, shared network evidence and snapshot/config differences |
| `importer` | Import offline bundles and build a local queryable snapshot |
| `analyzer` | Bounded queries, device/interface inspection and change-plan preparation |
| `topology` | Recorded BGP, OSPF and L2 topology and reusable recipes |
| `reporter` | Investigation evidence, comparisons and report preparation |
| `writer` | Topology artifacts including draw.io, Mermaid and SVG |
| `learner` | Prepare and validate parsers for previously unsupported CLI output |
| `api-query` | Read a host-bound NetBox service and reconcile registered assets with a snapshot |
| `simulator` | Compare concrete packets in two host-prepared Batfish models |

Scripts accept one JSON object on stdin. Run them using the installed
`olav-skills run <skill> <script>` dispatcher and its bound Python environment;
the walkthrough gives executable examples. Set `OLAV_HOME` explicitly before
importing or querying. The existing `.olav` layout is retained, but historical
database compatibility requires testing on an authorized copy.

Snapshots are recorded evidence, not live inventory. Preserve unknown roles,
missing timestamps, absent topology layers and query truncation in findings.

The collector is a separate product. No device access, model credentials,
enterprise permissions or service access is granted by installing skills. The
NetBox and Batfish skills run only with a service, credentials and scope that
the host binds; see [NetBox inventory](docs/reference/netbox.md) and
[configuration-change simulation](docs/reference/simulator.md).

## Maintained source

- `src/olav_skills/`: library, management CLI and required package data.
- `skills/`: standard skill resources and executable entry scripts.
- `tools/`: exports built from this repository, without the former platform checkout.
- `tests/`: synthetic fixtures and regression tests.
- `provenance/`: source extraction mapping and hashes.
- `docs/`: public technical documentation for this product.

The first extraction used the former platform's official generator in a scratch
directory. Subsequent changes belong here. Do not regenerate the old public pack
over this source repository. The repository history preserves the previous
generated layout, including its separate `runtime/` installer.

The old platform's API-client and DuckLake server profiles, deployed Open WebUI
product and public documentation site have separate migration gates. This package
also supplies its own bounded portable knowledge exporter; see its separate contract.
This native package does not replace them or claim their acceptance.

## Deterministic capabilities in 0.2

These additions and updated contracts apply to Olav Skills 0.2.

- Data readiness: `olav-skills doctor --data --project /absolute/project`
  inspects an explicitly selected native project without changing it. See
  [data readiness](docs/data-readiness.md).
- Recorded state changes: `olav-skills run reporter compare_state` compares
  supported historical parsed-record sources between two explicit snapshots.
  See [state differences](docs/reference/state-diff.md). A record disappearing
  does not establish a real link failure or route withdrawal.
- Plan pre-check: `olav-skills run analyzer check_change_plan` reports individual
  checks and evidence gaps. See [plan pre-check](docs/reference/plan-precheck.md).
  This does not approve execution or provide configuration simulation.

- Parser versions and derived replay: learner `manage_parser` and
  `reparse_snapshot` add explicit validation/activation/rollback and offline
  derived outputs. See [parser lifecycle](docs/reference/parser-lifecycle.md).
- Full file export: analyzer `export_query` pins its source and reports
  completeness/resume status. See [full export](docs/reference/full-export.md).
- Reviewed evidence files: reporter `evidence_bundle` packages selected files,
  checks integrity and rechecks freshness. See
  [evidence delivery](docs/reference/evidence-delivery.md).
- Recorded investigation: analyzer `run_investigation` provides fixed
  inventory/interface/BGP recipes with explicit unknown states. See
  [investigation recipes](docs/reference/investigation-recipes.md).

- Native contracts: IOS/Junos parser, query and historical state semantics use
  the [same state contract](docs/reference/native-contracts.md).
- Historical config: netops `diff_configs` now requires precise recorded
  sources and preserves ordered semantic groups; see
  [config differences](docs/reference/config-diff.md).
- Route changes and counter deltas: reporter `compare_routes` and
  `compare_counters` expose supported [route profiles](docs/reference/route-changes.md)
  and [counter/time evidence](docs/reference/counter-deltas.md).
- One-time audits: reporter `run_audit` applies reviewed
  [fixed profiles](docs/reference/audit-profiles.md) without scheduling.

- Report review: reporter `lint_report` checks explicit claim/citation/evidence
  bindings and reports coverage gaps; see [citation checks](docs/reference/report-citations.md).
  It does not certify natural-language claims or caller-provided source authenticity.
- Topology content: reporter `compare_topology` compares exact recorded snapshots,
  preserving endpoint interfaces and parallel links; see
  [topology changes](docs/reference/topology-changes.md). Missing observations are
  not proof of physical link failure.

- Historical graph paths: topology `inspect_path` retains interface-level
  parallel links and bounded enumeration; see [topology paths](docs/reference/topology-paths.md).
  Recorded candidates do not establish forwarding or ECMP.
- Metric baselines: analyzer `analyze_baseline` separates reviewed historical
  intervals from a target interval with fixed metrics and clock/reset checks;
  see [metric baselines](docs/reference/metric-baselines.md). Percentiles are
  statistical references for observed net deltas, not health certification.

- OSPF observations: analyzer `analyze_ospf` inspects supported captured
  neighbor states and compares qualified historical records; see
  [OSPF analysis](docs/reference/ospf-analysis.md). Routing context gaps remain unknown.
- Audit evidence: analyzer `check_evidence` checks an explicit device/command
  list, capture-time policy and historical raw/parsed bindings; see
  [evidence readiness](docs/reference/evidence-readiness.md). Native CLI imports
  in 0.2 retain new raw capture provenance transactionally; old
  missing history is not reconstructed. `run_audit` can require this gate and
  run an explicit OSPF profile without expanding its default three checks.

These are native deterministic entry points. A host still authorizes its actual
tools; adding a script to the package does not register an Open WebUI tool or
establish natural-language routing in every harness.

## Documentation site

The public manual is maintained in this repository's `docs/`, with English
and Chinese pages and an explicitly marked legacy archive. Build it without
the former platform checkout:

```sh
python3 -m venv /absolute/path/to/docs-venv
/absolute/path/to/docs-venv/bin/python -m pip install -r requirements-docs.txt
/absolute/path/to/docs-venv/bin/python -B tools/build_docs.py
```

This creates `site/`, including checked compatibility pages for old documentation
URLs. The builder refuses to clean an unrelated nonempty output directory.
`wrangler.docs.toml` names the existing documentation app; no publication or
service switch is performed by the build. Historical source and route provenance
are recorded separately from current Skills capability claims.

## License

The existing [LICENSE](https://github.com/james-olavai/olav-skills/blob/main/LICENSE) and its terms are preserved. Public source
availability and Python packaging do not change the applicable license or the
permissions granted by it.
