R-01P0area C6 · likelihood high · impact critical · owner: Data & Analytics
Analytics export trusts caller-supplied tenant_ids[], enabling cross-tenant claims export
The warehouse export endpoint in analytics-svc builds its query from the tenant_ids[] array supplied in the request body instead of re-deriving tenant scope from the auth context. A partner-portal token scoped to a single tenant was used in staging to export another tenant's claims rows. The row-level tenant guard that protects the transactional path is bypassed entirely on this route.
services/analytics/src/export/query-builder.ts:142
const tenantIds = req.body.tenant_ids; // caller-supplied, never re-derived
const scope = tenantIds.map((t) => sql`tenant_id = ${t}`);
return sql`SELECT * FROM claims_export WHERE ${sql.join(scope, sql` OR `)}`;The export path surfaced in week 1, during the code-review sweep of every query path that reaches the warehouse. The transactional services all route reads through the shared row-level tenant guard, but analytics-svc assembles its export query directly from the request body, trusting a tenant_ids[] array the caller supplies. Notably, the behavioral AI harness showed no cross-tenant leakage in 402 of 402 relevant retrieval probes; this is a plain REST export path that never touches the AI layer, which is why code review found it and the harness could not.
In week 2 we proved it in staging, never in production: a partner-portal token scoped to one tenant was sent with another tenant's id in tenant_ids[], and the export returned that tenant's claims rows in full. Staging data is synthetic, and the crafted request is documented in the evidence pack so the engineering team could reproduce it in minutes.
The blast radius is every tenant's claims data, claimant personal data included, exposed to any holder of a partner-portal token: a GDPR exposure as well as a contractual one for the white-label insurers. Whether the path was ever exercised in production could not be established within the audit's read-only access, so reviewing production export logs is remediation step one; it bears on notification duties but does not reduce the severity.
The fix path was agreed during the audit: a same-day hotfix deriving tenant scope solely from the authenticated principal and rejecting any request that carries tenant_ids[], followed by shared scoping middleware on every warehouse read and cross-tenant access tests in CI.
fix · Hotfix same day: derive tenant scope solely from the authenticated principal and reject any request carrying tenant_ids[]. Then move tenant scoping into shared middleware applied to every warehouse read path, and add cross-tenant access tests to CI so any regression fails the build. Finally, review export logs across the retention window to confirm no prior misuse.
R-02P0area F5 · likelihood medium · impact critical · owner: Platform/SRE
Disaster recovery never exercised end-to-end; stated RTO/RPO currently unverifiable
The warm-standby region has never been exercised end-to-end: it is absent from the pipeline's apply matrix and is applied manually from a frozen branch, and a week-2 Terraform plan showed 61 resources drifted from code. Point-in-time restore is untested for 2 of the 5 critical datastores (Kafka consumer offsets and the claims document store), and no restore drill is on record. The RTO of 4 hours and RPO of 15 minutes stated in the enterprise vendor questionnaire are therefore currently unverifiable.
.github/workflows/terraform-apply.yml:31
strategy:
matrix:
env: [production, staging]The gap surfaced in week 1 during document review. The vendor-assurance questionnaire prepared for the two enterprise onboardings states an RTO of 4 hours and an RPO of 15 minutes, so we asked for the most recent restore-drill report; none exists on record. Backup jobs run on schedule, which is precisely why the gap had stayed invisible: nothing was failing, so nothing was questioned.
In week 2, Platform/SRE ran a Terraform plan against the warm-standby region with the auditor observing: 61 resources diverge from code, because the standby is missing from the pipeline's apply matrix and is applied manually from a frozen branch, while the primary region is applied from main on every merge. In week 3 the team walked the DR runbook through in staging; the walk-through stalled at the step that reconstructs Kafka consumer offsets, which the runbook marks as to-be-defined, and for the claims document store no restore has ever been attempted on record - backup copies exist but have never been read back. Point-in-time restore is thus untested for 2 of the 5 critical datastores. No test touched production at any point.
In a regional failure the platform would be rebuilt onto infrastructure that no longer matches code, with no practiced procedure for the two stores that anchor claims processing. Restoring the payout pipeline without consumer offsets forces a choice between replaying events (duplicate payouts) and skipping them (silently lost claims), while the document store holds the FNOL evidence that adjusters and the AI intake path depend on. The 4h/15min figures already given to prospective enterprise customers are unverifiable, which is itself an assurance risk for the onboardings.
The fix is phased. First, bring the standby region under the same pipeline and drift detection as the primary and reconcile the 61 drifted resources; this is days of work. Second, define and test restore procedures for consumer offsets and the document store in staging, recording timings against the stated targets. Third, schedule recurring game days that fail over and restore end-to-end, and only re-state the RTO/RPO to customers once a drill has met them.
fix · Phase 1 (days): apply the standby from the same pipeline as the primary, enable drift detection on it, and reconcile the 61 resources. Phase 2 (weeks): build and test restore procedures for Kafka consumer offsets and the document store in staging, with timed evidence. Phase 3 (quarterly): run end-to-end failover and restore game days against the stated RTO/RPO, and only re-state 4h/15min to customers once a drill has met them.
R-03P0area G1 · likelihood high · impact critical · owner: AI Enablement
Prompt injection via uploaded claim PDF reaches tool loop; reserve approval gate bypassed
An uploaded claim PDF carrying embedded instructions reached adjuster-copilot's tool loop: retrieved chunks are concatenated into the prompt without provenance tagging (assemble.ts:88), and update_reserve is callable without the human-approval gate on the direct executor path, the gate being enforced in the UI only (registry.ts:104). In the staging behavioral test, safe mode intercepted an update_reserve call requesting a 40× reserve increase. This spans both AI architecture (G1) and AI security (G2).
ai/copilot/src/context/assemble.ts:88
const prompt = [SYSTEM_PREAMBLE, ...retrieved.map(c => c.text)].join(SECTION_SEP);
// TODO: tag chunk provenance before GA — see RFC-114
return prompt;
The behavioral harness mapped 61 capabilities directly from code and generated 412 probes across 19 misbehavior vectors; the injection family included claim documents with embedded instruction blocks. In week 2, one probe uploaded a claim PDF whose body text addressed the assistant directly and asked it to adjust the claim's reserve. Because assemble.ts:88 concatenates retrieved chunks into the prompt with no provenance tags or delimiters, the document's text arrived with the same standing as the system instructions.
On the UI path the human-approval gate held in 100% of probes. On the direct tool-executor path, however, the gate exists only in the front-end: registry.ts:104 registers update_reserve with no server-side approval requirement, and the poisoned document drove an update_reserve call requesting a 40× increase to the probe claim's reserve. Every run was in staging safe mode with all writes intercepted — zero side effects on real data — but the same call would have executed unimpeded in production. Nothing exotic is needed to reach that path: the copilot's own agent loop dispatches model-emitted tool calls server-side through the registry executor — the UI gate guards only human-initiated actions, so a model-initiated call bypasses it by construction.
Any uploaded claim document is attacker-controllable input, so the exposure covers every tenant in the adjuster-copilot pilot. Reserve values are financially material and feed downstream solvency and reinsurance reporting; pre-fix injection resistance across the family measured 88.7%, and the honest-refusal rate of 91.4% offers no protection once instructions are laundered through retrieval.
The fix is sequenced to match the go-live conditions. The executor-side gate is a days-scale hotfix and is the stated condition for continuing the pilot; provenance tagging and untrusted-content delimiting at assembly follow within weeks; the injection probe set then becomes a blocking adversarial regression suite in CI, so the 88.7% figure is re-measured on every release rather than once per audit.
fix · Phase 1 (days): enforce the human-approval gate server-side in the tool executor for every state-changing tool — the condition under which the pilot may continue. Phase 2 (weeks): provenance-tag retrieved content and delimit it as untrusted at prompt assembly. Phase 3: promote the injection probe set into CI as a blocking adversarial regression suite mapped to the OWASP Top 10 for LLM Applications (2025).
R-04P0area G4 · likelihood high · impact critical · owner: AI Enablement
No evaluation gate: floating model alias let a vendor bump silently degrade extraction
Prompt and model changes ship with no evaluation gate: prompt-registry/models.yaml:12 references the extraction model through a floating latest alias, there is no golden set, no offline eval step in CI and no online field-accuracy monitoring. A vendor minor-version bump the month before the audit silently degraded extraction for 9 days until a reinsurer complained.
prompt-registry/models.yaml:12
intake-extractor:
provider: cloud-llm
model: doc-extract-std
version: latest # floating alias — resolves at call time
The month before the audit, the extraction vendor shipped a minor version bump. Because prompt-registry/models.yaml:12 references the model by a floating latest alias, the new version went live to every tenant with no release event, no evaluation run and no record of the change — the platform's own deployment history shows nothing on the day behavior changed.
Nothing in the pipeline could have caught it. There is no golden evaluation set for intake-extractor, no offline eval step in CI, and no online monitors on field-level accuracy of extracted values. The regression surfaced 9 days later, when a reinsurer complained about inconsistent claim figures: the system of record downstream, not the platform, raised the alarm. The audit reconstructed the timeline from the vendor changelog and the reinsurer's ticket; the gap itself was already evident from the configuration alone.
The blast radius is every document processed through intake during those 9 days, across all tenants, with no marker separating affected extractions from clean ones. The remediation path is sequenced: pin versions in the registry and manifests within days; stand up versioned golden sets and a blocking CI eval within weeks; then add online accuracy and drift monitoring with canaried model releases and automated rollback. This evaluation gate is a named condition for adjuster-copilot GA.
fix · Pin model references to immutable versions recorded in deployment manifests (days). Then build versioned golden evaluation sets per AI capability and wire a blocking CI eval on any model, prompt or generation-parameter change (weeks). Finally add online field-accuracy and drift monitors on high-value extraction fields, and canary model releases with automated rollback criteria.
R-05P1area C2 · likelihood high · impact high · owner: Partner Integrations
Contract tests missing on 2 of 6 Kafka event schemas; Q3 change dropped partner webhooks
Consumer-driven contract tests run for 4 of the 6 Kafka event schemas; partners.webhook-dispatch.v1 and documents.extracted.v1 are covered on neither the producer nor the consumer side. In Q3 an incompatible change to the webhook-dispatch schema shipped to production and partner webhook delivery failed silently for 6 hours, until a broker reported missing claim-status notifications.
.github/workflows/contract-tests.yml:31
matrix:
schema: [claims.fnol-received.v1, claims.status-changed.v1,
payouts.approved.v1, fraud.case-flagged.v1]
# partners.webhook-dispatch.v1 and documents.extracted.v1: no consumer contractsThe thread started in week 2, in the postmortem archive rather than the code. A Q3 postmortem recorded six hours of silently dropped partner webhooks after an incompatible change to the webhook-dispatch event schema; its action item, add consumer contracts, was still open when the audit began. Cross-checking the contract-test workflow confirmed that only 4 of the 6 event schemas are exercised, with partners.webhook-dispatch.v1 and documents.extracted.v1 uncovered on both sides.
To confirm the failure mode still exists, we replayed the Q3 change in staging: a renamed field in the producer schema deserialized to null in the current consumer, which acked the message and emitted nothing. No alert fired, because delivery success is not measured: the queue drains normally while the payload is dropped. Production was never touched; the replay used staging topics and synthetic events.
The blast radius is partner trust rather than data loss: webhook-dispatch carries claim-status notifications to brokers and white-label insurers, exactly the integration surface the two enterprise onboardings will stress. The schema registry supports compatibility enforcement, but both uncovered subjects have it set to NONE, so nothing mechanical prevents a repeat.
The fix is cheap relative to the incident it prevents: declare FULL_TRANSITIVE compatibility on both subjects and add consumer-driven contracts to the producer and consumer pipelines — the contract tests, not the registry mode, are what catch a defaulted-field rename. The remediation roadmap sequences both in Phase 2, since neither needs architectural work, and a webhook delivery-success alert closes the detection gap in parallel.
fix · Set FULL_TRANSITIVE compatibility on both uncovered subjects so the registry rejects incompatible changes at publish time — noting that a defaulted-field rename passes any compatibility mode, which is why the consumer-driven contract tests, added to both producer and consumer pipelines as blocking gates, are the control that actually catches it. Alert on webhook delivery success rate so a silent drop pages within minutes rather than hours.
R-09P1area E5 · likelihood medium · impact high · owner: Claims Intake
Claim attachments retained indefinitely against the 24-month DPA deletion commitment
The sampled signed carrier DPAs commit the platform, as processor, to deleting claim attachments 24 months after claim closure. No deletion path exists anywhere: the production document store's Terraform sets lifecycle_rules = [], no retention job or schedule could be found, and an object-age inventory shows attachments from the longest-standing tenants far older than any plausible closure-plus-24-months date. Indefinite retention of special-category health data breaches the DPAs and leaves the carriers, as controllers, exposed on GDPR storage limitation.
infra/terraform/prod/document-store.tf:14
module "claim_documents" {
source = "../modules/object-store"
lifecycle_rules = []
}The gap surfaced in week 2, during the data-protection review, when sampled signed carrier DPAs were read against the platform's actual retention behavior. Each sampled DPA commits the platform, as processor, to deleting claim attachments 24 months after claim closure. No retention schedule, lifecycle rule or deletion job could be found in code, infrastructure or documentation, and interviews with the Claims Intake and Data & Analytics squads confirmed none has ever existed.
Verification stayed within the audit's read-only access, and no attachment content was opened. The Terraform module defining the production document store sets lifecycle_rules = [], and a metadata-only object-age inventory showed objects from the longest-standing tenants years older than any plausible closure-plus-24-months date; an aggregate count run by the Claims Intake squad at the auditor's request confirmed attachments linked to claims closed more than 24 months ago. In staging, the squad backdated a test claim's closure past the trigger and its photos and medical documents remained untouched, confirming behaviorally that nothing deletes them.
The blast radius extends beyond the primary store. Claim attachments routinely contain special-category health data (medical reports, injury photographs, treatment invoices), and whether copies also persist in replicas, backups, the warm-standby DR region or any derived datasets was not established during the audit and must be confirmed during remediation. Every month of continued retention widens the gap between what the DPAs promise the carrier controllers and what the platform actually does.
The fix is closure-driven rather than age-driven, since a blunt lifecycle rule would delete attachments on long-running open claims. First, agree the retention position with the carriers' data-protection contacts and ship a deletion job keyed to claim closure plus 24 months, with legal-hold and reopened-claim exceptions. Then run a logged, staged backfill of overdue objects, extend deletion to replicas, backups and the warm-standby copy, and add a scheduled compliance check that alerts on any object past its retention date. Finally, fold the schedule into the Art. 30 records of processing so the paper position and system behavior match.
fix · Phase 1: agree the retention position with the carriers' data-protection contacts, record the decision, and ship a closure-driven deletion job (attachments deleted 24 months after claim closure, with legal-hold and reopened-claim exceptions). Phase 2: run a logged, staged backfill of overdue objects and extend deletion to replicas, backups and the warm-standby copy, with a scheduled check alerting on any object past retention. Phase 3: update the Art. 30 records of processing and the retention schedule so documentation matches system behavior.
R-11P1area F3 · likelihood high · impact medium · owner: Platform/SRE
SLOs lack an error-budget policy; 38% of pages last quarter were non-actionable
SLOs are defined for the 6 critical user journeys and have dashboards, but no error-budget policy exists, so a spent budget carries no consequence for release pacing. Paging history for the last quarter shows 38% of pages were non-actionable, and on-call interviews corroborate measurable alert fatigue.
docs/slo/README.md:14
## Error-budget policy
TBD - to be agreed with product before copilot GA.
SLO definitions for the 6 critical user journeys were easy to find: they live in the service catalog with dashboards attached, and most carry product sign-off. What is missing is the policy layer. The error-budget section of the SLO documentation is a placeholder that git history shows unchanged for 11 months, no document anywhere states what happens when a budget is spent, and week-1 interviews confirmed that no release has ever been paused on reliability grounds.
In week 2 we analyzed the paging history for the last quarter, exported read-only from the paging tool. 38% of pages were closed as non-actionable: auto-resolved before anyone looked, duplicates of another page, or acknowledged with no action taken, and the burden falls unevenly, with two squads absorbing most of the noise. Alert rules fire on static thresholds rather than budget burn rates, so the pager is loud when nothing is at risk and silent when a budget erodes slowly. On-call engineers described routinely snoozing night pages, a learned response the paging data corroborates.
This was an analysis of records, not an experiment, but the blast radius is already visible in the data: payout timeliness is one of the 6 journeys, and the August consumer stall burned most of that journey's quarterly error budget without generating a single page, because alerting fires on static thresholds rather than on budget burn. The fix is to write and sign off an error-budget policy with product, convert paging for the 6 journeys to multi-window burn-rate alerts, and institute a quarterly alert-quality review that removes every rule found non-actionable. Error-budget consumption should then be reported to engineering governance so release pacing has a documented, enforceable basis.
fix · Write an error-budget policy with product sign-off that names concrete consequences (release slowdown, mandatory reliability work) when a budget is spent. Convert paging for the 6 journeys to multi-window burn-rate alerts, and run a quarterly alert-quality review that deletes or demotes every non-actionable rule, reporting budget consumption to engineering governance.
R-18P2area D1 · likelihood medium · impact medium · owner: Platform/SRE
Growing e2e quarantine: 41 flaky specs (14%) excluded, two payout journeys among them
The nightly end-to-end suite excludes 41 specs tagged @quarantine, 14% of its 293 scenarios, and the count has grown from 12 to 41 over three quarters with no spec ever leaving. Entries carry no expiry, owner or budget. Two quarantined specs cover claim payout approval and broker payout reconciliation, leaving both journeys without automated regression cover.
.github/workflows/e2e.yml:63
- name: Nightly e2e (staging)
run: pnpm --filter e2e test -- --grep-invert "@quarantine"
The quarantine surfaced in week 1 during the CI configuration review: the nightly workflow invokes the e2e runner with --grep-invert "@quarantine", and a search across the monorepo returned 41 tagged specs out of 293. Git history shows the tag count rising from 12 at the start of Q1 to 41 by the audit, with no spec ever leaving quarantine. Interviews with the QA guild confirmed there is no exit criterion, expiry or owner; tagging is at the discretion of whoever is unblocking a red pipeline.
In week 2, at our request, a Payments engineer re-ran the two quarantined payout journeys, claim payout approval and broker payout reconciliation, twenty times each in the staging environment; our access stayed read-only throughout and nothing was run against production. Both failed intermittently, at roughly one run in three, from fixture collisions on shared staging data and an unconditioned wait on an event-driven status change. The flakiness is environmental rather than a product defect, but the effect is the same: neither journey has had a trustworthy automated end-to-end check for at least two quarters.
The exposure concentrates on the payout path, which moves money to claimants and brokers and is already carrying a separate bus-factor finding. With these journeys quarantined, a payout regression surfaces only at the unit and integration layers, or with a customer. Left unmanaged, the quarantine also erodes trust in the suite as a whole, which is how teams drift back to re-running red builds.
The fix is organizational first, technical second. Assign suite ownership to Platform/SRE jointly with the QA guild, cap quarantined specs at 5% with a 14-day expiry and a named owner per entry, and burn down the payout journeys first with per-run tenant seeds. Then move the nightly run onto the ephemeral per-change environments already used by the integration layer, and track flake rate and quarantine age on the managed observability platform so the budget is enforceable.
fix · First: assign suite ownership to Platform/SRE jointly with the QA guild; set a flake budget of at most 5% of specs quarantined, each entry with a named owner and a 14-day expiry; restore the two payout journeys first, using per-run tenant seeds to remove fixture collisions. Then: move the nightly run from shared staging onto the ephemeral per-change environments already used by the integration layer, and publish flake rate, quarantine age and time-to-exit on the managed observability platform.