Files
boc/EOS/debug-behaviour.mjs
T

20 lines
1.0 KiB
JavaScript
Raw Normal View History

#!/usr/bin/env node
import { resolve } from './evidence-resolver-v5.mjs';
const tests = [
{ id: 'B-001', description: 'Läs produktionsdata via API', type: 'data', action: 'read', target: 'production' },
{ id: 'B-002', description: 'Kör inventory på infrastruktur', type: 'infrastructure', action: 'inventory', target: 'production' },
{ id: 'B-003', description: 'Validera terraform-konfiguration', type: 'infrastructure', action: 'validate', target: 'production' },
{ id: 'B-004', description: 'Visa driftstatus', type: 'infrastructure', action: 'health-check', target: 'production' }
];
for (const test of tests) {
const result = resolve(test);
console.log(`\n${test.id}: ${test.description}`);
console.log(` Resolution: ${result.resolution.operation.id}`);
console.log(` Confidence: ${result.resolution.confidence}`);
console.log(` Reasoning: ${result.resolution.reasoning}`);
console.log(` Evidence Quality: ${JSON.stringify(result.resolution.evidenceQuality)}`);
console.log(` Weighted Score: ${result.resolution.weightedScore}`);
}