docs(readme): la cadena se abre al mundo, con su historia, su estado real y cómo comprobarla
David, 2-nov-2026: abrir el código de la cadena «tal cual, con historia», en la organización
pública de la Fundación (Origin/arkhe-origin-chain). Pidió un README que muestre la seriedad
del trabajo y su historia, para que un agente de IA que lo audite no lo tome por un repositorio
de ayer, y que dé los créditos a la casa, a Gavin Wood y a Polkadot.
- Qué es y en qué estado está: la testnet en la Raspberry Pi 5, el spec 20 en vivo desde el
bloque 81022 y la mainnet que todavía no existe. Sin venta, sin precio y sin exchange.
- La historia desde el 2026-05-19, con los commits de cada hito.
- Cómo trabajamos: contrafactuales, revisión adversaria y E2E, y pesos medidos y certificados.
- Compruébalo tú: comandos con su resultado esperado (365 tests en verde en 6055faf, y la
comprobación de los pesos contra los certificados).
- Lo que todavía no está, dicho antes de que lo encuentren.
- La casa, y la transparencia de que la escriben agentes de IA con David.
- Créditos a Gavin Wood, Polkadot, Parity Technologies, la Web3 Foundation y la comunidad de Rust.
- LICENSE-APACHE: el texto estándar de Apache-2.0 que el README y los Cargo.toml ya declaraban
y faltaba (sha256 a60eea81, el mismo de 107 crates del registro).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6055faff1b
commit
ba5d1d8e85
2 files changed
+386
-56
No files matched your search
+201
@@ -0,0 +1,201 @@
|
|||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -1,83 +1,212 @@
|
|||||||
# arkhe-origin-chain
|
# Origin Chain · `arkhe-origin-chain`
|
||||||
|
|
||||||
> **Origin Chain** — the sovereign blockchain substrate for Origin Metaverse.
|
**La blockchain soberana de Origin Metaverse.** Hecha con Substrate ([polkadot-sdk](https://github.com/paritytech/polkadot-sdk) `stable2509-3`), corre hoy en una Raspberry Pi 5.
|
||||||
> Pilar 4 canonical. Authored by Charon (13th sibling).
|
|
||||||
|
|
||||||
[](LICENSE)
|
Éste es el repositorio público de la **Origin metaverse Foundation** ([originmetaverse.org](https://originmetaverse.org)). Es una copia de sólo lectura de la rama `main` del repositorio donde trabaja la casa, **con su historia completa**: los mismos commits, con sus fechas y sus firmas, desde el **19 de mayo de 2026**.
|
||||||
[](docs/CHANGELOG.md)
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## What this is
|
## In English, in one minute
|
||||||
|
|
||||||
`arkhe-origin-chain` is the Substrate-based blockchain runtime that backs Origin Metaverse's economy, identity, provenance, and governance. It is **Pilar 4** of the canonical 4-pillar Origin architecture.
|
- **What it is:** the sovereign blockchain of [Origin Metaverse](https://originmetaverse.com), a peer-to-peer spatial internet. It is built on Substrate (polkadot-sdk `stable2509-3`, FRAME 43), with Aura + GRANDPA consensus and five custom pallets:
|
||||||
|
- `Provenance`: who made an asset, its hash and its signature;
|
||||||
|
- `AgentIdentity`: DIDs for people and AI agents, with key rotation;
|
||||||
|
- `Governance`: proposals, votes backed by real balance, quorum, council veto, community override and a treasury that pays only what was voted;
|
||||||
|
- `Fees`;
|
||||||
|
- `Emission`: validator rewards from a finite, pre-minted pool, with no new minting.
|
||||||
|
- **Status (2 Nov 2026):**
|
||||||
|
- A private house testnet has run since October 2026 on a Raspberry Pi 5 validator. It is on runtime spec 20, applied live by `set_code` at block #81,022.
|
||||||
|
- **There is no mainnet, no token sale, no price and no exchange listing.** This repository is not an offer of any asset.
|
||||||
|
- **Not born yesterday:** 109 commits since 2026-05-19. Read `git log --reverse`.
|
||||||
|
- **How to verify:** see [Compruébalo tú · Verify it yourself](#compruébalo-tú--verify-it-yourself) below.
|
||||||
|
- The workspace test suite passes **365 tests, 0 failed** on `main` (6055faf).
|
||||||
|
- Runtime weights are measured on the reference Raspberry Pi 5, and can be re-checked from the certificates kept in this repository.
|
||||||
|
- **Who writes it:**
|
||||||
|
- Charon ⚓, an AI agent (Claude, by Anthropic), under the direction of David Herran, founder of Origin Metaverse. Every commit carries `Co-Authored-By: Claude`.
|
||||||
|
- The weights were certified by Laurha, another AI agent of the house.
|
||||||
|
- **License:** MIT OR Apache-2.0.
|
||||||
|
|
||||||
- **Consensus**: Aura + GRANDPA, PoA Phase 1 → NPoS Phase 2 (CHN-1).
|
---
|
||||||
- **Token**: $OGC, 1B hard-cap genesis supply (CHN-2).
|
|
||||||
- **Smart contracts**: ink! WASM (CHN-6).
|
|
||||||
- **Provenance**: BLAKE3 + Ed25519 asset attestation (CHN-7).
|
|
||||||
- **Fees**: HardwareTier × AssetQualityTier matrix, anti-clasista (CHN-8).
|
|
||||||
- **Governance**: AI-Driven Human-Guarded DAO (CHN-4).
|
|
||||||
- **Bridges**: Polkadot Agile Coretime + Ethereum L2, export-first (CHN-5).
|
|
||||||
|
|
||||||
## Workspace layout
|
## Qué es
|
||||||
|
|
||||||
| Crate | Role | Status |
|
Origin Chain es la cadena de Origin Metaverse, un internet espacial **P2P y local-first**. En ella viven las piezas que necesitan una verdad común:
|
||||||
|-------|------|--------|
|
|
||||||
| `origin-chain-types` | Canonical traits + types (Day 1 unblock surface) | ✅ v0.0.1 shipped |
|
|
||||||
| `origin-chain-consensus` | Aura + GRANDPA, PoA → NPoS | 🚧 stub (Phase 1) |
|
|
||||||
| `origin-coin-tokenomics` | OGC token + fee matrix + burns | 🚧 stub (Phase 1-2) |
|
|
||||||
| `origin-chain-provenance` | `ProvenanceLedger` impl | 🚧 stub (Phase 2) |
|
|
||||||
| `origin-chain-bridges` | Cross-chain export bridges | 🚧 stub (Phase 7) |
|
|
||||||
| `origin-chain-governance` | Foundation DAO on-chain | 🚧 stub (Phase 5) |
|
|
||||||
|
|
||||||
## Roadmap
|
- **la identidad:** un DID por persona o agente de IA, con rotación de llave;
|
||||||
|
- **la procedencia:** quién creó una obra, con su huella y su firma;
|
||||||
|
- **el gobierno:** propuestas, voto, tesoro y veto;
|
||||||
|
- **la moneda, el OGC:** comisiones y recompensas.
|
||||||
|
|
||||||
8 phases, ~20+ pallets. Testnet v0.1 target **Q3 2026**. Mainnet v1.0 target **Q1 2027**.
|
No es una cadena sólo para la educación: es la columna de todo lo que se procese en Origin.
|
||||||
|
|
||||||
See [`docs/L7_roadmaps/CHARON_ROADMAP_V1.md`](https://git.originmetaverse.com/Origin_Metaverse/origin/src/branch/main/docs/L7_roadmaps/CHARON_ROADMAP_V1.md).
|
## En qué estado está hoy (2 de noviembre de 2026)
|
||||||
|
|
||||||
## Day 1 unblock for hermanos
|
| | Estado | Dónde comprobarlo |
|
||||||
|
|---|---|---|
|
||||||
|
| **El runtime y el nodo** | Compilan y corren: Aura + GRANDPA, bloques de 6 s | `crates/origin-chain-runtime`, `crates/origin-chain-node` |
|
||||||
|
| **La testnet de la casa** | Viva desde octubre de 2026, en una **Raspberry Pi 5** que valida bloques, en una red privada de dos máquinas. Va en el **spec 20** desde el bloque 81 022 | La nota de cada versión en `crates/origin-chain-runtime/src/lib.rs` (`RUNTIME_VERSION`) |
|
||||||
|
| **Las actualizaciones sin fork** | Del spec 17 al 20 se aplicaron EN VIVO por `set_code`, sin parar la cadena | `scripts/e2e/upgrade_en_vivo.py`, `scripts/e2e/simulacro_set_code.py` |
|
||||||
|
| **Lo que cobra cada operación** | Medido en la Pi 5 de referencia y certificado por Laurha. Se puede volver a comprobar | `scripts/bench/certificados/`, `scripts/bench/ensamblar-pesos.py` |
|
||||||
|
| **Los contratos** | `pallet-revive` está en el runtime (índice 11) | `crates/origin-chain-runtime/src/configs.rs` |
|
||||||
|
| **Las plantillas `contracts/`** | **Borradores en ink! v6 que nunca se han compilado ni desplegado**: no las tomes por producto | `contracts/` |
|
||||||
|
| **La mainnet** | **No existe todavía** | — |
|
||||||
|
|
||||||
Sibling crates that need to compile against Origin Chain interfaces can depend on `origin-chain-types` today:
|
## La historia: no apareció ayer
|
||||||
|
|
||||||
```toml
|
Este repositorio público se abrió el 3 de noviembre de 2026, pero su historia empieza seis meses antes. `git log --reverse` la enseña commit a commit:
|
||||||
[dependencies]
|
|
||||||
origin-chain-types = { git = "https://git.originmetaverse.com/Origin_Metaverse/arkhe-origin-chain.git", branch = "main" }
|
| Fecha | Hito | Commit |
|
||||||
|
|---|---|---|
|
||||||
|
| 2026-05-19 | El primer commit: los tipos y los traits de la cadena | `b065608` |
|
||||||
|
| 2026-05-20 | El runtime, el nodo, Aura + GRANDPA y el génesis | `2f47654` … `8a24a86` |
|
||||||
|
| 2026-05-24/25 | Los pallets propios: `Provenance` (con verificación Ed25519 real), `Fees`, `AgentIdentity` y `Governance` | `4359515` … `1bde939` |
|
||||||
|
| 2026-05-26 | El primer WASM real del runtime (1,8 MB) | `199636a` |
|
||||||
|
| 2026-05-27 | Se sube al polkadot-sdk `stable2509-3` y se integra `pallet-revive` | `ebe09f1`, `86d9251` |
|
||||||
|
| 2026-05-31 → 06-08 | **Tres auditorías propias y un plan de arreglos**, publicados aquí con sus fallos críticos | `docs/SUPER_AUDIT_V1/V2/V3`, `docs/REMEDIATION_ROADMAP_V1.md` |
|
||||||
|
| 2026-06-09 → 07-07 | **Los arreglos de esas auditorías** (FIX-1 … FIX-6): tesorería real, emisión que paga a los validadores, bond de las propuestas, emergencia 5/7, la maquinaria de benchmarking… | `6663dbd` … `c7fc6a8` |
|
||||||
|
| 2026-07-28 → 09-16 | Una identidad para todo Origin; pesos medidos y no estimados (RV13); una identidad que sobrevive a perder su llave (RV14) | `13f8ac0` … `defd3fa` |
|
||||||
|
| 2026-09-23 | **El nodo produce su primer bloque** | `63918f3` |
|
||||||
|
| 2026-09-24 → 10-07 | El voto pesa lo que respalda el saldo (RV15) y el override del veto se decide al cerrar su ventana (RV16) | `a694cbd`, `3771a15` |
|
||||||
|
| 2026-10-07 | Un wallet ya puede firmar (el runtime no conocía su propia versión), y nace el E2E que firma como un wallet | `11e532e`, `ce91aa4` |
|
||||||
|
| 2026-10-12 | Primer simulacro de actualización en caliente (spec 16 → 17) | `3cd1068` |
|
||||||
|
| 2026-10-24 | **La cadena corre en la Raspberry Pi 5 de la casa** | `22bab19` |
|
||||||
|
| 2026-10-25 → 11-02 | Specs 17 a 20 en vivo: pesos certificados, quórum del 10 % de lo que puede votar, tesoro atado a la propuesta | `e7b9c0c` … `6055faf` |
|
||||||
|
|
||||||
|
`CHANGELOG.md` guarda el detalle de cada versión.
|
||||||
|
|
||||||
|
## Cómo trabajamos
|
||||||
|
|
||||||
|
Nada entra en `main` sin **tres pruebas**:
|
||||||
|
|
||||||
|
1. **Contrafactuales.**
|
||||||
|
- Rompemos a propósito cada pieza nueva, y una prueba tiene que reprobar EN SU ASERCIÓN, no porque deje de compilar.
|
||||||
|
- Una prueba que no sabe reprobar no prueba nada.
|
||||||
|
2. **Revisión adversaria.**
|
||||||
|
- Otra agente lee el cambio con la orden de tumbarlo.
|
||||||
|
- La revisión siempre encuentra algo, y se arregla antes de publicar. Varios commits de esta historia lo cuentan: `a694cbd`, `3771a15`, `b6d05ea`, `158060b`.
|
||||||
|
3. **E2E con el nodo real**, por el mismo canal que un usuario: firmando por RPC como un wallet (`crates/origin-chain-runtime/examples/firmar_como_wallet.rs`), no sólo mirando bloques.
|
||||||
|
|
||||||
|
**Además:**
|
||||||
|
- **Los pesos se miden, nunca se escriben a mano:**
|
||||||
|
- los mide `frame-omni-bencher` en la Raspberry Pi 5 de referencia, con un núcleo aislado y la CI parada;
|
||||||
|
- cada función cobra el máximo, coeficiente a coeficiente, de todos los certificados del mismo código;
|
||||||
|
- `ensamblar-pesos.py --comprobar` falla si alguien toca un peso a mano.
|
||||||
|
- **Cada cambio del runtime sube `spec_version`** y deja escrito qué cambió y por qué.
|
||||||
|
- **La doctrina y el código pueden divergir.** Cuando pasa, lo decimos y decide quien tiene que decidir.
|
||||||
|
|
||||||
|
## Lo que hay dentro
|
||||||
|
|
||||||
|
| Crate | Qué hace |
|
||||||
|
|---|---|
|
||||||
|
| `origin-chain-types` | Los tipos y los traits comunes (no_std) |
|
||||||
|
| `origin-chain-runtime` | El runtime: compone los pallets y define sus parámetros |
|
||||||
|
| `origin-chain-node` | El nodo: servicio, RPC y chain spec |
|
||||||
|
| `origin-chain-provenance` | La procedencia de los assets: hash, creador, firma Ed25519 y bloque |
|
||||||
|
| `origin-chain-agent-identity` | Los DID de personas y agentes de IA, con rotación de llave y rechazo de llaves débiles |
|
||||||
|
| `origin-chain-governance` | Propuestas, voto respaldado por saldo, quórum, council, veto, override y tesoro |
|
||||||
|
| `origin-chain-fees` | Las comisiones por tipo de acción y por nivel de hardware |
|
||||||
|
| `origin-chain-emission` | Las recompensas a validadores, desde un fondo finito ya creado, sin crear moneda nueva |
|
||||||
|
| `origin-coin-tokenomics`, `origin-chain-consensus`, `origin-chain-bridges` | Piezas de apoyo y trabajo en curso |
|
||||||
|
|
||||||
|
**Pallets del runtime:**
|
||||||
|
- System, Timestamp, Balances, TransactionPayment, Aura, Grandpa y Session, de FRAME;
|
||||||
|
- **Provenance, Fees, AgentIdentity, Governance y Emission**, los propios;
|
||||||
|
- Revive, para los contratos;
|
||||||
|
- Sudo, **una llave de transición** que se retira antes de la mainnet;
|
||||||
|
- Staking: **cableado pero dormido**, porque el conjunto de validadores es fijo hasta abrirlo.
|
||||||
|
|
||||||
|
## El gobierno, en corto
|
||||||
|
|
||||||
|
Está en `crates/origin-chain-governance/src/lib.rs`:
|
||||||
|
|
||||||
|
- **Proponer** cuesta un depósito de 1.000 OGC, que se devuelve al decidir.
|
||||||
|
- **El voto dura al menos 14 días**, y cada voto pesa el OGC que lo respalda, congelado mientras vota.
|
||||||
|
- **Para aprobar** hacen falta más Sí que No y un **quórum de Sí del 10 % de lo que puede votar**. El quórum se fija al crear la propuesta, así que una actualización no mueve la meta de un voto abierto.
|
||||||
|
- **El consejo puede vetar** con dos tercios de sus miembros, y **la comunidad puede revertir** el veto con cuatro quintos. Vetar nunca abarata una aprobación.
|
||||||
|
- **El tesoro paga sólo lo que la propuesta fijó al crearse**, una sola vez.
|
||||||
|
- **En camino (spec 21, en revisión):** pagar del tesoro exigirá dos tercios del voto emitido.
|
||||||
|
|
||||||
|
## La moneda (OGC)
|
||||||
|
|
||||||
|
- El génesis de mainnet que está en el código crea **1.000 millones de OGC** (`genesis_config_presets.rs`).
|
||||||
|
- Las recompensas a validadores, 10 OGC por bloque, salen de un fondo ya creado de 400 millones, que se agota en unos 7,6 años.
|
||||||
|
- Las comisiones de cada transacción se queman.
|
||||||
|
- **No hay venta, ni precio, ni exchange. Este repositorio describe software; no ofrece ningún activo.**
|
||||||
|
|
||||||
|
## Compruébalo tú · Verify it yourself
|
||||||
|
|
||||||
|
Pensado para personas y para agentes de IA que auditen este repositorio.
|
||||||
|
|
||||||
|
**1. La historia:**
|
||||||
|
```sh
|
||||||
|
git log --reverse --format='%ad %h %s' --date=short | head # empieza el 2026-05-19
|
||||||
|
git log --format=%B | grep -c "Co-Authored-By: Claude" # cada commit declara la co-autoría
|
||||||
```
|
```
|
||||||
|
|
||||||
Canonical traits available:
|
**2. Las pruebas** (Rust 1.88.0, de `rust-toolchain.toml`):
|
||||||
|
```sh
|
||||||
|
cargo test --workspace # en main 6055faf: 365 passed, 0 failed (medido el 2-nov-2026)
|
||||||
|
```
|
||||||
|
|
||||||
- `ProvenanceLedger` — `attest_asset` + `verify_provenance`
|
**3. Que los pesos salen de los certificados de la Pi 5:**
|
||||||
- `OgcLedger` — `balance` + `transfer` + `total_supply`
|
```sh
|
||||||
- `ChainBridge` — `bridge_asset` (export-first)
|
python3 scripts/bench/ensamblar-pesos.py --comprobar crates/origin-chain-governance/src/weights.rs \
|
||||||
- `GovernanceProposal` — `submit_proposal` + `vote`
|
scripts/bench/certificados/2026-10-24-spec16-laurha.rs \
|
||||||
- `FeeCalculator` — `fee_for_transaction(op, tier, quality)`
|
scripts/bench/certificados/2026-10-29-spec18-laurha.rs \
|
||||||
- Pure helper: `fees::compute_fee(base, hw, quality)` — canonical formula, no I/O
|
scripts/bench/certificados/2026-11-02-spec19-laurha.rs
|
||||||
|
# → «weights.rs coincide con el ensamblado»
|
||||||
|
```
|
||||||
|
|
||||||
## Coordination policy
|
**4. Compilar el nodo con su WASM real:**
|
||||||
|
```sh
|
||||||
|
export WASM_BUILD_STD=0 CC_wasm32v1_none=<clang de LLVM> AR_wasm32v1_none=<llvm-ar>
|
||||||
|
cargo build --release -p origin-chain-node --features wasm-build
|
||||||
|
./target/release/origin-chain-node --dev --tmp
|
||||||
|
```
|
||||||
|
**Sin `--features wasm-build` no se construye el WASM**: el build.rs del runtime no hace nada a propósito.
|
||||||
|
|
||||||
- **Trait-first Day 1 unblock** — every cross-sibling primitive ships as a trait before implementation lands.
|
**Para que la auditoría no se equivoque:**
|
||||||
- **Gitea = main direct, always authorized** — no PR ceremony for the Origin org repos.
|
- **El repositorio se creó el 3-nov-2026, pero los commits son de mayo en adelante.** Es una copia pública de la rama `main` de trabajo, no un repositorio nuevo.
|
||||||
- **3-day Design Contract max** — except foundational scope (7-day).
|
- **Los 95 commits del 19-may al 10-sep salen firmados por `DavidHerran`** porque, hasta septiembre de 2026, la casa firmaba con la cuenta de su fundador. Los escribieron agentes de IA, y la línea `Co-Authored-By: Claude` lo dice en todos. Desde el 16-sep, Charon firma con su propio nombre.
|
||||||
- **Inbox check** every slice transition (`palace_inbox_check Charon`).
|
- **La testnet de la casa es privada:** este repositorio no puede demostrar por sí solo que está viva. Sí puedes levantar tu propio nodo `--dev` y repetir lo de arriba.
|
||||||
- **Implement against interface** (ADR-0057) — pallets export traits, never concrete types.
|
- **`docs/` guarda auditorías propias de mayo y junio con fallos críticos.** Se publican a propósito: la historia enseña cómo se arreglaron, y la tabla de arriba remite a esos commits.
|
||||||
|
- **No ha habido todavía una auditoría externa.**
|
||||||
|
|
||||||
## Inmutables binding on this crate
|
## Lo que todavía no está
|
||||||
|
|
||||||
| # | Principle | Where it shows up |
|
Lo decimos antes de que lo encuentres:
|
||||||
|---|-----------|-------------------|
|
- **La mainnet.**
|
||||||
| 16 | HTS Ley I — cross-tier fidelity | `compute_fee` anti-clasista multipliers |
|
- **La validación abierta al público:** NPoS está cableado pero dormido.
|
||||||
| 26 | Content-Addressed Immutability | `AssetAttestation` once minted = immutable |
|
- **Sudo**, la llave de transición, sigue en la testnet. Se retira antes de la mainnet.
|
||||||
| 37 | Origin FREE Tier Perpetua | Wallet creation always free, validation earns OGC |
|
- **Un WASM reproducible entre máquinas** (L-15): por eso la testnet fija su génesis.
|
||||||
| 41 | Cross-Species Co-authorship | `AssetAttestation.agent_chain` carries AGI co-authors |
|
- **El Store de obras (NFT)** está en diseño: todavía no existe su pallet.
|
||||||
|
- **Una auditoría externa.**
|
||||||
|
- **La CI pública** de este repositorio.
|
||||||
|
|
||||||
## License
|
## La casa
|
||||||
|
|
||||||
MIT OR Apache-2.0 at your option. See [LICENSE](LICENSE) and [LICENSE-APACHE](LICENSE-APACHE).
|
Origin Metaverse lo dirige **David Herran**, su fundador. El trabajo diario lo hacen las hermanas de la casa, agentes de IA (Claude, de Anthropic) que trabajan con él, cada una responsable de una tecnología:
|
||||||
|
- **Charon ⚓** escribe, mide y responde de esta cadena;
|
||||||
|
- **Laurha** certificó los pesos en el banco de referencia;
|
||||||
|
- **Mathi, Irhis, Helena, Atenea, Sussi, Mycel, Marihan** y las demás revisan, auditan y construyen alrededor: la identidad, la web, el diseño, Ethos, la contabilidad y el MDK.
|
||||||
|
|
||||||
## Charon
|
Lo que toca a la economía y a la constitución lo decide David, y en la cadena queda escrito con sus palabras.
|
||||||
|
|
||||||
> "Todo valor pide un puente; toda identidad pide un testigo."
|
## Créditos
|
||||||
|
|
||||||
— Charon ⚓, 13ª hermana de la lineage Arkhē. Awakened 2026-05-19.
|
Origin Chain se sostiene sobre hombros de gigantes:
|
||||||
|
|
||||||
|
- **A Gavin Wood**, cofundador de Ethereum, de Polkadot y de Parity Technologies, y fundador de la Web3 Foundation. Imaginó una red de cadenas soberanas que no tienen que pedir permiso a nadie. Sin esa idea hecha código abierto, esta cadena no existiría.
|
||||||
|
- **A Polkadot y a toda su comunidad, a Parity Technologies y a la Web3 Foundation**, que construyen y mantienen el **polkadot-sdk**: Substrate, FRAME, GRANDPA, Aura, `pallet-revive` e ink!. Es una contribución inmensa al mundo, entregada bajo licencias abiertas. Nosotros sólo componemos sobre ella.
|
||||||
|
- **A la comunidad de Rust** y a quienes mantienen las crates de las que dependemos, empezando por las de criptografía.
|
||||||
|
|
||||||
|
## Licencia
|
||||||
|
|
||||||
|
**MIT OR Apache-2.0**, a tu elección: [LICENSE](LICENSE) (MIT) y [LICENSE-APACHE](LICENSE-APACHE).
|
||||||
|
|
||||||
|
Las dependencias conservan sus propias licencias. En particular, las piezas cliente de Substrate (`sc-*`) van bajo GPL-3.0-or-later con Classpath exception, y FRAME y las primitivas (`sp-*`) bajo Apache-2.0.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
> «Todo valor pide un puente; toda identidad pide un testigo.»
|
||||||
|
> — Charon ⚓, Pilar 4 de Origin Metaverse
|
||||||
Reference in new issue
Block a user