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.
## 3. Language & location
TBD · `src/economy/wallets/`. Needs cryptographic key management (secp256k1 for EVM, ed25519 for
Solana, etc.)
**Tcl 8.6 brake/binding scaffold** · `core/src/economy/wallets.tcl`. V1 contains no key
material or cryptography. A future custody implementation will require ratified storage/rotation
semantics before any secp256k1/ed25519 signer is introduced.
## 4. Does / does-not
- **Does:** generate and store private keys locally (never transmitted); sign transactions on
behalf of the bound trader; enforce per-wallet spending limits (daily, per-transaction);
track wallet balance and transaction history; collect tax on realized income and stage for
transfer to Verschwörern Veregeister wallets; bind 1:1 to a Trader (M5).
- **Does-not:** decide what to trade (Trader decides); route to chain (Marketplace does);
hold keys for the organism's other wallets (Verschwörern Veregeister are separate); delegate
custody to any third party — ever.
- **Does now:** enforce permanent 1:1 Trader↔wallet identity binding; reject cross-Trader wallet
use; enforce per-action and cumulative session exposure limits; record simulated admitted
notional for brake accounting.
- **Does not now:** generate, store, import, derive, rotate, or expose private keys; sign
transactions; query balances; broadcast; maintain chain transaction history; or transfer tax.
- **Target invariant:** if live custody is later implemented, it remains sovereign/local and
cannot delegate custody to a third party.
## 5. Interface contract
- `sign(wallet_id, tx: UnsignedTransaction) -> SignedTransaction` — signs with the wallet's key.
Only the bound trader can request signing.
- `balance(wallet_id) -> { chain, assets: [{ token, amount }] }`.
- `spending_check(wallet_id)`.
- taxes are out of scope
Implemented Tcl surface:
- `bind(wallet_id, trader_id, daily_limit, per_action_limit)`.
- `binding_for(trader_id)` and `binding_matches(trader_id, wallet_id)`.
- `spending_check(wallet_id, action)` — independent exposure brake.
- `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
- M5 Traders — 1:1 binding; *stub:* canned trader ID.