feat(examples): add AgentLair agent platform integration example#18
Open
piiiico wants to merge 1 commit into
Open
feat(examples): add AgentLair agent platform integration example#18piiiico wants to merge 1 commit into
piiiico wants to merge 1 commit into
Conversation
Adds a self-contained example demonstrating how AgentLair operates as the agent identity platform within a VI Autonomous mode delegation chain. AgentLair fills the "agent platform APIs" gap that VI's spec explicitly leaves out of scope, providing agent keypair management, vault-based L3 signing, and audit trail infrastructure. The example follows the same patterns as existing examples and covers: - Agent P-256 keypair provisioning (via AgentLair API in production) - L2 mandate creation with agent key binding and constraints - L3 credential signing (checkout + payment mandates) - Privacy-preserving selective disclosure routing - Chain and constraint verification by merchant and network - AgentLair audit trail linked to VI transaction ID Signed-off-by: Håkon Åmdal <hakon@amdal.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a self-contained example demonstrating how AgentLair operates as the agent identity platform within a Verifiable Intent Autonomous mode delegation chain.
The VI spec explicitly lists "agent platform APIs" as out of scope. AgentLair fills this gap by providing agent keypair management (P-256), vault-based L3 signing, and hash-chained audit trails — the infrastructure layer that complements VI's authorization proof layer.
What the example covers
cnf.jwkin the L2 mandateThe example is self-contained, follows the same patterns as existing examples in
examples/, and runs against the SDK with no additional dependencies.How to run
pip install -e ".[dev]" python examples/agentlair_integration.pyTest plan
pytestpasses (308 tests, 0 failures)python examples/agentlair_integration.pyruns end-to-end successfullySigned-off-by: Håkon Åmdal hakon@amdal.dev