Skip to content

5.4 Regulatory Compliance as an Architecture Constraint

An obligation becomes an architecture constraint when it changes what you build. Regulated data is data that a law or contract restricts, such as personal data or protected health information. A hop is any place that regulated data reaches, when it is sent there or stored there. A trust boundary is the edge of the systems that are trusted with regulated data.

This lesson uses one made-up example throughout: a courier firm. Its assistant answers “where is my parcel” from delivery records. These records hold names, addresses and phone numbers. For any system, name the regulated data class and trace every hop that this data reaches. At each hop, ask one question. May this hop hold this data, for this purpose, for this long, in this place, under an agreement that exists today? The gap is the first hop where the answer is no.

Draw the data’s path, not the application:

  • the request to the model provider
  • the retrieval index and its embeddings
  • prompt and response logs
  • the observability traces Domain 3 built
  • the evaluation datasets Domain 4 built
  • analytics and monitoring vendors, and the subprocessors behind them

At the courier firm, one address can reach the prompt, the log and a vendor’s trace. Traces and evaluation sets are the most commonly forgotten copies. Domains 3 and 4 built them deliberately, yet it is easy to omit them from a drawing of the application.

The ICO addresses this failure. It says to record every movement and storage of personal data, keep clear audit trails, and delete intermediate files once they are no longer needed. If you stop your assessment at the application boundary, you assess the part of the system that matters least for compliance.

Send only the fields the task needs. Redact, tokenise or pseudonymise regulated data before it crosses a trust boundary. Keep the re-identification key inside the boundary. Once data crosses the boundary, the recipient holds the data. The courier firm’s assistant needs a parcel’s status, so the customer’s phone number stays inside the boundary.

The ICO adds a step that architects miss, and the ICO makes this step conditional. Depending on the likelihood and severity of the risk to individuals, you may also need to apply de-identification techniques to training data. This step comes before the data is extracted from its source and shared internally or externally. Read “training data” as any dataset built from live records, such as the courier firm’s evaluation set of real customer chats.

The obligation is to have this contract before the data moves. Otherwise a party that no contract restricts holds the regulated data. The courier firm’s trace vendor signs before the first trace is sent.

A HIPAA business associate contract has to:

  • establish the permitted uses of protected health information
  • require safeguards and breach reporting
  • bind any subcontractor to the same restrictions
  • at termination, return or destroy every copy where that is feasible, and extend the contract’s protections to whatever cannot be returned or destroyed

Naive architectures fail the last two. Flow-down reaches every vendor in the path, including the ones your vendor chose, such as the courier firm’s analytics subprocessors. Return-or-destroy reaches the evaluation set nobody listed. Saying that return or destruction is not feasible does not end the obligation: it binds you to keep protecting what you could not remove.

Purpose, Retention, Residency, and the Rights That Follow the Copies

Section titled “Purpose, Retention, Residency, and the Rights That Follow the Copies”

Purpose and retention are design inputs. Decide them before launch, for every copy and the primary store. Where inference runs and where data is stored are configuration decisions with compliance consequences. State the requirement in terms that will not go out of date, then verify which regional options are available now.

Data-subject rights need engineering work. Access, correction, deletion and portability all require you to find every copy. Finding every copy needs provenance and an inventory. Deletion requests miss copies in vector indexes, trace stores and evaluation fixtures. At the courier firm, a customer’s erased address can remain in an embedding or a trace. A provider’s retention or residency arrangement governs that provider. It does not govern what your own copies do.

An authorisation boundary is all components of an information system to be authorised for operation by an authorising official. It excludes separately authorised systems that the information system connects to. That definition comes from OMB Circular A-130 and NIST SP 800-37, not from FedRAMP. Because of this origin, the definition is unlikely to change. So the part of FedRAMP that is unlikely to change belongs to the agency, not to the programme.

A FedRAMP authorisation certifies that a cloud service completed the FedRAMP process. It is not an authorisation to operate: the agency’s authorising official still makes that decision for their environment.

The current question is which services that carry federal information are already authorised at the required impact level. Any service that is not already authorised at that level brings itself, and its assessment burden, inside the boundary that the agency must authorise. That is why the choice of services belongs in design. A courier firm that carries federal information would ask this question about each vendor.

Questions here do not test statute. They test whether you turn an obligation into a design constraint, and how far you think it reaches. In a question about an over-broad data flow, the right answer nearly always reduces the data that crosses the boundary. At the courier firm, that answer sends fewer fields to the trace vendor. The ICO condition is the risk, so a question that establishes a serious risk has already answered that condition.

In 2026, the programme restated its own rule for what a FedRAMP provider must have assessed. The rule’s labels changed at the same time. Treat that mechanism and its vocabulary as quick-reference material, never as the thing that a question depends on.

An occupational-health provider is building an assistant that answers employer queries using employee health assessments. The proposed design streams retrieved assessment excerpts to a third-party observability vendor for trace capture, and keeps an evaluation dataset built from real assessments, indefinitely, in a shared analytics account. The provider may not disclose health data to a vendor without a contract in place, or keep it longer than it needs it for. What should the architect require?

  • A. Collect consent from employees for research use of their assessments
  • B. Proceed with the build now and add a data-processing addendum with the observability vendor at its next contract renewal, which is due within the year
  • C. Restrict the shared analytics account to the three named engineers who need access, and log every query they run
  • D. Resolve the whole path before health data flows: agreements first, de-identification at the boundary, and retention set per purpose
Answer & explanation

Correct: D

  • A — A lawful basis offered for a minimisation problem, and in an employment relationship it is the weakest one available. Nothing about the excessive flow or the indefinite retention changes.
  • B — The question rules this out: no health data may reach a vendor without a contract in place. Health data would flow to a vendor under no contractual restriction, with no subcontractor flow-down and no return-or-destroy obligation over the copies it holds.
  • C — The question rules this out: the records still reach the vendor with no contract and are still kept indefinitely. Access restriction on an over-broad flow. The same health records still crossed the boundary, still sit there indefinitely, and are still outside any purpose or retention limit.
  • D — Traces the class through every hop and fixes the gap at each one. The vendor is under contract before it receives anything, records are de-identified before they leave, the evaluation set is built from de-identified or synthetic records, and traces and indexes inherit a retention period tied to a stated purpose.