agentspm
Agent Security Posture Management (Agent-SPM) blueprint for EU-regulated,
self-hosted environments. agentspm inventories the AI agents an
organization already runs — their identities, credentials, data access and
enforcement-point routing — into a vendor-neutral asset graph with
provenance, evaluates it against an auditable OPA/Rego policy pack
(13 tri-state controls), and renders evidence-grade reports whose findings
map to EU frameworks (NIS2/ZoKB, DORA, AI Act, GDPR, ISO 27001/42001 — every
mapping status: verify until a human with a compliance role confirms it).
Status: private development, pre-alpha. All examples, fixtures and demo output are synthetic only (
example.com/contosodomains, documented synthetic GUIDs) — see the claims rule indocs/LANGUAGE.md. No production data and no real tenant identifiers exist anywhere in this repository or its history (enforced byscripts/identifier_scan.pyin hooks and CI).
What it is NOT
- Posture, not enforcement. It finds, documents and maps — it never blocks, prevents or mutates anything. Runtime guardrails, DLP inspection and routing belong to an enforcement point (such as an LLM governance gateway); agentspm only reads its posture.
- Not an agent framework. It does not build, host or orchestrate agents; it scans the estate of agents you already have.
- Not legal advice and not a compliance verdict. Reports are evidence for
your own assessment;
unknownis reported asunknown, never scored asfail; framework anchors staystatus: verifyuntil confirmed by a person with a compliance role. - No web UI, no SaaS, no multi-tenant mode, no model artifact scanning.
Deployment model and identity providers — read this before a POC
- Self-hosted only. There is no hosted or SaaS offering, and the tool phones home to no one: one CLI, one SQLite file, your infrastructure. That is a design decision for regulated environments, not a missing feature.
- IdP coverage today — said out loud: the only implemented identity
collector is Microsoft Entra ID (read-only, attribute-whitelisted).
The gateway posture collector is IdP-agnostic (versioned HTTP contract).
Other IdPs (Okta, Keycloak, on-prem AD) are a documented extension point
(
docs/INTEGRATION.md, "adding a collector"), not shipped code — if your estate lives in a different IdP, budget for writing a collector before you expect identity posture results.
Support
Actively developed, solo maintainer — support is best-effort via GitHub Issues; security reports go through the private channel in SECURITY.md (acknowledgement target 72 h). There is no SLA and no commercial support today. For procurement purposes this is internally supported OSS: plan your own operational ownership, the same way you would for any other tool you self-host.
Scope vs. microsoft/agent-governance-toolkit
The nearest OSS neighbor is the Microsoft Agent Governance Toolkit (MIT) — a broader governance toolkit, enforcement-first and aimed at governing agents through their lifecycle: discovery/AgentMesh, OPA/Cedar policy, SPIFFE/DID identity, sandboxing, tamper-evident audit, mappings to EU AI Act/NIST AI RMF/SOC 2.
agentspm is deliberately narrow: a posture/evidence scanner over the existing estate — read-only collectors (Entra ID, Git hosting, gateway posture API), an asset graph with per-attribute provenance and attested-vs-declared precedence, tri-state controls, and an evidence report whose anchors target the EU regulatory set including the Czech ZoKB — all self-hosted with zero infrastructure (one CLI, one SQLite file, no service). If you need lifecycle governance and enforcement, use a toolkit like AGT at the enforcement layer; agentspm is the independent posture reading and audit-evidence layer next to it.
Quickstart (synthetic, no network)
Runs the real pipeline against the built-in mock gateway — the output is labeled generated over synthetic fixtures:
uv sync # install (locked); includes the dev group the mock needs
scripts/setup-hooks.sh # MANDATORY for contributors: SEC-D5 pre-commit/pre-push hooks
# evaluate refuses to run an unpinned OPA engine — pin the binary you trust:
export AGENTSPM_OPA_PATH="$HOME/.local/bin/opa"
export AGENTSPM_OPA_SHA256="$(sha256sum "$AGENTSPM_OPA_PATH" | cut -d' ' -f1)"
uv run agentspm scan --collector mock-gateway # collect -> validate -> merge -> derive
uv run agentspm evaluate # pinned OPA, 13 tri-state controls
uv run agentspm report --format md --out report.md # redacted profile (default)
Also available: --format json|sarif, agentspm export --encrypt age:<recipient> (requires ≥ 2 recipients), and agentspm doctor as the
deployment preflight. On this synthetic run doctor will report failures
(age recipients, and opa sha256 pin unless you exported the variable above)
and a warning for the unconfigured evidence store: the quickstart configures
neither, and both are export-side requirements. That is the preflight doing its
job, not a broken install — a green doctor is a property of a configured
deployment, not of a fresh clone. To scan your own tenant instead of the mock, follow
docs/INTEGRATION.md.
Documentation
| Document | Content |
|---|---|
| docs/ARCHITECTURE.md | pipeline, components, contracts, invariants, evidence & deployment in a regulated entity, exit/fork strategy |
| docs/INTEGRATION.md | bring your own tenant/IdP: dedicated app registration, exact minimal scopes, doctor, manual-run rules, adding a collector |
| docs/PRIVACY.md | GDPR position: purpose, art. 6(1)(f)/recital 49 with LIA template, minimization, dual-tier retention, art. 30 record, DPIA screening |
| docs/THREAT-MODEL.md | threats T-01..T-17 with mitigations and status |
| docs/CONTROLS.md | generated control reference (13 controls, framework anchors, all verify) |
| docs/LANGUAGE.md | honest-claims rules (lint-enforced) incl. the fail-closed qualification and the synthetic-fixtures claims rule |
| docs/RELEASE-GATE.md | two-stage release gate: quality (binding even privately) and publication |
| docs/GOVERNANCE.md | schema-change process (ADR now, RFC from publication) |
| docs/adr/ | architecture decision records |
Repository layout
schema/v0.1/— JSON Schema 2020-12 contracts (asset graph, findings); shipped inside the wheel.schema/examples/— synthetic examples.policies/v0.1/— OPA/Rego policy pack: 13 tri-state controls,opa testsuites, synthetic fixtures,controls.yamlanchors, pinnedcapabilities.jsonwithout network builtins.src/agentspm/— collectors, validator, graph store/merge/derive, evaluate, reporter (+ redaction), CLI.contracts/gateway/v0.1/— the gateway posture-read OpenAPI contract (owned here, vendored by consumers with a sha256 pin).deploy/— example config + Kubernetes CronJob reference;Containerfile— UBI9-minimal image;scripts/build_release.sh— wheel + SBOM + checksums.scripts/— CI/hook lints (identifier scan, language lint, policy lints).
Development
uv sync # install (locked)
scripts/setup-hooks.sh # MANDATORY: installs pre-commit/pre-push hooks (SEC-D5)
uv run pytest # tests
uv run ruff check . # lint
uv run mypy src/ # types (strict)
License
- Code and the OPA policy pack: Apache-2.0.
- Documentation and the compliance framework mappings (
docs/, the NIS2/DORA/ZoKB/AI Act anchor tables indocs/CONTROLS.md): CC-BY-4.0. If you reuse the mappings, attribute "the agentspm maintainers" and keep thestatus: verifyqualifiers — the attribution travels with the caveat, not instead of it. The mappings are a reading aid, not legal advice;status: verifymeans exactly that.
Confirmed at the publication gate (docs/RELEASE-GATE.md, item P8,
2026-11-11).
Metadata
Release files for agentspm 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentspm-0.1.1.tar.gz | 370.7 kB | With provenance | Details for agentspm-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentspm-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for agentspm-0.1.1-py3-none-any.whl |
Total release size: 471.9 kB
Release files / agentspm-0.1.1.tar.gz
| Download URL | agentspm-0.1.1.tar.gz |
|---|---|
| Size | 370.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
108f484fb394bd873cfdce862c9431ab34b466e20ef2b41d217b7c2b6cfcdf4f
|
|
BLAKE2b-256 checksum How to use checksums |
a0c563bc7e02004e4fc1db03bbf5804b6f4e8fd6d1aca0e793f17ef9c5f7d3db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 11, 2026.
Transparency logRelease files / agentspm-0.1.1-py3-none-any.whl
| Download URL | agentspm-0.1.1-py3-none-any.whl |
|---|---|
| Size | 101.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99f5a55298ff898bfdadf5898cfac565f09b35011bf9c846d2bd175badc390d6
|
|
BLAKE2b-256 checksum How to use checksums |
d0fc1c33f3bf641df64935dfde9213604945e859b88f2213a6c437a34951ec9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 11, 2026.
Transparency logSecurity for agentspm 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for agentspm-0.1.1.tar.gz
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 Nov 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.