feat(runtime): v0.0.25 — AgentIdentity pallet wired runtime composition Index 9
Phase 2.7 AGENT IDENTITY pallet wired canonical en frame_support::runtime macro
como Index 9 (post-Fees Index 8). 9 → 10 pallets composed canonical. Config trait
RuntimeEvent association wired canonical (pattern Provenance + Fees mirror).
## Changes
- crates/origin-chain-runtime/src/lib.rs:298 — Index 9 pub type AgentIdentity = origin_chain_agent_identity::Pallet<Runtime>
- crates/origin-chain-runtime/src/configs.rs:362 — impl origin_chain_agent_identity::Config for Runtime { type RuntimeEvent = RuntimeEvent }
- crates/origin-chain-runtime/Cargo.toml — origin-chain-agent-identity workspace dep + std feature
- crates/origin-chain-node/src/main.rs — 9 → 10 pallets listed + AgentIdentity Index 9 highlighted [Phase 2.7 scaffold v0.0.25]
- crates/origin-chain-agent-identity/src/lib.rs — Config constraint AccountId = origin_chain_types::AccountId REMOVED (usa T::AccountId generic compatible runtime ChainAccountId AccountId32) + storage updated + events updated
## Verification
- cargo build -p origin-chain-runtime 5.26s clean
- cargo test --workspace — 149 tests passing, 0 failures
- cargo build --release -p origin-chain-node 3.96s clean
- origin-chain-node info muestra 10 pallets canonical
🔌 Phase 2.7 wired canonical. Real impl v0.0.26 next.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
37ccf1e95a
commit
46a0188a1d
7 files changed
+91
-14
No files matched your search
@@ -6,6 +6,48 @@ by [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Versions follow
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.0.25] — 2026-05-25 — Phase 2.7 wired — AgentIdentity pallet runtime composition Index 9
|
||||
|
||||
**🔌 Phase 2.7 AGENT IDENTITY pallet WIRED runtime composition canonical** —
|
||||
`origin-chain-agent-identity` añadido al `#[frame_support::runtime]` macro como
|
||||
Index 9 (post-Fees Index 8). 9 → **10 pallets** composed canonical. Config trait
|
||||
`RuntimeEvent` association wired canonical en `crates/origin-chain-runtime/src/configs.rs`
|
||||
(pattern Provenance Phase 2.1 + Fees Phase 2.4 mirror).
|
||||
|
||||
### Deliverables v0.0.25
|
||||
|
||||
**Runtime composition canonical (Index 9 added)**:
|
||||
- `crates/origin-chain-runtime/src/lib.rs:298` — `#[runtime::pallet_index(9)] pub type AgentIdentity = origin_chain_agent_identity::Pallet<Runtime>;`
|
||||
- `crates/origin-chain-runtime/src/configs.rs:362` — `impl origin_chain_agent_identity::Config for Runtime { type RuntimeEvent = RuntimeEvent; }`
|
||||
|
||||
**Workspace deps canonical**:
|
||||
- `crates/origin-chain-runtime/Cargo.toml:51` — `origin-chain-agent-identity.workspace = true` dep + std feature
|
||||
- Documentation canonical pattern Provenance + Fees mirror
|
||||
|
||||
**Pallet Config canonical fix**:
|
||||
- Removed constraint `AccountId = origin_chain_types::AccountId` from `Config` trait — usa generic `T::AccountId` (matches runtime ChainAccountId AccountId32)
|
||||
- Storage canonical updated: `Identities<StorageMap<_, _, T::AccountId, AgentIdentity>>` + `DidToAccount<StorageMap<_, _, Did, T::AccountId>>`
|
||||
- Events updated: `AgentRegistered/AgentBound/AgentUpdated { account: T::AccountId, ... }`
|
||||
|
||||
**Node info subcommand update canonical**:
|
||||
- `crates/origin-chain-node/src/main.rs:194` — 9 → **10 pallets** listed canonical
|
||||
- Index 9 AgentIdentity highlighted `[Phase 2.7 scaffold v0.0.25]`
|
||||
|
||||
### Verification end-to-end canonical
|
||||
|
||||
- ✅ `cargo build -p origin-chain-runtime` 5.26s clean (warnings cosméticos macro-generated)
|
||||
- ✅ `cargo test --workspace` — **149 tests passing**, 0 failures (+12 nuevos: 8 identity types + 4 pallet scaffold)
|
||||
- ✅ `cargo build --release -p origin-chain-node` 3.96s clean
|
||||
- ✅ `origin-chain-node info` muestra 10 pallets canonical + 13 Runtime APIs (AgentIdentityApi pendiente v0.0.27)
|
||||
- ✅ Existing subcomandos canonical NO regression
|
||||
|
||||
### Roadmap canonical post-v0.0.25
|
||||
|
||||
| Version | Trigger |
|
||||
|---------|---------|
|
||||
| **v0.0.26** | **Real `register_agent_did` impl + storage assertions + mock runtime integration tests E2E (sesión 3+ shipping ahora, pattern v0.0.22 mirror)** |
|
||||
| v0.0.27 | Runtime API canonical `AgentIdentityApi.query_identity` impl en runtime → **Phase 2.7 COMPLETE** |
|
||||
|
||||
## [0.0.24] — 2026-05-25 — Phase 2.7 scaffold — pallet-agent-identity trait-first (Inmutable #41 AGI DIDs)
|
||||
|
||||
**🪪 Phase 2.7 AGENT IDENTITY pallet SCAFFOLD trait-first foundation** — AGI
|
||||
|
||||
Reference in new issue
Block a user