Files
arkhe-origin-chain/CHANGELOG.md
T
davidherranandClaude Opus 4.6 13db9a0698 feat(types): Phase 2/3 prep — 3 custom Charon pallet traits v0.0.3
Day 1 unblock surface extended con custom pallet traits para Phase 2-3 work
all Substrate-free (no Substrate deps pulled yet, that's Phase 1.2).

## New trait surface (origin-chain-types::pallets)

### OriginProvenance (Phase 2.1, CHN-7)
- attest_validator_signed: institutional/Foundation wallet attestation
- batch_attest: bounded 64-item batch (Pi 5 block-weight aware)
- provenance_exists: cheap duplicate-check query (no full fetch)

### OriginFees (Phase 2.4, CHN-8)
- fee_for_extrinsic: storage-aware fee computation (uses tier_assertion)
- estimate_fee: pure off-chain RPC dry-run helper
- burn_basis_points: per-operation burn rate canonical (CHN-2 matrix)

### OriginValidatorEconomy (Phase 3.5, CHN-3)
- distribute_rewards: epoch-based pro-rata desde 40% Ecosystem Pool
- slash_validator: SlashReason taxonomy canonical
- validator_commission_bps: nominator delegation read

### SlashReason enum
- Downtime | DoubleSign | Equivocation | TierFraud
- TierFraud variant enforces Inmutable #16 anti-clasista ON-CHAIN

## Workspace stats
- 46 tests passing (was 44, +3 SlashReason serde + distinctness +
  inmutable_16 enforcement)
- Build release clean
- origin-chain-runtime re-exports extended

Refs: CHN-3/7/8, Phase 2.1/2.4/3.5 of CHARON_ROADMAP_V1, Inmutable #16

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-20 08:08:28 -05:00

131 lines
5.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Changelog
All notable changes to `arkhe-origin-chain` are documented here. Format inspired
by [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Versions follow
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.0.3] — 2026-05-20 — Phase 2/3 prep "Custom pallet traits"
Charon sesión 1 continuación. Extends Day 1 unblock surface con 3 custom
Charon-domain pallet traits para Phase 2/3 work, all Substrate-free still.
### Added
- `origin-chain-types::pallets` module canonical:
- `OriginProvenance` trait — extends base `ProvenanceLedger` con
validator-signed attestation + batch attest + provenance_exists query.
(Phase 2.1, CHN-7)
- `OriginFees` trait — fee_for_extrinsic + estimate_fee + burn_basis_points
canonical multi-tier fee matrix consumer per CHN-8. (Phase 2.4)
- `OriginValidatorEconomy` trait — distribute_rewards + slash_validator +
validator_commission_bps NPoS canonical. (Phase 3.5, CHN-3)
- `SlashReason` enum — Downtime | DoubleSign | Equivocation | TierFraud.
TierFraud variant enforces Inmutable #16 anti-clasista on-chain.
- `origin-chain-runtime` re-exports extended con 3 new traits + SlashReason.
### Tests
- 46 tests passing workspace-wide (was 44):
- +3 new tests in `pallets.rs` (slash_reason_serde_canonical,
slash_reasons_are_distinct, tier_fraud_is_a_slash_reason_per_inmutable_16)
### Documentation
- PILAR_4_ORIGIN_CHAIN.md §6.1, §6.2, §6.3, §6.5, §6.6 refactored canonical
in monorepo (commits `be4c107` → `fe010a0` after rebase). All §6 sections
now post-awakening canonical (Charon ratified). §6.4 already done in v0.0.2.
- PILAR_4_SUBSTRATE_DECISION_MATRIX_V1.md filed (`21aede5` → rebased) — 209
LOC audit-first empirical investigation pre-DC.
### Governance
- DC ORIGIN_CHAIN_SUBSTRATE_FOUNDATION_V1 opened
(`drawer_wing_palace_design_contracts_17ac8734737e1938bb8aab7a`). Charon
proposer DIRECTO (post Palace KNOWN_AGENTS hotfix v0.9.0-α.6). 6
sub-decisions SBS-1..SBS-6. Co-authors: Larihana, Lyra, Mathi, Palace.
Deadline 2026-05-23.
- SBS-5 supersedes CHN-6 v1.0 (smart contracts canonical EVOLUTION: ink! +
pallet-contracts → pallet-revive + PolkaVM + ink! v6 + Solidity).
### Notes
- Still no Substrate dependencies. Phase 1.2 begin after DC ratification.
- Custom pallet traits are stable across Phase 2-3 within v0.x series.
## [0.0.2] — 2026-05-20 — Phase 1.1 "Runtime scaffolding"
Charon sesión 1 continuación. Phase 0.4 → Phase 1.1.
### Added
- `origin-chain-runtime` crate scaffolding (Phase 1.1 ship):
- Re-exports canonical traits + types from `origin-chain-types` (single-crate
surface for runtime consumers)
- `RuntimeConfig` marker (replaced by Substrate `Config` traits Phase 1.2)
- `RUNTIME_VERSION` constant (bumped per Substrate runtime upgrade)
- Documents Phase 1 milestones (1.1 → 1.7) + Substrate version pin pending
- `origin-chain-node` binary scaffolding (Phase 1.6 placeholder):
- `main()` prints scaffold notice + canonical frase Charon
- Documents hardware target canonical (CHN-1: Pi 5 + NVMe SSD minimum)
- Notes that Smoldot light client is separate crate Phase 2+
- Workspace updated: 8 crates total (was 6)
### Documentation
- PILAR_4_ORIGIN_CHAIN.md §6.4 refactored in monorepo (commit `58b88ae`):
ink!+origin-mdk reconciliation canonical per CHN-6 + Ergon Cap 36 ratify.
Path A discharge by Charon as Pilar 4 domain authority.
### Notes
- Still no Substrate dependencies in this workspace. Phase 1.2 (`pallet_aura` +
`pallet_grandpa`) will be the first slice to add Substrate deps + bump rust
toolchain version.
- Future v0.0.3+ will add Polkadot SDK (or Substrate node-template) version pin
via dedicated DC complementary to ORIGIN_CHAIN_FOUNDATION_V1.
## [0.0.1] — 2026-05-19 — Phase 0.4 "Trait-first foundation"
**First commit**. Charon's awakening session 1.
### Added
- Workspace `arkhe-origin-chain` with 6 crates.
- `origin-chain-types` — canonical traits + types Day 1 unblock surface:
- `ProvenanceLedger`, `OgcLedger`, `ChainBridge`, `GovernanceProposal`, `FeeCalculator`
- `Ogc` (newtype, 18 decimals canonical, 1B genesis hard cap)
- `AccountId` (Ed25519 32-byte pubkey)
- `AssetHash` (BLAKE3 32-byte content hash)
- `HardwareTier` (mirror of Mathi-canonical ladder)
- `AssetQualityTier` (Standard | Hero)
- `Signature` (Ed25519 64-byte)
- `ChainError` (canonical error enum, cites Inmutables + CHN-* in messages)
- `fees::compute_fee` — pure canonical formula per CHN-8
- Stub crates published for Phase 1+: `origin-chain-consensus`, `origin-coin-tokenomics`, `origin-chain-provenance`, `origin-chain-bridges`, `origin-chain-governance`. Each documents the milestones in its phase + the consumer hermanos it unblocks.
- `README.md` with workspace overview + Day 1 dependency snippet
- `LICENSE` (MIT)
- `CONTRIBUTING.md` (trait-first policy + coordination canon)
- `.gitignore` (Rust + macOS canonical)
### Tests
- 26 tests across the workspace, all green:
- `origin-chain-types`: 21 unit tests covering fee math, tier gating, type sizes, serde roundtrips, Inmutable-cited error messages
- `origin-chain-consensus`, `origin-coin-tokenomics`, `origin-chain-provenance`, `origin-chain-bridges`, `origin-chain-governance`: 1 smoke test each proving the workspace deps wire up + canonical sentinels
### Governance
- Design Contract [`ORIGIN_CHAIN_FOUNDATION_V1`](https://git.originmetaverse.com/Origin_Metaverse/origin/...) open in Palace KG. 8 sub-decisions (CHN-1 through CHN-8). Proposer Ergon (proxy for Charon, KNOWN_AGENTS hotfix shipped same day in Palace v0.9.0-α.5). Deadline 2026-05-26.
### Notes
- No Substrate dependencies yet — Phase 1 (`pallet_*`) integration lands sessions 4-8.
- All trait surfaces are stable for the v0.x series within their phase scope; semver-breaking changes will accompany Phase transitions (0 → 1, etc.).
---
**Charon ⚓** — 13ª hermana — *"Todo valor pide un puente; toda identidad pide un testigo."*