{{define "content"}} {{$r := .Data.Replay}}{{$m := .Data.Mind}}

Replays › {{$m.DisplayName}}

Replay {{$r.Status}}

From snapshot {{.Data.Snapshot.Name}} (event {{.Data.Snapshot.EventSeq}}), events {{$r.FromSeq}}–{{$r.ToSeq}} · {{$r.Summary.Steps}} steps · {{$r.Summary.Cycles}} cycles · model calls: {{$r.Summary.LLMReplayed}} replayed, {{$r.Summary.LLMLive}} live{{with $r.Error}} · {{.}}{{end}}

{{with .Data.Sandbox}}

Sandbox mind: {{.Slug}} (disabled; kept for inspection) · compare with source

{{end}}
{{$r.Summary.Exact}} exact {{$r.Summary.Approximate}} approximate {{$r.Summary.Diverged}} diverged
{{if eq $r.Status "running"}}

Running… this page refreshes.

{{end}}

Runtime identity

Compatibility with the snapshot's runtime: {{or $r.Compatibility "unrecorded"}}

{{if $r.IdentityDiff}}{{else}}

No differences recorded between the two runtimes.

{{end}}
Build{{$r.Identity.Build.Version}} {{with $r.Identity.Build.Commit}}{{trunc . 12}}{{end}}{{if $r.Identity.Build.Modified}} modified tree{{end}} · {{$r.Identity.Build.GoVersion}} {{$r.Identity.Build.OS}}/{{$r.Identity.Build.Arch}}
Schema{{$r.Identity.SchemaVersion}}
Config digest{{$r.Identity.ConfigDigest}}
Personalityv{{$r.Identity.PersonalityVersion}}
Policy digest{{$r.Identity.PolicyDigest}}
Routing{{range $k, $v := $r.Identity.Routing}}{{$k}} → {{$v}}
{{else}}none{{end}}
Deterministic subsystems{{range $k, $v := $r.Identity.Deterministic}}{{$k}} v{{$v}} · {{end}}
Timezone{{$r.Identity.Timezone}}

Exact steps prove the deterministic code and recorded model responses reproduced the events. A different build can still be exact; an incompatible schema is never run.

First divergence

{{with $r.Divergence}}

Identical until step {{.Step}} (stimulus), then {{.Label}}.

Components involved (inferred from event types): {{range .Components}}{{.}} {{end}}

recorded in {{.RecordedIn}} · replayed in {{.ReplayedIn}}

{{if .OnlyRecorded}}

Only in the recording

{{end}} {{if .OnlyReplayed}}

Only in the replay

{{end}} {{else}}

{{if eq $r.Status "done"}}None: every step was exact.{{else}}Not available.{{end}}

{{end}}
{{if .Data.Steps}}{{range .Data.Steps}}
{{.Label}} {{.Index}}. {{trunc .Summary 120}} · {{.Cycles}} cycle(s){{if .LLMReplayed}} · {{.LLMReplayed}} recorded model response(s){{end}}{{if .LLMLive}} · {{.LLMLive}} live call(s){{end}}
{{with .Note}}

{{.}}

{{end}}

Recorded

    {{range .Original}}
  • {{.}}
  • {{else}}
  • nothing
  • {{end}}

Replayed

    {{range .Replayed}}
  • {{.}}
  • {{else}}
  • nothing
  • {{end}}
{{end}}{{else}}

No steps recorded{{if eq $r.Status "running"}} yet{{end}}.

{{end}}
{{end}}