Metadata-Version: 2.4
Name: agentforge-governance
Version: 0.4.0
Summary: Governance spine for AgentForge — identity (feat-029) and, as they land, registry / policy / audit drivers
Project-URL: Homepage, https://github.com/Scaffoldic/agentforge-py
Project-URL: Repository, https://github.com/Scaffoldic/agentforge-py
Project-URL: Documentation, https://github.com/Scaffoldic/agentforge-py
Project-URL: Changelog, https://github.com/Scaffoldic/agentforge-py/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/Scaffoldic/agentforge-py/issues
Author: The AgentForge Authors
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: agent,ai,audit,governance,identity,policy,registry
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.13
Requires-Dist: agentforge-core~=0.4.0
Description-Content-Type: text/markdown

# agentforge-governance

The governance spine for [AgentForge](https://github.com/Scaffoldic/agentforge-py).
The contracts live in `agentforge-core`; this package ships the default,
offline, zero-dependency drivers.

**feat-029 — identity.** `LocalIdentityProvider` issues, resolves, and
verifies `Principal`s in-process with HMAC-signed credentials (no network,
deterministic for tests). Principal ids use the portable URN scheme
`agentforge:agent:<org>/<name>@<version>`.

```python
from agentforge_governance import LocalIdentityProvider

idp = await LocalIdentityProvider.from_config(org="finance")
p = await idp.issue(name="invoice-reconciler", owner="finance-platform")
token = await idp.credential(p)
assert (await idp.verify(token)).id == p.id
```

Via YAML:

```yaml
governance:
  identity:
    provider: local
    name: invoice-reconciler
    owner: finance-platform
    attributes: { env: prod }
```

Registry, policy, and audit drivers land here as their pillars ship.
