The initial M-series specs were wrong (text digestion pipeline). Replaced
with the actual economy organ architecture:
M0 hub (independent system, scoped autonomy, multi-layered braking)
M1 Marketplace (multi-trader harness, deterministic law script, veto)
M2 Data Feeds (RSS + live market, bridges Marketplace ↔ Sims)
M3 Sims hub + 7 sub-specs (always-running, bounded predictions):
M3a statistical, M3b sociological, M3c AMM/liquidity,
M3d MEV/adversarial, M3e tokenomics/macro, M3f consensus/staking,
M3g market microstructure
M4 Wallets (sovereign custody, our keys only, 1:1 trader binding)
M5 Traders (AI actors, wallet-bound, all tool calls monitored)
M6 Conductor (supervisory AI, veto, pause/investigate, SAE intake)
M7 SAE monitor (trader surveillance, Brain-compatible message format)
Grounded in AMM invariant mechanics, MEV game theory, SDE tokenomics,
and evolutionary consensus games. Tax stub for Verschwörern Veregeister.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4.2 KiB
M0 — Economy organ hub (the stomach)
1. Component
The economy organ — the organism's stomach. An independent, self-governing system: a multi-agentic market prediction oracle and cryptocurrency trading engine. Houses the Marketplace (M1), Data Feeds (M2), Sims (M3), Wallets (M4), Traders (M5), Conductor (M6), and SAE monitor (M7). Communicates with the rest of the organism via Ichor only — reward signals back to the organism are TBD and out of scope.
"A stomach rarely consults a brain for permission to digest." The economy organ operates with scoped autonomy and multiple layers of failsafe braking — it does not ask the organism's Brain for permission to trade.
2. Status / certainty
DESIGN-FIRST · ABSENT. A Stomach primitive exists in Ichor (src/ichor/envelope.pony:20) with
one smoke-test wire (main.pony:29), but no dedicated organ code. Role C4; implementation C1.
3. Language & location
TBD · new location e.g. src/economy/. The organ is polyglot by nature: trading infrastructure
(APIs, wallets) may differ in language from simulations (numerical computing) and the conductor
(AI supervision). Pony actors provide the Ichor-facing facade.
4. Does / does-not
- Does: host crypto/NFT trading via the Marketplace (M1); run always-on market prediction Sims (M3) fed by live Data Feeds (M2); manage sovereign-custody Wallets (M4); supervise Traders (M5) via a Conductor (M6) and SAE monitor (M7); collect taxes on trader income and stub transfer to Verschwörern Veregeister wallets.
- Does-not: consult the organism's Brain for trade decisions (scoped autonomy); route around Ada for organism-bound messages (S1); store organism memories (E*); act as the organism's conscience (that's Eth-Int / A6).
5. Interface contract
- Ichor interface (outbound):
Envelope(Stomach, AdaBorder, OrganSecretion, payload)— market state summaries, prediction digests, and tax receipts cross Ada to reach the inner brain. - Ichor interface (inbound): organism directives arrive via Ichor (e.g. risk posture changes, budget adjustments from A2 energy).
- Internal wiring: Marketplace (M1) ↔ Data Feeds (M2) ↔ Sims (M3). Wallets (M4) bind to Traders (M5). Conductor (M6) supervises Traders via SAE (M7). All trader actions route through Marketplace.
- Tax stub:
transfer_tax(amount, source_wallet, dest_wallet) -> receipt— automation hook for Verschwörern Veregeister internal wallet-to-wallet transfer. Out of scope — stub only.
6. Dependencies & stubs
- Ichor bus (D2) — existing
Broker+Envelope. - Ada border (D1) — screens outbound organism messages; stub: Ichor
Barrier. - A2 energy — potential consumer of economic signals; stub: no integration initially.
- Verschwörern Veregeister wallets — tax destination; stub: log transfer, no real wallet.
7. Invariants / laws
- L1 (C5): the stomach is an OUTER organ — it rides Ichor, never the inner bus.
- L2 (C5): scoped autonomy — the organ trades without Brain permission, but within deterministic law constraints (M1) and Conductor oversight (M6).
- L3 (C4): all market actions route through the Marketplace (M1) — no trader may execute directly on-chain without the Marketplace harness.
- L4 (C4): sovereign custody only — all wallets are local-hosted, our keys, never delegated to exchanges or third parties (M4).
- L5 (C4): multi-layered braking — deterministic law script (M1), Conductor veto (M6), SAE surveillance (M7), and wallet-level limits (M4) each independently constrain risk.
8. Build steps
- Define the internal wiring topology (how M1–M7 connect).
- Extend the existing
Stomachprimitive in Ichor to carry the hub facade. - Wire sub-components as their specs land.
- Implement the tax stub for Verschwörern Veregeister transfer.
9. Tests
Hub smoke: Marketplace reachable; Sims running and queryable; Wallet bound to Trader; Conductor receives SAE reports; tax stub logs transfer. Ichor: outbound envelope reaches Ada stub.
10. Open items
- Reward signal protocol from economy organ to organism (TBD, out of scope).
- Internal communication bus (reuse Ichor internally? separate actor topology?).
- Language choices per sub-component.