{{define "content"}} {{$m := .Data.Mind}}{{$p := .Data.Plan}}{{$op := .Principal.User.Role.AtLeast "operator"}}

plans · intention {{.Data.Intention.Description}}

{{$p.Objective}} {{$p.Status}}

revision {{$p.Revision}} · {{$p.Strategy}} strategy · {{$p.Origin}}{{if $p.RequireApproval}} · approval required{{end}}{{with $p.StatusReason}} · {{.}}{{end}}

{{if and $op (or (eq $p.Status "validated") (eq $p.Status "executing") (eq $p.Status "waiting") (eq $p.Status "blocked") (eq $p.Status "awaiting_approval"))}}
{{end}}
{{template "mind_tabs" (dict "M" $m "Active" "plans")}}

Dependency graph

{{template "plan_dag" (dict "Levels" .Data.Levels "M" $m)}}

Steps

{{if $op}}{{end}} {{range $p.Steps}} {{if $op}}{{end}} {{end}}
StepStatusExpectedObservedRecords
{{.Key}} {{.Title}}
{{.Kind}}{{if .Capability}} · {{.Capability}} {{.Target}}{{end}}{{if .DependsOn}} · after {{join .DependsOn ", "}}{{end}} · attempts {{.Attempts}}/{{.MaxAttempts}}
{{.Status}}{{with .StatusReason}}
{{trunc . 200}}
{{end}}{{with .Error}}
{{trunc . 200}}
{{end}}
{{with .Expectation}}{{.Description}} ({{conf .Confidence}}, within {{.WithinSeconds}}s){{end}}{{with .Precondition}}
precondition: {{.Check.Description}}
{{end}}
{{with .Observation}}{{index . "path"}} = {{index . "observed"}} ({{if index . "holds"}}holds{{else}}does not hold{{end}}){{end}} {{if .ApprovalID}}approval · why {{end}}{{if .RequestID}}request {{end}}{{if .ExecutionID}}execution {{end}}{{if .PredictionID}}expectation {{end}}{{if .IntentionID}}subordinate intention{{end}}{{if eq .Status "blocked"}}
{{end}}

Resources

EstimatedUsed
Capability invocations{{$p.Estimate.Invocations}}{{$p.Actual.Invocations}} of at most {{$p.Budget.MaxInvocations}}
Operator approvals{{$p.Estimate.Approvals}}{{$p.Actual.Approvals}}
Wall time (s){{printf "%.0f" $p.Estimate.WallSeconds}}—
Network operations{{$p.Estimate.Network}}—
Money{{printf "%.2f" $p.Estimate.Money}}{{printf "%.2f" $p.Actual.Money}}

Completion criteria

{{$p.CompletionCriteria}}

{{if $p.AbortConditions}}

Abort conditions

{{end}} {{if $p.Assumptions}}

Assumptions

{{end}}

Risk

{{$p.Risk}}

Alternatives considered

{{if $p.Alternatives}}{{range $p.Alternatives}}{{end}}
StrategyExpected confidenceApprovalsScore
{{.Strategy}}
{{trunc .Description 120}}
{{conf .ExpectedConfidence}}{{.Estimate.Approvals}}{{printf "%.3f" .Score}}{{if .Selected}}selected{{end}} {{.Why}}
{{else}}

None recorded.

{{end}}

Revisions

Validation

{{.Data.Validation}}
{{end}}