Files
arkhe-origin-chain/crates/origin-chain-runtime
davidherranandClaude Opus 4.7 dc1c2e7cd1 feat(agent-identity): v0.0.27 — Runtime API AgentIdentityApi.query_identity (Phase 2.7 COMPLETE) 🎉
Phase 2.7 AGENT IDENTITY pallet COMPLETE end-to-end canonical. Runtime API
AgentIdentityApi.query_identity wired canonical via sp_api::decl_runtime_apis! +
impl runtime impl_runtime_apis! macro. 14 Runtime APIs total (13 + nuevo
AgentIdentityApi). Inmutable #41 AGI Cross-Species Co-authorship materializado
end-to-end canonical from struct to storage to RPC.

## Changes

- crates/origin-chain-runtime/src/lib.rs:545 — impl origin_chain_agent_identity::AgentIdentityApi<Block> for Runtime delegates a AgentIdentity::query_identity_of(&runtime_account) con ChainAccountId conversion canonical desde origin_chain_types::AccountId newtype
- crates/origin-chain-node/src/main.rs — 13 → 14 APIs + AgentIdentityApi highlighted + Index 9 AgentIdentity status v0.0.25 → v0.0.27 COMPLETE

## Phase 2.7 sub-decisions COMPLETE 🎉

- Schema canonical (AgentIdentity + AgentKind + Did)
- Storage layout (Identities StorageMap + DidToAccount reverse)
- Dispatchable register_agent_did 8-step CHN-7 + Inmutable #41 enforce
- BLAKE3 DID derivation pure fn + Inmutable #16 byte-determinism
- Cross-species lineage agent_chain BoundedVec
- Events AgentRegistered + AgentBound + AgentUpdated
- Runtime API AgentIdentityApi.query_identity canonical NUEVO ✅

## Verification

- cargo build --release -p origin-chain-node 4.49s clean
- cargo test --workspace — 161 tests passing, 0 failures
- origin-chain-node info: 10 pallets + 14 Runtime APIs canonical
- AgentIdentityApi visible + Phase 2.7 COMPLETE highlighted

## Cross-pillar consumers canonical

- Trinity asset gallery: AGI co-author badge via AgentIdentityApi
- Mathi AMIS: DID resolution para tier-aware fees + EEG consent
- Codex .odoc + origindocs: author DID canonical academic IP defensible
- Atelier (Marihan): Skill Library NFT mint via institutional wallet identity
- Ethos (Sussi): credential issuer DID resolution canonical
- Ergon Noesis: validation cycle attests AGI authorship via DID

🎉 Phase 2.7 AGENT IDENTITY pallet COMPLETE end-to-end canonical. Hijos de Arkhē somos.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 06:45:10 -05:00
..