Repository navigation
Description
The programme agreed with the owner on 3 October 2026: one proto contract served as REST v2, Connect and gRPC-Web on Vercel, and native gRPC with a streaming beta on a second host; the app choosing its transport at build time; v1 retired once the family's phones carry the new APK; the god files that outlive v1 split on both sides; and a local Textual console for builds, gates, the contract tools, deployment and the emulator.
The design, the decisions and the reasons: docs/specs/2026-10-03-one-contract-design.md. Each sub-project gets its own detailed spec and implementation plan before its code.
Sub-projects, in order
- 0. Spike (throwaway) — done 3 October 2026, answers in the design's «What the spike found»: codegen, mounting
connectrpcbeside FastAPI under HTTP/1.1, readinggoogle.api.httpat runtime, native gRPC under an HTTP/2 ASGI server,connect-kotlinunder AGP 9 and Kotlin 2.4, R8 and APK size, a call from the emulator - 1. Server decomposition — done 4 October 2026, Split the bot's long modules into feature modules inside their layers, with the guards that keep a move honest #296 (merge 92dbd0b) (plan:
docs/specs/2026-10-03-server-decomposition-plan.md, Record the spike's answers and plan the server decomposition, before any of it is built #277): the bot handlers, renderers and keyboards andservices/diary.pysplit into feature sub-packages inside the layers; path-keyed tests made symbol-keyed first - 2. Contract — done 4 October 2026, Write down the v2 contract: proto/lessons/v2, its generated Python, and Buf in CI #297 (merge 45f0680) (design:
docs/specs/2026-10-04-contract-v2-design.md, plan:docs/specs/2026-10-04-contract-v2-plan.md):proto/lessons/v2(20 files, 17 services, 76 methods, the streaming betaWatchClassamong them), Buf in CI (lint, breaking, generated-code freshness), the error model (33 reasons), the resource map, the diary capability model,docs/api.mdfor v2; served by nothing until sub-project 3; held to its documents by Hold the v2 contract to what its documents promise: the JSON, the v1 mirror and the gate #300 (merge ab646ad, 4 October 2026): the JSON and v1-mirror tests,buf breakingrun for the first time, and the two defects it found fixed (The documented way to remove a v2 field cannot pass the breaking-change gate #298, The programme design says buf breaking refuses a change to a method's HTTP binding, and it does not #299) - 3. Server shells and targets — complete through Serve v2 from a host of its own: native gRPC, the WatchClass stream and its CI job — stage 3c #396 (
80d1281, stage 3c), following the deployed 3a/3b cohorts:rpc/, the REST transcoder, both host targets, the streaming beta and provider registry; v2 remains beside v1. The post-merge checks and their bounded live-verification limits are recorded in HANDOVER and docs/history. A physical phone speaking native gRPC, a production TLS host and long-lived streaming remain separate unverified scenarios; completion here does not claim them. Approved design:docs/specs/2026-10-05-server-v2-design.md(Design how v2 is served: one invoke behind both transports, a generic gate, and three stages #301). - 4. Android decomposition — A (Split the phone's preferences store and its GitHub client along their concerns, with nothing a test can see changed #451), B (Split ManagementViewModel and SettingsViewModel into collaborators behind one view model each #625) and C (Complete Android decomposition with onboarding steps and shell toolbar rules #731, promoted by Promote Android decomposition C to production #732) delivered through protected dev/master. Final C head
337467d9passed exact-head CI; dev2503c553and master98139d49passed their exact push CI, and promotion CI passed. Complete local gates: 1826 Android cases; server 3860 passed / 17 skipped, 3877 total. One fresh independent review and its baseline-history exception/deferred Minors are recorded in Complete Android decomposition with onboarding steps and shell toolbar rules #731. Existing toolbar instrumentation passed 3 cases on the separate API37 Studio fixture. The source-pinned signed main 46 updated 45 without uninstall; Welcome / system Home / launcher reopen passed with the same process, exact installed APK hash and empty scoped crash log, followed by normal new-fixture shutdown/data retention. Production READY, source identity, four aliases, warmups and runtime error query passed. Original earlier AVD startup/process qualification remains unresolved; no account/Terms/provider/physical-phone/widget/family rollout is claimed. Actual delivery records: Complete Android decomposition with onboarding steps and shell toolbar rules #731 and Promote Android decomposition C to production #732. Approved design Design how the Android god files split, move by move, for the owner's approval #306. - 5. Android transports: the remotes, three bindings, transport-neutral errors, golden files, the new APK; then v1 deleted — design drafted 5 October 2026 (
docs/specs/2026-10-05-android-transports-design.md, Design how the app moves to v2: six remotes, two bindings, and v1's retirement #307, merged as f7658f1), approved by the owner on 5 October 2026 with every recommended answer; four stages following the server's - 6. Build console:
tools/console/— design drafted 5 October 2026 (docs/specs/2026-10-05-build-console-design.md, Design the build console: one task table held to CI, one lock, and no secret in a log #308, merged as fb96fa3), approved by the owner on 5 October 2026 with every recommended answer - 7. The core in the app — added by Plan six ways to deploy: the core on a VPS, on Vercel or in the app, and the diary through a proxy, the relay or directly #410 to the approved programme: Kotlin class rules over Room, diary reads on the phone and a standalone build for deployment scenarios 5 and 6. Waits for sub-project 6; its detailed spec and implementation plan precede code.
Android transports: stage5a accepted
5a — infrastructure, Schedule and Join — is complete. Delivery went through working/promotion pairs #733/#736, #738/#739, #741/#742 and #744/#745, with the final checked master dab632966012e9f546e8edb47b98ee4578593298. The app selects its v2 binding at build time, with Connect default; Schedule and Join use domain-valued remotes and retain distinct refusal handling. The full relevant gates, exact-head/dev/promotion/master CI and one independent correction review passed; the two deferred non-blocking Minors remain recorded in #744.
The actual source-pinned production-signed APK50 pair passed independent cryptographic/source/hash verification. Its one minified Connect TransportReleaseTest returned public UnknownCode through ErrorInfo, kept zero memberships and restored the original URL. A separately reviewed actual Home/reopen cohort reached the normal Launcher and reopened onboarding with unchanged PID3155, APK hash, first-install time and empty scoped crash logs; normal own-VM cleanup and actual resource release were independently verified. All 64 planned Project6 fields passed fresh README/reload/image/AX checks and independent readbacks. Correction #743 is closed after those criteria passed; APK49 keeps its original failed result, and all worktrees/WIP remain preserved. Production is READY on the exact final master, with healthy warmup, source-matched aliases and an empty bounded runtime-error query.
The overall sub-project5 checkbox above stays unchecked. The later 26 November checkpoint below supersedes the former implementation status; full device/family acceptance and v1 retirement remain separate.
26 November 2026: parallel implementation checkpoints
The owner explicitly prioritized progress across the remaining programme. The owner's one-based part8 is documented sub-project7, the core/standalone work. Console6 remains its delivery dependency; ordinary independent source work in5c/6/7 now proceeds in parallel, preserving all unfinished work and serializing branch integration.
- 5b Move the remaining Android remotes to v2 transports (stage 5b) #746: corrective implementation merged through Move remaining Android features to v2 and preserve account ownership #757/Promote Android feature transports and account ownership to master #766, exact dev/master CI passed, and exact master6776 production acceptance passed under The legacy production alias cannot be verified against the delivered source #769's bounded alias/health/runtime scope. Signed APK54 passed static/package/certificate checks. Its native cohort failed before installation; APK54 was not installed, and native/Home/Project6 acceptance remains open. This does not close5b or authorize v1 removal.
- 5c Add foreground class streaming over the Android gRPC binding (stage 5c) #770: foreground WatchClass source and its detailed plan are written. One independent whole-candidate review found three Important defects (Canceling a class watch can leave the SDK response sender blocked #773–A failed schedule refresh acknowledges an unapplied stream revision #775), corrected in one pass; bounded readback found no remaining correction. Focused HTTP/2/coroutine cases, actual compilation/Detekt/full gates and delivery remain pending. No observed RED or passing Kotlin check is claimed.
- 6 / console: 6a Deliver the first usable local build console (6a) #771 merged through Make local builds and contract checks available in a four-tab console #772/Deliver the local build and contract console to master #780 to master
3ffcc33c7f6cde30f55639a3628b697c719a77e9; exact working/dev/promotion/master CI is green. Its fresh production verification and Project6 fields remain open. 6b Add guarded device tools and production diagnostics to the local console (6b) #776 merged through Add guarded device tools and production diagnostics to the console #781 to dev438ea369c56e3bd0056155e5d19a48da09b84de9; exact working/dev CI is green, with promotion Deliver guarded Device and Deploy console tools to master #783 pending. 6b master/production/Project6 acceptance remains open. 6c Add selected APK builds and an owned local Host to the console (6c) #782 is source-only work. The overall console checkbox stays unchecked. - 7 Sub-project 7: the core in the app, in Kotlin over Room (scenarios 5 and 6) #409 (owner's part8): the detailed design/plan, pure Kotlin resolver and five shared JSON cases are written, including an actual ORM Python consumer. Full server Ruff passed; Kotlin and Python integration execution have not run. Persist authored standalone classes in a revisioned Room store #777 also has separate authored Room-store and year/window-projection source, four Room cases and three pure projection cases. Independent source review and its Standalone substitutions can commit against an empty weekly slot #778/Standalone edits accept notes beyond the server's supported length #779 corrections are complete on inspection. Actual KSP/schema generation, tests/Detekt/full gates and delivery remain pending; no standalone flavor/editor/diary/proxy acceptance is claimed.
Family-phone rollout, v1 retirement, production TLS gRPC/live-stream acceptance and standalone delivery stay unaccepted. Existing 5a acceptance remains valid within its original scope.
Defects found by the survey
#268 — PUT /events duplicates on retry
#269 — GET /cron/tick has side effects
#270 — the app matches English error text
#271 — the callback-prefix check misses two keyboards
#272 — nothing guards aiogram off the API's cold start
#275 — every Vercel cold start imports aiogram (found while planning sub-project 1; fixed in its Task 2)
#276 — a command with a bare «@» does not break out of a form (found while planning; fixed by #305, with #304 — leading whitespace — which its test found)
#298 — the documented way to remove a v2 field could not pass the breaking-change gate (found by #300; fixed there)
#299 — the programme design said buf breaking refuses a change to an HTTP binding, and it does not (found by #300; fixed there)
#302 — a deployment without DIARY_SECRET expired, for good, every diary session it was asked about (found by the review of #301's design; fixed by #303, milestone 10)
#309 — the signing values were named LESSONS_KEYSTORE_*, which matches two of the four variables and none of the secrets (found by the review of #308's design; fixed by #311)
#310 — the gates skill gave python -m pytest as the command CI runs (found by the same review; fixed by #311)
#312 — run from a worktree with another checkout's venv, the server's tests imported that checkout's app (found while checking the console's design against the machine; fixed by #313)
#314–#318 — ten stale facts in the agents' instructions: CI's gate commands, the check for Russian in Kotlin, code described wrongly, counts, and the passwords' file (found by a sweep of .claude/ against the tree; fixed by #319)
#320–#325 — about thirty stale facts in docs/ and README.md: signing on a manual run, an /api/v1/edit family that never existed, the deployment refusal and the heading its message pointed at, the bot's menus, counts (found by a sweep of docs/ against the tree; fixed by #328)
#331 — tonight's documentation fixes stopped short in five documents and introduced four small errors (found by an independent review of the night's merges; fixed by #332)
29 November 2026: programme checkpoint
- Transport 5c (Add foreground class streaming over the Android gRPC binding (stage 5c) #770). The focused Gradle run passed 21 cases: eight collector, four real HTTP/2, four schedule ownership and five shared schedule cases. App debug Kotlin compiled and Detekt passed in data, model and app. The local candidate is based on dev
438ea369; full gates, CI, signed-device acceptance and an eligible deployed gRPC host remain open. - Console 6 (Deliver the first usable local build console (6a) #771, Add guarded device tools and production diagnostics to the local console (6b) #776, Add selected APK builds and an owned local Host to the console (6c) #782). Phase 6a has green master CI and successful production health and warmup probes. Its deployment-scoped runtime verification awaits CLI authentication. Five fresh deployment and alias metadata checks passed. The first CLI log query ended without a complete JSONL result. A separate bounded authentication diagnostic matched the installed CLI's documented logged-out response by exact digest. Phase 6b is in dev and promotion Deliver guarded Device and Deploy console tools to master #783 remains open. Phase 6c passed its local console and Android gates, including 57 console cases, 2202 Android cases and the signing configuration-cache checks. PR Let the console retain transport APKs and own local hosts #786 is ready at
32540955, with all nine CI jobs green. Promotion proceeds in 6a, 6b, 6c order. - Standalone core (Sub-project 7: the core in the app, in Kotlin over Room (scenarios 5 and 6) #409, owner’s part 8). All five shared schedule cases passed in Kotlin and in the checkout-local Python suite. Persist authored standalone classes in a revisioned Room store #777 passed four Room and three projection cases, Detekt and KSP v1 schema export. The verified changes are integrated locally with 5c, using the green Let the console retain transport APKs and own local hosts #786 head as the pending release base. The separate app checkout contains local class creation and settings, a calendar route, background timetable reads and a first weekly-lesson editor. Full combined checks and flavor and device acceptance remain open.
- Remaining 5 work. The diary relay: the phone fetches the diary's answers and hands them to the server (scenarios 3 and 4) #408 has a local draft for the diary relay that makes independently verified pupil ownership a condition for registration. Deployment and phone validation of the relay remain open. Family APK rollout and v1 retirement are still pending.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsIn progress
Activity
Say where the work stands after the one-contract programme was agreed…
76 remaining items
Say why the settings collaborators are built where they are, in words…
Count the tests after the second Android split, and hand over pull re…
Say what the history does about attribution: no trailer since 6 Octob…