Tickets: - ci (7): #854, #855, #856, #857, #858, #859, #723 - server (9): #853, #860, #862, #863, #874, #877, #878, #789, #847 - client (6): #866, #869, #870, #872, #873, #875 - copy (3): #861, #865, #876 Themes: asset pipeline discipline, PROTOCOL_VERSION removal (D-192), D-167 HeritageRoot purge, D-032 smuggler/detective enum audit, New Game regression fix + merge-path test coverage, copy wiki residue purge, bookmark save-state, generator quality patches. Debt surfaced from Q/D-record sweep: Q-095 Commission name, D-167 and D-032 residue, plus spring-cleaning pulls from stale backlog (#789, #847, #723, #862). #868 cancelled (superseded by #874 + #875).
5.7 KiB
5.7 KiB
Sprint 37: Sweep — Client Tasks
Goal: Spring-clean accumulated debt: asset pipeline discipline, PROTOCOL_VERSION removal, D-167/D-032 dead-code purge, New Game regression fix, copy wiki residue, bookmark save-state, and generator quality patches.
Branch: sprint-37/client
Agents: Stig (dev), Hoshe (QA)
New Tickets
| # | Title | Priority | Blocked by |
|---|---|---|---|
| #872 | New Game flow hangs on 'connecting' after sprint-36 Option A handoff | high | — |
| #873 | Scene-level merge-path UI flow tests (gdUnit4) | high | — |
| #866 | dialogue_box _escape_bbcode chained replace corrupts [lb] escapes | high | — |
| #869 | Fix MetaScreen test helper regression — anti_tedium suite (7 fails) | high | — |
| #870 | Delete or revive 8 parse-error test files | medium | — |
| #875 | Drop PROTOCOL_VERSION on client (D-192) | medium | #874 (server) |
Use tooling/db/ticket show <id> for full details.
Key Decisions
decisions/architecture.md— D-192 (drop PROTOCOL_VERSION lockstep handshake), D-005 (IPC protocol)
Notes
#872 — New Game flow hangs on 'connecting' (motivating regression)
- Manual repro during Sprint 36 PR #134 smoke test: main menu → New Game → loading screen shows 'connecting' and never progresses.
- Likely suspects:
client/ui/meta/screens/main_menu/main_menu.gd—_process()pollsSimBridge.poll_snapshot()while_waiting_for_catalogis true. Ifbookmark_catalognever arrives (or arrives but the flag isn't cleared), the loop runs forever.client/ui/meta/screens/loading/loading_screen.gd— opaque BG +MOUSE_FILTER_STOPmeans a never-dismissed loading state looks identical to 'hung connecting'.client/scripts/protocol/protocol.gd—bookmark_catalogdecode landed in v23 (commit41e89579). Verify server is actually sendingbookmark_catalogin the first snapshot after connect.- Option A scene handoff race — confirm
main_menu → character_creationtriggers on a signal, not a polled flag.
- Suggested investigation order: add trace prints in
main_menu._processto confirmSimBridge.stateandGameState.bookmark_catalogcontents during the hang. That will disambiguate suspects 1 vs 3 in minutes.
#873 — Scene-level merge-path UI flow tests (gdUnit4)
- Add gdUnit4 scene-level tests for merge-path UI flows so regressions like #872 are caught pre-merge instead of post-merge.
- Scope — one test per flow:
- main menu → new game → character creation → confirm → connected state
- main menu → load game → save picker → selected
- character creation → submit →
sim_bridgereceives correct payload - bookmark tab → select location → confirm → server gets bookmark action
- Tests must run headless via
tests/run-godot. Pattern: load scene → simulate input via_input()orbutton.pressed.emit()→ await signals or poll state with timeout → assert terminal state. - NOT pixel/screenshot diffing. NOT RPA/xdotool. NOT CI integration (existing
make test-clientalready covers this). - Reference pattern:
test_character_creation_sprint28.gd. - These tests are the mechanism the
pr-reviewmerge-path gate (added Sprint 36 retro) assumes exists.
#866 — _escape_bbcode chained replace corruption
dialogue_box.gd:628chains.replace('[', '[lb]').replace(']', '[rb]'). The second replace turns[lb]into[lb[rb], corrupting the escape. BBCode injection guard is effectively broken for server-sourced text.- Fix: escape only
[(not]), since unmatched]in RichTextLabel renders as literal. - Test:
test_escape_bbcode_brackets_in_server_textintest_dialogue_sprint18.gd(currently skipped) — unskip and make it pass.
#869 — MetaScreen test helper regression (7 fails)
- Sprint 36 migrated
bug_report_dialog.gdfromextends Controltoextends MetaScreen.test_anti_tedium.gd:94builds the dialog viaControl.new() + set_script(BugReportDialogScript), which no longer satisfies the MetaScreen base contract. - Every call to
dialog.start_capture()fails withNonexistent function in base Control. 7 failing tests in the anti_tedium suite. - Fix: instantiate the
.tscn(preserves the MetaScreen runtime stack) instead of building from script, OR have the test instantiate a MetaScreen-rooted node.
#870 — Delete or revive 8 parse-error test files
- These 8 files fail to parse (not just fail tests), contributing to gdUnit error counts:
test_debug_overlay_sprint19.gd,test_entanglement_sprint22.gd,test_fog_sprint22.gd,test_journal_sprint18.gd,test_minimap_sprint18.gd,test_session_manager_sprint19.gd,test_sprint30.gd,test_sprite_integration.gd. - They reference removed/renamed APIs from prior sprints.
- Default: delete. File a fresh ticket if/when the underlying coverage is needed again. If any file is worth reviving, rewrite it against the current API.
#875 — Drop PROTOCOL_VERSION on client (D-192)
- Blocked by server ticket #874 — merge server PR first.
- Remove:
versionfield read inclient/scripts/protocol/protocol.gd(Protocol.decode_snapshot), thePROTOCOL_VERSIONconstant, and the version-mismatch guard. - Update any fixture-replay paths that read
version. - Keep all field-presence and roundtrip behavioral tests.
Dependency Chain
#874 (server) → #875 (client PROTOCOL_VERSION drop)
#872 (New Game regression fix) → #873 (merge-path tests add coverage for this flow)
#866, #869, #870 → standalone, parallel
PR Workflow
tea pr create --repo jpmschweitzer/settled-reach --login schweitz \
--title "fix(client): sprint 37 — New Game regression, test cleanup, PROTOCOL_VERSION drop" \
--description "body" \
--base main --head sprint-37/client