Skip to main content

Halyn — AAP in action. AI agents that can prove what they did.

Project description

Halyn

AAP in action. AI agents that can prove what they did.

PyPI License: MIT Tests

The reference implementation of AAP — Agent Accountability Protocol

Website · AAP Spec · NRP


What is Halyn?

Halyn is the complete demonstration of AAP.

Every agent action goes through 7 steps — none skippable:

Identity → Authorization → Scope → Shield → Execute → Provenance → Audit
from halyn import HalynControlPlane, ExecutionContext
from aap import AAPKeyPair, AAPIdentity, AAPAuthorization, AuthorizationLevel

# Setup
supervisor = AAPKeyPair.generate()
cp = HalynControlPlane(supervisor_keypair=supervisor, supervisor_did="did:key:z6Mk...")

# Register agent + node
cp.register_identity(identity)
cp.register_node(node)
auth = cp.grant_authorization(agent_id=..., level=AuthorizationLevel.SUPERVISED, scope=["write:file"])

# Execute — full AAP pipeline, fully audited
ctx = ExecutionContext(identity=identity, authorization=auth, agent_keypair=agent_kp)
result = cp.execute(ctx, node_id="nrp://acme/server/files-1", action="write:file", params={...})

# Verify audit chain integrity
valid, count, broken = cp.verify_audit()

AAP Ecosystem

Layer Project Role
Spec AAP Protocol definition
Physical NRP AAP for robots, IoT, machines
Full system Halyn (this) Complete demonstration

License

MIT

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

halyn-2.0.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

halyn-2.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file halyn-2.0.0.tar.gz.

File metadata

  • Download URL: halyn-2.0.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for halyn-2.0.0.tar.gz
Algorithm Hash digest
SHA256 ece459b2753850d8779fb8c8f1cfa032d084a821ae343f423992e67c202bbcf4
MD5 bffda25899bcfcafc14143660afb0587
BLAKE2b-256 06fa85eeffb32e21c34deb643bb37b4b4837b386a3ff0a823ad6107a4f726adb

See more details on using hashes here.

File details

Details for the file halyn-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: halyn-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for halyn-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f6c5e7df0c99f828754e1470ac19810665666da1a1f4a206f9fe796ba49e8e4
MD5 c30c8b47b4af8db32a9e5e6bacfd4dbe
BLAKE2b-256 191dd7977eaea1b5473cadbaf6040b6f82b5bdf6397f57949522a9fe8907046d

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