5.1 KiB
Code review — NEO-153 client contract issue + progress HUD
Date: 2026-06-28
Scope: Branch NEO-153-e7m4-10-client-contract-issue-progress-hud-godot — commits 9d756c2..365e577 (6 commits)
Base: main
Issue: NEO-153 — E7M4-10 client contract issue + progress HUD (Godot)
Follow-up: Review findings addressed in follow-up commits (issue-patch merge fix, docs, faction-standing re-paint, regression test).
Verdict
Request changes Addressed — blocking patch bug fixed; decomposition docs updated; follow-up tests green.
Summary
This branch delivers the E7M4-10 Godot client slice: contract_client.gd (GET list + POST issue with separate sync/issue busy guards), contract_hud_controller.gd (Shift+C prototype issue, active/completed label, deny copy, in-session reward transition), thin main.gd wiring, scene labels, GdUnit coverage (12 cases), client/README.md, and manual QA. The implementation closely follows NEO-122/NEO-131 quest HUD patterns and pairs NEO-151 server HTTP correctly.
Overall risk is moderate: client-only, but _reapply_issue_contract_patch_if_needed always merges a stale issue patch over authoritative GET snapshots, which can regress ContractActiveLabel to active after the server reports completed — a primary acceptance-criteria failure. Docs tracking (E7M4 backlog AC, E7.M4 module page, alignment register) is not updated for the landed client slice. GdUnit contract tests pass locally.
Documentation checked
| Document | Result |
|---|---|
docs/plans/NEO-153-implementation-plan.md |
Matches — shipped reconciliation aligns with code; AC checklist marked complete; kickoff decisions (separate controller, fixed dev seed, encounter-complete refresh) reflected |
docs/plans/E7M4-pre-production-backlog.md |
|
docs/decomposition/modules/E7_M4_ContractMissionGenerator.md |
|
docs/decomposition/modules/documentation_and_implementation_alignment.md |
|
docs/decomposition/modules/contracts.md |
N/A — policy doc; no client HUD surface |
docs/decomposition/modules/client_server_authority.md |
Matches — client displays server snapshots; no client-side issue authority |
docs/manual-qa/NEO-153.md |
Matches — Godot-only checklist; edge cases documented |
client/README.md |
Matches — contract HUD subsection with keys, refresh triggers, server deps |
Register/tracking table and E7.M4 module page should be updated after merge (same pattern as NEO-152 follow-up).
Blocking issues
Stale— Done._issue_contract_patchoverwrites completed contract row_reapply_issue_contract_patch_if_needednow merges only when the instance id is missing from the GET snapshot; otherwise clears_issue_contract_patch(NEO-122 accept-patch precedent). Regression testtest_completed_get_clears_stale_issue_patch_on_active_labelincontract_hud_controller_test.gd.
Suggestions
-
Update decomposition docs for landed client slice— Done.E7_M4_ContractMissionGenerator.md,documentation_and_implementation_alignment.md,E7M4-pre-production-backlog.mdupdated. -
Faction-standing reward re-paint (plan § Open questions)— Done.contract_hud_controller.gdconnectsfaction_standing_receivedto re-render reward label when a cached summary exists. -
Split or label the
chore:commit —fea9928(warnings-as-errors, dotnet format CI/hooks) is unrelated to NEO-153. Harmless on branch, but consider a separate PR or explicit note in merge description so reviewers do not conflate infra with HUD work. (Deferred — merge-description note only.)
Nits
Nit:— Done. wired for reward label re-paint._faction_standing_clientfield is assigned insetup()but unused- Nit: Branch includes a one-line server
CompareOrdinalsort tie-break inInMemoryContractInstanceStore.cs— fine as hygiene; no NEO-153 client impact. Nit:— Done.test_reward_label_populates_on_active_to_completed_transitionbypasses the issue-patch path; extend after blocking fix so regression is covered.test_completed_get_clears_stale_issue_patch_on_active_labeladded.
Verification
# GdUnit (NEO-153 suites)
cd client && godot --headless --path . -s res://addons/gdUnit4/bin/GdUnitCmdTool.gd --ignoreHeadlessMode -a res://test/contract_client_test.gd -a res://test/contract_hud_controller_test.gd
# Full client suite (CI parity)
cd client && godot --headless --path . -s res://addons/gdUnit4/bin/GdUnitCmdTool.gd --ignoreHeadlessMode -a res://test
# Server (unchanged behavior; optional)
dotnet test NeonSprawl.sln
Manual (required before merge): docs/manual-qa/NEO-153.md steps 1–5 — confirm ContractActiveLabel shows completed (not active) after pocket clear and reward line appears.