clm:
abstract_spec:
context: >
Runtime type for an Agent identity — an Externally Owned Account (EOA) or Contract Account (CA) capable of cryptographic signing, sovereign volition, and VCard boundary authorization.
goal: "Validate that a payload conforms to the Agent identity schema."
success_criteria:
- "Payload contains a 'did' field with a valid DID string."
- "Payload contains a 'type' field (EOA or CA)."
- "Payload optionally contains capability and role fields."
concrete_impl:
runtime: system
operation: type_validator_agent
universe_level: 2
precondition:
description: "Payload must be a non-empty YAML or JSON object."
vcard_pre: gate:payload_nonempty
postcondition:
description: "Returns boolean is_valid and a VCard attestation."
vcard_post: gate:result_sealed
schema:
required_fields:
- name: "did"
type: "string"
description: "Decentralized Identifier (DID) of the agent."
constraints:
pattern: "^did:[a-z]+:[a-zA-Z0-9]+"
- name: "type"
type: "string"
description: "Account type — EOA (human) or CA (contract/automated)."
constraints:
enum: ["EOA", "CA"]
optional_fields:
- name: "name"
type: "string"
description: "Human-readable name of the agent."
- name: "role"
type: "string"
description: "Role classification (admin, operator, viewer)."
- name: "capabilities"
type: "list"
description: "Capability whitelist for IAM authorization."
- name: "created_at"
type: "string"
description: "ISO timestamp of agent creation."
inputs:
payload: "MCard — the data to validate"
outputs:
is_valid: "boolean"
v_post: "VCard"
process:
type: meta_evaluate
target: "core.type_validator.agent"
balanced_exp:
expectation: "Agent validator accepts valid DID payloads and rejects incomplete ones."
pending_cases:
- given:
payload: {"did": "did:key:z6MkhaXgBZDvotDkL5257faiztiuC2QNDs", "type": "EOA"}
when: "validate"
then:
is_valid: true
- given:
payload: {"name": "NoDidAgent"}
when: "validate"
then:
is_valid: false
_meta:
clm_root_hash: sha256:7e0c96982b3647566ae9390be8ebecdaca93280b7b84c29183508e3d2034135a
a_hash: sha256:8cb915ba86a9f192402994d43315dcd62ff11370ed32cda74dd41bee5617690f
c_hash: sha256:ea5fb80da0c5ad4f9726c2a5562f31c285aa0fca2d3a37fe16d7ad1d9f468d27
b_hash: sha256:1408325f90c4663e66e1b4553f62d0237f28698b5cebc9011eb730d0523eba24
clm_name: type_validator_agent
computed_at: "2026-05-27T08:50:07Z"
depends_on: []