Phase 10. Metacognition is a cognitive process with deterministic self-checks (insufficient evidence, single-source reliance, model output without evidence, repeated failed hypotheses, stale contradictions, calibration overconfidence); its warnings compete for attention and, when admitted, add counter-evidence or open an investigation goal. Reflection reviews the period since the last run (prediction errors, rejected beliefs, corrections, status changes, completed goals, contradictions, calibration), turns repeated failures into procedural lessons written once, and records a reflection event; a model may only word the prose within the mind's budget. Consolidation clusters unconsolidated episodes by shared stemmed terms, creates a belief whose confidence is computed from the episodes as evidence and a semantic memory linked to each episode by derived_from, and records jobs with inputs and outputs. Wording may come from the consolidate prompt within a per-run model budget; the job says which. Operators can run, pause and reject; originals are never touched. The narrative hook keeps a five-part first-person narrative built from state and stored with narrative_updated events. The notification hook applies explicit thresholded rules, aggregates repeats within a cooldown and records suppressions with reasons. A scheduled job runs consolidation and reflection per mind, switching the runtime mode while it works. API, Background tab, notifications page with unread badge, overview narrative and warnings, CLI commands, docs/cognition.md.
16 lines
1.5 KiB
HTML
16 lines
1.5 KiB
HTML
{{define "content"}}
|
||
<div class="pagehead mindhead"><div><h1>Notifications</h1><p class="muted">What the minds decided warranted attention, and why. Repeats within the cooldown are aggregated.</p></div>
|
||
{{if .Data.Items}}<form method="post" action="/notifications/read-all"><input type="hidden" name="_csrf" value="{{.CSRF}}"><button class="btn small">Mark all read</button></form>{{end}}</div>
|
||
<div class="card">
|
||
{{if .Data.Items}}<table class="table compact"><thead><tr><th>Level</th><th>Mind</th><th>Title</th><th>Reason</th><th class="num">×</th><th>When</th><th></th></tr></thead>
|
||
<tbody>{{range .Data.Items}}<tr class="{{if eq .Status "new"}}unread{{end}}">
|
||
<td><span class="badge nl-{{.Level}}">{{.Level}}</span></td><td class="small">{{index $.Data.MindNames .MindID}}</td>
|
||
<td><strong>{{.Title}}</strong><div class="small muted">{{.Body}}</div></td>
|
||
<td class="small"><code>{{.Rule}}</code> <span class="muted mono">{{printf "%s" .Reason}}</span></td>
|
||
<td class="num">{{.Count}}</td><td class="small muted nowrap">{{ago .UpdatedAt}}</td>
|
||
<td class="nowrap">{{if .SourceEvent}}<a class="small" href="/events/{{.SourceEvent}}">event</a>{{end}} {{if eq .Status "new"}}<form method="post" action="/notifications/{{.ID}}/read" class="inline"><input type="hidden" name="_csrf" value="{{$.CSRF}}"><button class="btn small btn-ghost">read</button></form>{{end}}</td>
|
||
</tr>{{end}}</tbody></table>
|
||
{{else}}<p class="muted">Nothing needs your attention.</p>{{end}}
|
||
</div>
|
||
{{end}}
|