M0: economy organ stores local memory ledger; M6 supervises M5
directly, M7 is independent antivirus/guarddog alerting M6 via
Ichor; Ada dependency reframed to economy scope; build sequence
changed to subcomponent-first with ablative tests.
M1: submit_action returns {succeeded|failed}, diagnostics internal
to Conductor; stubs now print "if finished, would respond with..."
for debugging; law script changes require operator + Homunculus
signatures; law script format added as open item.
M2: removed Python/Rust from language options; confidence scale
changed to [0.0, 10.0] per position.
M3 hub: normalized all time horizons to ~40s wall time windows;
confidence scale 0.00-10.00 with "X.XX/10.00" print format; gain
rates as "low - mid - high / 10.00"; removed Python from language
list across all sub-specs (M3a-M3g).
M3a: Julia/R/Fortran/Octave replaces Python; fBM citation added
(Hosking 1984, Wood & Chan 1994); confidence/correctness/certainty
distinguished as 3 separate metrics; models span multiple horizons.
M3b: models span multiple horizons note added; Mesa/Python removed.
M3c: Solidity for on-chain precision; Julia/Octave for analytics.
M3d-M3g: Python removed; confidence values updated to 10.0 scale.
4.6 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); guard against anomalies via SAE monitor (M7); collect taxes on trader income and stub transfer to Verschwörern Veregeister wallets; maintain a ledger of economy-related memories and patterns (trade history, learned market patterns, calibration state).
- Does-not: consult the organism's Brain for trade decisions (scoped autonomy); route around Ada for organism-bound messages (S1); store organism memories (E*) — economy-specific memories stay local; 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 (M5). SAE (M7) acts as an independent antivirus / guarddog / alarm bell — monitors via Ichor-routed messages and alerts M6. 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) — outbound economy envelopes cross here (S1); 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
- Build sub-components (M1–M7) individually — each with defined success criteria and ablative tests.
- Extend the existing
Stomachprimitive in Ichor to carry the hub facade. - Define internal wiring topology and connect tested sub-components.
- Implement tax stub and Verschwörern Veregeister transfer last.
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.