feat(ms-ai-architect): add v1→v2 MIGRATIONS handler with snapshot fixture and idempotency test
This commit is contained in:
parent
1fe40fe886
commit
502faa97d5
3 changed files with 354 additions and 0 deletions
|
|
@ -0,0 +1,111 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"shared": {
|
||||
"organization": {
|
||||
"name": "Acme AS",
|
||||
"sector": "Statlig",
|
||||
"regulatory_requirements": ["Personopplysningsloven/GDPR"]
|
||||
},
|
||||
"technology": {
|
||||
"cloud_platform": ["Azure"],
|
||||
"license_type": "E5",
|
||||
"ai_services_in_use": ["Azure OpenAI"]
|
||||
},
|
||||
"security": {
|
||||
"data_classification": ["Intern"],
|
||||
"dpia_practice": "Systematisk"
|
||||
},
|
||||
"architecture": {
|
||||
"annual_ai_budget": "500k-2M"
|
||||
},
|
||||
"business": {}
|
||||
},
|
||||
"projects": [
|
||||
{
|
||||
"id": "p-snapshot-classify",
|
||||
"name": "Demosystem A — klassifisering",
|
||||
"description": "Fiktiv test-prosjekt for v1->v2 migrasjons-test.",
|
||||
"scenarios": [],
|
||||
"createdAt": "2026-04-15T10:00:00.000Z",
|
||||
"reports": {
|
||||
"classify": {
|
||||
"input": { "system_name": "Demosystem A" },
|
||||
"raw_markdown": "# AI Act-klassifisering\n\nRisikonivå: Høy\nRolle: deployer",
|
||||
"parsed": {
|
||||
"risk_level": "Høy",
|
||||
"role": "deployer",
|
||||
"reasoning": "Beslutningsstøtte i forvaltningsbehandling.",
|
||||
"obligations": ["Art. 13 — transparens", "Art. 14 — menneskelig tilsyn", "Art. 27 — FRIA"]
|
||||
}
|
||||
},
|
||||
"ros": {
|
||||
"input": { "system_name": "Demosystem A" },
|
||||
"raw_markdown": "# ROS-analyse\n\nNS 5814 / ISO 31000.",
|
||||
"parsed": {
|
||||
"matrix_cells": [
|
||||
{ "row": 4, "col": 4, "count": 2 },
|
||||
{ "row": 3, "col": 5, "count": 1 }
|
||||
],
|
||||
"threats": [
|
||||
{ "id": "T1", "description": "Modell-bias mot minoriteter", "severity": "Høy", "mitigation": "Bias-audit + kalibrering" },
|
||||
{ "id": "T2", "description": "Privacy leak via prompts", "severity": "Kritisk", "mitigation": "DLP + redaction" },
|
||||
{ "id": "T3", "description": "Hallusinerte fakta", "severity": "Medium", "mitigation": "Citation-grounding + reviewer" }
|
||||
],
|
||||
"radar_axes": [
|
||||
{ "name": "Tilgjengelighet", "score": 3 },
|
||||
{ "name": "Konfidensialitet", "score": 4 },
|
||||
{ "name": "Integritet", "score": 4 },
|
||||
{ "name": "Robusthet", "score": 3 },
|
||||
{ "name": "Sporbarhet", "score": 2 },
|
||||
{ "name": "Fairness", "score": 2 },
|
||||
{ "name": "Transparens", "score": 3 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "p-snapshot-cost",
|
||||
"name": "Demosystem B — kostnadsestimat",
|
||||
"description": "Fiktiv kostnadsestimat-rapport for migrasjons-test.",
|
||||
"scenarios": [],
|
||||
"createdAt": "2026-04-20T09:30:00.000Z",
|
||||
"reports": {
|
||||
"cost": {
|
||||
"input": { "system_name": "Demosystem B" },
|
||||
"raw_markdown": "# Kostnadsestimat\n\nP10/P50/P90 i NOK/mnd.",
|
||||
"parsed": {
|
||||
"p10": 45000,
|
||||
"p50": 82000,
|
||||
"p90": 165000,
|
||||
"monthly_breakdown": [
|
||||
{ "component": "Azure OpenAI gpt-4o", "cost": 48000 },
|
||||
{ "component": "Azure AI Search", "cost": 12000 },
|
||||
{ "component": "Storage + log", "cost": 8000 }
|
||||
],
|
||||
"tco_table": [],
|
||||
"tco_headers": []
|
||||
}
|
||||
},
|
||||
"summary": {
|
||||
"input": {},
|
||||
"raw_markdown": "# Sammendrag\n\nBetinget anbefaling.",
|
||||
"parsed": {
|
||||
"verdict": "go-with-conditions",
|
||||
"sub": "Med betingelser",
|
||||
"rationale": "Kostnaden er innenfor rammen, men avhengig av governance-modning.",
|
||||
"key_metrics": [
|
||||
{ "label": "P50/mnd", "value": "82 000 NOK" },
|
||||
{ "label": "Risikonivå", "value": "Høy" }
|
||||
],
|
||||
"metrics_headers": [],
|
||||
"next_steps": ["Etabler DPIA", "Avklar dataleverandør-kontrakt"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"activeProjectId": "p-snapshot-classify",
|
||||
"activeSurface": "project",
|
||||
"preferences": { "theme": "dark" }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue