Metadata-Version: 2.5
Name: olav-skills
Version: 0.2.1
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
Description-Content-Type: text/markdown

# Olav Skills

Olav Skills pairs seven standard network-analysis skills with a standalone
Python runtime. Use its CLI directly to import offline captures, query recorded
data, inspect topology, compare snapshots and produce evidence. An existing AI
harness can discover the skills and invoke those tools within its own model,
conversation and permissions.

This repository is the maintained source of the standalone product. The new distribution is `olav-skills`, its Python namespace
is `olav_skills`, and its command is `olav-skills`. The former `olav` and
`olav-netops` Python distributions are not dependencies.

## Olav Skills 0.2

Use the CLI to check data readiness, query a specific snapshot and pre-check a
draft change plan against recorded evidence. The pre-check always returns
`not_approved`. An engineer or the host drafts the plan. The
[local wheel walkthrough](docs/release-candidate.md) demonstrates these steps
with synthetic data.

Local package checks covered installation layouts and specified scripts.
Natural questions in the tested Pi setup failed qualification, including
the held-out wording. Codex and Claude Code natural questions were untested.
See [compatibility](docs/reference/compatibility.md).

In 0.2.1, all seven bundled skills use English instructions and ask the host
to answer in the user's language unless the user requests another. An
integration's own interface strings and response templates have their own
language settings.

## Install 0.2.1

Public source: [james-olavai/olav-skills](https://github.com/james-olavai/olav-skills).

Use Python 3.11 or newer. Create and activate a dedicated environment, then
install the package from PyPI:

```sh
python3 -m venv ~/.venvs/olav-skills
. ~/.venvs/olav-skills/bin/activate
python -m pip install olav-skills==0.2.1
```

Next, bind the bundled skills to your harness. Choose one:

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

Pip installs the Python tools and all seven skills into the venv. The binding
command copies those skills into the chosen harness's discovery directory and
records this venv's interpreter. Keep the venv at its bound path. After changing
versions or moving environments, explicitly repeat the binding command from the
intended venv. Rolling back the binding leaves database changes in place.

Check the installed environment with `olav-skills version`, `olav-skills doctor`
and `olav-skills list`.

The distribution includes the seven skills and a public synthetic example. Follow
[installation](https://github.com/james-olavai/olav-skills/blob/main/docs/installation.md) for Codex, Claude Code and Pi; then run the
[offline data walkthrough](https://github.com/james-olavai/olav-skills/blob/main/docs/offline-data.md) for validation, import, exact
device membership, topology and an evidence report. See [migration](https://github.com/james-olavai/olav-skills/blob/main/docs/migration.md)
before replacing a legacy installation, and [portable export](https://github.com/james-olavai/olav-skills/blob/main/docs/portable.md)
for knowledge-only handoff.

Package tests establish deterministic execution and installation layout.
Actual harness discovery, natural-language routing and model answers need
separate validation.

## 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 |

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.

## 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.
