uwarp-space 2026-03-31
Binary format fixes, rank table parser, JWT re-auth, idle recovery improvements
38 files · 559+ · 281-

Binary format fixes: sector count and cargo sync

1 file changed
  • binary_reader.py sector_count excludes sentinel row 0; parse_ship_instances used for cargo sync; uwarp parsers used for all binary .dat reads in explorer
  • Binary sector count corrected to exclude sentinel row 0, which was inflating the count by one. Cargo sync switched to parse_ship_instances for accurate per-ship cargo reading. All binary .dat reads in the explorer now use uwarp parsers rather than inline parsing. remediate behavioral
    1 file
    • binary_reader.py

Rank table parser and TWGS Gold rank names

1 file changed
  • display.py Rank names corrected to match TWGS Gold; rank table parser fixed for Gold format
  • Rank names corrected to exact TWGS Gold strings. Rank table parser fixed to handle the Gold format correctly. Rank count false positives (extra matches) eliminated. remediate behavioral
    1 file
    • display.py

JWT re-authentication on 401 and idle recovery

1 file changed
  • parity_check.py Re-authenticate on 401 to handle JWT token expiry mid-run; TWGS idle recovery with retry loop and screen debug log
  • Parity runner now re-authenticates on HTTP 401 responses to handle JWT token expiry during long test runs. TWGS idle recovery improved with retry loop: sends CR+Space before D to dismiss idle prompts, then calls ensure_prompt after recovery. remediate behavioral
    1 file
    • parity_check.py

Worker PATCH allowlist, cache invalidation, planet sector sync

2 files changed
  • session_runtime.py Missing personal settings and cargo fields added to player PATCH allowlist; propagate sysop PATCH into live session AttrObj; clear _cached_game on reload and planet PATCH
  • api.py POST /api/v1/corps added to CF DO; fix sector path routing; PortClass changed to IntEnum for DO compatibility
  • Worker PATCH allowlist extended with missing personal settings and cargo fields. Sysop player PATCH now propagated into the live session AttrObj immediately. _cached_game cleared on game reload and planet PATCH to prevent stale cache reads. POST /api/v1/corps added to CF DO. PortClass changed to IntEnum for Durable Object serialization compatibility. remediate behavioral
    2 files
    • session_runtime.py
    • api.py

Key remapping: H→hail, M→mine_control for TWGS Gold parity

1 file changed
  • input_adapter.py H remapped to hail, M remapped to mine_control to match TWGS Gold
  • H and M key bindings corrected to match TWGS Gold help screen: H maps to hail (not another action), M maps to mine_control. remediate behavioral
    1 file
    • input_adapter.py