commit 69fdbb712b9e9b0ea60d179e3359ec42afa75319
parent 6d95ca9ace9019e04d377c38e97723af25e98505
Author: anon <anon@example.com>
Date: Fri, 30 Oct 2026 18:22:19 +0000
Verify connected earned recovery replenishment
Diffstat:
2 files changed, 62 insertions(+), 0 deletions(-)
diff --git a/TODO.md b/TODO.md
@@ -3033,6 +3033,13 @@ with payloads and known client/server provenance.
the original kit-37 post-reload scan omitted its previous top-row cell.
Saved native icon maps and explicit wheel-row screenshots now establish the
focused case; see [merged-kit audit](docs/starter-progression.md#merged-kit-visual-cell-audit).
+- [ ] [P1] Audit inventory layout persistence through city/shop zoning and earned
+ sales. The connected run starts with its saved 516-byte map, then an OPFS
+ inspection after the ten-part sale/laboratory purchase returns no icon files.
+ Reload retains every item but creates a compact 408-byte map for the nine
+ remaining main-inventory entries. Isolate the transition, an inspection race,
+ and any intentional native compaction before changing persistence behavior.
+ Evidence: `local/todo-progression-play/runtime-level20/`.
- [x] Resolve the browser snapshot's incorrect local identity for normally
created characters. The first repeatable starter run reported local ID1
while directory actor2 had seven issued items and exchanged CharacterReady.
@@ -3481,6 +3488,14 @@ and server restarts. Turn every reproduced bug into a focused regression test.
and 104 credits. Funded replenishment, further earned levels and qualified
glove/boot/sleeve wear remain open. See
[connected five-encounter clear](docs/starter-progression.md#same-character-connected-five-encounter-clear).
+ The same fighter now funds a 150-credit, 50-charge laboratory through ten
+ earned part sales worth 60 credits, leaving 14. Both-client page/cold recovery
+ retains all 19 remaining physical instances and unchanged XP/IP. Its next
+ full-health level-3 victory leaves 39 HP; the same bought laboratory restores
+ 39->69 for one charge, then reaches full native/server HP through three uses
+ and regeneration, leaving 47. This closes the connected funded-health-supply
+ slice; earned level 3 and qualified gear wear remain open. See
+ [earned health replenishment](docs/starter-progression.md#same-character-earned-health-replenishment).
A subsequent normal Omni Enforcer run trained Body Development/Stamina,
equipped the issued bat/shirt and used a startup treatment lab. Solo combat
ended in death; a two-player kill generated real loot/cash but its leading
diff --git a/docs/starter-progression.md b/docs/starter-progression.md
@@ -1114,3 +1114,50 @@ current-level XP to reach level 3, earned Agility training to qualify retained
QL3 gloves 63/boots 36/sleeve 72, and ordinarily funded recovery replenishment.
NPC balance, loot selection and conditional mission rewards retain their
existing historical-evidence limits.
+
+## Same-character earned health replenishment
+
+After exhausting its issued laboratory in mission 66, the same fighter walks
+through Entertainment to medical booth 3221423263 in basic shop 1183. The
+150-credit laboratory first refuses the 104-credit wallet with the exact
+46-credit shortfall. Ownership, cash, skills and progression remain unchanged.
+
+The native sale basket offers all eight retained QL1 Monster Parts and both
+new QL3 parts, IDs 19/20/21/23/25/26/27/28/70/71. Each quotes six credits.
+One accepted basket exchanges those ten items and 90 wallet credits for a
+50-charge QL1 Treatment Laboratory, instance 73 in main slot 64:
+
+| Budget | Credits |
+| --- | ---: |
+| Starting wallet | 104 |
+| Ten earned parts | 60 |
+| Laboratory purchase | -150 |
+| Remaining wallet | 14 |
+
+Cash changes directly 104->14; the wallet never separately reaches 164. The
+laboratory and all 19 remaining physical instances survive both-client page
+reload and a cold server load. Worn bat/body/boots, retained upgrades, Nano
+Kit 67x21, stims 2x3, maps, learned nanos, XP 1475 and IP 4693 stay accounted for.
+The observer retains its seven items and unchanged progress. Independent SQL
+item/location rows, integrity and foreign-key checks agree with native and
+server snapshots in the stopped `after-resume23.sqlite` checkpoint.
+
+The cold fighter then returns normally, refreshes Thug's Delight, spends one
+Nano Kit charge and accepts difficulty-11 mission 74 for two earned credits.
+Its first full-health level-3 kill awards 125 XP and leaves 39/111 HP. Using
+the same bought laboratory restores 39->69 and debits 50->49 charges. Three
+accepted uses and quiet regeneration restore full native/server HP, leaving
+47 charges. This verifies ordinary funding, cold retention and use of the same
+purchase; health First Aid stims remain outside the admitted path.
+
+The earlier 516-byte native layout is absent from one pre-reload OPFS inspection;
+reload creates a compact 408-byte map with every remaining item retained.
+Cold loading preserves that exact new map. The zoning/sale transition and
+possible inspection race remain a separate layout-audit TODO.
+
+The purchase fixture passes in 1134.65s; maintained Go/C sources are unchanged.
+`tmp_verify_funded_lab.py` verifies staged/refused ownership, exact sale and
+purchase accounting, all native/SQL item fields, observer isolation, cold map
+bytes and the first accepted restoration. Its report is
+`local/todo-progression-play/funded-laboratory-purchase-verified.json`;
+captures are in `runtime-level20/` and `runtime-level21/` there.