Skip to content

Risk register

This register is broader than the threat model. The threat model is a STRIDE inventory of security threats at boundaries. This register captures product, schedule, cost, operational, supply-chain, and security risks together, with state, mitigations, and ownership.

State legend:

  • Watch = monitored, no action required this stage.
  • Triggered = the leading indicator fired; PM must escalate per the SOP Risk Management Process.
  • Mitigated = control is in place; the risk persists but is reduced to an acceptable level.
  • Accepted = explicitly accepted, no further action.
  • Resolved = the underlying condition no longer applies; risk is closed.

R1. Corpus swap exposes new data class without revalidation

Section titled “R1. Corpus swap exposes new data class without revalidation”
FieldValue
CategorySecurity / data classification
StateWatch
LikelihoodLow (operator-controlled)
ImpactHigh (notifiable-breach class if PII corpus is loaded)
TriggerAny change to the corpus identifier in the ingestion loader or pyproject.toml
Mitigation todayCorpus pinned in code (RAG003). Data classification doc names one class only
Mitigation plannedFeature #66 / #67 add a CI gate that compares the corpus identifier in the loader to the value in data-classification.md
Cross-refThreat model T3; data-classification.md; #66, #67
OwnerSecurity Specialist
FieldValue
CategoryCost / operational
StateMitigated — budgets and alarms email the operator (#385)
LikelihoodMedium (any test loop, retry storm, or compromised key)
ImpactMedium (capped by AWS account but personal-budget-painful)
TriggerDaily Bedrock spend over $5 across the account, which the rag-sample-bedrock-daily budget reports
Mitigation todayPer-key lifetime request quota (RAG009); the POST /query route throttle (1 req/s, burst 5); the authorizer’s reserved concurrency of 5 (#380). A $5/day budget on the Bedrock services, a $40/month account budget, and per-environment CloudWatch alarms email the operator through the rag-sample-alerts topic; the spend and abuse runbook has the response steps and the kill switch. The daily budget can alert up to about 12 hours after a breach. The API invocations alarm fires within minutes, but only on GET /healthz floods: the POST /query throttle keeps that route below its threshold, so Bedrock spend through /query is caught by the budget
Mitigation plannedLayer 3 (Budgets Action) is deferred per D-4 until the trigger in the spend-control ADR, RAG021, holds. #385 supersedes #295 (tag-filtered budgets) and Story #64 (the $5 alarm)
Cross-refRAG007 (Haiku-class selection reduces unit cost); #385 (supersedes #64, #295); cost.md
OwnerDevOps Lead

R3. Prompt injection via corpus chunks (indirect)

Section titled “R3. Prompt injection via corpus chunks (indirect)”
FieldValue
CategorySecurity
StateWatch
LikelihoodLow today (curated public dataset); high if corpus is swapped
ImpactMedium (off-policy output attributed to product)
TriggerOutput review flags off-template responses; or corpus change
Mitigation todayDelimited retrieved content in prompt; explicit “data not instructions” note
Mitigation plannedCapability #44 Safety Gate; Bedrock Guardrails approved per Decision #55 (closed), gated on #44 entering Stage 3
Cross-refThreat model T1; #44, Decision #55
OwnerSecurity Specialist

R7. Authorization header leak via CloudWatch logs before scrub ships

Section titled “R7. Authorization header leak via CloudWatch logs before scrub ships”
FieldValue
CategorySecurity
StateWatch
LikelihoodHigh during the window between authorizer go-live and Story #62 ship
ImpactHigh (bearer tokens in plaintext in CloudWatch)
TriggerRAG009 stories #59-#63 deploy ahead of #62
Mitigation plannedSequencing: #62 (log scrub) must ship in the same release as #60 (authorizer). PM enforces
Cross-refThreat model; per-feature requirements; #62
OwnerPM + Security Specialist

R8. Supply-chain compromise via Python or Node deps

Section titled “R8. Supply-chain compromise via Python or Node deps”
FieldValue
CategorySecurity / supply chain
StateWatch
LikelihoodLow per-dep, accumulating with surface area
ImpactHigh
Triggerpip-audit or npm audit reports new High/Critical CVE on direct or transitive dep
Mitigation plannedpip-audit and npm audit jobs in CI (non-blocking initially, blocking once baseline is clean). SBOM process per sbom.md
Cross-refsbom.md; #29
OwnerDevOps Lead + Security Specialist
FieldValue
CategoryOperational / developer experience
StateWatch
LikelihoodCertain (already observed)
ImpactLow (productivity drag, no shipping risk)
TriggerAlready triggered for npm install, pip install, dev servers
Mitigation todayVite cache redirected to ext4 (astro.config.mjs)
Mitigation plannedIssue #41 relocates Python .venv to ext4
Cross-ref#41; planning repo CLAUDE.md “Architecture notes”
OwnerOperator
FieldValue
CategorySchedule / delivery
StateWatch
LikelihoodHigh (the gate is a hard-fail)
ImpactLow (intended behavior; surfaces gaps early)
TriggerPR fails pytest --cov-fail-under=90
Mitigation todayCoverage exclusion policy at coverage-exclusions.md
Mitigation plannedQA plans (qa/plan-*.md) call out per-Feature coverage approach; DoD template requires the check pass
Cross-refRAG006; qa/summary.md; dod-template.md
OwnerQA Lead
FieldValue
CategoryDeployment / security
StateWatch
LikelihoodCertain (no issue exists)
ImpactMedium (Stage 4 deploys can’t run without it)
TriggerFirst Terraform apply story enters Stage 4
Mitigation todayOIDC trust policy design documented in deployment-plan.md
Mitigation plannedPM opens a tracking issue under Capability #26; DevOps Lead provisions the role in Stage 4
Cross-refdeployment-plan.md; #25, #29
OwnerPM (to open issue), DevOps Lead (to design)

R13. QA is the employer-facing demo while Prod is frozen

Section titled “R13. QA is the employer-facing demo while Prod is frozen”
FieldValue
CategoryOperational / availability
StateWatch (operator decision D-5, #384)
LikelihoodMedium (every QA deploy can break the environment recipients use)
ImpactMedium (a prospective employer sees an error page or a failed query)
TriggerA QA deploy fails smoke, or a recipient reports the demo down
Mitigation todayQA is the only live environment and the one recipients use. Each QA deploy runs the post-deploy smoke check, which fails the run on a regression. Prod is frozen: bootstrap’s enable_prod defaults to false, and applying bootstrap with that default removes the Prod deploy role, and the GitHub prod environment is not created until #28
Mitigation planned#441 rolls a failed QA deploy back to the LAST_GOOD package. #28 adds the prod environment with its manual-approval gate; the operator then sets enable_prod = true and applies bootstrap
Cross-refdeployment-plan.md; #28, #384, #441
OwnerDevOps Lead
FieldValue
CategorySecurity / cost
StateWatch (operator decision D-3: no WAF until the trigger below)
LikelihoodLow (keys go to identified recipients; no self-serve or public key exists)
ImpactLow to medium. Per-key quotas and the route throttle bound cost. Availability is not bounded: the POST /query throttle is one bucket shared by every caller, so one client can starve every recipient (accepted under D-3)
TriggerA self-serve or public key is issued, or two key-depletion alarms fire in one month. Either reopens #240 (CloudFront WAF). The depletion alarm arrives with #394; until then the operator’s key review is the only signal
Mitigation todayPer-key lifetime quota (RAG009) and the POST /query route throttle. No WAF, and the CloudFront Free plan was rejected
Mitigation planned#380 adds explicit routes, per-route throttles and an authorizer concurrency cap. #240 is deferred until the trigger fires; a CloudFront WAF would not cover the public execute-api host, because HTTP APIs have no WAF association
Cross-ref#240, #380; assessment
OwnerSecurity Specialist

Risks move here when the underlying condition no longer applies or a control is in place with explicit operator acceptance.

R4. Direct prompt injection via /query body

Section titled “R4. Direct prompt injection via /query body”
FieldValue
CategorySecurity
Initial stateWatch
Current stateMitigated
LikelihoodMedium (any public endpoint receives adversarial inputs)
ImpactLow (same audience as requester for single-tenant demo)
Trigger422 oversized-question rate elevated; output review
MitigationRAG013 prompt-attack filter via ApplyGuardrail before the pipeline runs; question length cap (retrieval spec); RAG009 bearer auth limits caller pool
Cross-refThreat model T2; RAG013
OwnerSecurity Specialist

R5. Aurora Data API access path lacks an ADR

Section titled “R5. Aurora Data API access path lacks an ADR”
FieldValue
CategoryArchitecture / governance
Initial stateTriggered
Current stateResolved
TriggerArchitect-reviewer Stage 3 review §2 flagged it
ResolutionRAG011 written, documenting the public-path access contract and rationale for no Lambda VPC attachment
Cross-refRAG001; RAG011
OwnerSolution Architect (Operator)
FieldValue
CategoryArchitecture / governance
Initial stateTriggered
Current stateResolved
TriggerArchitect-reviewer Stage 3 review §2
ResolutionRAG012 written, covering Vite + React, S3 + CloudFront target, no SSR, and the rationale against Next.js
Cross-refRAG012; #17, #18
OwnerSolution Architect (Operator)
FieldValue
CategorySchedule / scope
Initial stateTriggered
Current stateResolved
TriggerArchitect-reviewer §3 flagged as top gold-plating candidate
ResolutionScope decision made: harness retained under Capability #44 Safety / Quality, scoped to BERTScore + SentenceTransformers with no threshold enforcement. RAG014 records the decision and rejected alternatives
Cross-refRAG014; architect-reviewer §3, §4 item 7; #14, #44
OwnerOperator

This register is updated at every PM Notification trigger and at every stage gate. The Risk Management Process loads at every stage start; Triggered risks escalate immediately to the operator.