Repository navigation
Description
Stage 5c of #273, implementing the owner's approved Android transport design and the 26 November instruction to continue independent programme work while 5b device acceptance stays open.
The delivered tree already contains the unary gRPC binding. This batch adds the missing WatchClass streaming beta: a foreground-only collector, an owned device/address snapshot, opaque revision deduplication and the existing timetable refresh path. A stream uses shared OkHttp resources/interceptors with streaming-appropriate deadlines; a local cleartext test host uses H2_PRIOR_KNOWLEDGE without weakening release HTTPS policy.
Acceptance
- A short implementation plan records interfaces, lifecycle ownership and the source/live boundaries before implementation.
- Real gRPC server-stream consumption signs the initiating device, carries client version and propagates cancellation.
- Foreground entry starts the selected owner's stream; background/owner changes cancel it. Equal heartbeat revisions do not refresh; a new revision does. Transient failures back off; clean completion never reconnects automatically, as watch.proto requires.
- FEATURE_UNSUPPORTED, CLIENT_TOO_OLD and invalid-device refusals stop appropriately; no unowned membership/cache deletion is introduced.
- Focused behavior and actual HTTP/2 wire checks cover the new contract, followed by one complete final-candidate gate and one independent review. Existing accepted 5b gates are not rerun for unchanged code.
- Delivery follows working→dev→master with exact-head CI. Signed-source/native and real host verification remain explicit separate gates; an available production TLS gRPC endpoint is not assumed.
- HANDOVER and architecture/API/build descriptions reflect measured results within the open batch.
5b #746 remains open for its signed APK54/Home/Project acceptance. This issue does not remove v1, certify family-phone installation or silently choose/change an operator's host. Stage 5d requires actual family rollout evidence before retirement. All existing worktrees and failed/successful evidence are preserved.
Source checkpoint after independent review
Foreground collection, fixed initiating ownership, shared-resource gRPC binding and class-home STARTED wiring are written. Independent review found #773 (response-channel cancellation), #774 (established-stream IO classification) and #775 (failed refresh acknowledgement); one correction pass and bounded readback address all three on source inspection. Focused coroutine and real HTTP/2 cases are written. Compilation, execution, Detekt, full gates and delivery remain unrun/pending; no observed RED is claimed. Native/live-host/family acceptance remains separate as above. All issue acceptance boxes stay open until actual evidence exists.
29 November 2026: complete local gates
The implementation and focused behavior proofs are complete. The typed gRPC stream carried the selected owner credential and client version over actual HTTP/2 and exercised cancellation and reconnect. The full combined candidate with #777 passed independent source review, Ruff and mypy, 3,898 server tests with 17 skips, 2,227 unique Android test cases, debug and release assemblies, and Detekt. Both completed-report count comparisons passed. The initial Windows Bash-path failure and the successful corrected full report are retained.
The working PR, exact-head CI, delivery through dev and master, production, the signed device and a real TLS streaming host remain pending. The predecessor Console delivery still holds the working branch. The separate #746 device and family rollout gates stay open.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsNow
Activity