openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Guided persona builder and memory dashboard for non-technical users

Open senamakel opened this issue 5 months ago • 3 comments

Summary

Build a guided persona and memory setup interface so non-technical users can create, review, correct, and isolate assistant identity and memory without hand-authoring Soul.md or understanding internal memory mechanics.

The feedback specifically called out that the Soul.md concept is strong, but users do not know how to write a good persona, separate permanent facts from temporary context, prevent contradictory memories, or keep project-specific knowledge from mixing.

Problem

OpenHuman's value depends on long-lived local memory and persona continuity, but unmanaged memory can become confusing or unsafe for users who do not understand the system. Professional and family use cases need explicit boundaries: what is known, what is assumed, what is outdated, and which project or person a memory belongs to.

Scope

  • Visual persona builder.
  • Structured persona sections: personality, user profile, projects, security rules, communication preferences, and permissioned tools.
  • Templates for doctors, researchers, executives, teachers, students, and families.
  • Memory dashboard that shows what OpenHuman knows and where it came from.
  • User actions to approve, correct, archive, or delete memories.
  • Memory state labels: fact, assumption, outdated, user claim, and system-derived observation.
  • Project-specific memory isolation so unrelated professional, family, research, and personal contexts do not bleed into each other.
  • Clear conflict/contradiction handling when memories disagree.

Acceptance criteria

  • [ ] A user can create or edit a persona through UI without editing raw persona files.
  • [ ] Persona content is persisted through the same source of truth used by the assistant runtime, not as disconnected UI-only state.
  • [ ] A user can see, search, correct, archive, and delete stored memories.
  • [ ] Memories expose provenance and confidence/state labels where available.
  • [ ] Project-specific memory context can be selected and does not leak into unrelated assistant contexts by default.
  • [ ] The UI makes permanent facts visually distinct from assumptions, stale facts, and user claims.
  • [ ] The implementing PR includes regression coverage for persona persistence and memory edit operations.
  • [ ] Diff coverage >= 80% on changed lines.

Related

  • Related agent/profile isolation request: #3486

Implementation Plan

Triage Assessment

Valid and well-specified feature from maintainer. Addresses the persona/memory management gap for non-technical users. The core infrastructure exists (Soul.md, memory store, memory tree, memory tools in src/openhuman/memory/), but users currently need to hand-author persona files and lack visibility into what the assistant knows. This is NOT a duplicate of #4252 (installer/wizard) or #4254 (tool status) -- it addresses a different lifecycle phase (post-setup persona definition and ongoing memory management).

Proposed Scope

  • Visual persona builder UI (React).
  • Structured persona sections: personality, user profile, projects, security rules, communication preferences, permissioned tools.
  • Template system for common personas (doctor, researcher, executive, teacher, student, family).
  • Memory dashboard showing stored memories with provenance.
  • Actions: approve, correct, archive, delete memories.
  • Memory state labels: fact, assumption, outdated, user claim, system-derived.
  • Project-specific memory isolation (no cross-contamination between work and personal contexts).

Implementation Steps

  1. Persona builder (React: app/src/pages/agent-profile/): form-based persona editor. Sections map to Soul.md sections. "Save" persists via config.update_agent_profile_settings RPC to the core's agent profile store (src/openhuman/agent_profiles/).
  2. Templates: define Soul.md template files in src/openhuman/agent/prompts/profiles/. The template selector in the UI loads the default template, user customizes.
  3. Memory dashboard (React: app/src/pages/memory/): list stored memories from memory_search RPC. Show provenance (source channel, timestamp, confidence). Filter by project context.
  4. Memory actions: memory_delete and memory_correct RPC endpoints in src/openhuman/memory/controllers/. These modify the memory store directly.
  5. Memory state labels: add confidence/state fields to memory metadata in the store (src/openhuman/memory/store.rs). Surface in the dashboard.
  6. Project isolation: use existing memory.isolation.project_id context in src/openhuman/memory/tools.rs to scope memories to a project. Dashboard project selector filters by project.

Verification

  • Unit: cargo test --lib memory::store -- memory state labels and project isolation.
  • E2E: create persona from template, verify persisted in agent profile RPC.
  • E2E: open memory dashboard, search, correct, delete a memory.

Risks and Open Questions

  • Project isolation may require schema changes in the memory store if project-scoped memory is not yet fully implemented.
  • Memory state labels may expose implementation details that are confusing to users. Default to "what the system knows" unless the label provides actionable clarity.

