register-an-ai-agent
Last updated: 2025-02-17 08:38:26.986940 File source: link on GitLab
Register an AI Agent
Actors
Primary Actor: User
Supporting Actors:
AI Agent Registry Service
DID Resolver
Goal in Context:
The user wants to register an AI agent (e.g., a bot or model) on a decentralized platform, securely linking it to their DID.
Preconditions:
The user has a DID and wallet.
The AI Agent Registry Service supports DID Auth.
Trigger:
The user requests to register a new AI agent.
Main Success Scenario:
Registration request:
The user sends a request to the AI Agent Registry Service, including metadata about the agent (e.g., public key, capabilities).
Authenticate user:
The Registry Service generates a cryptographic challenge and sends it to the user’s wallet.
The user signs the challenge with their DID private key and sends the signature back.
The Registry Service verifies the signature using the user’s DID Document.
Register agent:
The agent is registered with a new DID, linked to the user’s DID.
The agent’s metadata and public key are stored in the registry.
Confirm registration:
The Registry Service confirms the successful registration to the user.
Extensions:
Authentication failure:
If the user’s authentication fails, the Registry Service rejects the registration request.
Duplicate registration:
If an agent with the same metadata already exists, the service notifies the user and asks for confirmation to overwrite.
Functional Requirements
To be rewritten in Gherkin features as use-case specific regression tests and integrated into test-suite.
Register an AI Agent: As a user, I want to register an AI agent securely using my DID so that the agent can interact with decentralized services on my behalf.
The AI Agent Registry Service must authenticate the user using DID Auth before registering the agent.
The user must provide metadata (e.g., agent capabilities, public key) during registration.
The system must link the agent’s DID to the user’s DID and store the metadata securely.
The user must receive a confirmation message once the agent is registered.
Authenticate AI Agent: As a service provider, I want to authenticate an AI agent using its DID so that I can verify its identity before interaction.
The AI Agent Registry Service must verify the agent’s DID ownership during authentication.
The agent must sign a cryptographic challenge using its private key.
The system must verify the signature using the agent’s DID Document before allowing interaction.
If authentication fails, the system must deny access and notify the service.
Update Agent Metadata: As a user, I want to update the metadata of my AI agent so that I can modify its capabilities or public key.
The AI Agent Registry Service must authenticate the user using DID Auth before processing the update request.
The system must verify that the user owns the agent being updated.
Updated metadata must be stored securely and linked to the agent’s DID.
The user must receive a confirmation message once the update is complete.
Deactive AI Agent: As a user, I want to deactivate my AI agent so that it can no longer interact with decentralized services.
The AI Agent Registry Service must authenticate the user using DID Auth before processing the deactivation request.
The system must verify the user’s ownership of the agent and mark it as inactive.
The system must archive the agent’s metadata securely.
The user must receive a confirmation message once the agent is deactivated.
Last updated