Skip to content

Move the remaining Android remotes to v2 transports (stage 5b) #746

Open
10 of 17 issues completed
Open

Description

@lumenpearson

Programme and approved design

Stage 5b of #273, following the completed 5a cohort on master dab6329. The owner explicitly requested autonomous implementation through independent review, full gates, dev/master delivery and production verification on 13 November 2026. Approved design: docs/specs/2026-10-05-android-transports-design.md (#307). The detailed implementation plan lives at docs/specs/2026-11-13-android-transports-5b-plan.md.

Scope

Move the remaining Android server areas wholesale to transport-neutral, domain-valued MeRemote, DiaryRemote, ManageRemote and DirectoryRemote, with REST v2 and binary Connect/gRPC bindings over the existing shared server client. Preserve separate class and diary credentials and the send-time server snapshot. Implement GetMe/CreateLinkCode/UnlinkMe as one coherent linking flow; migrate diary capabilities, session handover, reads and corrections; migrate class management and school search; replace audit offsets with opaque page tokens and a UI back stack. Read structured RemoteError reasons before status fallbacks; resolve #270 without matching English server messages. Preserve cancellation, IO failures, unknown enums, field-mask clearing and class-zone timestamp semantics.

Acceptance

  • Detailed plan, constraints, review focus and private execution ledger are written before implementation.
  • Each migrated area uses v2 in the real graph; successful calls, requests, authentication, errors and relevant races have meaningful regression coverage.
  • Management uses reason/metadata for link and role loss; no English-detail parsing remains on its live path (The app tells «not linked» from «role required» by matching English error text #270).
  • Audit next/back navigation uses opaque tokens and retains correct visible ranges without inventing an offset.
  • Full unfiltered Android gates, both APK assembles, detekt and completed-report count check pass; full server gates and contract freshness checks run wherever the final diff requires them.
  • One fresh independent whole-branch review is resolved; any deferred Minor finding is explicitly recorded.
  • Source-pinned signed minified APK verification and the new bindings' bounded native acceptance are independently read back, with shared resources acquired and released through the coordinator.
  • Working PR and promotion PR carry milestone 11, HANDOVER is updated within the open batch, exact-head/dev/master CI passes and production is checked on the delivered source.
  • GitHub issue/Project state is freshly read back; unfinished work, worktrees, private evidence and all v1 server compatibility are preserved.

Boundaries

This issue does not authorize 5c streaming/native-gRPC host work or 5d physical-family rollout/v1 retirement. A family-ready candidate is not proof of installation on every phone. Native, CI, production and Project acceptance remain separate evidence gates. No other project source or unfinished work is changed.

Current corrective checkpoint — 14 November 2026

Working PR #757, milestone11, merged into dev at f6865bd86e38568c9d46e76adfaf459fb3cee166 after fresh five-check readback and a merge pinned to corrective head 473e88af87b5a106cee660a2c7fe24b7029fd0f9. Exact-head CI43554034696 completed SUCCESS: Android2202/count/Detekt/both assembles; Server3893PASS17SKIP/3910; both Host jobs6PASS. Contract (Buf) is an actual path-filter skip. Exact dev-push CI43555015999 completed SUCCESS with Android2202/Server3910, both Host6PASS and actual ContractSKIP. Promotion #766, milestone11, merged pinned f6865bd after its own CI43555951043 completed SUCCESS; actual master is 6776e66379c474e945ea05e3587643fc3d30d65c with the same checked tree. Exact master-push CI43556807385 is in progress. Merge tree matches the checked corrective tree. Owned local master was fast-forwarded safely; dev remains protected. Master CI, production, signed-device and Project6 acceptance remain pending. Preview Vercel success is not production acceptance.

ONE independent review and corrective evidence

The ONE fresh whole-branch review of initial A86 is complete. The executor verified and filed #758–#763 before correction, grading #758 (successor-class management write) and #762 (previous-family cache rows) Critical; #759/#760/#761/#763 are Important. One corrective pass added deterministic behavioral witnesses:82 cases with20 AssertionError failures before correction, then the same82 identities passing. There is no re-review or second reviewer.

Minor #764 (same-owner audit reopen pagination) and #765 (concurrent Telegram-link recovery) remain explicitly deferred in milestone13 under #273. Their impact and future tests are recorded. The four declined review boundaries remain separate: signed native/Home-reopen; actual CI/dev/master/production/Project delivery; later5c/5d; and unconsumed diary bindings. None is replaced by local fixture or static evidence.

Completed local gates on corrected source

  • Complete unfiltered Android test/assembleDebug/assembleRelease/detekt passed in325.45s: 2202 unique cases,0failures/errors/skips (app737/data985/model145/design205/widget130).2057 cases freshly executed;145 unchanged model cases reused matching prior-full hashes. App/data Detekt freshly passed; three unchanged reports match clean prior evidence. Both ordinary APKs were produced and release R8 executed.
  • The first corrective full candidate is retained with9 owner-less standalone LogNavigation fixture failures and6 Detekt findings. Explicit fixture owner binding and bounded lint corrections preserved assertions, baseline budgets and suppressions; the next full gate passed.
  • Full local server baseline remains 3893 passed,17 skipped,15 warnings,3910 unique JUnit cases, Ruff pass and mypy242-file pass. All1105 server implementation inputs remain unchanged. The eleven PostgreSQL and six running-host skip identities/reasons match the preserved baseline. This is retained full-run evidence, not another local execution; new-head CI/Host results remain separate.
  • The completed-report writer generated current3910/2202 facts. Both existing Python3.12 validators now pass. Current declarations and architecture/API/build descriptions match the implementation; the detailed plan records review adjudication and HANDOVER was updated last inside this open batch.
  • Final selected documentation guards passed 168 cases in212.08s,0failures/errors/skips, using a separate JUnit. The three-command count/document cohort ended normally in217.51s. The canonical full3910 report and all336 Android report files stayed byte-identical.
  • Independent resource qualification/release preceded each source correction and the final commit. After final gates only measured-result prose changed in plan/HANDOVER; code, tests, declarations and reference targets remain unchanged. Exactly49 owned corrective paths were committed, with staged whitespace checks passing. Original worktrees, untracked files, ignored evidence, failed/successful reports and APKs are preserved.

Local native packaging and signed-device boundary

Corrected-source local nativeCheck packaging passed in163.8s. Both main/test R8 and package tasks executed. One unchanged bounded structural scan passed on its retained pair/mapping:9 callback children (7 SuspendLambda/2 named ContinuationImpl), no unknown family or missing measured reference. The2 actual constructor references to the measured parent families resolve against direct target declarations. This is local dirty-tree packaging/static proof, not a generic ABI or production-signed device claim. Original failed pairs/diagnostics and ordinary R8/trust rules are preserved.

The bounded device scenario remains Petersburg capabilities preflight, unauthenticated students refusal and ONE unissued-code join. The join records one attempt/throttle entry; the other two calls are read-only. It requires empty diary/membership state, bounded budgets, HTTPS/Connect/source guards, URL restoration and a crash check. No account password, sign-in/out or management write is sent. Successful authenticated Me/Manage/Directory/Diary paths remain JVM fixtures.

Remaining acceptance and next actions

Exact master CI, the retained signed APK54 identity/signature checks and bounded source-matched production are now complete; see the current checkpoint below. One source-pinned native startup attempt failed before installation. Preserve that evidence and diagnose the early transport loss before a justified fresh native admission. Home/reopen, TransportReleaseTest/restoration and complete Project6 readback remain unfinished. Keep this issue open until every remaining acceptance checkbox is actually met.

Project6's earlier supported read covered current README/options and #746 only; other fields were unknown. The board has no Verification option. Read all23 targets including promotion766 and configuration769 under a new frozen metadata packet, follow its current status/priority/estimate/size/date rules, and read back mutations. No Project field has been changed by this batch. Source/API updates and shared UI/heavy/native admission remain distinct.

The initial A86 local2166-case and CI43542319543 receipts remain preserved and revision-bound. Earlier private pre-admission corrections and both failed corrective cohorts were retained; no test ran under a withdrawn request. No closeout-only source PR or cleanup of unfinished work is planned.

Current acceptance checkpoint — 26 November 2026

The implementation is delivered through merged working PR #757 and promotion PR #766. Master is 6776e66379c474e945ea05e3587643fc3d30d65c, dev is f6865bd86e38568c9d46e76adfaf459fb3cee166, and the reviewed tree is 77d2561d4cb2345708e19ea74bc0a96c31f59c1c. All 163 raw source pins still match; source/index, nine worktrees and the original 204 untracked files remain preserved.

Exact-master renewed CI 45826193767 completed SUCCESS. Server actually executed 3893 passed/17 skipped/15 warnings, with 3910 counted cases, Ruff clean and mypy242. Android test, Detekt and ordinary release R8 tasks used matching FROM-CACHE outputs; the count validator accepted2202 reports. This is not fresh Android JVM execution. Both Host jobs actually passed6 cases each. Contract (Buf) actually passed lint, generation and freshness; breaking=false for this manual event. The original exact master-push CI43556807385 had also succeeded; its historical raw logs are retained, while that expired run now returns404.

Production is READY at the exact delivered source. #769 records one admitted existing-owned legacy alias correction with immediate old-mapping check and actual readback. All four aliases are project-owned/current-source/no-redirect. Their eight health/warmup GETs returned200/statusok/api1/schema0019/v2true. Two runtime queries only over2026-11-26T14:37:17.0127018Z–14:43:00.350Z returned zero current-deployment error/fatal path groups and zero project error clusters. The old legacy target's source remains unknown; the assignment API offers no atomic CAS. Minimal receipts and all source pins were independently qualified, and the coordinator actually released the production slot. This is bounded production acceptance, not global error absence.

Signed APK workflow45827394151 produced retained main/test APK54 for this exact source. Official SDK verification confirmed both production signatures, unchanged certificate, nondebuggable main package, exact test runner/target package and receipt hashes. That verification was independently qualified and released. APK54 has not been installed or natively accepted.

The one subsequent Studio Emulator startup attempt stopped at its180s deadline before installation. Supported Windows controller inventory was available; the retained C731 fixture was preserved. The saved82 serial SDK clients comprise72 device lists,5 AVD-name reads and5 sys.boot_completed reads; the device appeared transiently but boot readiness never completed. All82 clients ended normally; no app input, installation or instrumentation was performed. Fresh identity/port readback found neither of the two captured launcher/QEMU births nor listeners on5560/5561. No kill, cleanup, reset, uninstall or retry occurred. Final VM exit code and termination cause remain unknown; normal AltF4 shutdown is not claimed. The coordinator independently qualified the failed cohort and actually released its resource. Native/Home-reopen remains a separate unfinished gate; increasing the timeout or changing product code is not justified by this evidence.

Overall #746 remains OPEN. Project6 requires a fresh complete read/update/readback for23 targets (the original21 batch targets, promotion766 and configuration issue769); no Project fields have been changed by this batch. Deferred Minor #764/#765 remain open in milestone13; programme #273 stays open for5c/5d. Source/CI/fixture/static/signature proof does not substitute for signed-device or Project acceptance.

Sub-issues

Sub-issues

10 of 17 Issues completed
Loading 17 sub-issues

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Now

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions