docs: make M4 keyless scaffold explicit

This commit is contained in:
2026-10-24 03:26:01 -07:00
parent 91841cd96c
commit db095f0c87
+19 -14
View File
@@ -13,24 +13,29 @@ independent exposure limits for the simulation scaffold. Custody/signing impleme
open. Role C4; scaffold C2. open. Role C4; scaffold C2.
## 3. Language & location ## 3. Language & location
TBD · `src/economy/wallets/`. Needs cryptographic key management (secp256k1 for EVM, ed25519 for **Tcl 8.6 brake/binding scaffold** · `core/src/economy/wallets.tcl`. V1 contains no key
Solana, etc.) material or cryptography. A future custody implementation will require ratified storage/rotation
semantics before any secp256k1/ed25519 signer is introduced.
## 4. Does / does-not ## 4. Does / does-not
- **Does:** generate and store private keys locally (never transmitted); sign transactions on - **Does now:** enforce permanent 1:1 Trader↔wallet identity binding; reject cross-Trader wallet
behalf of the bound trader; enforce per-wallet spending limits (daily, per-transaction); use; enforce per-action and cumulative session exposure limits; record simulated admitted
track wallet balance and transaction history; collect tax on realized income and stage for notional for brake accounting.
transfer to Verschwörern Veregeister wallets; bind 1:1 to a Trader (M5). - **Does not now:** generate, store, import, derive, rotate, or expose private keys; sign
- **Does-not:** decide what to trade (Trader decides); route to chain (Marketplace does); transactions; query balances; broadcast; maintain chain transaction history; or transfer tax.
hold keys for the organism's other wallets (Verschwörern Veregeister are separate); delegate - **Target invariant:** if live custody is later implemented, it remains sovereign/local and
custody to any third party — ever. cannot delegate custody to a third party.
## 5. Interface contract ## 5. Interface contract
- `sign(wallet_id, tx: UnsignedTransaction) -> SignedTransaction` — signs with the wallet's key. Implemented Tcl surface:
Only the bound trader can request signing. - `bind(wallet_id, trader_id, daily_limit, per_action_limit)`.
- `balance(wallet_id) -> { chain, assets: [{ token, amount }] }`. - `binding_for(trader_id)` and `binding_matches(trader_id, wallet_id)`.
- `spending_check(wallet_id)`. - `spending_check(wallet_id, action)` — independent exposure brake.
- taxes are out of scope - `record_spend(wallet_id, notional)` — simulation accounting only.
- `count()`.
Future custody surface such as `sign`, `balance`, key generation/import, and transaction
history is intentionally **not implemented** and must not be inferred from the component name.
## 6. Dependencies & stubs ## 6. Dependencies & stubs
- M5 Traders — 1:1 binding; *stub:* canned trader ID. - M5 Traders — 1:1 binding; *stub:* canned trader ID.