{{define "content"}} {{$e := .Data.E}}{{$r := .Data.Results}}

Experiments

{{$e.Name}} {{$e.Status}}

{{$e.Hypothesis}}

Baseline: {{.Data.Base.DisplayName}} snapshot {{.Data.Snapshot.Name}} (event {{.Data.Snapshot.EventSeq}}){{with .Data.Subject}} · Subject: {{.Slug}} · compare with baseline{{end}}{{with $e.Error}} · {{.}}{{end}}

{{if .Principal.User.Role.AtLeast "operator"}}
{{end}} {{if ne $e.Status "draft"}}Export results{{end}} {{if .Principal.User.Role.AtLeast "administrator"}}
{{end}}
{{if eq $e.Status "running"}}

Running… this page refreshes.

{{end}}

Definition

{{.Data.DefinitionJSON}}

Results

{{if eq $e.Status "done" "failed"}}
Duration{{$r.DurationMS}} ms · {{$r.Cycles}} cycles{{if $r.TruncatedAfter}} · stopped after stimulus {{$r.TruncatedAfter}} (duration cap){{end}}
Memories / goals{{$r.Memories}} / {{$r.Goals}}
Model calls{{index $r.LLMCalls "live"}} live · {{index $r.LLMCalls "replayed"}} replayed
{{if $r.Expectations}}

Expectations

{{range $r.Expectations}}{{end}}
{{if .Met}}met{{else}}not met{{end}}{{.EventType}}{{with .Contains}} ∋ "{{.}}"{{end}}{{if .Absent}} (absent){{end}}{{trunc .Matched 90}}
{{end}} {{if $r.EventsByType}}

Events produced

{{range $t, $n := $r.EventsByType}}{{$t}} {{$n}} · {{end}}

{{end}} {{if $r.Beliefs}}

Beliefs of the subject

{{range $r.Beliefs}}{{end}}
{{.Proposition}}{{conf .Confidence}}{{.Status}} · {{.Source}}
{{end}} {{else}}

Not run yet.

{{end}}
{{if $r.Steps}}

Stimuli

{{range $r.Steps}}
{{.Index}}. {{.Text}} · {{.Cycles}} cycle(s)
{{end}}
{{end}} {{end}}