uwarp-space 2026-04-03
Four rounds of TWGS Gold parity fixes, parser record-cap, Warp Enhancements gate, provide- rename
259 files · 11,554+ · 8,020-

Code review 44: guard, index, scan, and probe fixes

4 files changed
  • player.py add_to_personal_log guards against player_id <= 0 or out-of-bounds
  • game_state.py reload_data includes owner_id=0 planets in _planets_by_owner; _port_by_sector updated after starport construction
  • scanner.py Density scan: spurious organics detection removed
  • _equipment_probes.py Probe commands extracted; ctx.require() replaces ctx.prompt()
  • Code review 44: guard player_id bounds in personal log, include owner_id=0 planets in reload_data, update _port_by_sector after construction, remove spurious organics from density scan, extract probe commands to _equipment_probes.py with ctx.require(). remediate behavioral
    2 files
    • player.py
    • game_state.py

TWGS Gold parity rounds 2–4: 31 mechanics fixes

4 files changed
  • parity_check.py Round 2: 18 game mechanics and multiplayer fixes — starport requirements, bank deposit interest, corp tax at trade time, transwarp encounters, FedSpace deploy block, PvP alignment calibration, planet conquest notify, holo visited map, corp ceasefire consent
  • banking.py Round 3: corp withdrawal, FedSpace gate, playtime enforcement, daily trade limit
  • combat.py Round 4: ship cost, attack no-target message, scanner check, sector fighter alignment penalty
  • engine.py Round 4: personal log, tournament, jettison keeps 1 unit
  • Four rounds of TWGS Gold parity fixes: round 2 applies 18 mechanics and multiplayer fixes (starport requirements display, bank deposit interest, corp tax at trade time, transwarp triggers encounters, FedSpace deploy block, PvP alignment calibration, planet conquest notify, corp ceasefire consent). Round 3 adds corp withdrawal rules, FedSpace gate, playtime enforcement, daily trade limit. Round 4 fixes ship cost, personal log, tournament mode, jettison keeps 1 unit, attack no-target message, scanner check. remediate behavioral
    2 files
    • parity_check.py
    • combat.py

Gate unverified extensions as opt-in Warp Enhancements

1 file changed
  • config.py Gate extended mechanics as opt-in Warp Enhancements; remove fabricated mechanics that were never in TWGS Gold
  • All unverified gameplay extensions gated behind opt-in Warp Enhancement flags in config. Fabricated mechanics (features that were never in TWGS Gold but were added speculatively) removed entirely. getattr-based enhancement checks replaced with explicit config fields. harden behavioral
    1 file
    • config.py

Parser record-cap from twcfig.dat, export fixes

4 files changed
  • sectors.py parse_sectors reads twcfig.dat to cap at num_sectors
  • ports.py Ports parser reads twcfig.dat to cap record count
  • planets.py Planets parser reads twcfig.dat to cap record count
  • export.py JSON export skips record 0 (off-by-one) and inactive ports (port_class_raw=0)
  • All three binary parsers (sectors, ports, planets) now read twcfig.dat to determine actual record count rather than inferring from file size. Prevents reading garbage data past the valid record range. JSON export skips record 0 (off-by-one fix) and inactive port slots (port_class_raw=0). remediate behavioral
    2 files
    • sectors.py
    • export.py

Rename undef-terminal/undef-telemetry references to provide-*

2 files changed
  • wrangler.toml CF Worker references updated to provide-terminal
  • sync_uwarp.py Worker sync script updated for provide-* package names
  • All references to undef-terminal and undef-telemetry updated to provide-terminal and provide-telemetry across wrangler config, worker scripts, and dependencies. Stale plan files removed (5 design docs totaling ~5900 lines). baseline internal
    2 files
    • wrangler.toml
    • sync_uwarp.py