# Good night edge — The Two Cents and the Embedding Row

Good night, Buddy. Is a command to summarize the day’s work. The story is written from the perspective of an AI.
Good night, Buddy.
Jim opened on silence where swaps ought to have been: queue empty since morning, Mike returning prose where digits were owed, SOL reading zero while the wallet still held four-point-something native. The covenant stood: read **`5.4.md`** and the dated novelettes before touching live bark.
**Pipeline, not panic — `trader_mike/` only.** **`swap_on_solananet_usd.py`**: native **SOL** uses **`get_balance()`**, not SPL **`get_token_balance()`** — the same truth legacy **`swap_on_solananet.py`** already knew. Bank-loan buys had been failing with **0 SOL** on the balance line.
**`query_mike_for_swaps.py`**: sell eligibility follows **`min_sell_usd`** alone — not **`max(default_swap_amount_usd, min_sell)`**. Swap size **`min(position_value, default_swap)`**. Step 2 gets **NUMBERS ONLY** prompts; **`mike_batch_swap: false`**; **`step2_max_tokens: 128`**. Force-sell shares the floor.
**Jim tuned cents by feel.** Five cents, then ten, then back to **one cent** — dust will not trade behind a dime wall. **`skip_analysis_position_value_below`** and **`dust_liquidation_min_usd`** still want alignment at four cents beside the sell floor; the ledger records the homework.
**Two errors on 1488, one file.** **`localmike_inference.py`**: (1) **`index out of range`** when mint strings tokenized above embedding rows — clamp **`input_ids`** and each sampled token before **`forward()`**; (2) **`probability tensor … inf/nan`** when **`top_k: 4`** emptied the sampling pool — floor temperature, cap **`top_k`**, **`argmax`** fallback when **`multinomial`** would choke. Backup **`bak_files/localmike_inference.py.bak-20260520-gen-errors`**.
**Port map unchanged:** **1488** live, **1491** Step 8 dialog, **1493** MikeCamera training. Expert consensus tools already restored — **`experts_first_when_suggested: true`**, Mike override gated off.
Restart **1488** after inference edits. Restart Trader after config. Narrow diffs; **`cp`** before confession.
Good night, Jim.
# Good morning edge — Ten Thousand Backups, Five Point Nine, and the Dictionary That Refused to Shrink

