Skip to content

Phase A4: cover broadcast serialization + raise coverage floor to 50% - #8

Closed
mandarwagh9 wants to merge 1 commit into
feat/phaseA-3-tracking-robustnessfrom
feat/phaseA-4-coverage-lift
Closed

mandarwagh9 wants to merge 1 commit into
feat/phaseA-3-tracking-robustnessfrom
feat/phaseA-4-coverage-lift

Conversation

@mandarwagh9

Copy link
Copy Markdown
Owner

What & why

Phase A4 of the 10× roadmapcompletes Phase A (the honest, tested base). Targets the biggest untested module: the WebSocket broadcast serialization (was 0% covered) that produces the exact wire format the frontend decodes.

⚠️ Top of the Phase-A stack: #7#6#5#4. Auto-retargets as the chain merges.

Changes

  • test_websocket_serialization.py — msgpack round-trip tests for _serialize_snapshot and every per-entity serializer: snapshot envelope, JPEG frame encoding (asserts the FF D8 SOI marker), detection/track/world-object/prediction shapes, and the empty-snapshot case.
  • CI: install fastapi + msgpack (required to import the ws adapter) and raise the coverage floor 40% → 50%.

Verification

  • ruff clean · mypy clean · 74 tests pass (was 67).
  • Coverage: websocket_adapter 0% → 46%, total 49% → 52% (floor now 50%).

📍 Phase A complete

With this PR, Phase A (honest & solid) is done across #4#8: tooling/CI gate, honest docs, world-model no-op fix, tracking hardening, and coverage lift. Recommend merging the stack from #4 down before Phase B (the actual feature builds) begins.

🤖 Generated with Claude Code

Phase A4 of the 10x roadmap — completes Phase A (the honest & solid base).

- Add msgpack round-trip tests for WebSocketCommunicationRepository._serialize_*
  (snapshot envelope, JPEG frame encoding, detection/track/world-object/prediction
  shapes, empty snapshot). This pins the exact wire format the frontend decodes.
- CI: install fastapi + msgpack (needed to import the ws adapter) and raise the
  coverage floor 40% -> 50%.

websocket_adapter 0%->46%, total 49%->52%. ruff/mypy clean, 74 tests pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mandarwagh9

Copy link
Copy Markdown
Owner Author

Superseded — all commits from this phase landed on main via the merge of #13 (the top of the stack, which contains every phase commit). Closing to tidy up; the work is fully merged.

@mandarwagh9
mandarwagh9 deleted the feat/phaseA-4-coverage-lift branch June 19, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant