Architecture Decision Record
ADR-098: Aspire for Orchestration, Not for Testing or Production Dashboards
Status
Accepted (2026-08-28). Revised 2026-08-31: the sanctioned nightly AppHost smoke test is implemented,
and every citation below is re-verified against current source. Revised 2026-09-10: the bounded
exception is now a framework tier rather than a one-repo test. Aspire.Hosting.Testing is pinned in
three repos, both consumers own an AppHost smoke project, and each of them subclasses the shared
AppHostFixtureBase from MMCA.Common.Testing.Aspire (ADR-117) instead of calling
DistributedApplicationTestingBuilder directly, so the canonical implementation is Common's, not any
one app's; the ADC bicep and workflow anchors are re-pinned to their current lines. Revised
2026-10-01: the per-PR framework AppHost test job and the extra telemetry cuts are recorded. Revised
2026-10-06: the ADC AppHost's broker is described as selectable (RabbitMQ or the Service Bus
emulator) rather than RabbitMQ only. Revised 2026-10-07: the consumer AppHost smoke projects and their nightly job are removed, so the bounded exception is MMCA.Common's blocking framework tier alone (see Revision below). Revised 2026-10-07: anchors refreshed after the v1.233.0 release. Revised 2026-10-21: anchors refreshed after the Common ci.yml and the ADC and Store infrastructure templates moved. Revised 2026-10-26: the App Insights export path is named as MMCA.Common.Azure's AddAzureMonitorExporter rather than a bare UseAzureMonitor call, and live anchors are refreshed after the Common ci.yml, Directory.Packages.props, Extensions.cs and messaging registration and settings, the ADC AppHost, e2e.yml, deploy.yml and infrastructure template moved. Revised 2026-10-28: anchors refreshed after the Common ci.yml, the ADC and Store AGENTS.md, the integration-test rework plan and the ADC infrastructure template moved. Amended 2026-11-12: Context inventories the shared AppHost helpers (WithMmcaServiceInfrastructure, WithUiLinks, WithIssuer and the two E2E render-mode switches) and their adopters. Revised 2026-11-23: MMCA.ADC's opt-in AppHost outage tier is recorded as a non-gating extension of the bounded exception, service endpoints are described as internal rather than external, Store is added as an adopter of WithUiLinks and WithIssuer, the cross-service freshness deploy gate is named, AddAzureMonitorExporter is cited in MMCA.Common.Azure.Startup (type-forwarded by MMCA.Common.Azure), and live anchors are refreshed. Records two
standing divergences from the default .NET Aspire path as
decisions rather than as gaps. Both parts describe what the four repos already do, with the single
bounded exception recorded in Decision 1, and the value of writing them down is that a reader (or a
new module author) stops treating each absence as an oversight to be closed.
Revised 2026-12-02 (MMCA.Common v1.329.0): MMCA.Common.Azure no longer type-forwards
AzureMonitorExporterExtensions (MMCA.Common/CHANGELOG.md:13); Decision 2 cites the package
reference instead, and the Revision (2026-11-23) item 5 stays as recorded.
Context
Aspire is used on exactly two surfaces here.
Orchestration. Each app has an AppHost that composes the local stack from one file: ADC's
provisions a persistent SQL Server container, one database per service, Redis and a message broker
(RabbitMQ by default, or the Azure Service Bus emulator when ADC_BROKER=servicebus), then the four
services, the Gateway and the Blazor UI
(MMCA.ADC/Source/Hosting/MMCA.ADC.AppHost/Program.cs:1-7, SQL at :15-16, the four databases at
:37-40, Redis at :44-45, the broker selection at :47-98 with the AddSelectedBroker call at
:98); MMCA.Store/Source/Hosting/MMCA.Store.AppHost/Program.cs:1-14
is the same shape over its three services. Service discovery and health-based startup ordering come from Aspire's resource
model rather than from hand-written wiring.
The repeated per-resource wiring is a set of MMCA.Common.Aspire.Hosting helpers:
WithMmcaServiceInfrastructure(MMCA.Common/Source/Hosting/MMCA.Common.Aspire.Hosting/ServiceInfrastructureExtensions.cs:57) gives a service its own database throughWithSQLServerDataSource(reference, wait andDataSources__{logicalName}__SQLServerConnectionString,MMCA.Common/Source/Hosting/MMCA.Common.Aspire.Hosting/Extensions.cs:586, body at:593-596), a reference to the cache, the selected broker, waits on the cache and the mail server, and the liveness probe its explicitServiceEndpointProfileselects (ADR-012) (ServiceInfrastructureExtensions.cs:73-84, the liveness-only note at:33-36). The service's endpoints stay internal: only the gateway and UI helpers mark endpoints external, and a host that needs a service reachable directly chainsWithExternalHttpEndpoints()itself (:28-31). It references no project resource, so cross-service edges stay in each AppHost (:39-42). Adopters: every service resource in both AppHosts (MMCA.ADC/Source/Hosting/MMCA.ADC.AppHost/Program.cs:136,:158,:196,:221;MMCA.Store/Source/Hosting/MMCA.Store.AppHost/Program.cs:162,:187,:245).WithUiLinks(MMCA.Common/Source/Hosting/MMCA.Common.Aspire.Hosting/IdentityLinkExtensions.cs:74) sets the Identity resource's OAuth UI base URL and its password-reset, email-confirmation and sign-in links from the UI'shttpsendpoint, adding no reference and no wait (:81-91); both AppHosts adopt it (MMCA.ADC/Source/Hosting/MMCA.ADC.AppHost/Program.cs:474,MMCA.Store/Source/Hosting/MMCA.Store.AppHost/Program.cs:381).WithIssuer(IdentityLinkExtensions.cs:100) sets the Identity resource'sJwt__Issuerto the gateway'shttpsendpoint (:105); both AppHosts adopt it (MMCA.ADC/Source/Hosting/MMCA.ADC.AppHost/Program.cs:382,MMCA.Store/Source/Hosting/MMCA.Store.AppHost/Program.cs:380).WithE2eForceServerandWithE2eForceWebAssembly(Extensions.cs:489,:513) forward the E2E render-mode switches to the UI resource; ADR-056 describes them.
Service defaults. Every host calls AddServiceDefaults
(MMCA.Common/Source/Hosting/MMCA.Common.Aspire/Extensions.cs:35), which wires OpenTelemetry, the
default health checks, warm-up readiness (ADR-025), service discovery and the Polly HTTP defaults
(ADR-009), with MapDefaultEndpoints
(MMCA.Common/Source/Hosting/MMCA.Common.Aspire/Extensions.Health.cs:143) adding /health (:154),
the live-only /alive (:158-161) and the readiness probe /health/ready (:174-176) that ACA
ingress holds traffic behind.
Aspire offers two further things this workspace does not adopt, and both read from the outside like an unfinished adoption:
DistributedApplicationTestingBuilder(theAspire.Hosting.Testingpackage), which boots the whole app model in a test process. No per-service or cross-service integration tier uses it. The only project that references it directly is the framework's own AppHost testing package, the bounded exception Decision 1 sanctions. That package has its own per-PR test project over a sample AppHost, taking it byProjectReferencerather than a direct package reference (MMCA.Common/Tests/Hosting/MMCA.Common.Testing.Aspire.AppHostTests/MMCA.Common.Testing.Aspire.AppHostTests.csproj:24, run by the blockingapphost-testingjob atMMCA.Common/.github/workflows/ci.yml:1324, the blocking note at:1329-1330, theMMCA_APPHOST_TESTSopt-in at:1393, set at:1399). The package is pinned in MMCA.Common only (MMCA.Common/Directory.Packages.props:518) and referenced byMMCA.Common/Source/Hosting/MMCA.Common.Testing.Aspire/MMCA.Common.Testing.Aspire.csproj:23, which owns the onlyDistributedApplicationTestingBuilder.CreateAsynccall in the workspace (MMCA.Common/Source/Hosting/MMCA.Common.Testing.Aspire/Fixtures/AppHostFixtureBase.Generic.cs:31-32). One consumer takes that package: MMCA.ADC's opt-in AppHost outage tier (MMCA.ADC/Tests/Integration/MMCA.ADC.AppHost.OutageTests/MMCA.ADC.AppHost.OutageTests.csproj:14), whose fixture subclasses the shared base (MMCA.ADC/Tests/Integration/MMCA.ADC.AppHost.OutageTests/AdcOutageAppHostFixture.cs:17) and so reaches the testing builder only through it (Decision 1 records where that tier sits).- The Azure Container Apps Aspire dashboard, the hosted version of the local dashboard, for looking at a deployed environment. No ACA dashboard resource or property exists in ADC's infrastructure.
Neither the bounded use nor the outright absence is an accident, but until this record neither had a written basis, which is exactly how an incidental gap and a deliberate choice become indistinguishable.
Decision
1. Integration testing stays WebApplicationFactory plus Testcontainers
The per-service and cross-service tiers keep their shape, and DistributedApplicationTestingBuilder
stays out of them (the AppHost tiers that do reach it are the bounded exception recorded below).
- Per-service tier: one in-process host, real SQL, mocked cross-service edges. Seven fixtures
subclass the framework's
SqlServerIntegrationTestFixtureBase<TEntryPoint>(MMCA.Common/Source/Hosting/MMCA.Common.Testing/Fixtures/SqlServerIntegrationTestFixtureBase.cs:27): four in ADC (Tests/Integration/MMCA.ADC.Identity.IntegrationTests/Infrastructure/IdentityIntegrationTestFixture.cs:24, and the Conference / Engagement / Notification siblings at:18each) and three in Store (Catalog:16, Identity:16, Sales:17). - Cross-service tier: three real hosts, a real broker, real containers. ADC's
CrossServiceFixture(MMCA.ADC/Tests/Integration/MMCA.ADC.CrossService.IntegrationTests/Infrastructure/CrossServiceFixture.cs:34) extends the sharedCrossServiceFixtureBase(MMCA.Common/Source/Hosting/MMCA.Common.Testing/Fixtures/CrossServiceFixtureBase.cs:47) and runs against Testcontainers SQL Server and RabbitMQ (MMCA.ADC.CrossService.IntegrationTests.csproj:23-24), exercising the outbox to broker to consumer round-trip and a genuine Conference to Engagement gRPC read; Store has the equivalent (MMCA.Store/Tests/Integration/MMCA.Store.CrossService.IntegrationTests/Infrastructure/CrossServiceFixture.cs:29). - The deferral is already on the record and stays. The rework plan that produced these tiers
states it in one line: Aspire's testing builder is deferred to the Playwright E2E lane, as too
heavy for the integration tier and overlapping E2E
(
Website/docs-src/guides/adc-IntegrationTestReworkPlan.md:63-64).
Two properties of the hosts make the choice load-bearing rather than a preference.
Hosts snapshot their configuration at configure time. Each host reads its connection string,
MessageBus provider and JWT settings from builder.Configuration before builder.Build(),
which is before a WebApplicationFactory's ConfigureAppConfiguration deltas apply, so in-memory
config injected through the factory arrives too late and process environment variables are the only
override channel these hosts honour (CrossServiceFixtureBase.cs:26-38, the same contract stated on
the per-service base at SqlServerIntegrationTestFixtureBase.cs:16-24). The consequence is
concrete: the one genuinely per-host key is the connection string, so hosts must be booted strictly
sequentially with the environment mutated between boots (CrossServiceFixtureBase.cs:32-38). A
harness that owns the app model has to own that channel too, and the fixtures that already own it are
the ones being replaced.
The AppHost is not a local test dependency. dotnet run on the AppHost stalls in a
non-interactive shell on a developer box and has to be launched interactively
(MMCA.ADC/AGENTS.md:13). In CI, where Docker is available, it does come up, and that is precisely
the E2E lane (MMCA.ADC/.github/workflows/e2e.yml:3-5). So an app-model integration tier would be a
CI-only tier duplicating the coverage of a CI-only tier that already exists, while removing the fast
loop the current fixtures give.
One sanctioned exception is allowed, and it is bounded on purpose: an AppHost test tier that brings an app model up and probes the composition, kept out of every consumer's gating path. Its job is to catch a broken AppHost composition without turning the app model into an integration-test harness.
ADR-117 turns that exception into a framework tier, which is what keeps it bounded. The boot, the
readiness budget and the opt-in gate live once in MMCA.Common.Testing.Aspire
(AppHostFixtureBase.cs:42, the generic subclass a consumer names its AppHost through at
AppHostFixtureBase.Generic.cs:20, the assertion base at AppHostTestBase.cs:29), and the tier runs
per pull request in MMCA.Common over a sample AppHost, in the apphost-testing job, which is blocking
but not a required merge check (MMCA.Common/.github/workflows/ci.yml:1324, :1329-1330). It sets
the framework's MMCA_APPHOST_TESTS opt-in (:1393, :1399); without it the fixture never boots an
orchestrator and every test skips with that reason, which is what a developer machine gets. Neither
consumer carries an AppHost smoke project: each consumer's real AppHost composition is booted by its
e2e.yml on every E2E run, including the deploy's chromium e2e-gate (MMCA.ADC/AGENTS.md:91,
MMCA.Store/AGENTS.md:80, the ADC launch at MMCA.ADC/.github/workflows/e2e.yml:283 in the step at
:256, the Store launch at MMCA.Store/.github/workflows/e2e.yml:313 in the step at :251).
The exception also covers one consumer tier, kept on the same terms. MMCA.ADC's AppHost outage tier
subclasses the shared base over the real ADC AppHost
(MMCA.ADC/Tests/Integration/MMCA.ADC.AppHost.OutageTests/AdcOutageAppHostFixture.cs:17, its
IDistributedApplicationTestingBuilder configuration at :86), runs on throwaway session-lifetime
containers, stops Redis and then RabbitMQ, and asserts what Notification's /health,
/health/ready and /alive answer while each is down and after it returns, through ADR-117's
DependencyOutageTestBase
(MMCA.Common/Source/Hosting/MMCA.Common.Testing.Aspire/Outages/DependencyOutageTestBase.cs:35). It
runs from MMCA.ADC/.github/workflows/apphost-tests.yml (dispatch at :16, a weekly Tuesday
schedule at :17-19, path-filtered pull requests at :20-25) and is not a required check, not in
deploy.needs and not a freshness input (:10-11); MMCA.ADC/AGENTS.md:91 states the same. This
record reads it as an extension, not a reversal: it asserts only probe answers under a dependency
outage, which neither the per-service tier (one host, no orchestrator) nor the E2E lane (a healthy
stack) owns, and it stays out of every gating path. Store has no such tier.
What stays out is the scope, not the assertion count: an app-model tier that starts carrying behavioural coverage the per-service and E2E tiers already own is a reversal of this record, not an extension of it.
2. Production observability is workspace-based App Insights, not the ACA Aspire dashboard
- The sink is workspace-based Application Insights, backed by the existing Log Analytics
workspace, with telemetry landing in the workspace tables under its PerGB2018 pricing and retention
(
MMCA.ADC/infra/main.bicep:285-295, the workspace binding at:292); hosts export to it throughMMCA.Common.Azure'sAddAzureMonitorExporter(it lives in theMMCA.Common.Azure.Startupproject under the same namespace, whichMMCA.Common.Azurereferences atMMCA.Common/Source/Hosting/MMCA.Common.Azure/MMCA.Common.Azure.csproj:39), called afterAddServiceDefaultsand wrappingUseAzureMonitor(MMCA.Common/Source/Hosting/MMCA.Common.Azure.Startup/AzureMonitorExporterExtensions.cs:42, the ordering guard at:50-51,:65), whenever the injected connection string is present (main.bicep:279-284, the injectedAPPLICATIONINSIGHTS_CONNECTION_STRINGentry at:300-303). - The stream is deliberately thinned, and each cut is priced in the template. Head-based trace
sampling keeps 25% (
Telemetry__TracesSampleRatio=0.25,:305-312); the OpenTelemetry logging provider shipsWarningand above while Serilog still writesInformationto container stdout (:314-323); the Gateway's YARP per-requestInformationlines are floored toWarning(:324-333); the two highest-volume instrument groups (http.client.*gauges and thedotnet.*runtime instruments, measured at about 65% of AppMetrics ingestion,:335-341) are switched off (:342-349); the whole ASP.NET Core meter family (measured at 73% of workspace ingestion over 2026-09-22..28, read by no alert) is dropped (:351-358); Live Metrics is disabled (AzureMonitor__EnableLiveMetrics=false,:360-368); and the metric export interval is stretched from the 60-second default to 300 seconds, cutting roughly 80% of the remaining datapoints while five-minute alert windows keep the same signal (:370-379). - What an operator actually reads is alerts and a workbook, not a live console. SLO rules ship as
code (
main.bicep:540,:731, and the Gateway availability alert at:1047over the web test at:1014, all wired to the unconditional action group at:387, its comment at:384-386), and a saved Azure Monitor workbook visualizes the same SLOs per service (:1086), which is the deployed-environment view (ADR-062, ADR-041). - The ACA Aspire dashboard is not provisioned, and that is the decision rather than a to-do. It is ephemeral (no retention behind it), full fidelity (it would be looking at the very stream this template thins), and it has no alert or saved-query surface, so it cannot be the thing that pages anyone. It stays what it is here: the development-time console the AppHost opens.
Rationale
- Test at the boundary that ships. A service is deployed as its own container app
(
MMCA.ADC/infra/main.bicep:2131,:2402,:2556,:2704), configured entirely through environment variables.WebApplicationFactoryplus an environment-variable override channel is a closer model of that than an app model the deployment does not use: production topology comes from Bicep (MMCA.ADC/.github/workflows/deploy.yml:1929-1935), not from the AppHost. - The cheapest tier that could have failed. The per-service tier needs no Docker at all, because
AddBrokerMessagingreturns early on the defaultInProcessprovider, which is what an absentMessageBussection resolves to (MMCA.Common/Source/Core/MMCA.Common.Infrastructure/DependencyInjection.Messaging.cs:48, the missing-section fallback at:54-55and the early return at:57-60, over theInProcessdefault onMessaging/MessageBusSettings.cs:25), and only the genuinely cross-process flows pay for containers, on a weeknight schedule rather than in the deploy chain (cross-service-tests.yml:12-23, the cron at:32); the deploy waits on no Testcontainers run, but itscross-service-freshnessstep fails a deploy when the latest successful run is stale (:17-23). Booting the whole app model to assert a validation error would invert that. - Two absences with one cause. Both parts of this record decline an Aspire feature whose value is highest during development and lowest in the lane it would be added to: the testing builder duplicates the E2E lane, and the dashboard duplicates a workbook while undoing a cost decision.
- Cost is the binding observability constraint at this size. The thinning above is rubric section 31 work with measured numbers attached, and a full-fidelity dashboard component is the one addition that would make those measurements moot.
Trade-offs
- Nothing in a gating path below the E2E lane tests a consumer AppHost's own wiring. A bad
reference or a missing environment injection in
Program.csis caught by the E2E gate or by a developer, and the E2E gate is ui-scoped and can legitimately skip (ADR-092 records the same property for the vitals budget). The framework tier proves the shared base against a sample AppHost, not an app's composition. ADC's opt-in outage tier does boot the real ADC AppHost, so a composition that cannot start turns that workflow red, but it is not required and gates no deploy; Store has no equivalent. The gap is therefore closed for gating purposes only by the E2E runs (scheduled, dispatched and on UI deploys) that boot each consumer's AppHost. - The environment-variable channel is global and order-sensitive. Hosts must boot strictly
sequentially and every pushed variable has to be restored on disposal
(
SqlServerIntegrationTestFixtureBase.cs:17-24,CrossServiceFixtureBase.cs:32-38), which is fragile in a way an in-memory configuration source would not be. It is the price of the hosts reading configuration at configure time, and it is paid in test infrastructure rather than in production code. - Sampling means a reported request may have no trace. At 0.25, three of four traces are dropped
at the head, so an operator investigating a specific user report will often find the request counted
and not traced (
main.bicep:305-312). - The
Warningfloor movesInformationlogs off the queryable path. They exist in container stdout only (:314-323), so the correlation-id story (ADR-041) is complete only for what the floor admits. - A 300-second export interval delays metric-driven signal. Alert rules use five-minute windows,
so the design holds, but a metric change is not visible in near real time (
:370-379). - Neither absence is enforced. Nothing fails a build if a project adds
Aspire.Hosting.Testingor a dashboard resource: unlike the pins of ADR-016 or the fitness rules of ADR-015, this record is a convention, and its only guard is review. - Store carries the same posture, and Decision 2's numbers are cited from ADC's template. The
knobs match: Store's own bicep sets the same
Telemetry__TracesSampleRatioof0.25(MMCA.Store/infra/main.bicep:255), the sameLogging__OpenTelemetry__LogLevel__Defaultfloor (:266), the same YARP log floor (:277), the same two instrument toggles (:288,:292), the same ASP.NET Core meter drop (:301), the same Live Metrics switch-off (:311) and the sameOTEL_METRIC_EXPORT_INTERVAL(:322). Only the resource inventory differs, because Store deploys three services rather than four, so a reader after an exact line should read Store's template rather than translate ADC's.
Revision (2026-10-01)
No decision or rationale changed. Two statements were incomplete and are corrected in place. First,
the framework's AppHost testing package is also exercised per PR in MMCA.Common, by the
continue-on-error apphost-testing job (MMCA.Common/.github/workflows/ci.yml:958, opt-in at
:1012) over a test project that takes MMCA.Common.Testing.Aspire by ProjectReference
(MMCA.Common.Testing.Aspire.AppHostTests.csproj:26); it composes a sample AppHost, not an app's,
so it stays inside the bounded exception. Second, the telemetry thinning in both templates now also
floors YARP logs to Warning, drops the ASP.NET Core meter family and disables Live Metrics
(MMCA.ADC/infra/main.bicep:267-276, :293-300, :302-310; Store main.bicep:229, :253,
:263), which strengthens the cost argument against a full-fidelity dashboard. Every other citation
is re-anchored: the ADC AppHost broker selection, AddServiceDefaults and the health endpoints (now
in Extensions.Health.cs), AddBrokerMessaging (now in DependencyInjection.Messaging.cs), the
three package pins, the smoke and fixture lines, the rework-plan deferral, the headless-hang note
(now in MMCA.ADC/AGENTS.md), the ADC apphost-smoke job, every ADC and Store bicep anchor, and the
ADC deploy step that applies the Bicep template.
Revision (2026-10-06)
No decision or rationale changed.
- Context said the ADC AppHost provisions "the RabbitMQ broker". The broker is selected at startup:
RabbitMQ by default, or the Azure Service Bus emulator when
ADC_BROKER=servicebus(MMCA.ADC/Source/Hosting/MMCA.ADC.AppHost/Program.cs:66-94,AddSelectedBrokerat:94). - The ADC smoke run step is
cross-service-tests.yml:277(the earlier:291was inside the step, not a step), and Store's is:267. The framework test project'sProjectReferencetoMMCA.Common.Testing.Aspire, recorded at:26in the 2026-10-01 revision, is now atMMCA.Common.Testing.Aspire.AppHostTests.csproj:28. - Every other anchor in the live sections was re-verified against current source and re-pinned: the
Common package pin,
AppHostFixtureBase,CrossServiceFixtureBase, the AppHost SQL / database / Redis lines,AddBrokerMessaging, every ADC bicep anchor (App Insights, the seven thinning knobs, SLO rules, availability alert, action group, workbook, the four container apps) and the deploy step that applies the Bicep template.
Revision (2026-10-07)
- The consumer AppHost smoke projects and the nightly
apphost-smokejob in eachcross-service-tests.ymlare removed, together with the consumers'Aspire.Hosting.Testingpins; the package is pinned in MMCA.Common only (MMCA.Common/Directory.Packages.props:368). Each consumer's AppHost composition is exercised instead bye2e.yml, which boots the real AppHost on every E2E run (MMCA.ADC/AGENTS.md:77,MMCA.Store/AGENTS.md:76). - MMCA.Common's
apphost-testingjob is blocking (nocontinue-on-error) but not a required merge check (MMCA.Common/.github/workflows/ci.yml:910-911), and it remains where the AppHost test base is exercised. - Context item 1, the bounded exception in Decision 1 and the first Trade-off are restated for that state. The exception stays bounded to one framework tier over a sample AppHost; the orchestration and observability decisions are unchanged.
- Anchors re-verified against current source: the ADC AppHost header, SQL, database, Redis and
broker lines (
MMCA.ADC/Source/Hosting/MMCA.ADC.AppHost/Program.cs:1-7,:15-16,:37-40,:44-45,:47-96,AddSelectedBrokerat:97); App Insights and its connection string (MMCA.ADC/infra/main.bicep:255-265,:262,:250-254,:270-273); the seven thinning knobs (:275-282,:284-293,:294-303,:305-311,:312-319,:321-328,:330-338,:340-349); the SLO rules, availability alert, web test, action group and workbook (:482,:602,:733,:700,:357-371,:772); the four container apps (:1675,:1922,:2075,:2210); and the deploy step that applies the Bicep template (MMCA.ADC/.github/workflows/deploy.yml:1433-1439). The anchors inside the 2026-10-01 and 2026-10-06 revisions stay as written and are superseded by the live sections.
Revision (2026-10-21)
Re-verified against current source. No decision, rationale or trade-off changed: the package is
still pinned in MMCA.Common only (no Aspire.Hosting.Testing pin in ADC, Store or Helpdesk), the
apphost-testing job is still blocking (no continue-on-error in the file) and not a required
merge check, and Store's seven thinning values still match ADC's. Only line anchors in the live
sections moved. The anchors inside the 2026-10-01, 2026-10-06 and 2026-10-07 revisions stay as
written and are superseded by the live sections.
- Anchors re-verified against current source: the package pin
(
MMCA.Common/Directory.Packages.props:375); theapphost-testingjob, its blocking note and its opt-in (MMCA.Common/.github/workflows/ci.yml:846,:851-852,:888); the ADC SLO rules, availability alert, web test and workbook (MMCA.ADC/infra/main.bicep:508,:641,:881,:848,:920), with the unconditional action group unchanged at:357-371; the four ADC container apps (:1825,:2078,:2231,:2366); the deploy step that applies the Bicep template (MMCA.ADC/.github/workflows/deploy.yml:1448-1454); and Store's seven thinning knobs (MMCA.Store/infra/main.bicep:211,:222,:233,:244,:248,:257,:267,:278). The ADC AppHost, App Insights and thinning-knob ranges, the per-service and cross-service fixture lines,CrossServiceFixtureBase.cs:26-38,SqlServerIntegrationTestFixtureBase.cs:16-24,MessageBusSettings.cs:17,cross-service-tests.yml:12-22, the rework-plan deferral ande2e.yml:3-5were re-checked and hold as written.
Revision (2026-10-26)
Re-verified against current source. No decision, rationale or trade-off changed: the package is
still pinned in MMCA.Common only, the apphost-testing job is still blocking (no
continue-on-error in the file) and not a required merge check, the ACA dashboard is still absent,
and Store's seven thinning cuts (eight settings, the http.client and runtime metric toggles being one
cut) still match ADC's. One description and many live anchors moved.
The anchors inside the 2026-10-01, 2026-10-06, 2026-10-07 and 2026-10-21 revisions stay as written
and are superseded by the live sections.
- Decision 2 said hosts export to App Insights through
UseAzureMonitor. They callMMCA.Common.Azure'sAddAzureMonitorExporter, which must run afterAddServiceDefaultsand wrapsUseAzureMonitor(MMCA.Common/Source/Hosting/MMCA.Common.Azure/AzureMonitorExporterExtensions.cs:42,:51,:63); the bicep comment names the same call (MMCA.ADC/infra/main.bicep:253). - Anchors re-verified against current source: the package pin
(
MMCA.Common/Directory.Packages.props:444); theapphost-testingjob, its blocking note and its opt-in (MMCA.Common/.github/workflows/ci.yml:989,:994-995,:1031); the ADC AppHost broker selection andAddSelectedBrokercall (MMCA.ADC/Source/Hosting/MMCA.ADC.AppHost/Program.cs:47-98,:98);AddServiceDefaults(MMCA.Common/Source/Hosting/MMCA.Common.Aspire/Extensions.cs:33);AddBrokerMessaging, its missing-section fallback and early return (MMCA.Common/Source/Core/MMCA.Common.Infrastructure/DependencyInjection.Messaging.cs:48,:54-55,:57-60) over theInProcessdefault (Messaging/MessageBusSettings.cs:25); the ADC E2E AppHost boot (MMCA.ADC/.github/workflows/e2e.yml:242); ADC App Insights, its workspace binding, comment and connection string (MMCA.ADC/infra/main.bicep:256-266,:263,:250-255,:271-274); the seven thinning cuts over eight settings (:276-283,:285-294,:295-304,:313-320for the paired http.client and runtime metric toggles,:322-329,:331-339,:341-350) and the ingestion measurement comment above the toggles (:306-312); the SLO rules, availability alert, web test, action group and workbook (:509,:675,:915,:882,:358-372,:954); the four container apps (:1861,:2114,:2267,:2402); and the deploy step that applies the Bicep template (MMCA.ADC/.github/workflows/deploy.yml:1449-1455). Store's eight thinning settings (MMCA.Store/infra/main.bicep:211,:222,:233,:244,:248,:257,:267,:278, thevardeclarations),MMCA.Store/.github/workflows/e2e.yml:252, the ADC AppHost header, SQL, database and Redis lines, the health endpoints and the fixture lines hold as written.
Revision (2026-10-28)
Re-verified against current source. No decision, rationale or trade-off changed: the
apphost-testing job is still blocking (no continue-on-error in the file) and not a required
merge check, neither consumer carries an AppHost smoke project, the rework plan still defers the
testing builder to the Playwright E2E lane, and the four ADC services are still separate container
apps. Only line anchors in the live sections moved. The anchors inside the 2026-10-01, 2026-10-06,
2026-10-07, 2026-10-21 and 2026-10-26 revisions stay as written and are superseded by the live
sections.
- Anchors re-verified against current source: the
apphost-testingjob, its blocking note and itsMMCA_APPHOST_TESTSopt-in (MMCA.Common/.github/workflows/ci.yml:1021,:1026-1027,:1063); the no-AppHost-smoke-project notes (MMCA.ADC/AGENTS.md:79,MMCA.Store/AGENTS.md:78); the rework-plan deferral (Website/docs-src/guides/adc-IntegrationTestReworkPlan.md:63-64); and the four ADC container apps (MMCA.ADC/infra/main.bicep:1858,:2111,:2264,:2399). The headless-hang note (MMCA.ADC/AGENTS.md:13) holds as written.
Revision (2026-11-23)
Re-verified against current source. The orchestration and observability decisions are unchanged:
Aspire.Hosting.Testing is still pinned in MMCA.Common only and referenced directly only by
MMCA.Common.Testing.Aspire, the apphost-testing job is still blocking (no continue-on-error in
the file) and not a required merge check, neither consumer carries an AppHost smoke project, the ACA
dashboard is still absent, and Store's thinning values still match ADC's. One consumer tier, one
helper description, one adopter list, one gate description and one source path moved. The anchors inside the
earlier revisions stay as written and are superseded by the live sections.
- MMCA.ADC adds an opt-in AppHost outage tier that subclasses the shared base over the real ADC
AppHost (
MMCA.ADC/Tests/Integration/MMCA.ADC.AppHost.OutageTests/AdcOutageAppHostFixture.cs:17,:86), takesMMCA.Common.Testing.Aspireas a package (MMCA.ADC.AppHost.OutageTests.csproj:14) and runs fromMMCA.ADC/.github/workflows/apphost-tests.yml(:16,:17-19,:20-25) outside every gate (:10-11), as ADR-117 already records. Context item 1, the bounded exception in Decision 1 and the first Trade-off are restated: the tier is an extension of the exception, not a reversal, because it asserts only probe answers under a dependency outage (MMCA.Common/Source/Hosting/MMCA.Common.Testing.Aspire/Outages/DependencyOutageTestBase.cs:35) and gates nothing. Store has no such tier: no Store project or props file referencesMMCA.Common.Testing.AspireorAspire.Hosting.Testing. - Context said
WithMmcaServiceInfrastructuregives a service external HTTP endpoints. The service's endpoints stay internal; only the gateway and UI helpers mark endpoints external (MMCA.Common/Source/Hosting/MMCA.Common.Aspire.Hosting/ServiceInfrastructureExtensions.cs:28-31). - Context said ADC alone adopts
WithUiLinksandWithIssuer. Store adopts both (MMCA.Store/Source/Hosting/MMCA.Store.AppHost/Program.cs:380-381). - Rationale said the cross-service tier runs on a nightly rather than in the deploy chain. It runs
on weeknights (
MMCA.ADC/.github/workflows/cross-service-tests.yml:32) and, while no deploy waits on it, its recency is a deploy precondition throughcross-service-freshness(:17-23). - Decision 2 cited
AzureMonitorExporterExtensions.csunderMMCA.Common.Azure. The file lives inMMCA.Common/Source/Hosting/MMCA.Common.Azure.Startup/AzureMonitorExporterExtensions.cs(:42,:50-51,:65), in theMMCA.Common.Azurenamespace and type-forwarded byMMCA.Common.Azure(MMCA.Common/Source/Hosting/MMCA.Common.Azure/TypeForwards.cs:7). - Anchors re-verified against current source: the package pin and reference
(
MMCA.Common/Directory.Packages.props:518,MMCA.Common.Testing.Aspire.csproj:23); the framework test project'sProjectReference(MMCA.Common.Testing.Aspire.AppHostTests.csproj:24); theapphost-testingjob, its blocking note and opt-in (MMCA.Common/.github/workflows/ci.yml:1324,:1329-1330,:1393,:1399);AppHostFixtureBase.cs:42andAppHostFixtureBase.Generic.cs:31-32; the helpers (ServiceInfrastructureExtensions.cs:57,:73-84,:33-36,:39-42;Extensions.cs:586,:593-596,:489,:513;IdentityLinkExtensions.cs:74,:81-91,:100,:105) and their call sites (MMCA.ADC/Source/Hosting/MMCA.ADC.AppHost/Program.cs:136,:158,:196,:221,:382,:474;MMCA.Store/Source/Hosting/MMCA.Store.AppHost/Program.cs:162,:187,:245);AddServiceDefaults(MMCA.Common/Source/Hosting/MMCA.Common.Aspire/Extensions.cs:35) and the health endpoints (Extensions.Health.cs:143,:154,:158-161,:174-176); the ADC Identity fixture (IdentityIntegrationTestFixture.cs:24); the no-AppHost-smoke notes (MMCA.ADC/AGENTS.md:91,MMCA.Store/AGENTS.md:80); the E2E AppHost launches (MMCA.ADC/.github/workflows/e2e.yml:256,:283;MMCA.Store/.github/workflows/e2e.yml:251,:313); ADC App Insights, its comment and connection string (MMCA.ADC/infra/main.bicep:285-295,:292,:279-284,:300-303); the thinning cuts (:305-312,:314-323,:324-333,:335-341,:342-349,:351-358,:360-368,:370-379); the SLO rules, availability alert, web test, action group and workbook (:540,:731,:1047,:1014,:387,:1086); the four container apps (:2131,:2402,:2556,:2704); the deploy step that applies the Bicep template (MMCA.ADC/.github/workflows/deploy.yml:1929-1935); the cross-service explanation (cross-service-tests.yml:12-23); and Store's eight thinning settings (MMCA.Store/infra/main.bicep:255,:266,:277,:288,:292,:301,:311,:322).
Related
ADR-041 (the shared Aspire OpenTelemetry baseline and the
sampling / metric-toggle knobs this record's production half configures),
ADR-062 (the alert rules and the workbook that are the deployed-environment
view instead of a dashboard),
ADR-025 (the readiness gate AddServiceDefaults wires, which is
what makes health-based startup ordering meaningful),
ADR-008 (the four extracted hosts these tiers and this
orchestration exist to run),
ADR-006 (why the fixtures provision one throwaway database per service
rather than one for the app),
ADR-030 (each host applying its own migrations at boot, which is what
lets a fixture start against an empty database),
ADR-081 (the cost posture the telemetry thinning belongs to),
ADR-092 (the E2E lane this record defers app-model coverage to, and
the record of that lane's skip behavior),
ADR-117 (the framework AppHost fixture base, opt-in gate and
readiness budget that turn this record's bounded exception into a shared framework tier, plus the
DependencyOutageTestBase behind MMCA.Common's outage scenario and ADC's opt-in AppHost outage tier).