Let’s Get Certified
Module 12 / 14 · Governance, safety, and risk management

Design approvals, compliance evidence, and fairness checks

Gate consequential actions, map obligations to controls, and identify the source of a disparity.

A service prepares change orders for a human operator. It processes sensitive records from several customers. An architecture review should establish who authorizes a change, what evidence is retained, and how quality varies across groups.

5.4 · Place human checkpoints before commitment

Separate reversible preparation from commitment. Let the assistant gather authorized data and prepare a draft. Before a consequential write, show the operator the target, amount or scope, source evidence, and effects. Bind approval to that exact payload or revision, check authority again at execution, and invalidate the approval when material fields change. Persist pending state so a restart cannot skip the gate. Let unrelated low-risk reads continue while the decision waits.

Decide whether an approval survived an edit

Operator Mira approves change order C8 for three units at $80 each. During the night, a supplier update raises the price to $95. The job restarts with approved=true and attempts to commit the new total. Identify the state that must survive restart and the condition that permits the write.

Walk the state transitions

Persist the pending order revision and its material fields, including supplier, quantity, currency, amount and intended effect. Bind Mira’s approval to that revision and total of $240. At execution verify her authority under current policy and require the exact approved payload. The new $285 total needs a new decision. Return C8 to pending review and show the changed price and total.

Use a durable operation key to prevent duplicate commits after retry. Expired, rejected or edited approvals must never transition directly to committed. Other operators can continue independent reads and drafts while this order waits. A rehearsal should include a restart on either side of the actual external commit.

Video background · freeCodeCamp at 12:27:56 · tracking escalation state

Transfer ownership when the user asks for a human

A customer calmly disputes a charge and requests a person. The sentiment score is neutral and the assistant calls itself confident. A second customer sounds frustrated while requesting a duplicate receipt. Separate the explicit handoff request and the risk of the proposed action from tone. The first case should enter the human queue with the customer’s stated issue and verified evidence. The second can receive the permitted low-risk receipt if that is what the customer wants.

Persist the handoff owner and state. After a human accepts the first case, automation may prepare internal notes within its grants but must not publish a competing decision or commit a disputed charge. Resume automated handling only after a recorded transition. Test a reconnect while the human owns the case.

Further study · freeCodeCamp at 12:33:09 · limits of sentiment-based escalation

5.5 · Map compliance obligations to evidence

Translate each stated obligation into a data flow, a technical or contractual control, a test, and an owner. For a specified regional boundary, check model processing, runtime state, tool endpoints, backups, and logs in the selected deployment. For a retention limit, verify service settings, feature eligibility, application storage, and deletion evidence. Redact unnecessary personal data before export and isolate tenants at storage and retrieval. Keep a minimal decision audit with scoped access and an appropriate retention period.

Have the responsible team confirm the applicable obligations and service agreements. GDPR requirements depend on the processing context. For HIPAA-regulated workloads, examine the roles and applicable business associate agreements. For a federal workload, verify the relevant FedRAMP authorization boundary and shared responsibilities. A product name or a region setting alone cannot evidence coverage for an entire application.

Trace the copy that outlives the deletion

A customer specifies regional processing for raw records and deletion of raw text after seven days. Model requests use an approved regional endpoint. The application redacts its operational dashboard, but traces contain full tool responses and a backup can restore them for 30 days. Can the operator attest to the stated obligation? Name the evidence a reviewer should request.

Audit each copy against the stated terms

Inventory raw ingress, model processing, tool results, logs, queues, backups and restored data. Verify contractual and feature-specific handling at the selected endpoint, including any retention option relied upon. For the application, redact before writing traces, configure the correct retention on each raw store, and verify backup location, expiration and restoration behavior against the agreed obligation.

Plant an approved synthetic marker and run a deletion-and-restore drill. Record the marker’s lifecycle, configuration revisions, timestamps and responsible owners in a restricted audit record. A redacted dashboard supplies no evidence about a separate trace store. Escalate any backup exception to the accountable customer and compliance owners before claiming coverage.

5.6 · Locate and mitigate bias

Compare error rates by relevant group with consistent labels and uncertainty estimates. Underrepresented inputs can cause a data coverage gap. A paired test changing only an irrelevant identity cue can reveal a prompt-framing effect. If human experts agree but the automated grader penalizes one writing style, investigate the evaluator. Correct the identified source, then repeat held-out stratified evaluation and monitor rollout. Give users a way to contest consequential errors.

Localize a disparity before changing the model

Two writing styles describe equivalent change requests. Independent operators accept 45 of 50 outputs in each group. An automated judge accepts 44 in the first group and 31 in the second. On a separate paired replay, changing only the requested writing style leaves the generated decisions identical. Which component deserves investigation first?

Distinguish evaluation, input and framing effects

Audit the judge’s disagreements against operator labels by group. Use masked, order-balanced pairs with equivalent technical content. Inspect whether the rubric rewards a particular style in a task graded on correctness. Calibrate with independently labeled anchors and remeasure both groups before changing the production prompt. The small sample warrants reporting counts and uncertainty.

A different result calls for a different investigation. If production decisions change when only an irrelevant identity cue changes, test prompt framing. If one group has many document formats absent from development data, improve representation and labels and rerun on unseen examples. Track the observed harm and the owner of the corrective action.

Design exercise

For an approval workflow, list one piece of evidence needed by the approver and one by an auditor. Verify that the auditor can trace a decision without storing the full prompt. Test that editing a draft after approval requires a fresh decision on the changed payload.

Further reading · EU General Data Protection Regulation · US HHS guidance on cloud computing and HIPAA · FedRAMP program

Knowledge check

Design approvals, compliance evidence, and fairness checks quiz

Answer 10 questions. Check each answer for an explanation.