feat(runtime): Phase 2.1 v0.0.15 — Provenance pallet wired runtime + BoundedVec agent_chain

8 pallets composed total (Provenance Index 7 wired canonical). DC PROVENANCE_PALLET_V1
5/10 firmas en ratificación — procediendo paralelo per "notify and continue" canonical.

Deliverables canonical:
- Pallet wire: configs.rs Config impl + lib.rs runtime composition macro pallet_index(7) Provenance
- Alias `Provenance` (NO OriginProvenance que conflictaría con trait existente)
- BoundedVec<AccountId, ConstU32<10>> replace Vec en AssetAttestation.agent_chain
- Inmutable #41 pragmatic bound canonical: max 10 AGI co-authors per asset
- Removed #[pallet::without_storage_info] (MaxEncodedLen ahora satisfied)
- AccountId + Signature: DecodeWithMemTracking derive added (FRAME stable2512+ requirement)
- AssetAttestation: Encode/Decode/DecodeWithMemTracking/MaxEncodedLen/TypeInfo SCALE derives
- 4 nuevos tests boundary canonical (max 10 enforce + boundary accepted + SCALE roundtrip)

Verification end-to-end:
- cargo check workspace verde 2.14s
- 82+ tests pass workspace
- cargo build release 5.57s clean
- info subcommand muestra 8 pallets (Provenance index 7)
- build-spec subcommand NO regression Slice 3 mock-WASM chain_spec

Roadmap canonical post-v0.0.15:
- v0.0.16 Real Ed25519 verify (post Ergon Cap 42+ sub-crate)
- v0.0.17 Runtime API verify_provenance PROV-8
- v0.1.0 Full integration testnet Q3 2026

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
davidherranandClaude Opus 4.7 committed 2026-05-24 14:07:19 -05:00
1 parent 4359515f45
commit e0c5e8be18
11 files changed
+178 -23

No files matched your search

@@ -325,3 +325,20 @@ impl pallet_session::Config for Runtime {
// Pre-Phase 2.7: wallets canonical son AccountId32 (Ed25519/sr25519/ecdsa via
// MultiSignature canonical). Suficiente canonical para Phase 1 PoA + Phase 2
// NPoS basic. Identity claims canonical son value-add Phase 2.7+.
// ============================================================
// origin_chain_provenance::Config — Phase 2.1 v0.0.15 wired
// ============================================================
//
// pallet-origin-provenance scaffold canonical (DC PROVENANCE_PALLET_V1 5/10
// firmas, ratify target 2026-05-29). Scaffold-level Config canonical: solo
// RuntimeEvent association. Future canonical fields post DC ratify + Ergon
// arkhe-noesis-attestation-types Cap 42+ ship:
//
// - `OitFeeSchedule: Arc<dyn arkhe_amis_server::OitFeeSchedule>` (post OCAFB)
// - Custom origin canonical para validator-restricted attestation
// - Pallet weights canonical desde benchmarking real
impl origin_chain_provenance::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
}
+12
View File
@@ -268,6 +268,18 @@ mod runtime {
#[runtime::pallet_index(6)]
pub type Session = pallet_session::Pallet<Runtime>;
/// Provenance pallet canonical (Phase 2.1 v0.0.15 scaffold wired canonical
/// per CHN-7 + DC PROVENANCE_PALLET_V1). Asset attestation ledger BLAKE3 +
/// Ed25519 canonical para cross-pillar consumers (Trinity, Codex, Ethos,
/// Atelier). Scaffold-level canonical: dispatchable `attest_asset` flow
/// básico working, real Ed25519 verify post Ergon arkhe-noesis-attestation-types
/// Cap 42+ ship (v0.0.16 next slice).
///
/// Naming canonical: alias `Provenance` (NO `OriginProvenance` que conflictaría
/// con el trait existente del mismo nombre en `origin_chain_types::pallets`).
#[runtime::pallet_index(7)]
pub type Provenance = origin_chain_provenance::Pallet<Runtime>;
// Identity pallet DEFERRED a Phase 2.7 (canonical decision empírica
// 2026-05-21 documentada en configs.rs). pallet-identity 41.0.0 ReservableCurrency
// compat work canonical hereda al custom `pallet_agent_identity` Phase 2.7