Skip to main content

Architecture Decisions for Case Study #01

Status: Selected for this proposed case study, not implemented or benchmarked. One architecture now governs the narrative, module contracts and diagrams.

ADRSelected designMain rationaleReverse the decision when
001Financial-data validation, review and evidence as initial product boundaryClear, testable audit-team problem without promising an autonomous auditDomain experts define a broader validated workflow
002Modular monolith with background workersSimpler cross-module transactions and operationsIndependent deployments/scaling produce measured gains
003Global identity and firm-membership registry; engagement-level authorizationOne membership source, explicit least privilegeRequirements for federated identities demand a new model
004Shared PostgreSQL data with tenant IDs and RLS for illustrative pilotSingle migration path, DB policy as defense in depthResidency or contractual isolation requires schema/db split
005Typed journal, invoice and tax entities with immutable source snapshotsAvoid incompatible accounting meanings in one rowA reviewed common representation is proven safe for a specific record type
006Source-population reconciliation before dependent checksA parsed export may be incompleteSource-native guarantees can be independently verified
007Rule engine owns candidate persistence; human-review module owns dispositionNo duplicated finding writers; clearer lifecycleDomain boundaries materially change
008Business mutation, audit record and transactional outbox commit atomicallyPrevent lost event-history gaps and duplicate replay effectsA proven equivalent consistency contract exists
009Revision-pinned, fail-closed partner approvalCannot approve stale, incomplete or unreviewed workQualified auditors approve a documented alternative methodology
010India-first reviewed rule packs; globally reusable workflowStart narrow without hard-coding local law into platformA second jurisdiction pack is independently validated
011No platform support impersonation of client financial contentPreserve confidentiality and least privilegeFormal support threat model, consent and controls approved
012Hosted payment collection, scope-specific PCI assessmentMinimize card data touching product infrastructureActual payment flows/merchant requirements change

All decisions assume a publication and hypothetical architecture, not a committed company roadmap. Detailed alternatives, costs and reversal conditions: Architecture Trade-offs. Unverified domain claims: Validation Register.

Resolution of earlier contradictions​

  • No separate ingestion, identity, findings or billing microservice deployments in the selected design. They remain logical modules of one backend; parsing/checks/reporting use workers.
  • Firm membership is global and authorization is checked server-side; firm-private records are tenant-scoped shared tables with RLS. The legacy schema-per-tenant approach is an evaluated alternative, not a concurrent requirement.
  • A workflow sign-off requires current approved evidence and procedures, not simply one completed rule run or zero Critical findings.
  • Rule execution owns initial candidate finding creation; other modules cannot recreate findings by consuming events.
  • Source record types are distinct; the universal transaction table is not authoritative.
  • Legal thresholds are never replaced by tenant-configured investigation thresholds.
  • Immutable evidence and outbox event delivery require well-defined privileges and replay handling.

Open decisions​

The exact audit procedure methodology, source export/control availability, qualified validation of India-specific rules, customer-specific residency and retention requirements, and measured production SLOs are not known. We present these as open questions rather than contradictory implementations.

See solution architecture, review contract, capacity model and worked example.