Harden model results with lossless isolated repair and scoped permissions

This commit is contained in:
2026-10-09 20:02:41 +01:00
parent 0f80ff4e95
commit 67ac79765f
23 changed files with 977 additions and 58 deletions
+11
View File
@@ -106,6 +106,17 @@ func TestRunningDurationAndOpenCodeEvidenceShortcut(t *testing.T) {
if got := runDuration("2026-10-09T00:00:00Z", "2026-10-09T00:01:02Z"); got != "1m2s" {
t.Fatal("finished duration changed", got)
}
graphModel := New(context.Background(), "")
graphModel.runDetail = &protocol.RunDetail{RunSummary: protocol.RunSummary{CreatedAt: "2026-10-09T00:00:00Z", FinishedAt: "2026-10-09T00:01:02Z"}}
title := graphModel.runGraphTitle()
for _, field := range []string{"duration 1m2s", "started ", "finished "} {
if !strings.Contains(title, field) {
t.Fatal("graph title omitted run timing", title)
}
}
if got := dateLabel("2026-10-09T00:00:00+02:00"); got != "08 Oct 2026 22:00 UTC" {
t.Fatal("start time mislabeled as UTC", got)
}
m := runInspectionModel()
m.runDetail.Steps[1].AgentActive = true
m = runKey(m, "a")