test1a fired with no potion= 0  (expect false -- pct stays 0, roll<=0 is impossible)
test1b fired with 1 potion= 1  (expect true -- pct boosted to 100, roll<=100 is certain)
test1c potion_of_giant_strength after= 0  (expect 0 -- chance_bonus consumes it)
test2a hp after a tick with no ring= 200  (expect 200 -- reset_world's starting_life, no passive without the ring)
test2b hp after 1 tick with the ring= 202  (expect 202)
test2c hp after 2 ticks with the ring= 204  (expect 204 -- ticks every successful action)
test2d ring_of_regeneration after= 1  (expect 1 -- a passive effect never consumes)
test3a good roll fired with no equipment, pct=0= 0  (expect false)
test3b bad(attack) roll fired with no equipment, pct=100= 1  (expect true -- pct=100 always fires)
test3c good roll with all 6 equipped, pct=30+70=100= 1  (expect true -- ADDED for a good roll)
test3d bad(attack) roll with all 6 equipped, pct=70-70=0= 0  (expect false -- SUBTRACTED for a bad roll, max(0,...) floors it)
test3e equipment after 2 chance rolls, sword= 1  ring_of_protection= 1  (expect 1, 1 -- equipment is NEVER consumed)
test4a hp seeded to 5, still alive after a no-op action, game_over?= 0  (expect false)
test4b hp after lethal decrease with no scroll=-15  game_over?= 1  (expect hp<=0, game_over?=true)
test4c hp= 1  scroll_of_rescue= 0  gold= 0  current_room$=stairway_1 game_over?= 0  (expect hp=1, scroll=0, gold=0, stairway_1, game_over?=false -- matches the real manual: teleported to the stairway below the Inn, all gold-value treasure dropped)
test5a the killing action itself, ok?= 1  current_room$=stairway_1 game_over?= 1  (expect true, stairway_1, true -- Go Down's own goto still ran)
test5b a FOLLOWING action after death, ok?= 0  current_room$=stairway_1 (expect false, stairway_1 unchanged -- take_action's own game_over? guard rejects it before anything runs)
test5c game_over? after New Game= 0  (expect false -- reset_world clears it)
test6a random_phrase(combat_win)=A final blow, and the creature crumples to the ground! (expect non-empty)
test6b random_phrase(nonexistent_situation)=[] (expect empty)
test6c size(dialogue) after fire_dialogue(combat_win)= 1  (expect 1)
test6c dialogue situation tag=combat_win text=A final blow, and the creature crumples to the ground! (expect combat_win, non-empty)
test6d size(dialogue) after decrease hp= 1  (expect 1)
test6d dialogue situation tag=combat_hit (expect combat_hit)
test6e size(dialogue) after decrease gold (not hp)= 0  (expect 0 -- the auto-hook is scoped to death_resource$)
test6f size(dialogue) after say combat_strike= 1  (expect 1)
test6f dialogue situation tag=combat_strike (expect combat_strike)
test7a require_item with 0 golden_sword, eligible?= 0  dialogue situation=need_golden_sword (expect false, need_golden_sword)
test7b require_item with 1 golden_sword, eligible?= 1  dialogue rows= 0  (expect true, 0 -- no dialogue fires on a passing gate)
test7c forbid_item before marker set, eligible?= 1  dialogue rows= 0  (expect true, 0)
test7d forbid_item after marker set, eligible?= 0  dialogue situation=already_defeated (expect false, already_defeated)
test8a Fight after slain_demon_pit set, ok?= 0  hp unchanged= 1  (expect false, true -- nothing ran)
test8b dialogue situation=already_defeated (expect already_defeated)
test9a Read Inscriptions with no glasses, ok?= 0  dialogue situation=need_glasses (expect false, need_glasses)
test9b Read Inscriptions with glasses, ok?= 1  glasses after= 1  (expect true, 1 -- not consumed)
test9c dialogue situation=read_inscriptions text=You decipher: 'Slay the beast of the pit, and its key shall be yours. Within this cabinet: a vial of rare elixir.' (expect read_inscriptions, non-empty)
test10a Fight specter_chamber with no golden_sword, ok?= 0  dialogue situation=need_golden_sword (expect false, need_golden_sword)
test10b Fight specter_chamber with golden_sword, ok?= 1  (expect true -- action ran, win/loss is separate RNG)
test10c Open Chest with no tattered_map, ok?= 0  dialogue situation=need_tattered_map (expect false, need_tattered_map)
test10d Open Chest with tattered_map, ok?= 1  crown_jewels= 1  gold gained= 250  (expect true, 1, 250)
test11a validate_fixture on the real fixture, issue_count= 0  (expect 0)
test11b dangling gate (never granted anywhere), issue_count= 1  (expect >= 1)
test11b message mentions nonexistent_item_xyz/never granted:  1  (expect true)
test11c gate whose only grant sits at a transit room (elevator_room), issue_count= 2  (expect >= 2 -- both BROKEN CHAIN and UNREACHABLE CONTENT)
test11c found BROKEN CHAIN= 1  found UNREACHABLE CONTENT= 1  (expect true, true)
test11d fixture restored, issue_count= 0  (expect 0)
test12a Examine Room at gnoll_den (1 item), text=[In the Gnoll Den you can see a chewed bone charm.] (expect: In the Gnoll Den you can see a chewed bone charm.)
test12b Examine Room at wraith_hollow (2 items), text=[In the Wraith Hollow you can see an ectoplasm wisp and a spirit essence.] (expect: In the Wraith Hollow you can see an ectoplasm wisp and a spirit essence.)
PASS: dungeon engine item/combat mechanics verified against the full fixture
