Harden model results with lossless isolated repair and scoped permissions
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user