Roadmap — web admin console + mobile on one API
:::caution Planned — not implemented
Everything in this Roadmap section describes proposed work from the
cse-http-be backend blueprint (docs/blueprint/, dated 2026-09-28, status
"Proposed, awaiting approval") and ADRs 0003–0010. None of it is
implemented or deployed. No route, entity, queue or error code on these
pages exists in the dev stack today — for what exists now, see the
API reference, Types & schemas
and Known issues. Any JSON on these pages is an
illustrative example derived from the blueprint, never a captured
execution.
:::
What is planned and why
The Claude Design "Crown Solar Admin Dashboard" wireframes (17 pages) are not the Flutter mobile app this API was built for. They describe a desktop web admin console for three audiences:
| Audience | Who | Scope in the design |
|---|---|---|
crown | Crown Solar staff (platform operator) | All plants and modules; the only role that can delete plants/devices, approve firmware, see protocol maps |
installer | Partner businesses (installer / dealer / distributor / O&M) and their staff | Plants shared with the business; no firmware approval |
owner | Plant owner / customer | Their own plants, read-only almost everywhere |
The console's modules are: shell (nav, global search, work queue, bell, org switch), login, fleet dashboard, plants (list/cards/map, create flow), plant workspace, live devices + device detail, device inventory, alert center, service / O&M, analytics + compare, reports, engineering (models, firmware, commands, bulk tasks, operation log), team & access, customers & partners, and personal settings.
The plan serves both clients from the same /v1 API (DEC-1). Existing
mobile routes stay backward compatible; web behaviour is opt-in through new
routes or the X-Org-Id header. The hard invariant from
Architecture
still holds: HTTP never connects to the TCP server and never stores
telemetry. ADR 0005 amends it so that the two backends may exchange
messages through AWS-managed SNS/SQS and presigned S3 objects — see
Target architecture.
Decisions taken (product owner, 2026-09-28)
| ID | Question | Decision | ADR |
|---|---|---|---|
| DEC-1 | Which clients does this API serve? | Both Flutter mobile and the web console, one /v1 API; mobile routes stay backward compatible | 0009 |
| DEC-2 | Where is the device-command front door? | HTTP API + SQS. HTTP validates, authorizes, approves and records; TCP consumes, executes Modbus and reports results over a results queue | 0005 |
| DEC-3 | Who owns alert workflow (ack/assign/resolve/SLA)? | TCP (detection, instances and human workflow in one store). HTTP owns work orders, notification rules and technician identities | 0007 |
| DEC-4 | Device registry source of truth? | HTTP. TCP owns connection identity and live status and learns bindings from HTTP; TCP's WS register is to be deprecated | 0006 |
| DEC-5 | Analytics, history and reports? | TCP-side analytics query APIs; HTTP publishes plant/org metadata to TCP; HTTP owns report templates, schedules, library and S3 files; rendering is a TCP-side job | 0008 |
| DEC-6 | Notification delivery? | TCP publishes alert events to AWS; an HTTP Lambda evaluates rules and delivers push/email | 0007 |
| DEC-7 | First wave after the platform foundation | All four: orgs/roles/access · plants & customers · device registry · service & commands | — |
| DEC-8 | Storage | DynamoDB only — no relational store, no OpenSearch. The UI must accept the limits in Data model → FE contract | 0010 |
ADRs 0003–0010 are all "Proposed — accepted by the product owner
2026-09-28". ADRs 0003, 0005, 0006, 0007 and 0008 additionally require
cse_tcp_be agreement (blocker B-03).
Feature / spec map
Each feature is planned as a Spec Kit package specs/00N-* in
cse-http-be (all nine packages exist; none is implemented). Cross-feature decisions taken while consolidating them are in docs/blueprint/11-cross-spec-resolutions.md in that repo. "Wave" is build order:
wave 0 is the foundation; wave 1 features can build and test their HTTP
halves in dev in parallel once 002's foundational tasks land; wave 2
follows.
| Spec | Feature | Wave | HTTP scope (endpoint ids, see API conventions) | Depends on TCP | Status |
|---|---|---|---|---|---|
| 002 | Platform foundation — error envelope, idempotency, concurrency, cursor rules, search/counters, GSI2/GSI3, integration bus, web-console client, CloudFront/WAF/CORS, KI fixes, global search | 0 | A02, A12–A14 | TCP subscribes to the bus | Planned |
| 003 | Organisations, roles, scopes, shares, invitations, access requests, access log; realtime tickets | 1 | A01, A03, A10, A11, B01–B15 | TCP-REQ-01/02/03/14 | Planned |
| 004 | Plants (web list, create v2, drafts, workspace, settings, archive/delete, tags, share links), customers, partners, saved views, fleet dashboard, work queue | 1 | A08, C01–C22 | TCP-REQ-04/07/08/10/12 | Planned (mobile routes exist) |
| 005 | Device registry — inventory, registration, binding, topology, transfers, batch import, model catalog, manufacturing records | 1 | D01–D16 | TCP-REQ-05/12/13 | Planned (mobile claim exists, buggy — KI-8, KI-9) |
| 006 | Service / O&M — work orders, maintenance plans, history, technicians, attachments | 1 | E01–E13 | workorder.* consumed by TCP (TCP-REQ-09) | Planned |
| 007 | Device operations / engineering — command catalog, requests, approvals, bulk tasks, firmware, operation log, device files | 1 | F01–F10 | TCP-REQ-06/13 | Planned |
| 008 | Notification rules, channels, noise control, delivery, push tokens (alert state itself is TCP) | 2 | A09, C08, G01–G05 | TCP-REQ-09 (alert.changed) | Planned |
| 009 | Reports — library, templates, schedules, generate (analytics itself is TCP) | 2 | H01–H06 | TCP-REQ-08/11/15 | Planned |
| 010 | Personal settings, preferences, sessions, profile edit | 2 | A04–A07 | — | Planned |
Wireframe features that are TCP-owned and get no HTTP routes: live devices and device realtime/history/parameters tabs, the alert center list and workflow, and analytics/compare charts. The web console reads those from the TCP gateway over WebSocket.
Blockers
| ID | Blocker | Blocks | Owner |
|---|---|---|---|
| B-01 | Closed 2026-10-26 — Lambda concurrency quota L-B99A9384 raised from 10 to 1000 (still shared with live TCP ingest) | Load tests remain banned from this account | — |
| B-02 | SES sandbox + DKIM | Email notifications, scheduled reports, password-reset email | Human |
| B-03 | cse_tcp_be agreement on ADRs 0003/0005–0008 and TCP-REQ-01…16 | Realtime, commands, registry binding, alerts, analytics, reports | Product + TCP team |
| B-04 | Push platform credentials (FCM/APNs) stored in Secrets Manager | Push notifications | Human |
| B-05 | TCP gateway on wss:// (TLS + DNS) — TCP-REQ-14 | Every realtime feature on the web console | TCP team |
| B-06 | Constitution amendment for ADR 0005 (Principle I wording: bus exchange allowed) | Feature 002's plan | Human (/speckit-constitution) |
| B-07 | Manufacturing-record data source | Serial verification (005) | Crown operations |
Go / no-go per the blueprint: 002 can start once the plan is approved
(prod deploy needs B-01); 003–007 can build and test their HTTP halves in
dev after 002's foundation, but end-to-end verification depends on B-03
and B-05; 008–010 follow.
Roadmap pages
- Target architecture — diagram, HTTP ↔ TCP ↔
client responsibility matrix, integration bus and event catalog, realtime
tickets, the
wss://blocker. - Tenancy & access — organisations, roles × categories, levels, scopes, external shares, effective access, mobile compatibility, revocation.
- Data model — entity inventory, key schema, and the DynamoDB-only FE contract.
- API conventions — consistency rules, planned API inventory, error taxonomy.
- Command lifecycle — states, transitions, validation split, failure handling.
- TCP dependencies — TCP-REQ-01…16, requests to
the
cse_tcp_beteam. - Open questions — OQ-01…25 and the readiness checklist.