Skip to main content

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:

AudienceWhoScope in the design
crownCrown Solar staff (platform operator)All plants and modules; the only role that can delete plants/devices, approve firmware, see protocol maps
installerPartner businesses (installer / dealer / distributor / O&M) and their staffPlants shared with the business; no firmware approval
ownerPlant owner / customerTheir 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)​

IDQuestionDecisionADR
DEC-1Which clients does this API serve?Both Flutter mobile and the web console, one /v1 API; mobile routes stay backward compatible0009
DEC-2Where 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 queue0005
DEC-3Who owns alert workflow (ack/assign/resolve/SLA)?TCP (detection, instances and human workflow in one store). HTTP owns work orders, notification rules and technician identities0007
DEC-4Device registry source of truth?HTTP. TCP owns connection identity and live status and learns bindings from HTTP; TCP's WS register is to be deprecated0006
DEC-5Analytics, 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 job0008
DEC-6Notification delivery?TCP publishes alert events to AWS; an HTTP Lambda evaluates rules and delivers push/email0007
DEC-7First wave after the platform foundationAll four: orgs/roles/access · plants & customers · device registry · service & commands—
DEC-8StorageDynamoDB only — no relational store, no OpenSearch. The UI must accept the limits in Data model → FE contract0010

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.

SpecFeatureWaveHTTP scope (endpoint ids, see API conventions)Depends on TCPStatus
002Platform foundation — error envelope, idempotency, concurrency, cursor rules, search/counters, GSI2/GSI3, integration bus, web-console client, CloudFront/WAF/CORS, KI fixes, global search0A02, A12–A14TCP subscribes to the busPlanned
003Organisations, roles, scopes, shares, invitations, access requests, access log; realtime tickets1A01, A03, A10, A11, B01–B15TCP-REQ-01/02/03/14Planned
004Plants (web list, create v2, drafts, workspace, settings, archive/delete, tags, share links), customers, partners, saved views, fleet dashboard, work queue1A08, C01–C22TCP-REQ-04/07/08/10/12Planned (mobile routes exist)
005Device registry — inventory, registration, binding, topology, transfers, batch import, model catalog, manufacturing records1D01–D16TCP-REQ-05/12/13Planned (mobile claim exists, buggy — KI-8, KI-9)
006Service / O&M — work orders, maintenance plans, history, technicians, attachments1E01–E13workorder.* consumed by TCP (TCP-REQ-09)Planned
007Device operations / engineering — command catalog, requests, approvals, bulk tasks, firmware, operation log, device files1F01–F10TCP-REQ-06/13Planned
008Notification rules, channels, noise control, delivery, push tokens (alert state itself is TCP)2A09, C08, G01–G05TCP-REQ-09 (alert.changed)Planned
009Reports — library, templates, schedules, generate (analytics itself is TCP)2H01–H06TCP-REQ-08/11/15Planned
010Personal settings, preferences, sessions, profile edit2A04–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​

IDBlockerBlocksOwner
B-01Closed 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-02SES sandbox + DKIMEmail notifications, scheduled reports, password-reset emailHuman
B-03cse_tcp_be agreement on ADRs 0003/0005–0008 and TCP-REQ-01…16Realtime, commands, registry binding, alerts, analytics, reportsProduct + TCP team
B-04Push platform credentials (FCM/APNs) stored in Secrets ManagerPush notificationsHuman
B-05TCP gateway on wss:// (TLS + DNS) — TCP-REQ-14Every realtime feature on the web consoleTCP team
B-06Constitution amendment for ADR 0005 (Principle I wording: bus exchange allowed)Feature 002's planHuman (/speckit-constitution)
B-07Manufacturing-record data sourceSerial 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_be team.
  • Open questions — OQ-01…25 and the readiness checklist.