Acceptance Criteria

  • [ ] Persona created and edited via UI, persisted to runtime source of truth.
  • [ ] User can search, correct, archive, delete memories from dashboard.
  • [ ] Memories show provenance and state labels.
  • [ ] Project-specific memory isolation works and is user-selectable.

senamakel avatar Jun 29 '26 01:06 senamakel

Substantially shipped since filing — the persona half is essentially done, the memory-governance half is not. Worth splitting.

Verified on main (6be58a9ab). A lot of this landed and the issue does not reflect it.

Persona builder — shipped, including the exact template list

app/src/components/settings/panels/persona/ contains:

  • PersonaGuidedFields.tsx — the guided builder
  • PersonaTemplatePicker.tsx — template selection
  • personaSections.ts — the structured sections, with applyPersonaField
  • personaTemplates.ts — the templates

And the template ids are an exact match for what this issue asked for:

Templates for doctors, researchers, executives, teachers, students, and families.

'doctor' · 'researcher' · 'executive' · 'teacher' · 'student' · 'family'

Each carries structured personality and voice guidance — e.g. the doctor template ships explicit safety framing ("Not a medical device: never presents output as diagnosis or treatment", "Flags uncertainty openly and never guesses at clinical facts").

Acceptance criterion 1 — "a user can create or edit a persona through UI without editing raw persona files" — looks met.

Memory dashboard — the viewing half is shipped, and it is substantial

app/src/components/intelligence/ now holds a full surface: MemoryWorkspace, MemoryNavigator, MemoryGraph / PixiGraph, MemoryHeatmap, MemoryInsights, MemoryStatsBar, MemoryChunkDetail, MemorySourcesRegistry, MemorySourceRow, SyncAuditPanel, SourceSettingsPanel, MemorySyncSchedule, IntelligenceMemoryTab.

"See, search, and trace where it came from" is covered — sources registry plus per-chunk detail plus a sync audit panel is provenance.

What is genuinely still missing

The governance half — the part that makes memory safe rather than merely visible:

scope item status
Memory state labels: fact / assumption / outdated / user claim / system-derived observation absent — grep -rIn "assumption|outdated|user_claim|system-derived" over src/ and app/src/ returns only unrelated matches
User actions to approve, correct, archive, or delete memories absent from the intelligence UI — no forget/delete/approve action in these components
Project-specific memory isolation not implemented as a user-facing boundary
Conflict/contradiction handling when memories disagree not implemented

These four are the original feedback's actual concern — "separate permanent facts from temporary context, prevent contradictory memories, keep project-specific knowledge from mixing". The dashboard shows what is known; it does not yet let a user say "that's wrong", "that's stale", or "that belongs to my work project, not my family."

Recommendation

Split this issue. As written it reads as untouched, which is misleading given the persona builder and dashboard both exist — and it is too large for anyone to pick up. Suggested split:

  1. Close out the persona-builder scope (criteria 1 and 2) — verify persistence goes through the assistant runtime's source of truth rather than UI-only state, then mark it done.
  2. New issue: memory state labels + provenance classification — the schema-level prerequisite for everything else in the table above.
  3. New issue: user memory actions (approve / correct / archive / delete) — depends on 2.
  4. New issue: project-scoped memory isolation and conflict handling — the largest remaining piece.

Note on the linked PR: #5591 ("docs: define persona memory provenance contract") is closed, unmerged. Since it was defining the provenance contract, that is precisely the groundwork item 2 above needs — worth checking whether it was closed as superseded or simply abandoned, because reviving it is likely the cheapest next step.

Leaving open pending the split.

YellowSnnowmann avatar Sep 11 '26 09:09 YellowSnnowmann

Triage: needs opinion — “Guided persona builder and memory dashboard for non-technical users” needs a maintainer decision on product scope/priority or fresh reproduction evidence before its status can be settled. Please advise whether to pursue, narrow, or close it.

senamakel avatar Oct 09 '26 17:10 senamakel

Thanks. Half of this has shipped: Settings now has a guided persona builder with templates, so nobody needs to hand-write Soul.md. The memory side is partly there: you can view a memory and forget it, but you can't approve, correct or archive memories, and there's no way to keep one project's memories separate from another's.

We suggest narrowing this issue to that memory-governance part. A maintainer will decide its priority.

M3gA-Mind avatar Nov 16 '26 16:11 M3gA-Mind