Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Hardrails

Guardrails ask. Hardrails enforce.

Hardrails is an open, vendor-neutral method for giving an AI agent real work on a production network without giving it the ability to take one down: deterministic boundaries around a non-deterministic agent.

Read the specification

The idea in 60 seconds

An AI agent is a model plus a harness. The model half is genuinely useful now. It is also non-deterministic, and when it is wrong, it is wrong confidently, at machine speed.

A prompt is a request. The agent can misread it, forget it, or have it overridden by injected text in the data it reads. Every "you must never" in a system prompt is a behavior you are hoping for.

Hardrails puts the rules that matter in the tool layer instead, as running code that sits in the path of every action the agent takes:

  • Tools are read-only by default, enforced per command.
  • The one tool that can generate a change produces a dry-run diff and stops.
  • Nothing reaches a device without an explicit, recorded human yes.

The agent can propose any change and can push none. Not because the model promised to behave, but because the capability to misbehave was never granted.

The contract: 7 components, 2 tiers

# Component The question it answers Lives in
1 Role Who is the agent? Prompt
2 Context What does it know? Prompt
3 Constraint What are the rules of engagement? Prompt
4 Output Format What does done look like? Prompt
5 Tools What can it touch? Code
6 Boundary What can it never do, and what enforces that? Code
7 Evaluation How does its work get checked? Code + human

The full spec covers the 7 normative boundary principles, the conformance checklist, and the adoption path: hardrails-spec.md.

Status

  • Specification: v1.0. Stable, versioned, in this repo.
  • Reference implementation (netagent/): in active development. A bounded network agent built as an MCP server (FastMCP, Netmiko, Pydantic, NetBox as the intent source of truth), for a 3-node Cisco lab replicable on CML Free. The data models that make "silently apply a change" unrepresentable are already here; the server, the boundary code, and the lab topology ship with the full video walkthrough.

The complete build walkthrough is coming on G Talks Tech. Subscribe there or join the mailing list at join.gtalkstech.com if you want it when it lands.

Licensing

  • The specification and all written material: CC BY 4.0. Share it, teach it, adapt it, with attribution.
  • All source code: Apache-2.0.

Hardrails™ is a trademark of Garrett Masters (G Talks Tech). See NOTICE.

Metadata

Release files for hardrails 0.1.0.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hardrails 0.1.0.dev0
File Size Uploaded
hardrails-0.1.0.dev0.tar.gz 14.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hardrails 0.1.0.dev0
File Interpreter ABI Platform
hardrails-0.1.0.dev0-py3-none-any.whl Python 3 none any Details

Total release size: 31.4 kB

Release files / hardrails-0.1.0.dev0.tar.gz

Download URL hardrails-0.1.0.dev0.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
950df40df189dc19087eefe253268d799cc63d142f8a1bf53bef439311b594e3
BLAKE2b-256 checksum
How to use checksums
d0e10615cf97c06b8dab9cdde051bfd86581284d21fa0e2d151635c3e4e1aa2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.

Transparency log

Release files / hardrails-0.1.0.dev0-py3-none-any.whl

Download URL hardrails-0.1.0.dev0-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d583842da2e5d9a995d55f93dba69d80882a8cf3c257d35e450ed7307a08721e
BLAKE2b-256 checksum
How to use checksums
10eda07f7724b5a9fa9de6000e483034846abc16f6e069271dc2e1dfadabf7a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0.dev0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page