Operations console (design)
Operations console (design)
Decision: ADR 12. Status: Proposed design, 2026-10-26, from a design conversation with the Lead Architect and one builder review. Mutable document; the builder plans from it. The Lead Architect's decisions are marked as such; everything marked "call" was settled by the architecture assistant and can be overturned.
1. Intent
The platform's adapters and jobs run in more than one place: Fabric pipelines and notebooks, Azure Functions, Service Bus, Table Storage, Key Vault, and the vendors' own consoles. When HubSpot stops landing at 03:00 while Google Ads restates last week's conversions, the person on call must not hop between the Fabric monitoring hub, Application Insights, the Azure portal and the HubSpot settings pages to find out what happened. Dashboards show symptoms; this console shows the mechanics: which windows landed, where each cursor stopped, how much of the API budget is gone, what sits in the dead-letter queue, what reconciliation concluded, which closed dates moved.
The console is part of the platform Acme buys and runs in Acme's Azure subscription. The support service, the vendor's team on call under an SLA, is sold separately; the console is the workbench that service uses.
2. Goals, non-goals, anti-goals
Goals (first version)
- One read-only cockpit for the on-call engineer: every adapter, every tier's freshness against its objective, every queue, the last reconciliation verdicts, the restatements, the erasure and publication runs.
- Every figure carries a deep link to the place that owns it: the Fabric pipeline run, the lakehouse table, the Service Bus dead-letter view, the Key Vault secret, the HubSpot connected-apps page, the Google Ads API Center.
- An incident log with lessons learnt, opened by alerts and by people, so the second occurrence of a problem is faster than the first, and so the support SLA has evidence.
- A landing view per person showing the sources they own (Lead Architect).
- Works unchanged whichever extractor runtime the WP0b PoCs choose (ADR 8): the console reads the ledger and the state stores through the contracts in §5, not the runtimes.
Non-goals (first version)
- No writes to the platform: no pause or resume, no re-run, no reload or replay request, no dead-letter resubmission, no registry editing. These are the second version, behind the same module boundaries, with approval and an action log (§11).
- No multitenancy. One client, one deployment (Lead Architect).
- No assistant yet. The assistant is designed for (§11), not built.
- No business reporting: Power BI serves the business; the console serves operations. The Power BI operations dashboard planned in WP0 and WP5 is dropped; the console is the on-call surface and carries the trend views the dashboard would have had (Lead Architect).
- No alerting engine: Activator and Azure Monitor keep evaluating and raising alerts to Teams; the console receives them (§4, §6) and shows the same signals.
Anti-goals (a failure even if it works)
- Numbers without meaning (Lead Architect). A wall of metrics is a failure. Every figure on a page answers a question the reader has, states the reason behind it and links to the next place to go. The landing page is the health model with its reasons; raw counts sit one click deeper. A page that cannot say why it is red is not finished.
- A record's contents ever appearing in the console, its database or its telemetry. Ids, counts, timestamps, status codes and verdicts only. The platform already never exposes identifiers (ADR 6); the console must not reintroduce them through logs, free-text fields or its read scope (§5).
- Ingestion depending on the console. The platform runs, reconciles and alerts with the console switched off.
- The console becoming a second source of truth for registries, schedules or budgets. Fabric owns them; the console reads them and links to them.
3. Users, ownership and access
| Role | Who | Sees | Entra group |
|---|---|---|---|
| Operator | The vendor's support team, as guests in Acme's Entra tenant under the support contract, and Acme's data engineers | Everything; writes incidents and lessons | console-operator |
| Viewer | Marketing Operations lead, Finance for restatements, the DPO for erasure runs, source owners | Everything except incident editing | console-viewer |
Ownership (Lead Architect: a view per the platforms
a person is responsible for; ownership sets the landing view and never
restricts visibility). Each source carries an owner group in
source_registry.owner_group (platform change, §10), so a
new source brings its owner with it. The landing page lists the sources
whose owner group the user belongs to, then the rest; a saved view can
override. Operators land on the overview of all sources.
Identity: Entra ID through the BFF (authorization
code with PKCE, cookie session HttpOnly,
Secure, SameSite=Strict), tokens never in the
browser; the API validates the bearer token the BFF attaches; a custom
header on state-changing calls (incidents, lessons, saved views) plus
SameSite as anti-forgery. Guest access for the support team
is granted and reviewed under the support contract; no default access to
record contents exists anywhere, so the guest grant exposes none.
Every page view is written to an access log (who, which page, which adapter, when). Nothing else about users is stored.
4. What the console shows
| Page | Question it answers | Reads from | Deep links to |
|---|---|---|---|
| Overview (landing) | Which of my sources need me now, and why? Per tier: freshness now versus the objective; per adapter: health with the reasons (last landed window end, consecutive failures, budget used, errors in the last hour, dead letters); open incidents | ops views (§5), queues, telemetry |
Adapter pages, incident pages |
| Adapter (one per source) | What happened to this source, where did it stop, and where do I fix
it? Runs in the last 7 days; windows with status (landed,
failed, truncated), rows, pages, duration; the
cursor each failed window stopped at; API budget used versus limit with
the source-reported remaining; 429, 401 and 5xx counts per hour;
credential ages; error_class, never the raw error text |
ops.run, ops.window,
ops.budget, ops.cursor, Log Analytics, Key
Vault metadata |
Fabric pipeline run (by platform_run_id), Function
invocation in Application Insights (by operation_id), Key
Vault secret, HubSpot connected apps, Google Ads API Center |
| Queues | Is anything stuck between a webhook and the lake, or between the
lake and a consumer? ingest-nudges: active, scheduled,
dead-lettered counts and oldest message age; data-changed
subscriptions: the same per consumer |
Service Bus management plane | Azure portal queue and subscription views |
| Reconciliation | Does the lake agree with the source, and what is scheduled to fix it? Per object per day: source count, platform count, delta, verdict; open reload requests | ops.reconciliation,
ops.reload_request |
Fabric notebook run, the Silver table |
| Restatements | Which closed dates moved, by how much, and which publications does
that touch? Google Ads closed dates whose metrics moved beyond
tolerance, by account and date, with before and after;
metrics.restated events emitted; affected publications |
ops.restatement (over
gold.restatement_log, §10),
ops.business_event |
The Gold partition, the publication affected |
| Privacy and publications | Did erasure complete and is it evidenced? Which reports are out, signed off, superseded? Erasure runs (request id, started, verified, evidence record reference, never the subject); publications (report, period, version, sign-off state, delivery state) | ops.erasure_run, ops.publication |
Evidence container, approval flow, delivery log |
| Incidents and lessons | What is open, who holds it, what fixed it last time? Incident list and detail: opened by (alert rule or person), severity, adapter, summary, links, occurrences, cause code, fix code, SLA clocks, closed; lessons attached to incidents; search | Console database | Everything above |
| Trends | Is it getting better? Freshness per tier per day, failures per adapter per week, budget use per day, incidents per month: the views the dropped Power BI dashboard would have carried | ops.job_run, ops.run,
ops.budget, console database |
Adapter pages |
| Access log | Who viewed what, when | Console database | — |
| Settings | Where things are: base URLs for deep links, SLO thresholds per tier, alert rule mapping, group-to-role mapping (read from configuration, displayed) | Configuration | The Activator rule and the Azure Monitor alert rule each threshold corresponds to |
Health is a computed model, never a bare colour: red
because "last landed window ended 94 minutes ago against a 30-minute
objective and the last three runs failed with 401", with the link that
proves it.
Freshness per tier (call, answering the builder):
tiers are defined end to end in the business architecture;
the landing ledger alone cannot measure them. Every Silver, Gold and
relay run writes a control.job_run row (§10), and the
console computes each tier's freshness from the last successful run of
the stage that defines the tier: Tier 1 from the relay's
published_at, Tier 2 from the Silver job, Tier 3 from the
Gold star build, Tier 4 from the weekly build. The Activator rules
evaluate the same job_run rows, so the console's colour and
the alert agree by construction.
5. Where the data comes from
| Source | Mechanism | Identity and scope |
|---|---|---|
ops view schema in the SQL analytics endpoint of
lh_restricted (call, answering the builder) |
Read-only T-SQL views over control.*, one per read
model, exposing only columns the console may see: run ids and
timestamps, counts, statuses, error_class, cursors as
opaque strings, budgets. Excluded by construction:
control.quarantine.payload,
control.ingestion_run.error_message,
control.report_definition.recipients,
control.erasure_log.subject_hash, and every
silver.* and bronze.* object |
A dedicated service principal with no workspace
role; the lakehouse is shared to it with Read only and
SELECT is granted on the ops schema alone. A
Viewer workspace role would grant ReadData on every SQL endpoint in the
workspace, so it is not used. Grants owned by data engineering, reviewed
with the DPO at gate G2 |
ops view schema in the SQL endpoint of
lh_gold |
Views over gold.restatement_log,
gold.business_event (ids, types, subject keys, timestamps;
no payload column) and gold.publication_log |
The same principal, the same pattern |
Adapter state (Table Storage, Functions variant) or
control cursors (notebook variant) |
The AdapterState port has two implementations behind
one contract; the WP0b outcome selects one in configuration |
The API's managed identity, Storage Table Data Reader; or the
ops views |
| Fabric job runs | Fabric REST API: job instances per item, by
platform_run_id and item_id from the
ledger |
The same service principal; tenant setting "service principals can use Fabric APIs" required (open question B5) |
| Service Bus counts | Management plane (ARM) runtime properties | Managed identity, Reader on the namespace |
| Function errors, latency, 429, 401 and 5xx counts | Log Analytics query API (KQL) over Application Insights, filtered by the logging dimensions in §10 | Managed identity, Log Analytics Reader on the workspace |
| Credential ages | Key Vault secret metadata (created, updated, expiry), never values | Managed identity, Key Vault Reader |
| Alerts | Inbound: Azure Monitor action group (secure webhook with Entra authentication) and Activator through a Power Automate HTTP action carrying an Entra token for the console's app registration | Bearer authentication on one BFF route group; no cookie, no anonymous path |
| Vendor consoles | None in the first version; links only | — |
Reads are cached for 30 to 60 seconds per read model; the console stores no copy of estate data. The only durable data it holds is its own (§6).
6. The console's own data
PostgreSQL (Azure Database for PostgreSQL flexible server, Burstable
B1ms at launch, 7-day backups) with the vector extension
enabled from day one and unused until the assistant arrives.
| Table | Purpose | Columns (summary) |
|---|---|---|
app_user |
Role cache from Entra, display name, owned sources (resolved from
owner_group membership), last seen |
object_id, display_name,
role, owned_sources[],
last_seen_at |
saved_view |
Per-user filters | user_id, name, page,
filter_json |
incident |
One row per operational incident | id, opened_at, opened_by
(user or alert rule), severity, adapter,
summary, links[], occurrences,
last_fired_at, cause_code,
fix_code, sla_response_at,
sla_fix_at, resolved_at,
closed_at |
alert_event |
Every alert delivery received, for deduplication and evidence | id, received_at, channel
(azure_monitor, activator), rule_id, fired_at,
state (fired, resolved), incident_id,
raw_summary (rule name and dimensions only) |
lesson |
What to look at and what fixed it, in operator words, with structured codes | incident_id, symptom, cause,
fix, links[],
embedding vector(1536) (null until the assistant) |
access_log |
Page views | user_id, page, subject,
at |
action_log |
Second version: actions with approver | reserved |
Alert-opened incidents (Lead Architect: alerts open
incidents in the first version). One open incident per
(rule_id, adapter); a further firing while it is open
increments occurrences and last_fired_at; a
resolved delivery annotates and, if no person has touched
the incident, auto-resolves it after a configurable grace period; the
mapping from rule id to adapter and severity lives in configuration
(Settings page). The SLA response clock starts at
opened_at, which for an alert is the delivery time; the
support contract states this.
Free-text fields (summary, symptom,
cause, fix) must carry no record contents or
identifiers; a validation rule rejects email addresses and phone-number
patterns on save, and the review of lessons is part of the support
process.
7. Application architecture
Three deployables, one codebase, modular monolith with vertical slices:
| Deployable | Technology | Role |
|---|---|---|
console-bff |
ASP.NET Core, YARP, OpenID Connect cookie authentication; a second
route group /ingress/alerts/* with Entra bearer
authentication for the two alert channels |
Login, session, anti-forgery, serves the SPA, proxies
/api to the API with the user's token, forwards
authenticated alert deliveries to the Incidents module |
console-api |
ASP.NET Core minimal APIs, .NET 10 | The modules below; OpenAPI document from which the TypeScript client is generated |
console-web |
Vue 3, TypeScript, Vite, Pinia, Vue Router, Naive UI | The pages in §4; talks only to the BFF |
Modules inside console-api, each owning its slices
(endpoint, handler, validation, read model per use case) and its tables
where it has any:
| Module | Slices (first version) | Owns |
|---|---|---|
| Access | current user, role and ownership resolution, access log write and list | app_user, access_log |
| Estate | one read port per source system in §5 (OpsViews,
FabricJobs, AdapterState with two
implementations, ServiceBusCounts, Telemetry,
KeyVaultMetadata), each with an in-memory fake for tests;
caching |
nothing durable |
| Health | adapter health model with reasons, tier freshness from
job_run, overview ordered by ownership |
nothing durable |
| Runs | runs, windows, cursors, budgets per adapter; trends | nothing durable |
| Queues | queue and subscription counts | nothing durable |
| Reconciliation | verdicts, reload requests | nothing durable |
| Restatements | moved dates, emitted events, affected publications | nothing durable |
| Privacy | erasure runs, publications | nothing durable |
| Incidents | incidents, lessons, search, alert ingestion with deduplication, SLA clocks | incident, alert_event,
lesson |
| Links | deep-link builder: ids plus configured base URLs to Fabric, Azure portal, HubSpot, Google Ads | nothing durable |
| Telemetry | OpenTelemetry through service defaults; content-free by test | nothing durable |
Rules: a module uses another only through its public contract;
architecture tests in CI enforce the boundaries; the Estate ports are
the only code that touches the platform; every page is composed from
read models, so the second version adds write slices and an
action_log without reshaping modules.
8. Technology and hosting
- Azure Container Apps environment (consumption), in Acme's
subscription, same region as the Fabric capacity;
console-bffwith external HTTPS ingress,console-apiwith internal ingress only; one managed identity per app; an app registration for the console (OIDC client, and the audience of the alert ingress tokens). - PostgreSQL flexible server as in §6; connection string in Key Vault; private endpoint as a later hardening step together with the platform's.
- Application Insights and Log Analytics: the platform's existing workspace; the console's own telemetry goes there too.
- Local development and deployment model: .NET Aspire AppHost for local runs, Bicep for the Azure resources alongside the platform's IaC, GitHub Actions for build, tests, architecture tests, bundle budget and deployment. Architect's call, following the reference pattern the architect already operates.
- Cost at list price, West Europe, rough [calculator]: Container Apps consumption for two low-traffic apps about 13 to 26 EUR a month; PostgreSQL B1ms about 13 to 18; total about 26 to 44 EUR a month on top of the platform estimate.
9. Delivery: staged with the platform (Lead Architect)
The console would be work package WP9 in the roadmap once ADR 12 is accepted, started after WP1 and grown as each work package lands its data. Pages before their data exists show "not yet connected", never empty numbers.
| Stage | After | Pages that light up | Platform prerequisites in that WP |
|---|---|---|---|
| 9a | WP0, WP1 | Overview, Salesforce adapter, Trends (freshness), Incidents (alerts and people), Access log, Settings | WP0: app registration, service principal with the ops
grants, console-operator and console-viewer
groups, Container Apps environment, PostgreSQL, alert action group with
the secure webhook. WP1: ops views, ledger correlation
columns, job_run, logging convention (§10) |
| 9b | WP4 | HubSpot adapter, Queues | Table Storage or control cursors per the WP0b outcome;
Service Bus reader role |
| 9c | WP2, WP3 | Google Ads adapter, Restatements | gold.restatement_log written by the star build |
| 9d | WP5 | Reconciliation | reconciliation_result and reload_request
populated |
| 9e | WP6, WP6b | Privacy and publications | erasure_log, publication_log |
Effort: about four to six weeks of one engineer for 9a including the foundation, then one to two weeks per later stage, in parallel with the platform packages.
10. Required platform changes (calls, answering the builder; applied to the platform documents after this design is approved)
| Change | Where | Why |
|---|---|---|
source_registry.owner_group |
control tables, adding a source | Ownership views; a new source brings its owner |
Ledger correlation: platform_run_id,
workspace_id, item_id,
operation_id on ingestion_run;
error_class next to error_message |
Control tables, ADR 5 | Deep links from a window to the run that produced it;
error_class is what the console shows |
control.job_run: one row per Silver, Gold, relay and
reconciliation run (job, stage,
tier, platform_run_id,
started_at, ended_at, status,
rows) |
Control tables, ADR 2, Activator rules in the technology architecture | Tier freshness end to end; one source for the console and the alert rules |
Logging convention for Functions and notebooks: structured
dimensions source, adapter,
run_id, window_key, status_code,
operation; never a payload |
ADR 8, the WP0b PoC brief | Error counts per adapter per hour; both PoC variants must emit them |
ops view schemas on both lakehouses, with per-view
grants to the console principal and no workspace role |
ADR 2, ADR 10, data classification | Read scope that cannot reach identifiers |
control.quarantine carries references only (landing
file, row number, check name, column name), never the payload (applied
to the platform documents on 2026-10-27: ADR 6 requires it regardless of
this design) |
ADR 6, data architecture, the Bronze loader view | The builder review found quarantined rows would hold raw identifiers inside OneLake, against the gate's own rule; the landing file already keeps the raw row for seven days |
gold.restatement_log (source,
account_id, date, measure,
before, after, tolerance,
detected_at, build_run_id,
is_closed_period), written by the star build when a
replaceWhere rebuild moves a date beyond tolerance;
metrics.restated derived from it with
subject_key = (source, account_id, date) and
source_version = build_run_id; "closed" from
dim_date.is_closed_period, late movements on open dates
flagged separately |
Gold star schema, ADR 7 | The restatements page needs a real table and a defined event payload; Finance reads this page |
| Power BI operations dashboard removed from WP0 and WP5 | Roadmap, technology architecture | Replaced by the console (Lead Architect) |
| WP9 to be added with the stages in §9 on acceptance (the roadmap notes it as proposed); WP0 prerequisites listed | Roadmap, cost estimate | Delivery |
11. Designed for, built later
- Writes with approval (second version): pause or
resume an adapter, re-run a window, raise a reload or replay request,
resubmit dead letters. Each is a write slice with a two-person approval
and an
action_logrow. Constraint to design around: the lakehouse SQL endpoint is read-only, so writes to the control schema go through parameterised pipeline or notebook runs started with the Fabric job API, or the control tables move to a Fabric Warehouse, which is writable over TDS. That choice is a second-version ADR. - Assistant: Microsoft Agent Framework in
console-apior a worker; tools are the Fabric remote MCP server on a read-only allow-list verified against a live server, the console's own read slices, and lesson retrieval overpgvector; it proposes a triage and the exact links, never executes; every proposal is logged with its evidence. Reference: the architect's public demo of a bounded corrective-retrieval graph with a read-only Fabric MCP agent. - Multitenancy: not designed. Adding it later means a tenant key under row-level security in PostgreSQL and per-tenant estate configuration; the retrofit cost is accepted knowingly.
- Vendor APIs: HubSpot's daily usage endpoint and Google Ads quota signals, read into the budget page, once the first version has proven the read ports.
12. Left to the builder
State management and caching detail; the ops view
definitions (one per read model, reviewed with the DPO); query shapes;
exact Azure role assignments beyond the scopes in §5; the Naive UI
layout within the "meaning over numbers" rule; i18n (English only in the
first version, Bulgarian optional); test strategy within the stated
rules (architecture tests for module boundaries, contract tests of the
Estate ports against fakes and one live smoke per port, a replay test
for alert deduplication); the incident severity scale and the cause and
fix code lists (seeded from the risk register and the four
operations in ADR
5); the exact SLO and alert-mapping configuration format; the
auto-resolve grace period.
13. Calls made by the architecture assistant
Listed so the Lead Architect can check them while reading: the
ops view schema and no workspace role (§5);
job_run as the freshness source for console and Activator
alike (§4, §10); the quarantine change (§10);
gold.restatement_log and the metrics.restated
payload (§10); the logging dimensions (§10); the alert deduplication and
auto-resolve behaviour (§6); the staging table and effort (§9); Aspire,
Bicep and GitHub Actions as the delivery model (§8); English-only first
version (§12).