Files
Andy Dixon 2ecdbc39b5 feat(ui): wants, intentions, commitments, plans, agency timeline, why, research
- Wants: active wants by effective strength with origin, means, drives,
  values, goal, reinforcement, suppressions and each conflict with its
  resolution rule; closed wants with their resolution.
- Intentions grouped by status with blocked reasons and plans, plus the
  wants that did not become intentions and why. An intention page shows
  sources, subordinate intentions, formation terms, every plan revision as
  a dependency graph, decisions and the correlated timeline; operators can
  abandon it.
- Commitments with polarity, exception, matcher, weight and due time,
  live conflicts between commitments, a creation form and close controls.
- Plans with estimate against budget; a plan page with the dependency
  graph, per-step expectations, observations and linked approvals,
  requests, executions and subordinate intentions, resources, completion
  and abort conditions, assumptions, alternatives, revisions and
  validation; operators can cancel a plan or release a blocked step.
- Agency timeline labelling each event as wanted, intended, committed,
  planned, requested, approved, acted, observed or reconsidered.
- "Why did this happen?" pages built from agency.Explain, reachable from
  events, executions in the approval centre, plan steps and intentions.
- A research dashboard per mind (volition and agency rates, introspection
  accuracy, action claims, self-model accuracy, calibration by confidence
  band, experiments on the mind) and a global research page grouping
  experiments by protocol; every figure sits next to its operational
  definition and the disclaimer. Experiment pages show the protocol,
  reproducibility, build, per-variant research measures, divergence
  extras and counterfactual findings.
- The mind tabs gain Volition; the navigation gains Research.
2026-09-24 21:16:48 +01:00

24 lines
3.4 KiB
HTML

{{define "content"}}
{{$m := .Data.Mind}}{{$x := .Data.X}}
<div class="pagehead"><p class="muted small"><a href="/minds/{{$m.Slug}}/agency">agency</a></p><h1>Why did this happen?</h1>
<p class="muted">Constructed only from recorded state: rows and events. Nothing here is generated, and hidden model reasoning is not shown because it is not stored. Anything missing is listed as not recorded.</p></div>
{{template "mind_tabs" (dict "M" $m "Active" "agency")}}
<section class="card">
{{with $x.Action}}<div class="why-section"><h3>Action</h3><p><code>{{.Capability}}</code> on <span class="mono">{{.Target}}</span> — <span class="badge">{{.Status}}</span>{{if .DecidedBy}} · decided by {{.DecidedBy}}{{end}}{{with .Note}} (“{{.}}”){{end}}{{with .Result}}<br><span class="small muted">{{.}}</span>{{end}}</p></div>{{end}}
{{with $x.Step}}<div class="why-section"><h3>Immediate cause</h3><p>plan step <span class="mono">{{.Key}}</span> {{.Title}} ({{.Status}}){{with $x.Plan}} of <a href="/minds/{{$m.Slug}}/plans/{{.ID}}">{{.Text}}</a> <span class="small muted">{{.Detail}}</span>{{end}}</p></div>{{end}}
{{with $x.Intention}}<div class="why-section"><h3>Intention</h3><p><a href="/minds/{{$m.Slug}}/intentions/{{.ID}}">{{.Description}}</a> <span class="badge">{{.Status}}</span> <span class="small muted">{{.Kind}}, priority {{conf .Priority}}</span></p></div>{{end}}
{{with $x.Subordinate}}<div class="why-section"><h3>While waiting</h3><p>{{.Description}} <span class="badge small">{{.Status}}</span></p></div>{{end}}
{{if $x.Wants}}<div class="why-section"><h3>Originating wants</h3>{{range $x.Wants}}<p>{{.Description}} <span class="small muted">({{.Origin}}, strength {{conf .Strength}})</span></p>{{end}}</div>{{end}}
{{with $x.Goal}}<div class="why-section"><h3>Goal</h3><p>{{.Text}} <span class="small muted">{{.Detail}}</span></p></div>{{end}}
{{if $x.Beliefs}}<div class="why-section"><h3>Supporting beliefs</h3>{{range $x.Beliefs}}<p><a href="/minds/{{$m.Slug}}/beliefs/{{.ID}}">{{.Text}}</a> <span class="small muted">{{.Detail}}</span></p>{{end}}</div>{{end}}
{{if $x.Evidence}}<div class="why-section"><h3>Evidence</h3><ul class="plain small">{{range $x.Evidence}}<li>{{.Text}} <span class="muted">{{.Detail}}</span></li>{{end}}</ul></div>{{end}}
{{if $x.ConflictingWants}}<div class="why-section"><h3>Conflicting wants</h3>{{range $x.ConflictingWants}}<p>{{.Text}}<br><span class="small muted">{{.Detail}}</span></p>{{end}}</div>{{end}}
{{if $x.Commitments}}<div class="why-section"><h3>Commitments</h3>{{range $x.Commitments}}<p>{{.Polarity}}: {{.Description}}{{if .Unless}} unless {{.Unless}}{{end}} <span class="small muted">({{.Kind}})</span></p>{{end}}</div>{{end}}
{{if $x.Resolution}}<div class="why-section"><h3>Resolution</h3><ul class="small">{{range $x.Resolution}}<li>{{.}}</li>{{end}}</ul></div>{{end}}
{{with $x.Expectation}}<div class="why-section"><h3>Expected outcome</h3><p>{{.Text}} — <span class="badge">{{.Detail}}</span></p></div>{{end}}
{{with .Data.Attribution}}<div class="why-section"><h3>Attribution</h3><p><span class="badge">{{.Class}}</span> {{.Reason}}</p></div>{{end}}
{{if $x.Confidence}}<div class="why-section"><h3>Confidence</h3><p>{{conf $x.Confidence}} <span class="small muted">the intention's expected chance of achieving its outcome, as recorded when it formed</span></p></div>{{end}}
{{if $x.Gaps}}<div class="why-section"><h3>Not recorded</h3><ul class="small">{{range $x.Gaps}}<li>{{.}}</li>{{end}}</ul></div>{{end}}
</section>
{{end}}