Architecture governance
MMCA.ADC: Architecture Scorecard
Canonical, version-controlled scorecard for this repo: the single source of truth for MMCA.ADC's architecture scores, scored against the rubric at
ArchitectureEvaluationCriteria.md; framework-wide facts in../MMCA.Common/FACTS.md. Remediation lives inRemediationBacklog.md, the single remediation and tech-debt ledger (it carries the tacticalTD-NNitems); the cross-repo comparison lives in the workspace-internalDocs/Architecture/CrossRepoComparison.md(not published).
Evidence as of 2026-11-23 at MMCA.Common.* v1.315.0, git HEAD f03013ed2 (clean tree). Rubric version 2.
Facts re-verified 2026-11-24 against MMCA.Common v1.318.0 (MMCA.ADC HEAD a7985ca96); scores, indices and bands are unchanged from the evidence date above and move only at the next re-score.
At a glance
- Maturity index = Σ(maturity×weight) ÷ Σ(weight×4) = 316 ÷ 324 = 97.5%
- Implementation index = Σ(impl×weight) ÷ Σ(weight×10) = 694 ÷ 810 = 85.7%
- Weaker axis: Implementation, 11.8 points below Maturity.
- Maturity band: 3 categories sit below maturity 4 (Sections 10, 12 and 21; 8 weighted points), ranked in the backlog.
- Implementation band: 14 categories sit at implementation 8 or below (35 weighted points short of 9 on every category), ranked in the backlog.
MMCA.ADC is a .NET 11 (with a permanent .NET 10 line) DDD / Clean Architecture system for the Atlanta Developers Conference, run as four independently hosted services (Identity, Conference, Engagement, Notification) behind a YARP gateway, collaborating over Result-over-the-wire gRPC and integration events on the outbox over the framework's native broker transports, one database per service, on the lockstep MMCA.Common.* packages (26 of the 30 published packages, Directory.Packages.props:143-198). Its strongest trait is that architectural intent is executable: 84 architecture-test classes gate CI on rules inherited from the shared MMCA.Common.Testing.Architecture library, and recovery, capacity, cost and cross-browser proofs are deploy preconditions sized to measured conference load (~67 peak). The remaining weight sits on the implementation axis, spread across fourteen categories at implementation 8 or below and led by §11 Security at 7 (secret access through one shared identity, with the per-app identity and key-off hardening staged but switched off), then four weight-3 rows at 8 (§7, §10, §18, §21), and on three maturity gaps: §10's broker round-trip tier reaches the deploy only through a freshness gate, §12's capacity proof runs out of band by decision, and §21's manual screen-reader pass is unrecorded.
Top 5 risks
Secret access is not least-privilege, and the hardening that fixes it is switched off: §11 (mat 4 / impl 7, weight 3; implPriority 6). All six deployables, the public Gateway and UI included, read the whole Key Vault, which holds the RS256 signing key, through one shared managed identity (
infra/main.bicep:2138). Per-app identities, Entra-only SQL sign-in, Entra auth for Redis and Service Bus with keys off, and the key-ring storage account's shared-key switch-off all ship as parameters that default off (infra/main.bicep:39,42,45,51,161), read from repository variables by the deploy (deploy.yml:1663-1674), and only the managed-identity SQL variable is set. The SQL data plane keepspublicNetworkAccess: 'Enabled'(infra/main.bicep:1213) and the AllowAzureServices rule (:1221), two of the ten gRPC surfaces stayAllowAnonymousbehind the internal ingress (Engagement.Service/Program.cs:262,Conference.Service/ConferenceGrpcEndpoints.cs:40), and no threat model exists, a recorded decision not to schedule one (TD-26).- Remediation: TD-27: run
scripts/security/bootstrap-identities.ps1, then switch on each staged flag as its checklist ininfra/SQL-MANAGED-IDENTITY.mdpasses. Private endpoints for the SQL data plane stay the deferred VNet epic. - Expected: §11 implementation 7 to 8 (weight 3) once the per-app identities and the key-auth switch-offs are live; 8 to 9 would also need the threat model.
- Remediation: TD-27: run
The manual screen-reader pass is unrecorded: §21 (mat 3 / impl 8, weight 3; priority 3 in both bands). The chromium E2E/axe suite blocks the deploy (
AccessibilityTests.cs:31, insidee2e-gate,deploy.yml:1203), cross-engine recency is gated (cross-browser-freshness,deploy.yml:1323, withfreshnessindeploy.needsat:1574), and the live-moderation dialog carries a keyboard-operability test (LiveModerationKeyboardTests.cs:24, a subclass of Common'sKeyboardOperabilityTestsBase), but the recorded screen-reader pass that the rubric's maturity-4 bar asks for is the empty placeholder row inadc-ACCESSIBILITY-SCREENREADER-PASS.md:69. The implementation lever is not yet identified (axe is E2E-only, chromium-only and non-PR, and keyboard coverage is one dialog).- Remediation: Record the manual screen-reader pass (needs a human with NVDA or VoiceOver).
- Expected: §21 maturity 3 to 4 (weight 3).
The broker round-trip is proven out of band, and fault recovery is manual: §10 (mat 3 / impl 8, weight 3; priority 3 in both bands). Broker faults are wired to alert-as-code: the
brokerDeadLetterAlertmetric rule fires on the namespaceDeadletteredMessagesmetric over the three host queues (infra/main.bicep:778), beside the outbox dead-letter rule (infra/main.bicep:665), andinfra/OPERATIONS.md:249holds the broker dead-letter runbook. Maturity holds at 3 because the broker round-trip tier runs on a weekday schedule (cross-service-tests.yml:32) and reaches the deploy only through thecross-service-freshnessrecency gate (deploy.yml:1284), not as a merge gate. Implementation holds at 8: no compensating saga handler or reconciliation sweep exists (ADC has two compensating steps, not a saga) (../adr/054-saga-compensation-and-reconciliation.md:248-249), replay from the dead-letter sub-queue is a manual runbook step (infra/OPERATIONS.md:325), and a stated message retention exists only for outbox dead-letter rows (30 days,infra/main.bicep:2380); the IaC sets broker message time-to-live to never (infra/main.bicep:1544).- Remediation: Bring the broker round-trip tier inside a merge gate (the recorded maturity lever); the implementation lever is not yet identified.
- Expected: §10 maturity 3 to 4 (weight 3).
The synchronous call graph has bidirectional pairs and a call loop: §7 (mat 4 / impl 8, weight 3; implPriority 3). Ten typed gRPC clients span the four
*.Contractsassemblies (Conference.Contracts/DependencyInjection.cs:46,:76,:104,Engagement.Contracts/DependencyInjection.cs:48,:81,:110,Identity.Contracts/DependencyInjection.cs:44,:74,Notification.Contracts/DependencyInjection.cs:51,:87), forming three bidirectional pairs (Conference and Engagement, Engagement and Identity, Identity and Notification) and a three-node Conference, Engagement, Notification loop: the rubric's "chatty synchronous call graphs" red flag (ArchitectureEvaluationCriteria.md:266). The contracts are frozen byProtoContractTests, the resilience pipeline self-heals peer startup order, and the cached Conference-to-Engagement bookmark-count read is accepted (see the backlog's Deliberate and accepted).- Remediation: Lever not yet identified: the modernization-patterns criterion is met in the ADRs (
../adr/007-grpc-extraction.md:33,../adr/008-service-extraction-topology.md:60), and the event-fed projection that would remove the bookmark-count read is rejected. - Expected: No score move is scheduled; §7 holds at implementation 8.
- Remediation: Lever not yet identified: the modernization-patterns criterion is met in the ADRs (
UI code-behinds run close to the enforced cap: §18 (mat 4 / impl 8, weight 3; implPriority 3).
UIArchitectureConventionTests(Ui/UIArchitectureConventionTests.cs:10, a sealed subclass of the shared base) enforces the unoverridden 400-line code-behind cap (UIArchitectureConventionTestsBase.cs:22); counted the way the cap counts,Conference.UI/Pages/Speakers/SpeakerDashboard.razor.csmeasures 400 lines (exactly at the cap),Engagement.UI/Pages/SessionLive/SessionLive.razor.cs399 andCheckInScan.razor.cs393, and 19 code-behinds sit within 70 lines of the cap. Presentational sub-component extraction is applied file by file rather than systematically (TD-16, closed by decision).- Remediation: None scheduled: the cap's fitness test forces the
SessionLiveorSpeakerDashboardsplit on the change that crosses 400. - Expected: §18 holds at implementation 8.
- Remediation: None scheduled: the cap's fitness test forces the
Top 5 strengths
Architecture intent is executable, not prose (§34 Governance, mat 4 / impl 9, and §3 Clean Architecture, mat 4 / impl 9): 84 architecture-test classes in
Tests/Architecture/MMCA.ADC.Architecture.Tests/gate CI (LayerDependencyTests,DomainPurityTests,MicroserviceExtractionTests, plus the PII, concurrency, integration-event contract, specification, slice-cohesion, data-residency, constructor-dependency, brand-token, inline-style, cost-tag, SQL-audit, UI-architecture, state-management and observability-pairing gates), with most rule bodies inherited from the sharedMMCA.Common.Testing.Architecturebases (ADR-015) and 39 ADC-local[Fact]/[Theory]methods across 16 files (for exampleDomain/DeleteBehaviorConventionTests.cs:34,Api/AuditViewGrantTests.cs:19,:27,Privacy/InvitationLifetimeTests.cs:34); the ADR set (range and count owned by../adr/README.md) captures the why.- Remediation: The stated residual is gone: the workspace architecture map (
Docs/Architecture/ArchitecturalAnalysis.md, versioned in the private harness repo) now defers the package count and version toMMCA.Common/FACTS.md(:101,:120), and the 13-package figure survives only in its dated 2026-05-25 evolution note (:7); score unchanged pending re-score. - Expected: §34 impl 9→10.
- Remediation: The stated residual is gone: the workspace architecture map (
Disaster recovery is drilled and gated, graceful shutdown is CI-verified, and the privacy residency claim matches the deployment (§29 mat 4 / impl 9, §30 mat 4 / impl 9):
infra/DISASTER-RECOVERY.md:199-204records six PITR restore proofs across all four live databases (the newest restoresADC_Conferencein 2.1 min against the 2 h RTO); thedr-freshnessstep fails the deploy unless the latestdr-drill.ymlrun succeeded within an 8-day window (deploy.yml:1244,window-daysat:1253, indeploy.needsat:1574), and the drill job itself runs under a 60-minute timeout (dr-drill.yml:56, rationale:49-55);Tests/Hosts/MMCA.ADC.Gateway.Tests/GracefulShutdownTests.cs(a sealed subclass ofMMCA.Common.Testing/Conformance/GracefulShutdownTestsBase.cs) CI-verifies a bounded drain;PRIVACY.md:110reads East US 2 / West US 2 and is guarded byDataResidencyTests.- Remediation: A recorded restore-RTO trend is the remaining polish.
- Expected: Polish only; no score move is scheduled.
Reference-quality front-end security and UI state management (§26 mat 4 / impl 9, §19 mat 4 / impl 9):
Hosts/UI/MMCA.ADC.UI.Web/Program.cs:26(AddMmcaBlazorWebHost) and:128(UseMmcaBlazorWebPipeline), which callAddSessionCookieAuthentication()(CommonBlazorWebHostExtensions.cs:129),AddCommonBlazorCsp()(:157, the CSP provider) andUseCommonSecurityHeaders()(:186), all consumed from MMCA.Common: HttpOnly-cookie tokens, refresh unreadable by JS, no localStorage, locked script-src/connect-src, frame-ancestors none;ListPageStateService.cs:9,101(per-circuit scoped, immutable records) andUnsavedChangesGuard.razor:34(IsDirtyAccessor pre-empts the stale-IsDirty red flag), with zero mutable static cross-user state machine-proven by the CI-gatingStateManagementConventionTests.- Remediation: Replace
style-src 'unsafe-inline'with the framework's nonce path and narrowimg-src https:to specific origins. - Expected: §26 impl 9→10.
- Remediation: Replace
Capacity and FinOps are data-driven from measured conference load (§31 mat 4 / impl 8, §12 mat 3 / impl 9):
conference-read-load.js:56-57(p95<800 ms, <1% errors; 67 VUs, the observed peak, on manual dispatch,load-test.yml:18, and 40 VUs on the scheduled run,:94), a green proof on the deployed 0.25 vCPU / 0.5 Gi topology (run 35013811738,infra/main.bicep:204) whose recency gates the deploy (load-freshness,deploy.yml:1263);cost-guard.ymlindeploy.needs(deploy.yml:1175,:1574, condition:1607) fails the deploy if maxReplicas>2 or any SQL DB tier!=Basic (cost-guard.yml:94,:111, exits:127-131); a monthly RG budget with 80%/100% alerts (main.bicep:1164); a per-serviceservicecost tag on the six container apps and the four databases (main.bicep:2314,:1361); a 5 GB/day Log Analytics ingestion cap sized as a runaway guard (foundation.bicep:15, applied at:53-55).- Remediation: The read-only
cost-guardruns daily (cost-guard.yml:14), so an expired surge whose revert deploy has not run is flagged within a day; §31's next implementation lever is not yet identified. - Expected: No score move is scheduled; §31 holds at implementation 8.
- Remediation: The read-only
Non-inverted test pyramid with deploy-gated integration, E2E and markup-snapshot tiers (§14 mat 4 / impl 9, §28 mat 4 / impl 9): 4737 unit/UI/service
[Fact]/[Theory]across 664 files; 503 gating integration methods across four per-service WAF tiers; 12 markup-snapshot[Fact]s over 12 committed.htmlbaselines in all three bUnit projects (ComponentsSnapshotTests.cs:28), failing on a missing baseline. The integration tier is a required PR check, the coverage floor gatesbuild-and-test(deploy.yml:488), and branch protection enforces admins with strict up-to-date required checks (ADC PR #258), so the merged tree is the treebuild-and-testran on (rationale atdeploy.yml:1209-1213) and no code deploy reaches production with zero test execution, including the backend-only deploys the UI-scopede2e-gateskips.- Remediation: For §28's 9→10 rung: pixel visual regression, a wider snapshot slice than 12 components, and a browser tier that does not skip on backend-only deploys (the UI-scoping is recorded as a deliberate Actions-minute trade-off under the backlog's Deliberate and accepted).
- Expected: §28 impl 9→10.
Scorecard
| # | Category | Weight | Maturity (0-4) | Impl (0-10) | Weighted (M·w / I·w) | Evidence / Notes |
|---|---|---|---|---|---|---|
| 1 | SOLID Principles | 3 | 4 | 9 | 12/27 | SRP/OCP/DIP exemplary and machine-enforced: tiny cohesive handlers, Strategy for variation, abstraction-only injection (including TimeProvider over ambient DateTime.UtcNow in RefreshFromSessionizeHandler/AuthenticationService), architecture fitness layer rules gated in CI; narrow ISP interfaces; an LSP fitness test fails the build on any override or interface implementation that throws NotSupportedException/NotImplementedException (Tests/Architecture/MMCA.ADC.Architecture.Tests/Governance/SubstitutabilityTests.cs:9, a subclass of the shared base). Minor LSP/ISP nuances (a few Delete() overrides) keep it off 10. Evidence: Conference.Application/Events/UseCases/Publish/PublishEventHandler.cs:14-15 (ctor = IUnitOfWork+ILogger only); Conference.API/Controllers/Events/EventQuestionAnswersController.cs:82-89 (injects handlers/IEntityQueryService<>, never repos); .../RefreshFromSessionize/{ISessionizeSyncStrategy,SpeakerSyncStrategy}.cs (per-entity Strategy, no growing switch); a ctor-dependency-ceiling fitness function Tests/Architecture/MMCA.ADC.Architecture.Tests/Cqrs/ConstructorDependencyCountTests.cs (service ceiling 9 with AuthenticationService at the 9 high-water mark, :6, :36; controller ceiling 9, :59; handler ceiling 7, :68) |
| 2 | Design Patterns | 2 | 4 | 9 | 8/18 | Creational (entity factories/Options), structural (decorator pipeline, manual mapper adapter, gRPC adapters), behavioral (Strategy, dispatcher, Specification, domain events), and domain patterns (Result, Repository/UoW, Outbox) all present, idiomatic, ADR-justified, consistently named. Evidence: Identity.Domain/Users/User.cs:218 (Factory Create to Result<User>); Conference.Application/Events/Specifications/PublishedEventSpecification.cs:11,14 (read scoping: the BR-108 published-only criteria applied for non-organizer readers on public endpoints); exactly 5× {Category,Room,Speaker,Session,Question}SyncStrategy.cs |
| 3 | Clean Architecture | 3 | 4 | 9 | 12/27 | Dependency rule inward-pointing, domain framework-pure, ports in Application/adapters in Infrastructure, rules enforced automatically by architecture fitness tests gated in CI: textbook; only the rich per-layer project sprawl keeps it shy of 10. Evidence: Tests/Architecture/MMCA.ADC.Architecture.Tests/Layering/{LayerDependencyTests,DomainPurityTests,MicroserviceExtractionTests}.cs (thin sealed subclasses of the shared MMCA.Common.Testing.Architecture rule library, ADR-015, Domain free of App/Infra/API references and App free of Infra/API references per module, domain framework-purity, transport-at-edge; all in MMCA.ADC.CI.slnf) |
| 4 | Domain-Driven Design | 3 | 4 | 9 | 12/27 | Rich Result-returning factories with combined invariants (User.cs:227), domain events raised by the aggregates (User.cs:465, Event.cs:224,:296), child collections encapsulated behind IReadOnlyCollection (Event.cs:92,:98,:112), and the newest aggregate exemplary (alias-typed ID references only, invariants, Result factory, event in the same transaction: Engagement.Domain/CheckIns/CheckIn.cs:89). MMCA.ADC.Conference.Domain has zero public setters (get; set; } returns no match), and the object navigations beside the by-ID references are private-set (Session.cs:71,:75, Activity.cs:58, Sponsor.cs:49). Event.OrganizerContactEmail is the shared Email value object (public Email? OrganizerContactEmail { get; private set; }, Event.cs:59, private constructor :121, the same shape as Speaker.cs:41,:126), and Event.Create (:170, Email.Create at :190) and Event.Update (:249, :268) return its invariant failure before touching the aggregate. Tenancy is met by decision: ADR-073 records ADC as single-tenant (073-multi-tenancy-model.md:255), and no AddMultiTenancy appears in ADC source. Held below 10: SponsorshipPacketUrl and TicketingUrl are assigned unchecked (:293-294; the Result.Combine at :196 and :274 validates only name/timezone/date range) while their absolute-URL and length rules live in the Application layer as EventSponsorshipPacketUrlRules / EventTicketingUrlRules (EventValidationRules.cs:135,:155, composed at :243-244), against the repo's own Sponsor.Create convention (Sponsor.cs:105); the private-set object navigations remain. Maturity 4: Tests/Architecture/MMCA.ADC.Architecture.Tests/Domain/EntityConventionTests.cs:3 + Domain/ImmutabilityTests.cs:3 (sealed subclasses of the shared bases; EntityConventionTestsBase.cs:10 enforces Result-returning factories, no public aggregate constructors, sealed Domain-resident entities and non-public setters) over AdcArchitectureMap.cs:28,:36,:44 (Identity, Conference, Engagement; Notification ships no Domain assembly by design, :9), gating CI via MMCA.ADC.CI.slnf:62 + deploy.yml:448 |
| 5 | Vertical Slice Architecture | 2 | 4 | 8 | 8/16 | Within Application, features are genuine cohesive slices (command+validator+handler+DTO together, low inter-slice coupling, pipeline-handled cross-cutting), and slice cohesion is machine-enforced: ADC subclasses the shared SliceCohesionTestsBase fitness function (MMCA.Common.Testing.Architecture), which fails the build if a handler/validator is stranded from its same-assembly contract (ArchitectureRules.Slices.cs:40,72), over all four modules (AdcArchitectureMap.cs:12-54), in MMCA.ADC.CI.slnf so it gates every push/PR (the rubric's M4 "enforced automatically by tests/CI"). Held at 8: the solution is deliberately layered-by-project Clean Architecture, so a feature spreads Domain/Application/Infrastructure/API across assemblies (a conscious hybrid), and a new use case edits the per-aggregate controller plus the module's EF configuration rather than only adding a slice; the rubric's first §5 criterion also wants the DTO inside the slice, while ADC's DTOs live in the Shared assembly (Conference.Shared/Events/EventDTO.cs) with their mappers in a horizontal Application/Events/DTOs/, beside horizontal Validation/, Specifications/ and DomainEventHandlers/ folders. Two cross-slice internal calls (RemoveUserAvatarHandler into SetUserAvatarHandler.TryGetBlobName, GetNowNextHandler into CalendarExportMapper) are a rubric red flag that rules out the 9 band. Evidence: Tests/Architecture/MMCA.ADC.Architecture.Tests/Cqrs/SliceCohesionTests.cs:8; MMCA.ADC.CI.slnf:62; deploy.yml:448 (the arch gate executes the filter); ArchitectureRules.Slices.cs:40,72; AdcArchitectureMap.cs:12-54; Conference.Application/Events/UseCases/AddEventQuestionAnswer/; Application/{Aggregate}/UseCases/{Operation}/ uniform across modules |
| 6 | CQRS & Event-Driven | 2 | 4 | 9 | 8/18 | Commands (Result, ITransactional) and queries cleanly separated via a documented, enforced decorator pipeline; outbox gives atomic persist-then-publish with smart-wait/retry/dead-letter; the integration-event wire contract is frozen by a CI fitness function; events carry a Common-supplied SchemaVersion. Consumer idempotency is infrastructure-backed (EfInboxStore dedup) via EnableInbox=true on all four services (Conference/Identity/Engagement/Notification, appsettings.json). Held at 9, not 10: the versioning path is present-but-unexercised (SchemaVersion is virtual ... => 1, no event has a v2), and the genuine broker round-trip covered by MMCA.ADC.CrossService.IntegrationTests runs only in a non-gating nightly (cross-service-tests.yml) whose recency is enforced by a cross-service-freshness deploy check rather than the tier itself gating. Evidence: Tests/Architecture/MMCA.ADC.Architecture.Tests/Contracts/IntegrationEventContractTests.cs:11-28 (frozen contract, CI-gated via MMCA.ADC.CI.slnf:62); EnableInbox=true on all four service appsettings.json (Identity/Conference/Engagement/Notification); Common BaseIntegrationEvent.cs:32 (SchemaVersion virtual, default 1); Common OutboxProcessor.cs; ADR-003 |
| 7 | Microservices Readiness | 3 | 4 | 8 | 12/24 | Service boundaries align with bounded contexts, each owns its own DB (no shared writable schema), integration async-via-outbox + sync-via-versioned-gRPC, resilience a CI-enforced invariant, transport-at-edge keeps modules extractable/reversible, and the enforced map covers all four services (AdcArchitectureMap.cs:51-54). Held at 8: the synchronous call graph has ten typed gRPC clients across the four *.Contracts assemblies (Conference.Contracts/DependencyInjection.cs:46,:76,:104, Engagement.Contracts/DependencyInjection.cs:48,:81,:110, Identity.Contracts/DependencyInjection.cs:44,:74, Notification.Contracts/DependencyInjection.cs:51,:87) with three bidirectional pairs, Conference↔Engagement, Engagement↔Identity (Engagement.Service/Program.cs:223, Identity.Service/Program.cs:304,:307) and Identity↔Notification, plus a three-node Conference→Engagement→Notification→Conference call loop, over ten .proto contracts frozen by the snapshot fitness test (documented, self-healing via the resilience pipeline; the AppHost deliberately omits the reciprocal WaitFor on four edges, AppHost/Program.cs:259). That is the rubric's named red flag (ArchitectureEvaluationCriteria.md:266). Independent deployability is met in the build, not the release: images are built incrementally per deployable, but all six ship on one github.sha tag through one main.bicep deploy and a smoke failure rolls back the fleet, recorded as accepted in the backlog. The rubric v2 "modernization patterns named" criterion (:263) is met in the ADRs: each *.Contracts gRPC adapter is named the module's Anti-Corruption Layer (../adr/007-grpc-extraction.md:33) and extraction follows the Strangler Fig route (../adr/008-service-extraction-topology.md:60). The Conference→Engagement half of the bidirectional pair, the bookmark-count read, is one batched call cached 60 s with broker-driven eviction (Conference.Service/Program.cs:205-216) and is recorded as accepted in the backlog. Evidence: ADR-008/006/007; ProtoContractTests.cs:11-20 (ten frozen protos); Tests/Architecture/MMCA.ADC.Architecture.Tests/Layering/MicroserviceExtractionTests.cs (transport-at-edge guard, thin subclass of the shared rule library) |
| 8 | Data Architecture | 3 | 4 | 9 | 12/27 | Transaction boundaries match aggregates (UoW + per-source best-effort), soft-delete + audit + RowVersion concurrency applied centrally by convention and locked by a build-time fitness function, migrations versioned/idempotent with a model-drift CI gate, per-service isolation + navigation populators address cross-context joins and N+1. SessionIncludeChildrenRegressionTests.cs:26 proves GET /sessions?includeChildren populates sessionSpeakers, and the E2E-level SpeakerSelfServiceTests.cs second journey is an active [Fact] at :78. ADC opts into Common's cross-source SpecificationConventionTests (the polyglot safety gate, ADR-018) while routing all entities to SQL Server with the framework extension points kept (every appsettings Cosmos/SQLite connection string is empty; AppHost uses WithSQLServerDataSource for all four modules). The optimistic-concurrency round-trip is implemented and deploy-gated across Conference and Engagement (If-Match conditional endpoints on LivePoll open/close, Engagement.API/Controllers/LivePollsController.cs:86, and on question approve/dismiss/mark-answered, SessionQuestionsController.cs:136, with the RowVersion override in OpenLivePollHandler.cs:36); Identity exposes none. Held at 9 by decision (a proposed 9→8 on the analytical-separation criterion is not taken): the rubric v2 criterion "analytical reads separated from OLTP" (ArchitectureEvaluationCriteria.md:289) is unmet, the CSV export streaming off the transactional store under ADR-078's page loop and row cap (../adr/078-csv-export-endpoint.md:81) with no replica, CDC or recorded no-analytics decision, which is the named 9→10 lever; and SessionScoringRunner.cs:169 issues ExecuteDeleteAsync outside the SaveChangesAsync unit of work (mitigated by a unique filtered index). Tenant isolation is decided by ADR: ADC is single-tenant (../adr/073-multi-tenancy-model.md:255). Evidence: Conference.Shared/Events/EventDTO.cs:16,52 (RowVersion token via IConcurrencyAware), Conference.Application/Events/UseCases/Update/UpdateEventHandler.cs:34 (the RowVersion(...) base-class override), Tests/Integration/MMCA.ADC.Conference.IntegrationTests/Organizer/OrganizerConcurrencyTests.cs:43 (stale token→412 Precondition Failed, missing token→428, ADR-035, in the deploy-gating Integration.slnf); deploy.yml:315-364 (expand/contract migration guard, fails closed, in the required build-and-test job listed at CONTRIBUTING.md:38), :534 (EF model-drift gate); Common ApplicationDbContext.cs:302 (audit-stamping SaveChangesAsync), :602 (ApplySoftDeleteFilters), :737 (ConfigureConcurrencyTokens); ConcurrencyConventionTests.cs; SpecificationConventionTests.cs (cross-source gate, active) |
| 9 | API & Contract Design | 2 | 4 | 8 | 8/16 | Consistent resource shapes via the shared base controller, header-based versioning (api-version through a HeaderApiVersionReader, MMCA.Common/.../Startup/WebApplicationBuilderExtensions.cs:48, with ReportApiVersions set framework-side at :47) on all 52 module controllers (Conference 26, Identity 16, Engagement 10), standardized RFC 9457 errors guarded by ProblemDetailsContractTestsBase.cs:74, edge validation, manual DTO decoupling (ADR), uniform pagination/sorting/filtering (X-Pagination emitted by SpeakersController.cs:201 and SessionsController.cs:209), OpenAPI served per service at /openapi/v1.json, four committed per-service OpenAPI documents behind a drift gate (deploy.yml:387-403), and a real deprecated-v1.0 / v2.0 pair on ServiceInfoController.cs:18-19 proven by the CI-gated ApiVersioningTests.cs:14. Breaking-change baseline: all four services opt into the shared base's baseline diff against a committed Contract/openapi-baseline.json (Conference Tests/Integration/MMCA.ADC.Conference.IntegrationTests/Contract/OpenApiContractTests.cs:29, Identity :39, Engagement :30, Notification :31; opt-in documented at OpenApiContractTestsBase.cs:21-28, used at :149), and the base fails on any breaking change the detector classifies: a removed path, operation or response status, a newly required request property, a removed response property, a changed type, the operation parameters (CompareParameters, MMCA.Common/Source/Hosting/MMCA.Common.Testing/Conformance/OpenApiBreakingChangeDetector.cs:260, called at :103: a removed, newly required or added required parameter and a parameter type change) and the request body (:326: a removed body, a newly required body, a removed request media type at :366-371), inside the required integration-tests check (deploy.yml:894-1079). Held at 8 on the rubric v2 criterion "contract tests at the boundary" (ArchitectureEvaluationCriteria.md:316): the async half of the criterion has no AsyncAPI or equivalent published document, the nine integration events being frozen byte-exactly inside Tests/Architecture/.../Contracts/IntegrationEventContractTests.cs:11-28, which the backlog records as Deliberate and accepted (no external event consumers), and versioning is a single header scheme whose strategy is owned by Common (WebApplicationBuilderExtensions.cs:48). The baseline is regenerated in the pull request that changes the contract rather than ratcheted against Source/Services/*/openapi/*.json (the ratchet is declined, Deliberate and accepted). The implementation lever is not yet identified. Maturity 4: the discipline is machine-enforced inside two server-required merge gates, integration-tests running MMCA.ADC.Integration.slnf:5 (CONTRIBUTING.md:41, branch-protection context at :103) and build-and-test running the arch tier (MMCA.ADC.CI.slnf:62, deploy.yml:448). Evidence: EventsController.cs:46 (ApiVersion); [Range] paging bounds on the sibling EventQuestionAnswersController.cs:169-170 |
| 10 | Messaging & Integration Architecture | 3 | 3 | 8 | 9/24 | Strong substance: the inbox dedups at-least-once delivery (Common IntegrationEventConsumer.cs:93) and is on by default for a broker (Common MessageBusSettings.cs:142), a failing message gets in-process retries with exponential backoff bounded at 5 (Common MessageBusSettings.cs:94) and then three scheduled redeliveries (60 s, 600 s, 3600 s, :190) before it lands in the host queue's dead-letter sub-queue (infra/OPERATIONS.md:255-258), events carry versioned wire names (Identity.Shared/Users/IntegrationEvents/UserRegistered.cs:37), a frozen contract snapshot gates CI, the Service Bus emulator parity tier (.github/workflows/cross-service-tests.yml:148) gates deploys through cross-service-freshness (deploy.yml:1284), gateway route-map tests are in MMCA.ADC.CI.slnf:63, and outbox dead-letter retention is 30 days in production (infra/main.bicep:2380, set on each service app). Broker faults are wired to alert-as-code: the brokerDeadLetterAlert metric rule (infra/main.bicep:778) fires on the namespace DeadletteredMessages metric over the three host queues, beside the outbox-dead-letter rule (infra/main.bicep:665), and infra/OPERATIONS.md:249 is the broker dead-letter runbook (inspect, replay at :325, discard) beside the outbox dead-letter runbook (:198); the procedure is recorded in that runbook, while ADR-087 still describes the earlier error-queue procedure. The Service Bus topology (topics, queues, subscriptions) is declared in IaC, with queue and topic message time-to-live set to never and dead-lettering on expiration on the queues (infra/main.bicep:1544, :1588-1598, :1609-1637). Cross-cutting concerns (validation, logging, transactions, caching, resilience, mapping, config) are centralized via decorators, shared middleware and typed startup-validated options (Common Application/DependencyInjection.cs:152-167, Common Infrastructure/DependencyInjection.cs:60-246; cache eviction runs through [EvictOutputCache] on the write actions, EventsController.cs:172,:195,:231, which evicts only on a 2xx final status, Common EvictOutputCacheAttribute.cs:89-96; ADR-001). Why Implementation 8: (1) no compensating saga handler or reconciliation sweep exists (ADC has two compensating steps, not a saga) (../adr/054-saga-compensation-and-reconciliation.md:248-249); (2) replay is manual, an operator step in the broker dead-letter runbook (infra/OPERATIONS.md:325); (3) infra/OPERATIONS.md states no retention period for broker messages: the IaC sets their time-to-live to never (infra/main.bicep:1544), and a stated retention exists only for outbox dead-letter rows. The frozen contract snapshot spells out generic arguments (SessionId:Nullable<Int32>, Tests/Architecture/MMCA.ADC.Architecture.Tests/Contracts/IntegrationEventContractTests.cs:17) and is keyed by the [EventName] wire identity (Common ArchitectureRules.Events.cs:66,:94-101), every integration event must declare that name (Common Bases/Contracts/EventConventionTestsBase.cs:21, rule at ArchitectureRules.Events.cs:33-40, inherited by Tests/Architecture/MMCA.ADC.Architecture.Tests/Contracts/EventConventionTests.cs:3), and AGENTS.md:90 documents the emulator tier as authoritative. SpeakerLinkedToUserHandler.cs:66 drops a Linked event that occurred at or before the User.SpeakerLinkChangedOn ordering stamp (rationale :27-31), and SpeakerUnlinkedFromUserHandler.cs:62 guards the stale direction too (an unlink drops only strictly older events; a tie goes to the unlink, User.cs:505-508). Why Maturity 3: most criteria are CI-enforced, but the broker round-trip tier runs on a weekday schedule (cross-service-tests.yml:32) and reaches the deploy only through the cross-service-freshness recency gate (deploy.yml:1284), not as a merge gate. Levers: the broker round-trip inside a merge gate (maturity 3 to 4); the implementation lever is not yet identified |
| 11 | Security | 3 | 4 | 7 | 12/21 | Authn/authz substance is strong: algorithm-pinned RS256/JWKS issuance with no shared key for user tokens (Identity.Service/Program.cs:117, the composed host's TokenIssuer mode) and AddForwardedJwtBearer on the other three hosts; capability-based authz layered on roles via AddPermissions (Conference.API/DependencyInjection.cs:45) with a real ContentEditor subset (Conference.Shared/Authorization/ConferencePermissionGrants.cs:54) and [HasPermission] on the Conference/Identity endpoints; server-side owner-vs-Organizer scoping (Engagement.API/.../BookmarksController.cs); every prod secret in RBAC Key Vault, ACR pulled without admin credentials; parameterized EF with the RawSql/RawQueryable/Pii convention tests. Service-to-service authentication by identity holds on eight of the ten gRPC surfaces (LiveChannelGrpcService requires the ServiceCaller policy, Notification.Service/Program.cs:160); BookmarkCountsGrpcService (Engagement.Service/Program.cs:262) and EventLiveValidationGrpcService (Conference.Service/ConferenceGrpcEndpoints.cs:40, rationale :30-39, with "a fresh token at join" recorded as the follow-up) stay AllowAnonymous and trusted by network position behind the internal-only ingress. Maturity 4 on gate evidence: the allowlist anonymous-endpoint fitness function (Tests/Architecture/MMCA.ADC.Architecture.Tests/Api/AnonymousEndpointTests.cs:23,:35) and the Gateway header-regression project are in the CI filter (MMCA.ADC.CI.slnf:62,:63); the supply-chain job fails on any unsuppressed vulnerable package and on an empty CycloneDX SBOM and sits in deploy.needs (deploy.yml:727,:791,:806,:1574); the authz integration matrices gate every PR. The Semgrep static scan runs on pull requests but is not a required check (deploy.yml:852-853, job at :858). Why 7 (the rubric v2 criteria and red flags, ArchitectureEvaluationCriteria.md:365-374, ADR-110; the 7-8 band needs no significant red flag, :59): (1) secret access is not least-privilege: all six deployables, the public Gateway and UI included, read the whole Key Vault, which holds the RS256 signing key, through one shared managed identity (infra/main.bicep:2138); (2) the hardening that would fix it ships switched off: per-app identities (usePerAppIdentities, default false, infra/main.bicep:39), Entra-only SQL sign-in (:42, resource :1250), Entra auth for Redis and Service Bus with keys off (:45, :51) and the key-ring storage account's shared-key switch-off (storageAllowSharedKeyAccess default true, :161) are parameters read from repository variables by the deploy (deploy.yml:1663-1674), and only USE_MANAGED_IDENTITY_SQL is set, so Redis, Service Bus and the key-ring storage account still authenticate by key; (3) no threat model exists in the repo, an explicit rubric red flag, and committing one is deliberately not scheduled (TD-26); (4) a Google/FCM client API key is committed in Source/Hosts/UI/MMCA.ADC.UI/appsettings.json:54 (deliberate per Docs/MobileReleaseRunbook.md:101-103, a public client identifier, minor). App-to-database auth is passwordless managed identity in production; the SQL data plane keeps publicNetworkAccess: 'Enabled' (infra/main.bicep:1213) plus the AllowAzureServices 0.0.0.0 firewall rule (:1221), documented-accepted in infra/SQL-MANAGED-IDENTITY.md until the VNet epic. Tenant-scoped authorization is met by statement: ADC is single-tenant (ADR-073). The two anonymous gRPC surfaces are documented-accepted |
| 12 | Performance & Scalability | 2 | 3 | 9 | 6/18 | Uniform async (zero sync-over-async in ADC Source; the single regex hit is a doc-comment cref at Conference.UI/Services/Events/SessionizeRefreshOutcome.cs:8), server-side paging + AsNoTracking + output caching on hot read paths, Polly resilience, and a k6 load test sized to measured conference peak rather than guesswork. Scale substance: Azure Managed Redis is the shared distributed cache, every app scales minReplicas: 1 / maxReplicas: 2 outside conference mode (infra/main.bicep:2582,:2741,:2893,:3088,:3240-3241,:3391-3392, defaults at :213-214; the hub's cross-replica fan-out is proven by Tests/Integration/MMCA.ADC.CrossService.IntegrationTests/CrossService/TwoReplicaHubFanOutTests.cs:47), every service publishes ReadyToRun, and the Conference output cache is Redis-backed with cross-process invalidation: UseRedisOutputCaching = true (Source/Services/MMCA.ADC.Conference.Service/Program.cs:129, applied by the composed host's AddRedisOutputCaching, Common ServiceHostBuilderExtensions.cs:94), an L1/L2 HybridCache when Redis is present (Common ServiceHostBuilderExtensions.cs:97), a deny-by-default base policy (:114) and AddOutputCacheEvictionHandler (Program.cs:280) consuming OutputCacheEvictionRequested so writes evict tags in about a broker round trip with TTL as the backstop. The client-side half is measured: the WebVitalsTests Playwright tier (Tests/E2E/MMCA.ADC.E2E.Tests/Workflows/WebVitalsTests.cs:32) captures LCP/CLS/FCP/TTFB (plus a single-interaction INP sample) on /, /conference/events and /login and asserts them as hard budgets inside the deploy-gating chromium e2e-gate. The capacity proof measures the deployed topology: load-test.yml run 35013811738 (workflow_dispatch) concluded success with the thresholds http_req_failed rate<0.01 and http_req_duration p95<800 ms (Tests/Load/k6/conference-read-load.js:56-57) holding on the 0.25 vCPU / 0.5 Gi services (infra/main.bicep:204, :208, applied at :2356,:2634,:2784,:2950,:3148,:3299); the 67-VU default (the observed peak) applies to manual dispatch, and the scheduled run loads 40 VUs (load-test.yml:94). Backpressure is configured rather than left to provider defaults (ArchitectureEvaluationCriteria.md:390): MessageBus:PrefetchCount 16 / ConcurrentMessageLimit 8 in all four service appsettings (Conference.Service/appsettings.json:76-77, Engagement :88-89, Identity :61-62, Notification :100-101), and the pinned framework resolves both knobs, only when greater than zero, in Common BrokerTransportPolicies.cs:85,:98, applied by the receivers of both broker transports ADC runs (MMCA.Common.Azure/Messaging/AzureServiceBusReceiver.cs:88-89, RabbitMq/RabbitMqBrokerTransport.cs:95,:105). Held at 9, not 10: the Conference UI services do not opt into IUiReadCache (zero occurrences in ADC Source; the opt-in caused e2e-gate staleness failures), so the UI read tier is uncached by deliberate choice. Maturity 3, held by decision: the k6 tier executes on a monthly cron plus dispatch only (load-test.yml:23), never inside the deploy chain, and load-freshness gates on the age of the last successful run rather than on execution (deploy.yml:1263, window-days: '35' at :1272, break-glass skip at :1274, in deploy.needs at :1574), so a provisioning change under a still-fresh proof triggers nothing. An in-band proof would load production on every deploy at a ~67 peak, so the monthly run plus load-freshness is the accepted posture (recorded in the backlog's Deliberate and accepted). Evidence: Tests/E2E/MMCA.ADC.E2E.Tests/Workflows/WebVitalsTests.cs:32; Tests/Load/k6/conference-read-load.js:56-57; .github/workflows/load-test.yml:23,:94; deploy.yml:1263,:1272,:1274,:1574; infra/main.bicep:204,:2582; Source/Services/MMCA.ADC.Conference.Service/Program.cs:129,:133,:280; Source/Services/MMCA.ADC.Conference.Service/appsettings.json:76-77; MMCA.Common.Infrastructure/Messaging/Transports/BrokerTransportPolicies.cs:85,:98 |
| 13 | Observability & Operability | 2 | 4 | 9 | 8/18 | Structured logging + OTel traces/metrics with correlation, liveness/readiness probes driving ACA, workspace App Insights, codified SLO alerts + action group + cost budget in IaC, deliberate telemetry noise/cost control, an Azure Monitor SLO workbook (dashboard) in IaC (infra/main.bicep:1143) and a dedicated per-alert Operations Runbook (infra/OPERATIONS.md:15 per-alert triage for failed-requests/response-time/dependency-failures, :891 recovery moves). Maturity 4: ObservabilityConventionTests embeds infra/main.bicep + infra/OPERATIONS.md as manifest resources (MMCA.ADC.Architecture.Tests.csproj:25-30) and fails the build when any sloAlertSpecs entry lacks a severity-correct runbook section or a runbook section is orphaned (ObservabilityConventionTests.cs, a sealed subclass; the four [Fact]s live in MMCA.Common.Testing.Architecture/Bases/Governance/ObservabilityConventionTestsBase.cs), with a minimum-spec floor of 6 keeping the parse non-vacuous (ObservabilityConventionTests.cs:14, over the base default of 3 at :39; corrected 2026-10-19); the test runs in the CI.slnf arch gate (MMCA.ADC.CI.slnf:62, executed by deploy.yml:448, gating deploy via the required PR checks + deploy.yml:1571). Held at 9, not 10 (as scored 2026-10-18): the hold rested on enabled production alerts with no runbook triage section, including the single severity-1 gateway-availability alert. Corrected 2026-10-19, score not re-assessed: that premise no longer holds. All fifteen alerts outside sloAlertSpecs carry a #### triage section (infra/OPERATIONS.md:177; gateway availability at :693, the security-signal rules added in the 2026-10-19 drift wave at :580 and :640), so the hold is for the next re-score to revisit. Evidence: MMCA.Common.Aspire/Extensions.Telemetry.cs:310,:83 (MMCA.Common.Outbox meter + telemetry source), Extensions.Health.cs:154,:158,:174-175 (/health + /alive + /health/ready split; all consumed via AddServiceDefaults()); infra/main.bicep:285 (workspace App Insights), :387 (action group), :439 (sloAlertSpecs, the gate's parse surface), :541 (the SLO alerts loop), :1105 (the sev-1 gateway-availability alert, severity: 1 at :1110, outside the gate, triage at infra/OPERATIONS.md:693), :1143 (SLO workbook), :1164 (monthly cost budget); infra/OPERATIONS.md:1 |
| 14 | Testability & Test Strategy | 3 | 4 | 9 | 12/27 | Healthy non-inverted pyramid: 4737 unit/UI/service [Fact]/[Theory] across 664 files in the non-architecture CI.slnf test projects (including the headless MMCA.ADC.Gateway.Tests tier, SecurityHeaders + GracefulShutdown); 84 architecture test classes (86 .cs files), most inheriting their rule bodies from the shared MMCA.Common.Testing.Architecture bases via thin sealed subclasses (including DataResidencyTests/ConstructorDependencyCountTests/BrandColorTokenTests and ObservabilityConventionTests, the §13 alert-runbook pairing gate), plus 39 ADC-local [Fact]/[Theory] methods; 503 gating integration methods across four per-service WAF tiers (Identity 108 / Conference 260 / Engagement 109 / Notification 26), plus 11 CrossService broker round-trip tests (Testcontainers RabbitMQ+SQL, weekday cross-service-tests.yml, not a merge gate); shared E2E infra; deterministic CI gates. The integration tier gates every deploy. A 55.5% unit-tier line-coverage floor on ADC's own code hard-fails the required PR check build-and-test (PR-only, deploy.yml:306; floor at :488 inside the enforcement step at :460-490); the measured filter excludes the service hosts and the protobuf-generated contracts assemblies, which are integration-tier subjects (52.8% raw vs 62.5% filtered on the same run, deploy.yml:470-474, filter at :486). The chromium E2E suite gates deploy via the e2e-gate job. Held at 9, not 10: the genuine broker round-trip is non-gating nightly and the SQL integration suite runs only in CI (not headless-verifiable). Evidence: Tests/Architecture/MMCA.ADC.Architecture.Tests/; Tests/Integration/MMCA.ADC.{Identity,Conference,Engagement,Notification}.IntegrationTests + MMCA.ADC.CrossService.IntegrationTests; deploy.yml:1574 (deploy needs [changes, supply-chain, cost-guard, freshness, e2e-gate, ai-eval-gate, foundation, build-images]; build-and-test/integration-tests/coverage gate as required PR checks), :488 (coverage floor 55.5%, gating); e2e.yml (workflow_call + alternating nightly legs); cross-service-tests.yml (weekday-nightly, the servicebus-emulator-smoke job authoritative since 2026-08-31 per its comment at :122, while the file header at :4, :12 still calls the tier non-gating, deploy-gated through cross-service-freshness) |
| 15 | Best Practices & Code Quality | 2 | 4 | 8 | 8/16 | Enforcement is genuinely strong: five analyzers at error severity repo-wide (Directory.Build.props:151-172), warnings-as-errors (:51), AnalysisLevel/AnalysisMode=All (:52-53), CodeAnalysisTreatWarningsAsErrors (:54), EnforceCodeStyleInBuild (:55), blanket dotnet_analyzer_diagnostic.severity = error (.editorconfig:314), central package management with committed lock files (Directory.Build.props:76), consistent Result-pattern error handling, hand-written pragma disables in Source/, most with an inline reason (LiveEventListener.razor.cs:130) and two bare (S1075 at ADCHome.razor.cs:33, CA1822 at Platforms/iOS/AppDelegate.cs:47, reasoned in the comment above it), and a Justification on all sixteen in-source SuppressMessage attributes (e.g. Identity.Domain/Users/User.cs:112), all enforced by the required build-and-test Release build with a --locked-mode restore (deploy.yml:379) and the gating suppress-aware vulnerable-package audit (:791-804), both required per CONTRIBUTING.md:85-86. Suppression hygiene: Directory.Build.props (330 lines) carries no NuGetAuditSuppress item: the restore-time NuGet audit runs in all mode (:83-84) with nothing waived; SSH.NET needs no pin or suppression: it resolves transitively at the patched 2026.0.0 (Tests/Hosts/MMCA.ADC.Gateway.Tests/packages.lock.json:924-926), and Directory.Packages.props carries no SSH.NET entry. NoWarn hygiene: the global NoWarn line is three codes, CS1591;S8970;S3881 (:71), each with a justification immediately above it (:57-62, :63-66, :67-70; the S8970 and S3881 blocks carry no review date), and RMG020 sits in an .Application-scoped PropertyGroup (:115, rationale :108-113) rather than on the global line. The test-tier sets are central too: suffix-conditioned PropertyGroups with per-code reasons (:98-106, :117-139), so no test csproj declares <NoWarn>; the only csproj that declares NoWarn is the MAUI head (CsWinRT1032 at MMCA.ADC.UI.csproj:81, CA5392 at :181). MAUI head (TD-18): MMCA.ADC.CI.slnf lists only the web heads (UI.Web :25, UI.Web.Client :26); the weekly .github/workflows/maui-audit.yml (Sunday cron, :43) builds MMCA.ADC.UI for net11.0-android (:67) in Release with the repo's analyzers and TreatWarningsAsErrors (:190, :204) beside its suppress-aware vulnerable-package audit, as a scheduled detector in no deploy.needs, with no per-PR leg. Held at 8: the MAUI head's analyzers, TreatWarningsAsErrors and its own NoWarn CA5392 are checked weekly rather than on the pull request, while the gating vulnerable-package scan (deploy.yml:802) is CI.slnf-scoped; and the shared .editorconfig baseline sets 137 diagnostics to severity none (from .editorconfig:321, above the repo-specific marker at :798), beside a few non-generated pragma disables such as the DEBUG-only certificate-validation bypass (MauiProgram.cs:200, with a reason). The implementation lever is not yet identified. Evidence: Directory.Build.props:51,:52-53,:54,:55,:57-62,:63-66,:67-70,:71,:76,:83-84,:98-106,:108-115,:117-139,:151-172; .editorconfig:314; Directory.Packages.props:143-198 (the MMCA.Common.* pin range); MMCA.ADC.CI.slnf:25,26; deploy.yml:379 (--locked-mode restore on the gating build), :791-804 (the audit step), :802 (the CI.slnf-scoped vulnerable-package scan); maui-audit.yml:43,:67,:190,:204; .editorconfig:321; CONTRIBUTING.md:85-86 |
| 16 | AI-Native Application Architecture | 2 | 4 | 9 | 8/18 | Scored because organizer-facing AI session scoring calls a model in production (commit 5c082663; applicability rule ArchitectureEvaluationCriteria.md:473). Every criterion the feature exercises is met at the pipeline boundary, with no red flag. (1) Model calls behind a port (:476): IAiScoringService is an Application interface with no SDK type (Source/Modules/Conference/MMCA.ADC.Conference.Application/Sessions/UseCases/DecisionSupport/ScoreEventSessions/IAiScoringService.cs:6), the adapter, prompt and PromptContract are Infrastructure over the framework's governed IChatClient (Source/Modules/Conference/MMCA.ADC.Conference.Infrastructure/Sessions/Scoring/SessionScoringService.cs:57, :94), and AiDependencyIsolationTests (Tests/Architecture/MMCA.ADC.Architecture.Tests/Layering/AiDependencyIsolationTests.cs:14, in the PR-gating MMCA.ADC.CI.slnf:62) fails the build if the SDK or MMCA.Common.AI reaches a layer outside Infrastructure. (2) Prompt and model versioning (:477): a dated PromptVersion (SessionScoringService.cs:85) SHA-256-pinned against a recorded hash of the rendered prompt, so a bump without a recorded hash fails (PromptContractTests.cs:55) and a prompt edit without a bump fails (:61), and the model id pinned to ONE source, ModelIdValue (SessionScoringService.cs:64), asserted equal to the deployed Ai:Model (PromptContractTests.cs:155, against Conference.Service/appsettings.json:127). (3) Evaluation gates CI (:478): seven golden cases (Golden/case-*.json) replay through the real service on every PR (MMCA.ADC.CI.slnf:52) plus the deploy-gating ai-eval-gate job (deploy.yml:672), and both evaluation tiers exercise the pipeline the host deploys: BuildGovernedProvider calls AddConferenceAiGuardrails(configuration) (GoldenReplayTests.cs:186, :199), every case asserts GuardrailChatClient is in the resolved chain (:56, :63), and the paid judge composes the same call (LiveJudgeTests.cs:111). (4) Guardrails at the boundary (:479), met on all four halves at the boundary rather than inside the feature: the composition is one list, AddConferenceAiGuardrails(configuration) in Conference Infrastructure DI (Source/Modules/Conference/MMCA.ADC.Conference.Infrastructure/DependencyInjection.cs:90, registering AddPiiRedactionGuardrail() at :100, AddContentPolicyGuardrail(configuration) at :101 and AddSessionScoreResponseGuardrail() at :104), called by the host before AddMmcaChatClient reads the descriptors (Conference.Service/Program.cs:253, :255); output validation is SessionScoreResponseGuardrail.InspectResponseAsync (Source/Modules/Conference/MMCA.ADC.Conference.Infrastructure/Sessions/Scoring/SessionScoreResponseGuardrail.cs:74), refusing a provider refusal, an empty answer, unparseable text and a schema-shaped object missing a sub-score (:41, :44, :50), scoped to the scoring call by the prompt name read off the contract (:63, against SessionScoringService.PromptName at SessionScoringService.cs:57) so a second AI feature on the same governed client is untouched by it; the input half is the delimited <session_proposal> envelope with angle-bracket escaping and an explicit untrusted-input brief (SessionScoringService.cs:279, :294, :350); redaction is a pipeline policy the feature cannot skip (MMCA.Common.AI/Guardrails/PiiRedactionGuardrail.cs:42 implements both IChatRequestRedactor and IChatGuardrail, placeholders at :44-45) and the contact-details golden case asserts the redaction reached the provider rather than merely being registered (GoldenReplayTests.cs:76, :146, :154, :158, keyed on Golden/case-contact-details-in-bio.json at :163); and the content policy the feature cannot bypass is the framework ContentPolicyGuardrail in Redact mode, configured from Ai:ContentPolicy in the deployed settings (Conference.Service/appsettings.json:136, :137; the type implements both halves at MMCA.Common.AI/Guardrails/ContentPolicyGuardrail.cs:147, :168), running inside GuardrailChatClient with no per-call opt-out (MMCA.Common.AI/Chat/GuardrailChatClient.cs:70, :77) under Ai:RequireGuardrail, default true, which makes an enabled host without a prompt-injection guardrail a startup failure (MMCA.Common.AI/AiSettings.cs:122, MMCA.Common.AI/DependencyInjection.cs:215-217). The wiring is pinned: ConferenceAiGuardrailsRegistrationTests asserts exactly three IChatGuardrail and two IChatRequestRedactor registrations by type (Tests/Modules/Conference/MMCA.ADC.Conference.Infrastructure.Tests/Services/ConferenceAiGuardrailsRegistrationTests.cs:80, :90, :98), that calling it twice duplicates nothing (:105, :117, :118), and that an enabled pipeline composes GuardrailChatClient end to end (:123, :139), in a project inside MMCA.ADC.CI.slnf:51, so dropping ONE registration reds a PR. (5) Least-privilege tool calling (:480): AllowTools:false strips tools at the framework boundary (Conference.Service/appsettings.json:130) and the one consequential action, a paid full-event pass, is human-triggered and permission-gated on SessionSelectionManage (SessionSelectionController.cs:35). (6) Retrieval (:481): unexercised and not a deduction: ADC has no vector or hybrid store, the criterion is worded conditionally on one existing, and no red flag names retrieval. (7) LLM observability and cost (:482): mmca.ai.input_tokens, mmca.ai.output_tokens and the mmca.ai.call.duration histogram (MMCA.Common.AI/Observability/AiUsageMeter.cs:29, :32, :45) carry model and prompt-name/prompt-version dimensions (:14-15), mmca.prompt.name/.version/.hash are set as span tags on the governed activity by PromptTaggingChatClient (MMCA.Common.AI/Chat/PromptTaggingChatClient.cs:10, :67), the Conference host subscribes both signals under the one name (Conference.Service/Program.cs:274, :275), and the deployed spend ceiling is the sixth entry inside sloAlertSpecs (infra/main.bicep:525, key at :526, severity 3 at :532, consumed by the alert loop at :541), so the alert-runbook pairing gate parses it against its runbook section (infra/OPERATIONS.md:139) with MinimumAlertSpecs => 6 (Tests/Architecture/MMCA.ADC.Architecture.Tests/Governance/ObservabilityConventionTests.cs:14). Maturity 4: the boundary, the prompt hash, the model-id pin, the golden replay, the guardrail-composition test and the alert-runbook pairing are PR-gating fitness tests, ai-eval-gate is a hard deploy precondition (deploy.yml:1612), the spend ceiling is IaC, and the feature is governed by ADR-111 and ADR-120. Why 9, not 10: no rubric red flag is present (ArchitectureEvaluationCriteria.md:485-:489), but the residuals together are more than the trivial polish ArchitectureEvaluationCriteria.md:60 permits at 10. The versioning gap: the prompt-version hash covers only the system brief plus the user message (RenderPrompt, SessionScoringService.cs:338), not the structured-output schema or the output-token ceiling, although the version's own documentation asks for a bump on any schema change (:78-80), so a schema change can ship without a version bump; and the schema requires reasoning (:396) while AiScoreResponse.IsComplete (AiScoreResponse.cs:63) and BuildResult (SessionScoringService.cs:185) treat it as optional. Four further residuals: (a) the paid live-judge tier is post-merge only, since ai-eval-gate is skipped on pull requests (deploy.yml:674, the judge step at :706) while the replay and contract tiers are PR-covered (MMCA.ADC.CI.slnf:51-:52); (b) Ai:PerCallInputTokenBudget is unset for ADC (the Ai block at Conference.Service/appsettings.json:125-:139 carries no budget entry), so the framework's input-size bound never evaluates (MMCA.Common.AI/Chat/BoundedChatClient.cs:289, setting at MMCA.Common.AI/AiSettings.cs:136) and input size is bounded only by entity max lengths; (c) Ai:ContentPolicy configures only InjectionMode (appsettings.json:136-:137), leaving BlockedResponsePatterns empty (MMCA.Common.AI/Guardrails/ContentPolicySettings.cs:75), so the framework policy's answer half is inert here and the answer side is carried by the scoring guardrail alone; (d) the complete-score-object rule is declared three times (the schema's required list, IsComplete and BuildResult, the copies that disagree on reasoning), so a seventh sub-score means three edits. The Maintainability & Evolvability criteria of rubric v1 are scored under §34, §32 and §33 |
| 17 | DevOps & Deployment | 2 | 4 | 9 | 8/18 | CI gates build/analyzers/unit+arch/integration/model-drift/coverage-floor on every PR, and the supply-chain vuln-audit + SBOM are blocking PR gates; CD fully automated via multi-phase Bicep IaC with OIDC + managed identity (no standing creds); post-deploy smoke gate with revision-copy auto-rollback plus a scheduled cost-drift guard. App→DB auth is passwordless managed identity in production (useManagedIdentitySql=true), so the CD path ships no runtime SQL admin login/password to the apps. Held below 10 only by the deferred-by-design SQL public network access (main.bicep:1213, accepted, no VNet). Evidence: deploy.yml:3-6 (push+PR), :534-549 (model-drift gate), :488 (coverage floor), blocking supply-chain audit+SBOM gates (audit step :791, SBOM step :806; no dependency-licence gate exists), :1574 (deploy needs changes+supply-chain+cost-guard+freshness, whose steps are dr-freshness+load-freshness+cross-service-freshness+cross-browser-freshness, +e2e-gate+ai-eval-gate+foundation+build-images), :1955-2156 (Phase-5 smoke + auto-rollback, with an explicit alarm when a rollback itself fails, :2116), :315 (expand/contract migration guard, since revision rollback does not revert schema), OIDC no standing creds; passwordless MI DB auth active (USE_MANAGED_IDENTITY_SQL is true; main.bicep:1210 SQL admin login as dormant fallback, its password re-sent at :1215 unless Entra-only is effective); azureADOnlyAuthentication is now staged rather than unset: the sqlEntraOnlyAuth resource (main.bicep:1250) sets it only when sqlEntraOnlyAuthentication (:42, default false) is on together with managed-identity SQL and an Entra admin (:1202), and SQL_ENTRA_ONLY_AUTH is not set as a repository variable; main.bicep:1213 public network access + :1221 the AllowAzureServices firewall rule (accepted) |
| 18 | UI Architecture & Components | 3 | 4 | 8 | 12/24 | Maturity 4: UIArchitectureConventionTests.cs:10 (a sealed subclass of the shared UIArchitectureConventionTestsBase) machine-enforces the container/presentational split (code-behind presence and inline @code caps on routable pages), the arch-test project is in MMCA.ADC.CI.slnf:62, and that filter is built and tested by the build-and-test job (deploy.yml:385,:448), a required check on every PR (CONTRIBUTING.md:85-86), meeting the rubric's automatically-enforced bar (ArchitectureEvaluationCriteria.md:39). The split is genuinely disciplined (routable @page components carry .razor + .razor.cs code-behinds; no business logic in markup, data via injected UI services), with typed parameter/EventCallback contracts using EditorRequired, composition via RenderFragment, and heavy reuse of a shared Common.UI base class plus primitives (none of the blob/prop-drilling red flags). Code-behind size against the enforced 400-line cap (unoverridden, UIArchitectureConventionTests.cs:10-12): the high-water mark is SpeakerDashboard.razor.cs at 400 (exactly at the cap), then SessionLive 399, EventDetail 396, CheckInScan 393, ADCHome 384, PublicSessionList 383, HappeningNow 375, SessionFeedback 369, LiveEventListener 360, SessionDetail 358, PublicSessionDetail 352, TicketRosterUpload 351, SessionAssetsPanel 349, SpeakerDetail 348, EventFeedback 341, SessionSelectionDashboard 339, PublicSpeakerList 337, SessionLiveModerationPanel 335, Profile 333, so nineteen files are within 70 lines of the cap; PublicSessionList.razor.cs and SessionFeedback.razor.cs are extracted, into PublicSessionEventCatalog and FeedbackAnswers. Held at 8: presentational sub-component extraction is applied file by file rather than systematically (TD-16, resolution path per the TD-13 pattern). The cap stays at 400 by decision: lowering it to 300 would force twenty-one extractions at once, so only the files near 400 are extracted (backlog Deliberate and accepted). Evidence: Tests/Architecture/MMCA.ADC.Architecture.Tests/Ui/UIArchitectureConventionTests.cs:10 (the section 18 gate); MMCA.ADC.CI.slnf:62 + deploy.yml:448 (gates every PR); Common UIArchitectureConventionTestsBase.cs:22 (MaxCodeBehindLines => 400, MaxInlineCodeLines => 120; no ADC override, UIArchitectureConventionTests.cs:10); Conference.UI/Pages/Speakers/SpeakerDashboard.razor.cs (400, the high-water mark), Engagement.UI/Pages/SessionLive/SessionLive.razor.cs (399); Common DataGridListPageBase.cs:24 (shared abstract base); Conference.UI/Pages/Event/EventList.razor.cs:16,21 (@inherits base, [Inject] IEventUIService, no data access) |
| 19 | State Management & Data Flow | 3 | 4 | 9 | 12/27 | Maturity 4: StateManagementConventionTests.cs:9 (a sealed subclass of the shared StateManagementConventionTestsBase) machine-enforces the two §19 rules: UI assemblies carry no mutable static state (base :28; a static member is shared across every Blazor Server circuit) and stateful *StateService/*StateContainer services stay scoped, never singleton (base :66); the ADC subclass declares no exemptions, and the arch-test project runs in the merge/deploy gate (MMCA.ADC.CI.slnf:62), so the per-circuit ownership model is Optimized (4), the same rationale as §18. Implementation 9: single-source-of-truth state with explicit ownership (component-local vs per-circuit scoped service), zero mutable static user/session fields (machine-proven), unidirectional flow with immutable records, StateHasChanged/InvokeAsync used intentionally, the stale-IsDirty red flag pre-empted via IsDirtyAccessor; PersistentComponentState avoids per-render refetch; the disposed-CTS race is tolerated. Evidence: Tests/Architecture/MMCA.ADC.Architecture.Tests/Ui/StateManagementConventionTests.cs:9 (the section 19 gate); Common StateManagementConventionTestsBase.cs:28,66 (the two rules); MMCA.ADC.CI.slnf:62; Common ListPageStateService.cs:9,101 (per-circuit scoped, immutable record with); Common MMCA.Common.UI/DependencyInjection.cs:216 (TryAddScoped); UnsavedChangesGuard.razor:34; DataGridListPageBase.cs:232-252 |
| 20 | Design System & UI Consistency | 2 | 4 | 9 | 8/18 | Implementation 9 is held by decision over a proposed 9→8. MudBlazor used consistently with a single centralized theme: BrandColors is the one C# source of truth for the palette (MMCA.Common.UI/Theme/BrandColors.cs:26, Secondary #00796B for WCAG 5.3:1), MMCATheme supplies both palettes, the typography scale and border radius (Theme/MMCATheme.cs:56 PaletteDark), and Day/Dark is a real capability wired through @bind-IsDarkMode inside the consolidated MmcaThemeProviders component (Theme/MmcaThemeProviders.razor:14; Layout/MainLayout.razor:17,:49 for the providers and the ThemeToggle), which ADC reuses in its one custom layout (Engagement.UI/Layouts/PresenterLayout.razor:11). The ADC landing page is brand-token-clean: ONE shared ADCHome.razor.css rendered by both hosts uses var(--mmca-primary) (:196,:274,:285,:310,:446,:486,:511,:693), guarded by Tests/Architecture/MMCA.ADC.Architecture.Tests/Ui/BrandColorTokenTests.cs:12 (a sealed subclass of the shared base, which asserts the stylesheet contains var(--mmca-primary) and not the literal #1565C0, BrandColorTokenTestsBase.cs:15-16,:24; the sheet is embedded as ADCHome.Shared.razor.css, MMCA.ADC.Architecture.Tests.csproj:19, in the CI filter MMCA.ADC.CI.slnf:62). Shared PageHeader / EmptyState / PageLoadingState / PageErrorState primitives are defined once in the framework stylesheet (MMCA.Common.UI/wwwroot/app.css:396) and used 45 times across 29 ADC razor files; the MudDataGrid v9 RowsPerPage/CurrentPage guardrail is wrapped once (DataGridListPageBase.cs:400,:710, BL0005 justified in place) and subclassed by roughly ten ADC list pages. The Secondary tokens are guarded: --mmca-secondary and --mmca-secondary-dark are covered and ThemeSecondary_IsSourcedFromBrandColors asserts the whole Secondary family in both palettes (MMCA.Common.UI.Tests/Theme/BrandColorTokenTests.cs:38-39,:102). Inline styles are zero and pinned: layout and sizing ride semantic classes in Conference.UI/wwwroot/adc-ui.css (for example .text-center-cell at :75, .stat-col at :84), and Tests/Architecture/MMCA.ADC.Architecture.Tests/Ui/InlineStyleTests.cs:10 (the fact lives in Common InlineStyleTestsBase.cs:29) fails the CI architecture tier on any style=, Style=, CellStyle=/HeaderStyle= or *StyleFunc= in a .razor file under Source/ (no allow-list, :7-8; a floor of 80 scanned files, :15, keeps the scan from passing vacuously). Watch item, recorded and not deducted: the untokenized landing gradient and accent hexes documented with a contrast rationale (ADCHome.razor.css:12-16,:77,:643), and sixteen !important declarations in Common's shared app.css (:476, :513, :666-740), each under a rationale comment (:473, :508, :662-665). Evidence: Common BrandColors.cs:26, MMCATheme.cs:56, MmcaThemeProviders.razor:14, MainLayout.razor:17,:49, app.css:343,:396, DataGridListPageBase.cs:400,:710, MMCA.Common.UI.Tests/Theme/BrandColorTokenTests.cs:38-39,:102; ADC ADCHome.razor.css:16,:196, Ui/BrandColorTokenTests.cs:12, MMCA.ADC.Architecture.Tests.csproj:19, MMCA.ADC.CI.slnf:62, PresenterLayout.razor:11, adc-ui.css:75,:84, Ui/InlineStyleTests.cs:7-8,:10,:15 |
| 21 | Accessibility (a11y) | 3 | 3 | 8 | 9/24 | Implementation is strong: a stated WCAG 2.1 AA target, real semantic landmarks/skip-nav/focus/aria-labels, native controls, tuned contrast, axe-core in shared E2E bases ADC consumes, and 52 axe-scan [Fact]s (AccessibilityTests.cs:31, including the Partner pages and the conference-day surfaces), with a titled, sandboxed venue-map iframe, plain labels in place of dead chip toggles, and Happening Now title links. Keyboard operability has one E2E gate, on the live-moderation dialog (Tests/E2E/MMCA.ADC.E2E.Tests/Workflows/Engagement/LiveModerationKeyboardTests.cs:24, a subclass of Common's KeyboardOperabilityTestsBase). The chromium E2E/axe suite blocks production deploys (e2e-gate, deploy.yml:1203), though the gate is non-PR and conditional (the deploy job accepts skipped at :1611). Maturity 3: the rubric's §21 verification criterion pairs automated CI checks with periodic manual screen-reader/keyboard passes, and the results table in adc-ACCESSIBILITY-SCREENREADER-PASS.md (Website docs-src/guides/) holds only the empty placeholder row (:69): the runbook is ready and the dated pass, the maturity-4 lever, is pending. Evidence: Common MainLayout.razor:26,:30,:38,:115,:160 (skip-nav, role landmarks, role=alert); EventList.razor:12,:50,:92 (aria-label icon buttons; 143 aria attributes across 60 ADC .razor files); Tests/E2E/MMCA.ADC.E2E.Tests/Workflows/AccessibilityTests.cs:31; Workflows/Engagement/LiveModerationKeyboardTests.cs:24; deploy.yml:1203,:1611; adc-ACCESSIBILITY-SCREENREADER-PASS.md:69 |
| 22 | Responsive & Cross-Browser | 2 | 4 | 8 | 8/16 | Maturity 4: two of the category's criteria are enforced automatically as deploy preconditions. PhoneViewportTests (Tests/E2E/MMCA.ADC.E2E.Tests/Workflows/Conference/Public/PhoneViewportTests.cs:18) sets a 390x844 viewport (:20-21, :32) and asserts a visible heading and no horizontal overflow (scrollWidth against innerWidth, :97-98) on five public attendee pages: home, session list, session detail, speaker list and speaker detail (:29, :39, :54, :65, :76). It is a plain [Fact] in the E2E project, which e2e.yml:422 runs whole inside the chromium e2e-gate (deploy.yml:1203, browsers: '["chromium"]' at :1217), and the deploy requires that gate to succeed or be skipped (:1611). Beside it, the cross-browser-freshness step of the freshness job (deploy.yml:1323) runs the shared fail-closed Common freshness-gate action over a ten-day window (:1336), requiring a successful E2E (firefox) and a successful E2E (webkit) job; freshness is in deploy.needs (:1574) and is a hard condition of the deploy job (:1608). That gate enforces the recency of a weekly per-engine leg (the nightly alternates firefox and webkit with continue-on-error on the schedule, e2e.yml:156). The rubric's Optimized bar means enforced automatically (ArchitectureEvaluationCriteria.md:39). Coverage limits: the phone-viewport check covers five anonymous pages and no organizer page, and it runs post-merge, since e2e-gate is skipped on pull requests and on non-UI diffs (deploy.yml:1214). Implementation 8: grid-to-card degradation below 960px on every list page (Common DataGridListPageBase.cs:414 through BreakpointConstants.cs:16), Common's 48px touch-target rule on interactive controls (MMCA.Common.UI/wwwroot/app.css:343-360), the gated Chromium/Firefox/WebKit matrix and the phone-width overflow check carry it; two criteria stay unadopted in code, both recorded as Deliberate and accepted in the backlog: (1) density options (ArchitectureEvaluationCriteria.md:626): the framework ships the capability (DataGridListPageBase.cs:107 DenseGrid, :1762 ToggleDensity()) and ADC binds none of it, with list pages hardcoding a fixed density (PublicEventList.razor:51 Dense="true"); (2) content reflow (:625): the key/value detail tables wrap on mobile through .detail-table (Conference.UI/wwwroot/adc-ui.css:21-40, breakpoint at :33), while the session-selection statistics tables keep fixed-width columns with no mobile alternative (adc-ui.css:80) and fall back to the Common horizontal scroller. The implementation lever is not yet identified |
| 23 | Front-End Performance | 2 | 4 | 8 | 8/16 | Server-side paging/filtering/sorting (no load-everything-then-page-in-memory), bounded virtualized infinite scroll with @key, debounced search, request cancellation, SSR prerender + PersistentComponentState handoff, and output caching: strong client-side hygiene. Maturity 4: the Core Web Vitals budgets are real failing assertions (WebVitalsTests.cs:91 and :115 assert the shared CWV budget declared at :36 on four measured pages, facts at :44, :56, :71, :94) and the suite runs unfiltered inside the deploy-gating chromium e2e-gate (deploy.yml:1203 e2e-gate job, in deploy.needs at :1574), so a red vitals assertion blocks the production deploy: the same deploy-gate = M4 standard applied to §28/§29/§31. It is a deploy gate, not a PR merge gate, which meets the rubric's automatically-enforced bar (ArchitectureEvaluationCriteria.md:39). A Brotli WASM payload budget runs on every code PR as a required check (wasm-payload-budget, deploy.yml:626, budget-kb: 6510 at :647, required per :617-618 and CONTRIBUTING.md:86), and the client loads the EFIGS ICU shard for the en-US + es app (BlazorIcuDataFileName at Source/Hosts/UI/MMCA.ADC.UI.Web.Client/MMCA.ADC.UI.Web.Client.csproj:16). Held at 8: code-splitting the bundle is declined by decision (rejected in Common, common-RemediationBacklog.md #23), and the Core Web Vitals budgets run post-merge on UI diffs inside e2e-gate (deploy.yml:1214) rather than on the pull request. The implementation lever is not yet identified. Evidence: Common EntityServiceBase.cs:71-81 (server-side paging/sort/filter via query params); DataGridListPageBase.cs (CTS-cancelled ServerData + prerender-bounded fetch + persist/restore); MobileInfiniteScrollList.razor:30 (@key) |
| 24 | Forms, Validation & UX Safety | 2 | 4 | 8 | 8/16 | Client validation mirrors most server FluentValidation rules, the unsaved-changes guard reads current dirty state via a live accessor (avoids the stale-IsDirty red flag), submit is disabled while saving (no double-submit), IsDirty clears before NavigateTo on success (no false prompt, Common CreatePageBase.cs:82, :89), and destructive actions are confirmed through the shared IAppDialogService.ConfirmAsync dialog (Profile.razor.cs:252; Common ConfirmationDialog.razor:1-2, deliberately not MudMessageBox). All 22 MudForm files render an <ErrorSummary> with a localized heading (EventCreate.razor:42), and the exception snackbars are localized whole-sentence keys (Profile.razor.cs:82 Snackbar.LoadProfileFailed, no {ex.Message} interpolation). Maturity 4: Ui/FormsConventionTests.cs (a subclass of the shared FormsConventionTestsBase) enforces the guard, dirty-tracking and error-summary markers across the create forms (MinimumCreateForms => 9 at :17) and the Profile form, all in the CI.slnf arch gate (MMCA.ADC.CI.slnf:62). A bUnit render-level assertion of the summary's error items is CI-gated. The format half of client/server parity is shared: SessionizeCodeAttribute.cs:41 calls the same SessionizeCodeFormat.IsValid the server rule calls, and EventFormModel.cs:44 sources format and length rules from the DTO constants. The cross-field half is mirrored too: the Session forms check BR-122 (EndsAt strictly after StartsAt, server rule Session.cs:215) through SessionFormModel.HasEndAfterStart (Pages/Sessions/SessionFormModel.cs:87-92) on both the create (SessionCreate.razor.cs:151-160) and edit (SessionDetail.razor.cs:221-226) paths, as the Event (EventCreate.razor.cs:55) and Activity (ActivityCreate.razor.cs:187) forms do for their range rules, and a server rejection surfaces the Result error (SessionCreate.razor.cs:162-175, SessionDetail.razor.cs:231-232). Accessible field errors are asserted at render level on one form: ShouldExposeFieldErrorAccessibly checks role=alert, aria-invalid and aria-describedby on EventCreate (Tests/Modules/Conference/MMCA.ADC.Conference.UI.Tests/Pages/Events/EventCreateTests.cs:104). Held at 8: the forms fitness gate is string-marker based and scans only the create forms and Profile, so detail/edit and feedback forms are not fitness-pinned, and the accessible-error assertion covers one of the 22 MudForm files. Lever to 9: extend ShouldExposeFieldErrorAccessibly to the remaining MudForm pages. Evidence: Tests/Architecture/MMCA.ADC.Architecture.Tests/Ui/FormsConventionTests.cs:17; EventCreateTests.cs:104; Common FormsConventionTestsBase.cs:30; MMCA.ADC.CI.slnf:62; EventCreate.razor:11,42 (guard + per-form summary); EventCreate.razor.cs:60-65 with Common CreatePageBase.cs:68,:82,:89 (client validation before submit; Disabled while IsSaving; IsDirty=false before NavigateTo); Profile.razor.cs:82,252 (localized snackbar keys; shared confirm dialog for delete); Conference.Application/Events/UseCases/Create/EventCreateRequestValidator.cs:7 (server-side parity) |
| 25 | Navigation & Information Arch | 2 | 4 | 8 | 8/16 | The substance is Strong: clean bookmarkable routes via RoutePaths constants, route-level guards on every routable page (server-enforced via SSR cookie auth, not just UI hiding), expressed as a typed permission constant rather than a magic string (EventList.razor:2, [HasPagePermission(ConferencePermissions.EventsManage)]), role/claim/permission-filtered menu rendering (Common NavMenu.razor.cs:124-126 on RequiredRole / RequiredClaim / RequiredPermission), 404 (NotFoundPage, Routes.razor:13) and 403 (dedicated <Forbidden/>, Routes.razor:48) handled in the shell, and breadcrumbs throughout. adc-NavigationFlow.md (Website docs-src/guides/) carries per-actor flows, the Activity routes (5.9 at :676), role administration (5.10 at :695), the page-guard enumeration (:805-809) and the scanned-QR deep links (:810), and its Route Contract table (:717) lists all 65 ADC routes with their access. Maturity 4: the doc-to-code match is enforced automatically: Tests/Architecture/MMCA.ADC.Architecture.Tests/Api/NavigationContractTests.cs:23, a thin sealed subclass of Common's MMCA.Common.Testing.UI/Navigation/NavigationContractTestsBase.cs (route floor 55 at :36), parses every @page under Source/, requires one recognized guard per page (base :104), and checks set equality with the Route Contract table (:122) and each row's access against the page guard (:138), failing rather than skipping when the doc is missing (:405); build-and-test downloads the published doc first (deploy.yml:420-430) and runs the architecture project (MMCA.ADC.CI.slnf:62, deploy.yml:448). The route-authorization fitness tests stay in place (ManagementRouteAuthorizationTests.cs:26, SpeakerDetail kept with the management pages at :56-58; IdentityRouteAuthorizationTests.cs:16). Every parameterized route is typed (:int, or :guid for speakers) with a typed parameter (EventDetail.razor:1, EventDetail.razor.cs:39, SpeakerDetail.razor.cs:34), so a malformed id answers with the not-found page; the speaker self-edit form carries UnsavedChangesGuard (SpeakerDashboard.razor:11); list paging, sort and named filters are mirrored into the query string on each change and read back first on load (Common DataGridListPageBase.cs:1720,:266); and /profile/sessions (reachable by URL, menu link Organizer-only through Layout:SessionsNavRequiredRole, MMCA.ADC.UI.Web/appsettings.json:36) is recorded as deliberate account self-service (adc-NavigationFlow.md:817). Nav items are paired with their pages: NavItemGuardContractTests (Tests/Architecture/MMCA.ADC.Architecture.Tests/Api/NavItemGuardContractTests.cs:18, a thin subclass whose [Fact]s live in Common NavItemGuardContractTestsBase.cs:77, :97, :111) fails when a module's nav item declares a requirement looser than the guard of the page it opens. The contract gate runs on ADC code diffs only (deploy.yml:421), so a Website-side edit surfaces at the next ADC code PR. Held at 8: no remaining deduction is grounded in the current evidence; the implementation lever is not yet identified. Evidence: Common Routes.razor:13,:48, NavMenu.razor:86-90, NavMenu.razor.cs:124-126; EventList.razor:2; Api/NavigationContractTests.cs:23,:36 with Common NavigationContractTestsBase.cs:104,:122,:138,:405; deploy.yml:420-430; MMCA.ADC.CI.slnf:62; ManagementRouteAuthorizationTests.cs:26,:56-58; IdentityRouteAuthorizationTests.cs:16; MMCA.ADC.UI.Web/appsettings.json:36; EventDetail.razor:1; EventDetail.razor.cs:39; SpeakerDetail.razor.cs:34; SpeakerDashboard.razor:11; Api/NavItemGuardContractTests.cs:18; Common DataGridListPageBase.cs:266,:1720; Website docs-src/guides/adc-NavigationFlow.md:676,:695,:717,:721,:805-809,:810,:817 |
| 26 | Front-End Security | 3 | 4 | 9 | 12/27 | Reference-quality client security: no unsanitized HTML/MarkupString, tokens in HttpOnly cookies with the refresh token unreadable by JS and no localStorage, an enforced CSP with locked script-src/connect-src plus security headers/antiforgery, no secrets in the WASM bundle (runtime config fetch), authorization re-enforced server-side. Held at 9: img-src https: and style-src 'unsafe-inline' are deliberately permissive (documented, low-risk) and emitted by the pinned provider (MMCA.Common.UI.Web/Security/BlazorCspPolicyProvider.cs:103-104); the framework's {nonce} path off unsafe-inline (MMCA.Common.Aspire/Security/SecurityHeaders.cs:113) has zero CspNonce uses in ADC, and appsettings.json:92-100 adds a third-party frame-src allow-list for three Google origins. Evidence: Hosts/UI/MMCA.ADC.UI.Web/Program.cs:26 (AddMmcaBlazorWebHost) and :128 (UseMmcaBlazorWebPipeline), the composed host in Common MMCA.Common.UI.Web/Hosting/BlazorWebHostExtensions.cs: :129 (AddSessionCookieAuthentication()), :157 (AddCommonBlazorCsp(), the CSP provider: the CSP, token-storage, and security-headers mechanism lives in MMCA.Common and is consumed here; HttpOnly refresh cookie never JS-readable, no localStorage, locked script/connect-src), :186 (UseCommonSecurityHeaders() enforced CSP), :202 (UseAntiforgery), :203 (UseAuthenticatedNoStore), :208 (MapClientConfigEndpoint, the framework /client-config runtime-config endpoint, no secrets in the WASM bundle) |
| 27 | Internationalization (i18n) | 1 | 4 | 8 | 4/8 | ADC ships real en-US + es localization: 90 base .resx + 90 .es.resx (every base has an .es sibling; covers the module UIs, both ADCHome hosts, the nav items, and the API error-resource sets), IStringLocalizer<T> across every page, zero hard-coded snackbars (whole-sentence page keys; raw {ex.Message} never surfaces), zero literal page titles (the Title => L["Title"].Value pattern on all ~24 pages), zero literal breadcrumbs (built in OnInitialized from Breadcrumb.* keys), no ErrorMessages.Success concatenation (the member is removed from Common), nav menus localized via NavItem.TitleResource, and MudBlazor built-in chrome localized via the framework's ResxMudLocalizer (inherited). Culture alignment and persistence: UI.Web/Program.cs:128 UseMmcaBlazorWebPipeline, which calls UseCommonRequestLocalization() (Common BlazorWebHostExtensions.cs:201), UI.Web.Client/Program.cs:86 MmcaCultureBootstrap.SetBrowserCultureAsync, User.PreferredCulture. Maturity 4, doubly gated in CI.slnf: TranslationCompletenessTests.cs:13 (RequiredCultures=[es] at :15, floor 40 at :17) + LocalizedTextConventionTests.cs (no hard-coded snackbar/title/<PageTitle>/breadcrumb/NavItem literal can ship; MinimumScannedFiles=60). Held at 8: the PseudoLocalizationTests tier covers text expansion on only 3 public pages (/, /conference/speakers, /conference/sessions, PseudoLocalizationTests.cs:45-47) of the 65 routable @page files, public by design (:25, "no login keeps the gate robust"), so the authenticated authoring surface is unverified for text expansion, and a citable violation of the rubric's culture-aware-formatting criterion also stands. The 8→9 lever (broadening across the authenticated surfaces) is deferred by decision: it is worth 1 weighted point and costs authenticated-login plumbing plus expansion assertions across roughly 45 pages, the weakest cost-to-benefit ratio on either band; its re-open triggers (a second locale beyond es, any RTL locale, or a reported layout regression on an authenticated page) are in the backlog's Deliberate and accepted section. Evidence: Tests/Architecture/MMCA.ADC.Architecture.Tests/Ui/{TranslationCompletenessTests.cs:13,LocalizedTextConventionTests.cs}; EventCreate.razor.cs (Title/breadcrumb/snackbar keys), Profile.razor.cs (sanitized snackbars), ConferenceUIModule.cs (TitleResource + resx pair); Common ErrorMessages.cs (no Success member), ResxMudLocalizer.cs |
| 28 | Front-End Testing & Quality | 3 | 4 | 9 | 12/27 | bUnit component + route-auth tests gate every PR (MMCA.ADC.CI.slnf:46,:53,:59 via deploy.yml:448, --minimum-expected-tests 5000 so a discovery breakage cannot pass vacuously), a broad Playwright suite with shared page objects and abstract bases (58 page-object files, 44 workflow test files, no per-app duplication) covers role journeys, 473 GetByRole/GetByLabel/GetByTestId selectors against only 8 Task.Delay calls avoid timing flakiness, no skipped or quarantined tests exist under Tests/, and axe runs in the shared Login/Register/Profile bases ADC consumes. What makes it a 9: (1) a markup-snapshot regression tier in all three bUnit projects (Conference.UI.Tests/Components/ComponentsSnapshotTests.cs:28, assertions at :69,:87,:124,:143, plus sibling files under Identity.UI.Tests and Engagement.UI.Tests: 12 [Fact]s over 12 committed .html baselines, deterministic and OS-independent, with a missing baseline reported as a non-match so it cannot pass vacuously), riding the required per-PR check; (2) every code deploy ships a PR-tested tree: the required build-and-test check runs the CI.slnf unit + architecture + bUnit tier (deploy.yml:301, :448) and branch protection enforces admins with strict up-to-date required checks (ADC PR #258), so the merged tree is the tree that check ran on, and a deploy that skips e2e-gate is still not untested (deploy.yml:1209-1213). Maturity 4: the E2E/axe layer is an enforced deploy gate. Held below 10: the browser layer (chromium E2E, axe scans, Core Web Vitals) is skipped on a backend/infra/script-only deploy (e2e-gate job :1203 is ui-scoped at :1214 and deploy accepts a skipped gate at :1611), there is no pixel visual regression, only chromium gates the deploy (:1217; firefox/webkit stay advisory on the nightly, e2e.yml:156), and 12 snapshotted components is a small slice of the component surface. E2E #5 runs as an active test (SpeakerSelfServiceTests.cs:78, comment :68-77) with the original populator bug guarded by SessionIncludeChildrenRegressionTests.cs:26, and the create-form bUnit test (EventCreateTests.cs:18) narrows the state-coverage gap. Evidence: ComponentsSnapshotTests.cs:28,69,87,124,143; MMCA.ADC.CI.slnf:46,53,59; deploy.yml:301,:448,:1203,:1214,:1217,:1574,:1611; e2e.yml:9,156; EventCreateTests.cs:18; SessionIncludeChildrenRegressionTests.cs:26 |
| 29 | Resilience & Business Continuity | 3 | 4 | 9 | 12/27 | Failure isolation (Polly retry/breaker as a fitness-enforced framework invariant), graceful degradation (outbox), geo-redundant PITR+LTR backups, defined RTO/RPO, SLO alerts, and smoke-gate auto-rollback are all present, and the rubric's #1 red flag is closed: the restore is drilled, repeatedly (infra/DISASTER-RECOVERY.md:199-204, six PITR proofs covering all four live databases, the newest a restore of ADC_Conference in 2.1 min against the 2 h RTO, produced by dr-drill.yml's weekly rotation under a 60-minute job timeout, dr-drill.yml:56). Graceful shutdown is CI-verified: the paired fault-injection test lives in Common (ResilienceCircuitBreakerFaultInjectionTests, consumed), and GracefulShutdownTests boots the real Gateway via WebApplicationFactory, requests a stop under a bounded ~20s token, and asserts the host drains (ApplicationStopping→ApplicationStopped) within the timeout (headless, in CI.slnf), so Implementation is 9. Maturity 4: a dr-freshness job in deploy.yml's deploy.needs fails the deploy if the latest dr-drill.yml run did not conclude success within an 8-day freshness window (covering the weekly cron), so the recovery proof blocks the deploy and the rubric's M4 ("enforced automatically by a CI gate") is met. Right-sized for the ~67-peak load: the gate reads the last drill's status via one Actions API call with no per-deploy restore cost, while the real PITR restore runs on dr-drill.yml's weekly cron. The Azure Monitor DR dashboard ships (sloWorkbook in main.bicep:1143, embeds workbooks/adc-slo-workbook.json). Evidence: ADR-009 (RTO/RPO + single-region acceptance); .github/workflows/deploy.yml:1244 (dr-freshness step, window-days: '8' at :1253, in deploy.needs at :1574, the 8-day recovery-proof gate); .github/workflows/dr-drill.yml:31-33 (weekly cron, the real PITR restore the gate reads), :56 (the 60-minute job timeout, rationale :49-55); Tests/Hosts/MMCA.ADC.Gateway.Tests/GracefulShutdownTests.cs (a sealed subclass; the assertion body lives in MMCA.Common.Testing/Conformance/GracefulShutdownTestsBase.cs); infra/main.bicep:1380 (LTR on all 4 ADC_* DBs), :541 (the sloAlerts scheduled-query loop), :1143 (SLO workbook) |
| 30 | Compliance, Privacy & Governance | 2 | 4 | 9 | 8/18 | Reconciles soft-delete with right-to-erasure exactly as the rubric demands: a real anonymize-in-place path, an export/access endpoint, bounded outbox/log retention, a PII inventory with purpose, lawful basis and retention per field (PRIVACY.md:236; session IP/UserAgent retention at :251-252) kept in step with the [Pii] markers by the CI-gated Tests/Architecture/MMCA.ADC.Architecture.Tests/Privacy/PiiInventoryTests.cs, and a PII fitness function enforcing the erasure obligation in CI. PRIVACY.md:110 states East US 2 apps / West US 2 SQL, matching the deployment, guarded by the DataResidencyTests fitness function so docs and main.bicep cannot drift. Evidence: ADR-005; Identity.Domain/Users/User.cs:39,:662 (User : IErasableUser, an IAnonymizable; idempotent Anonymize in place); Tests/Integration/MMCA.ADC.Identity.IntegrationTests/Compliance/ErasureAndPiiLoggingTests.cs:53; DeleteUser/DeleteUserHandler.cs:22-23,:54 (workflow in Common's DeleteUserHandlerBase, ADC post-delete hook); Tests/Architecture/.../DataResidencyTests.cs |
| 31 | Cost Efficiency / FinOps | 2 | 4 | 8 | 8/16 | FinOps is a first-class, data-driven axis: right-sized Basic tiers matched to a measured ~67-peak load, a conference-day surge declared in IaC with a deploy-gating guard against an un-reverted one, a budget with spend alerts, tuned log retention + telemetry filtering, per-service cost tags, directly answering every criterion/red flag. Cost attribution splits by service: commonTags (infra/main.bicep:225) plus a service tag on each of the six container apps (:2314, :2592, :2751, :2903, :3102, :3265) and on the four per-service databases (:1361), pinned by Tests/Architecture/MMCA.ADC.Architecture.Tests/Governance/CostTagConventionTests.cs:10,:12 (the facts live in the shared base). dr-drill.yml:108-109 sweeps drill databases under always() so none is left at Basic-tier cost, and YARP Information-level log volume is cut to Warning (infra/main.bicep:325-333). Maturity 4: cost-guard.yml is a workflow_call reusable workflow (:19) invoked as a cost-guard job in deploy.yml's deploy.needs, so a deploy is blocked by an out-of-band scale-up (cost-guard.yml:130-131) or by a surge still live after its window (:127-128). The surge itself is declared in IaC: conferenceMode (infra/main.bicep:179) raises the front-door replicas and the SQL tier (:213-214, :1365-1367), and every deploy switches it from the CONFERENCE_MODE_UNTIL repository variable (deploy.yml:1915-1930), so the first deploy after the window is the revert (deploy.yml:1184-1185). The surge is reverted: az containerapp list -g acc-rg reads all six adc-prod-* apps at minReplicas 1 / maxReplicas 2, and CONFERENCE_MODE_UNTIL is not set as a repository variable. The read-only guard also runs daily on its own schedule (cost-guard.yml:14, cron 0 7 * * *), so an expired surge whose revert deploy has not run is flagged within a day; the revert itself rides the next deploy. Held at 8: no remaining deduction is grounded in the current evidence; the implementation lever is not yet identified. Evidence: .github/workflows/cost-guard.yml (read-only surge-drift check, header :3-10, also workflow_call at :19: compares Container App maxReplicas against the baseline, :94, and SQL tier against Basic, :111, and reads the conference window at :75-80); .github/workflows/deploy.yml:1175 (cost-guard job, in deploy.needs at :1574, condition :1607); infra/main.bicep:1164 (monthly RG budget with 80%/100% alerts); load-test.yml:18 (k6 67 VUs = observed peak, on dispatch; the scheduled run uses 40, :94); infra/main.bicep:2582, :2741, :2893 (the three REST apps at maxReplicas 2 outside conference mode), :3088 (Notification at minReplicas 1 / maxReplicas 2); infra/main.bicep:225, :1361, :2314 (cost tags); infra/main.bicep:179, :213-214, deploy.yml:1915-1930 (conference mode) |
| 32 | Dependency & Supply-Chain | 2 | 4 | 9 | 8/18 | Central pinned versions, no MassTransit package anywhere in the graph (zero matches in the committed lock files; the broker transports are MMCA.Common framework code, Directory.Packages.props:110-113), coordinated all-consumers-at-once upgrade, committed lock files and blocking supply-chain CI gates. ADC commits 67 packages.lock.json (RestorePackagesWithLockFile=true), and its vuln-audit + SBOM steps are blocking PR gates (in deploy's needs, run on pull_request), so transitive provenance is frozen and supply-chain governance is CI-enforced (maturity Optimized). CI restore runs --locked-mode in all five gating restore points (deploy.yml:379 build-and-test, :581 build-and-test-net10, :690 ai-eval-gate, :787 supply-chain, :961 integration-tests, with the out-of-filter compile restore at :1015 locked too, except the OutageTests restore at :1021, which commits no lock file), so lock-file drift is tamper-enforced at restore. No advisory is suppressed: the restore-time NuGet audit runs in all mode with no NuGetAuditSuppress item (Directory.Build.props:83-84). Held below 10 because no dependency-licence scan exists; the other stated reason, a transitive MassTransit v8 pin, is gone (no MassTransit package is in the graph). maui-audit.yml (TD-18) covers the one graph the gating supply-chain job cannot see, because the MAUI head is excluded from MMCA.ADC.CI.slnf: a weekly suppress-aware dotnet list package --vulnerable --include-transitive over Source/Hosts/UI/MMCA.ADC.UI/MMCA.ADC.UI.csproj on net11.0-android (maui-audit.yml:144-145, TFM at :67, cron :43) that exits 1 on any non-suppressed advisory (audit step :128, the failure exit at :179); scheduled and advisory, not a deploy gate, and the Apple TFMs stay uncovered on a Linux runner. Evidence: Directory.Build.props:76 (RestorePackagesWithLockFile); 67 committed packages.lock.json; deploy.yml:727 (the supply-chain job; audit gate through the shared Common composite action at :800, scoped to MMCA.ADC.CI.slnf at :802, no continue-on-error), :806 (SBOM gate, PR-only, through the shared composite action), :1574 (deploy needs [changes, supply-chain, cost-guard, freshness, e2e-gate, ai-eval-gate, foundation, build-images]); Directory.Packages.props:143-198 (MMCA.Common.* pinned lockstep at v1.318.0); nuget.config:8-19 (auditSources clears→nuget.org, packageSourceMapping MMCA.*→github) |
| 33 | Developer Experience & Inner Loop | 2 | 4 | 9 | 8/18 | The inner loop hits nearly every criterion: genuine one-command Aspire orchestration, a documented gitignored local.props cross-repo override, consistent analyzer/editorconfig tooling shared with CI, a fast CI solution filter, and a full getting-started README. Maturity 4: servicebus-emulator-smoke (cross-service-tests.yml:148) carries no continue-on-error under a header block that records it authoritative (:122) and forbids re-adding one (:130); no job in the file carries one. The cross-service-freshness step of the freshness job selects a run in which both cross-service and servicebus-emulator-smoke concluded success (deploy.yml:1284, required jobs at :1299-1302), failing the deploy otherwise, with freshness in deploy.needs (:1574) and required at :1608: a red or absent Service Bus proof blocks the deploy, the same enforced-precondition standard as §29 and §31 (with the same dispatch-only, justification-mandatory break-glass). Implementation 9: broker parity is closed at the inner loop itself: ADC_BROKER=servicebus swaps RabbitMQ for AddServiceBusEmulatorBroker through Common's AddSelectedBroker (Source/Hosting/MMCA.ADC.AppHost/Program.cs:98, documented at :93-97), running the official emulator over the same transport production runs, via the pinned MMCA.Common.Aspire.Hosting package. Held below 10: the default local topology is RabbitMQ (Program.cs:90), so Service Bus is an opt-in parity profile rather than the default, and the prose hold no longer applies: README.md:94-95 and AGENTS.md:90 call the emulator tier authoritative, not advisory, and AGENTS.md:91 records that ADC has no AppHost smoke project (every e2e.yml run boots the real AppHost) beside one opt-in AppHost outage tier on MMCA.Common.Testing.Aspire. Evidence: README.md:1,47; cross-service-tests.yml:122,:130,:148; deploy.yml:1284,:1299-1302,:1574,:1608; AppHost/Program.cs:90,:93-97,:98 and :120-356 (health-based WaitFor ordering, deliberate no-WaitFor reverse gRPC edge at :259); Directory.Packages.props:160; CLAUDE.md (one-command dotnet run --project Source/Hosting/MMCA.ADC.AppHost → SQL/Redis/broker/MailDev + 4 services + Gateway + UI); local.props.template:5 (UseLocalMMCA) |
| 34 | Architecture Governance & Docs | 2 | 4 | 9 | 8/18 | Reference-quality governance: a maintained ADR set (canonical in ../adr/; range and count owned by ../adr/README.md) for every non-obvious decision, executable fitness functions (84 architecture-test classes, 86 non-obj .cs files, gating CI, including resilience/PII/concurrency/microservice-extraction/data-residency/cross-source-specification/UI-architecture/state-management/observability-pairing), with the rule bodies inherited from the shared MMCA.Common.Testing.Architecture library (whose shipped totals are owned by MMCA.Common/FACTS.md:98) plus 39 ADC-local test methods across 16 files (among them Api/MachineClientParticipationTests.cs:80,:85,:90, Privacy/InvitationLifetimeTests.cs:34, Ui/MauiHostShellTests.cs:25 and the six Domain/DeleteBehaviorConventionTests.cs facts), ADR-015, rather than prose; a living architecture map + scored backlog; and documented conventions linking to the enforcing tests. SpecificationConventionTests.cs:3-7 frames the Cosmos/SQLite layout as a forward safeguard, not the current layout. This scorecard is the canonical two-axis evaluation, versioned alongside the backlog, which is the single remediation + tech-debt ledger. Held at 9: the stated residual is gone: the workspace architecture map (Docs/Architecture/ArchitecturalAnalysis.md, versioned in the private harness repo rather than in this repo) now defers the package count and version to MMCA.Common/FACTS.md (:101, :120), the 13-package figure surviving only in its dated 2026-05-25 evolution note (:7); score unchanged pending re-score. Evidence: ../adr/README.md (the ADR index, owner of the range and count); Tests/Architecture/MMCA.ADC.Architecture.Tests/ (86 non-obj .cs files: 84 test classes across eight folders + AdcArchitectureMap.cs + GlobalUsings.cs); this ArchitectureScorecard.md (canonical two-axis) + RemediationBacklog.md (single ledger) + workspace ArchitecturalAnalysis.md |
Weighted column = Maturity·weight / Implementation·weight per row. The maturity gap is three categories at maturity 3 (§10, §12, §21); every other category is at maturity 4, so implementation trails maturity where a v2 criterion scores on implementation while maturity holds (§9) or where an enforced gate covers less than the category's substance (§22, whose phone-viewport check covers five attendee pages while density options and organizer-table reflow stay unadopted).
Scoring notes
- N/A (excluded from denominators): none. §16 AI-Native Application Architecture is scored because the AI session-scoring feature calls a model in production (the rubric's applicability rule,
ArchitectureEvaluationCriteria.md:473), so its weight 2 sits in both denominators and Σweight is 81. §27 Internationalization is scored under ADR-027 (which supersedes the single-locale ADR-011). - Rubric version 2 (ADR-110): §10 is Messaging & Integration Architecture at weight 3; §16 is AI-Native Application Architecture at weight 2.
- §32 weight = 2 (the default; raised to 3 only for the published framework MMCA.Common).
- The implementation index reads directly against 100%: a 10 is awardable when an implementation is almost perfect (every criterion met at reference quality, no red flags, at most trivial polish left), superseding the rubric's literal "nothing left to improve" wording. The denominators stay ×10.
- Backlog scheduling targets 9, not 10: ranking against 10 would put nearly every strong category in the band and drown the real gaps, so the 9→10 rung is recognition earned at re-score time. A 9→10 line under Top 5 risks or strengths reads as "what a future re-score would need to see", not as queued work.
- Framework pin: 26 of the 30 published
MMCA.Common.*packages, lockstep at v1.318.0 (Directory.Packages.props:143-198); theMMCA.Commonmetapackage,MMCA.Common.AI.OpenAI,MMCA.Common.AwsandMMCA.Common.Gcpare the four not consumed (MMCA.Common.Testing.Aspireis pinned at:191and consumed byTests/Integration/MMCA.ADC.AppHost.OutageTests).
Cross-repo comparison
How this repo's quality relates to the other consumers (where the framework's quality propagates, where a repo diverges or under-uses it, and where a consumer does better than the shared baseline) is maintained once, for all three repos, in the workspace-internal Docs/Architecture/CrossRepoComparison.md (not published) (it is inherently cross-repo and would only drift if copied into each scorecard).