@if (state() === "loading") {

{{ "status.loading" | t }}

} @if (state() === "running") {

{{ "investigations.status.running" | t }} {{ "investigations.detail.progress" | t }}

{{ "investigations.detail.progressHint" | t }}

@if (streamError()) { }
    @for (e of events(); track $index) {
  1. {{ eventLabel(e) }}
  2. } @empty {
  3. {{ "investigations.detail.noEvents" | t }}
  4. }
} @if (state() === "failed") {

{{ "investigations.detail.failed" | t }}

@if (failureMessage(); as msg) {

{{ msg }}

}

{{ "investigations.detail.failedHint" | t }}

} @if (state() === "notfound") {

{{ "investigations.detail.notFound" | t }}

{{ "investigations.detail.notFoundHint" | t }}

} @if (state() === "error") {

{{ "status.apiUnreachable" | t }}

{{ "investigations.detail.errorHint" | t }}

} @if (report(); as rep) {

{{ "investigations.detail.summary" | t }}

{{ rep.problem || "—" }}

{{ "investigations.detail.tokens" | t }}
{{ rep.tokens_used }}
{{ "investigations.detail.duration" | t }}
{{ rep.duration_seconds }}s
{{ "investigations.detail.cost" | t }}
{{ rep.cost_usd }}

{{ "investigations.detail.activity" | t }}

{{ "investigations.detail.agentsUsed" | t }}

@if (rep.agents_used.length) {
    @for (a of rep.agents_used; track a) {
  • {{ a }}
  • }
} @else {

{{ "investigations.detail.none" | t }}

}

{{ "investigations.detail.toolsUsed" | t }}

@if (rep.tools_used.length) {
    @for (t of rep.tools_used; track t) {
  • {{ t }}
  • }
} @else {

{{ "investigations.detail.none" | t }}

} @if (toolCalls().length) {
    @for (call of toolCalls(); track call.toolId) {
  • {{ call.toolId }} {{ (call.ok ? "investigations.detail.toolOk" : "investigations.detail.toolFailed" ) | t }} @if (call.durationMs !== null) { {{ call.durationMs }}ms }
  • }
}
@if (validation(); as v) {

{{ "investigations.detail.validation" | t }}

{{ "investigations.detail.validationChecked" | t }}: {{ v.checked }}

@for (w of v.warnings; track w) {

⚠ {{ w }}

} @for (e of v.errors; track e) {

✕ {{ e }}

}
}

{{ "investigations.detail.findings" | t }} ({{ rep.findings.length }})

@if (rep.findings.length === 0) {

{{ "investigations.detail.noFindings" | t }}

} @else {
@for (f of rep.findings; track f.finding_id) { @if (expandedFindings().has(f.finding_id)) { } }
{{ "investigations.col.severity" | t }} {{ "investigations.col.status" | t }} {{ "investigations.col.category" | t }} {{ "investigations.col.explanation" | t }} {{ "investigations.col.evidence" | t }} {{ "investigations.detail.expand" | t }}
{{ f.severity }} {{ f.status }} {{ f.category }} {{ f.explanation }} {{ f.evidence_ids.length }}
{{ "investigations.col.id" | t }}
{{ f.finding_id }}
@if (f.evidence_ids.length) {
{{ "investigations.detail.evidenceIds" | t }}
    @for (eid of f.evidence_ids; track eid) {
  • {{ eid }}
  • }
} @if (f.recommendations.length) {
{{ "investigations.detail.findingRecs" | t }}
    @for (r of f.recommendations; track r) {
  • {{ r }}
  • }
} @if (f.validation_steps.length) {
{{ "investigations.detail.validationSteps" | t }}
    @for (s of f.validation_steps; track s) {
  • {{ s }}
  • }
} @if (f.alternatives.length) {
{{ "investigations.detail.alternatives" | t }}
    @for (a of f.alternatives; track a) {
  • {{ a }}
  • }
}
}

{{ "investigations.detail.hypotheses" | t }}

{{ "investigations.detail.causalNote" | t }}

{{ "investigations.detail.hypSupported" | t }} ({{ rep.hypotheses_supported.length }})

@if (rep.hypotheses_supported.length === 0) {

{{ "investigations.detail.none" | t }}

} @else { }

{{ "investigations.detail.hypRefuted" | t }} ({{ rep.hypotheses_refuted.length }})

@if (rep.hypotheses_refuted.length === 0) {

{{ "investigations.detail.none" | t }}

} @else { }

{{ "investigations.detail.evidence" | t }} ({{ rep.evidence.length }})

@if (rep.evidence.length === 0) {

{{ "investigations.detail.noEvidence" | t }}

} @else { }

{{ "investigations.detail.conclusions" | t }} ({{ rep.conclusions.length }})

@if (rep.conclusions.length === 0) {

{{ "investigations.detail.none" | t }}

} @else { }

{{ "investigations.detail.recommendations" | t }} ({{ rep.recommendations.length }})

@if (rep.recommendations.length === 0) {

{{ "investigations.detail.none" | t }}

} @else { }

{{ "investigations.detail.limitations" | t }} ({{ rep.limitations.length }})

@if (rep.limitations.length === 0) {

{{ "investigations.detail.none" | t }}

} @else { }
}