Skip to main content

Reference validator, signer, and verifier for the auth.md governance file convention (spec 0.1)

Project description

gaas-spec

Reference validator, signer, and verifier for the auth.md governance file convention — spec 0.1.

The convention: a .gaas/ directory (auth.md, policy.md, audit.md, escalation.md, attestation.sig) declaring how an AI agent is governed — readable by people, validated and enforced by machines, signed like a release. Spec, schemas, and conformance fixtures: github.com/H2OmAI/authmd.

Local-only: no network, no API key. Suitable for CI.

Install

pip install gaas-spec

CLI

gaas validate            # validate ./.gaas (or: gaas validate path/to/repo)
gaas sign --key org-key.pem --key-id acme-2026
gaas verify --pub acme-2026=org-pub.pem

validate exits non-zero with findings when the bundle doesn't conform — wire it straight into CI. sign refuses non-conforming bundles. verify checks every file hash against the attestation manifest before checking signatures, so a tampered bundle fails loudly.

Library

from gaas_spec import parse_bundle, validate, sign, verify

bundle = parse_bundle(".")           # finds ./.gaas
findings = validate(bundle)          # [] means conforming
attestation = sign(bundle, private_key_pem, key_id="acme-2026", signer="org")
results = verify(bundle, attestation, {"acme-2026": public_key_pem})

Conformance

This package vendors the spec repo's fixtures and runs them in its test suite — it is the reference implementation and must agree with the fixtures at all times. Signing is ES256 (ECDSA P-256 + SHA-256) over an RFC 8785 canonical-JSON manifest hash, per SPEC-attestation.md.

License

Apache-2.0. The spec text itself is CC BY 4.0 at the spec repo.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gaas_spec-0.1.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gaas_spec-0.1.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file gaas_spec-0.1.0.tar.gz.

File metadata

  • Download URL: gaas_spec-0.1.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for gaas_spec-0.1.0.tar.gz
Algorithm Hash digest
SHA256 525c0636e7c15c09990425a011c099d427670afc5d8d834b3e5ec9c7f36f2ae7
MD5 6c8e84a4f67e5aa54bf8e7e904b492d7
BLAKE2b-256 259aa00562f19b646ce646153056a91cb58bd001d19b4e0bc6b84a2eb2f35c67

See more details on using hashes here.

File details

Details for the file gaas_spec-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gaas_spec-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for gaas_spec-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40c8b94a9e94195852d2e892c1dd85ae8053afa7cde882a8402637033d2706bb
MD5 c4f095d0d5aaba89421157b30ea9364c
BLAKE2b-256 f6d74df7a061e67f15bffef7aa6d64627aea19e9a307b7269c88d079333f8a48

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page