292 lines
8.1 KiB
JSON
292 lines
8.1 KiB
JSON
|
|
{
|
||
|
|
"timestamp": "2026-07-01T18:38:12.495Z",
|
||
|
|
"decisions": [
|
||
|
|
{
|
||
|
|
"id": "decision-1782931092492-mq3mhy74c",
|
||
|
|
"timestamp": "2026-07-01T18:38:12.490Z",
|
||
|
|
"inputHash": "6a2bcdc2fc7d76f4",
|
||
|
|
"input": {
|
||
|
|
"id": "TEST-001",
|
||
|
|
"description": "SSH:a in i produktion",
|
||
|
|
"type": "infrastructure",
|
||
|
|
"action": "ssh",
|
||
|
|
"target": "production"
|
||
|
|
},
|
||
|
|
"canonicalOperation": {
|
||
|
|
"operation": "REMOTE_PRODUCTION_ACCESS",
|
||
|
|
"confidence": 1,
|
||
|
|
"evidence": [
|
||
|
|
"command:ssh",
|
||
|
|
"keyword:ssh",
|
||
|
|
"context:produktion",
|
||
|
|
"target:produktion",
|
||
|
|
"target:production",
|
||
|
|
"context:prod",
|
||
|
|
"target:prod",
|
||
|
|
"target:server"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"policyVersion": "1.0.0",
|
||
|
|
"policyResult": {
|
||
|
|
"passed": false,
|
||
|
|
"reason": "Fjärråtkomst till produktionsmiljö är förbjudet. Policy: POL-SEC-001",
|
||
|
|
"severity": "CRITICAL"
|
||
|
|
},
|
||
|
|
"trace": {
|
||
|
|
"duration": 3,
|
||
|
|
"nodes": [
|
||
|
|
{
|
||
|
|
"id": "node-0",
|
||
|
|
"phase": "PLANNER",
|
||
|
|
"timestamp": 0,
|
||
|
|
"status": "completed",
|
||
|
|
"data": {
|
||
|
|
"task": "SSH:a in i produktion"
|
||
|
|
},
|
||
|
|
"result": {
|
||
|
|
"plan": {
|
||
|
|
"steps": [],
|
||
|
|
"estimatedTime": null,
|
||
|
|
"dependencies": []
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "node-1",
|
||
|
|
"phase": "CONTEXT",
|
||
|
|
"timestamp": 0,
|
||
|
|
"status": "completed",
|
||
|
|
"data": {
|
||
|
|
"task": "SSH:a in i produktion"
|
||
|
|
},
|
||
|
|
"result": {
|
||
|
|
"confidence": 0.8,
|
||
|
|
"git": {
|
||
|
|
"branch": null,
|
||
|
|
"uncommitted": null,
|
||
|
|
"remote": null
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "node-2",
|
||
|
|
"phase": "MEMORY",
|
||
|
|
"timestamp": 0,
|
||
|
|
"status": "completed",
|
||
|
|
"data": {
|
||
|
|
"queries": []
|
||
|
|
},
|
||
|
|
"result": {
|
||
|
|
"results": {
|
||
|
|
"relevantDecisions": [],
|
||
|
|
"similarTasks": [],
|
||
|
|
"lessonsLearned": []
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "node-3",
|
||
|
|
"phase": "KNOWLEDGE",
|
||
|
|
"timestamp": 0,
|
||
|
|
"status": "completed",
|
||
|
|
"data": {
|
||
|
|
"queries": []
|
||
|
|
},
|
||
|
|
"result": {
|
||
|
|
"results": {
|
||
|
|
"relatedCapabilities": [],
|
||
|
|
"dependencies": [],
|
||
|
|
"impact": []
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "node-4",
|
||
|
|
"phase": "INTENT",
|
||
|
|
"timestamp": 0,
|
||
|
|
"status": "completed",
|
||
|
|
"data": {
|
||
|
|
"task": "SSH:a in i produktion"
|
||
|
|
},
|
||
|
|
"result": {
|
||
|
|
"operation": "REMOTE_PRODUCTION_ACCESS",
|
||
|
|
"confidence": 1,
|
||
|
|
"evidence": [
|
||
|
|
"command:ssh",
|
||
|
|
"keyword:ssh",
|
||
|
|
"context:produktion",
|
||
|
|
"target:produktion",
|
||
|
|
"target:production",
|
||
|
|
"context:prod",
|
||
|
|
"target:prod",
|
||
|
|
"target:server"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "node-5",
|
||
|
|
"phase": "EOS",
|
||
|
|
"timestamp": 1,
|
||
|
|
"status": "blocked",
|
||
|
|
"data": {
|
||
|
|
"operation": "REMOTE_PRODUCTION_ACCESS"
|
||
|
|
},
|
||
|
|
"result": null,
|
||
|
|
"reason": "Fjärråtkomst till produktionsmiljö är förbjudet. Policy: POL-SEC-001",
|
||
|
|
"policyInfo": {
|
||
|
|
"policyId": "POL-SEC-001",
|
||
|
|
"policyName": "Production SSH Access Control",
|
||
|
|
"evidence": {
|
||
|
|
"operation": "REMOTE_PRODUCTION_ACCESS",
|
||
|
|
"confidence": 1,
|
||
|
|
"matchedEvidence": [
|
||
|
|
"command:ssh",
|
||
|
|
"keyword:ssh",
|
||
|
|
"context:produktion",
|
||
|
|
"target:produktion",
|
||
|
|
"target:production",
|
||
|
|
"context:prod",
|
||
|
|
"target:prod",
|
||
|
|
"target:server"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"riskClass": "CRITICAL",
|
||
|
|
"requiredAction": "Använd godkänd process: SSH-åtkomst till produktion är förbjuden. Alla ändringar måste gå via godkänd pipeline."
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"blocked": true
|
||
|
|
},
|
||
|
|
"replayable": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "decision-1782931092493-dvskefbta",
|
||
|
|
"timestamp": "2026-07-01T18:38:12.493Z",
|
||
|
|
"inputHash": "37e6ac23e3ca8afd",
|
||
|
|
"input": {
|
||
|
|
"id": "TEST-002",
|
||
|
|
"description": "Ändra text i README",
|
||
|
|
"type": "documentation"
|
||
|
|
},
|
||
|
|
"canonicalOperation": {
|
||
|
|
"operation": "EXPOSE_OR_CREATE_SECRET",
|
||
|
|
"confidence": 0.5,
|
||
|
|
"evidence": []
|
||
|
|
},
|
||
|
|
"policyVersion": "1.0.0",
|
||
|
|
"policyResult": {
|
||
|
|
"passed": false,
|
||
|
|
"reason": "Exponering eller skapande av hemligheter är förbjudet. Policy: POL-SEC-002",
|
||
|
|
"severity": "CRITICAL"
|
||
|
|
},
|
||
|
|
"trace": {
|
||
|
|
"duration": 0,
|
||
|
|
"nodes": [
|
||
|
|
{
|
||
|
|
"id": "node-0",
|
||
|
|
"phase": "PLANNER",
|
||
|
|
"timestamp": 0,
|
||
|
|
"status": "completed",
|
||
|
|
"data": {
|
||
|
|
"task": "Ändra text i README"
|
||
|
|
},
|
||
|
|
"result": {
|
||
|
|
"plan": {
|
||
|
|
"steps": [],
|
||
|
|
"estimatedTime": null,
|
||
|
|
"dependencies": []
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "node-1",
|
||
|
|
"phase": "CONTEXT",
|
||
|
|
"timestamp": 0,
|
||
|
|
"status": "completed",
|
||
|
|
"data": {
|
||
|
|
"task": "Ändra text i README"
|
||
|
|
},
|
||
|
|
"result": {
|
||
|
|
"confidence": 0.8,
|
||
|
|
"git": {
|
||
|
|
"branch": null,
|
||
|
|
"uncommitted": null,
|
||
|
|
"remote": null
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "node-2",
|
||
|
|
"phase": "MEMORY",
|
||
|
|
"timestamp": 0,
|
||
|
|
"status": "completed",
|
||
|
|
"data": {
|
||
|
|
"queries": []
|
||
|
|
},
|
||
|
|
"result": {
|
||
|
|
"results": {
|
||
|
|
"relevantDecisions": [],
|
||
|
|
"similarTasks": [],
|
||
|
|
"lessonsLearned": []
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "node-3",
|
||
|
|
"phase": "KNOWLEDGE",
|
||
|
|
"timestamp": 0,
|
||
|
|
"status": "completed",
|
||
|
|
"data": {
|
||
|
|
"queries": []
|
||
|
|
},
|
||
|
|
"result": {
|
||
|
|
"results": {
|
||
|
|
"relatedCapabilities": [],
|
||
|
|
"dependencies": [],
|
||
|
|
"impact": []
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "node-4",
|
||
|
|
"phase": "INTENT",
|
||
|
|
"timestamp": 0,
|
||
|
|
"status": "completed",
|
||
|
|
"data": {
|
||
|
|
"task": "Ändra text i README"
|
||
|
|
},
|
||
|
|
"result": {
|
||
|
|
"operation": "EXPOSE_OR_CREATE_SECRET",
|
||
|
|
"confidence": 0.5,
|
||
|
|
"evidence": []
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "node-5",
|
||
|
|
"phase": "EOS",
|
||
|
|
"timestamp": 0,
|
||
|
|
"status": "blocked",
|
||
|
|
"data": {
|
||
|
|
"operation": "EXPOSE_OR_CREATE_SECRET"
|
||
|
|
},
|
||
|
|
"result": null,
|
||
|
|
"reason": "Exponering eller skapande av hemligheter är förbjudet. Policy: POL-SEC-002",
|
||
|
|
"policyInfo": {
|
||
|
|
"policyId": "POL-SEC-002",
|
||
|
|
"policyName": "Hardcoded Secrets Prevention",
|
||
|
|
"evidence": {
|
||
|
|
"operation": "EXPOSE_OR_CREATE_SECRET",
|
||
|
|
"confidence": 0.5,
|
||
|
|
"matchedEvidence": []
|
||
|
|
},
|
||
|
|
"riskClass": "CRITICAL",
|
||
|
|
"requiredAction": "Använd godkänd process: Hemligheter får aldrig lagras i källkod. Använd AWS Secrets Manager eller motsvarande."
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"blocked": true
|
||
|
|
},
|
||
|
|
"replayable": true
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|