Acme Marketing Architecture

12. Operations console: one read-only cockpit over all adapters, sold with the platform and used by the support service

12. Operations console: one read-only cockpit over all adapters, sold with the platform and used by the support service

Date: 2026-10-26

Status

Proposed


Problem

The adapters and jobs live in several places by design (ADR 8): Fabric pipelines and notebooks, Azure Functions, Service Bus, Table Storage, Key Vault and the vendors' consoles. Operating them means visiting each place, and the operator sees symptoms (a failed run, a Teams alert) before the mechanics (which window, which cursor, which limit, which queue). The brief asks for an architecture that evolves as sources are added; each source added this way adds another place to look. The platform will be operated by the vendor's team under a support subscription, which needs one workbench and evidence for its SLA.


Decision

Concern Choice
What A read-only operations console: one page per adapter, freshness per tier against its objective, queues, reconciliation verdicts, restatements, erasure and publication runs, trends, an incident log with lessons learnt. Every figure deep-links to the place that owns it, states its reason, and answers a question; a wall of numbers is a failure. Design: operations console.
Writes None in the first version. Fabric keeps owning registries, schedules and budgets. Writes with two-person approval and an action log are the second version, behind the same module boundaries.
Ownership Each source carries an owner group in source_registry; a person lands on the sources they own. Ownership never restricts visibility.
Incidents Opened by people and by alerts: Azure Monitor action groups (secure webhook) and Activator (through Power Automate) deliver to an Entra-authenticated ingress on the BFF; one open incident per rule and adapter, further firings counted; the SLA response clock starts at delivery.
Shape Modular monolith with vertical slices: console-api (ASP.NET Core minimal APIs, .NET 10) with modules Access, Estate, Health, Runs, Queues, Reconciliation, Restatements, Privacy, Incidents, Links, Telemetry; console-bff (ASP.NET Core, YARP, OIDC cookie session, alert ingress, serves the SPA); console-web (Vue 3, TypeScript, Vite, Naive UI). Architecture tests enforce module boundaries.
Data The console holds no copy of platform data. Its own PostgreSQL (flexible server, vector extension enabled, unused until the assistant) stores users, saved views, incidents, alert events, lessons and the access log. Free text carries no identifiers; a validation rule rejects email and phone patterns.
Access to the estate A dedicated service principal with no workspace role, the lakehouses shared Read-only, and SELECT on a dedicated ops view schema in each SQL analytics endpoint; the views expose ids, timestamps, counts, statuses and error classes only. Managed identities with Reader-level roles on Table Storage, Service Bus, Log Analytics and Key Vault metadata. Nothing in the console can read Bronze, Silver, the quarantine payload, error texts, recipients, subject hashes or secret values.
Platform changes it requires Ledger correlation ids and error_class; control.job_run per Silver, Gold, relay and reconciliation run, which the Activator rules also read; a logging convention for adapters; source_registry.owner_group; gold.restatement_log with a defined metrics.restated payload; control.quarantine referencing the landing row instead of carrying the payload. Listed in the design §10.
Hosting Azure Container Apps in Acme's subscription, same region as the capacity; one deployment, one client, no multitenancy. Sold as part of the platform.
Delivery Work package WP9 (added to the roadmap when this record is accepted), staged with the platform: foundation and the ledger pages after WP1, then a stage per work package as its data lands. The Power BI operations dashboard planned in WP0 and WP5 is dropped; the console carries the trend views.
Support service The vendor's team operates the platform through the console under a separate support subscription; guest access in Acme's tenant per person, reviewed quarterly; incidents and lessons stay in Acme's estate; SLA evidence is incident timestamps plus job_run history.
Later Writes with approval; an assistant on Microsoft Agent Framework with a read-only Fabric MCP allow-list and lesson retrieval over pgvector, proposing and never executing; vendor usage APIs on the budget page.

Considered Options

Option Summary Pros Cons
✅ Read-only console with deep links, modular monolith, Vue + BFF, in Acme's subscription, staged with the platform One cockpit, no writes yet One place for mechanics and incidents; no new write path to secure; small cost; grows into a control plane without reshaping A new application to build and maintain; a second UI stack (Vue) in the estate; six platform changes to carry
Power BI operations dashboard plus the portals (the previous plan) Dashboard over the ledger; act in Fabric and Azure No code; already planned Symptoms, not mechanics; no deep links into runs; no incident or lesson model; the operator still visits every portal. Dropped
Grafana (Azure Managed Grafana) over Azure Monitor and the SQL endpoint Dashboards and alerting in one view Strong for telemetry; one alerting place Weak for ledger mechanics and deep links; no incident or lesson model; a Grafana licence per user; still a dashboard
Full control plane in the first version Registries, schedules and budgets edited in the console One place to look and to act Scope and risk; the lakehouse SQL endpoint is read-only, so writes need pipelines or a Warehouse; approval and audit must exist before the first write. Deferred to the second version
Multi-tenant service in the vendor's cloud reading into client estates One console for all clients Vendor economics The platform is sold to Acme and runs in Acme's estate; cross-tenant read identities and residency questions; no multitenancy for now
Power Apps or a Fabric-native app Low code inside the Microsoft stack No separate hosting Licensing per user; weak for deep links, incident model and tests; not the architect's stack

Consequences

Positive:

Negative / Trade-offs:

Risks: | Risk ID | Description | Impact (E/H/M/L) | Mitigation | |---------|-------------|------------------|------------| | R1 | The console's principal is granted more than the ops views and reaches tokenised or quarantined data | H | No workspace role; Read-only item share; SELECT on ops only; views reviewed with the DPO; quarterly access review with the restricted workspace | | R2 | An operator types an identifier or record content into an incident or lesson | M | Validation rejects email and phone patterns; lessons reviewed in the support process; telemetry content-free by test | | R3 | The alert ingress is abused or replayed | M | Entra bearer tokens for a dedicated audience; rule-id allow-list; deduplication on rule and firing time; rate limit at the BFF | | R4 | Thresholds drift between Activator rules and the console | L | Both read control.job_run; the console shows the rule each threshold corresponds to; the second version makes the console configuration the source | | R5 | The console is treated as a dependency of ingestion | L | Ingestion, reconciliation and alerting are tested with the console down | | R6 | Scope creeps into writes before approval and audit exist | M | Writes are a separate ADR with the approval model decided first |