Phase 2. Minds are rows with a slug, status (active/disabled/archived), cognitive configuration and a pointer to the current personality version. Personalities are structured (identity, values, traits, communication, behaviour, free text) with a deterministic Brief() used by prompts and the editor preview. Every change appends a personality_versions row protected by the append-only trigger; restore copies an old version forward. Templates carry reusable personalities; minds record their overrides so a template can be re-applied without losing mind-specific edits. The self-model starts with structural limitations the mind cannot drop (no policy changes, no influence over shutdown, no cross-mind access). API, UI (list, overview, editor with sliders/diff/history/import/export, template editor) and noemactl mind/template commands. All mutations are audited with field-level diffs.
15 lines
944 B
HTML
15 lines
944 B
HTML
{{define "content"}}
|
|
{{$t := .Data.Template}}
|
|
<div class="pagehead"><h1>Template: {{$t.Name}}</h1><p class="muted"><a href="/personality-templates">All templates</a> · Editing a template does not change minds until an operator re-applies it.</p></div>
|
|
<form method="post" action="/personality-templates/{{$t.ID}}" class="card stack">
|
|
<input type="hidden" name="_csrf" value="{{.CSRF}}">
|
|
<div class="grid cols-2 tight">
|
|
<label>Name <input name="name" value="{{$t.Name}}" required maxlength="80"></label>
|
|
<label>Description <input name="description" value="{{$t.Description}}" maxlength="200"></label>
|
|
</div>
|
|
{{template "personality_form" (dict "P" $t.Personality)}}
|
|
<div class="row"><button class="btn btn-primary" type="submit" {{if not (.Principal.User.Role.AtLeast "administrator")}}disabled{{end}}>Save template</button></div>
|
|
</form>
|
|
<div class="card"><h2>Brief</h2><pre class="brief">{{.Data.Brief}}</pre></div>
|
|
{{end}}
|