[Bug]: Profile extraction admits transient project and task state despite stable-only policy
Issue Origin
Observed or reproduced in a real environment
Bug Description
The built-in profile memory policy says profile.md should contain relatively stable identity, technical background, communication style, and work habits, and explicitly forbids transient conversation content. In practice, repeated session commits can accumulate dated project ownership, current task status, repository-specific work, and one-off troubleshooting facts in profile.md.
In one OpenViking 0.4.11 deployment, the resulting profile contained 193 bullet facts, including 94 dated status entries. No private profile content is included in this report.
The current template appears internally ambiguous: its top-level rules forbid transient situations, while the content field says changeable statuses must be retained with an (as of YYYY-MM-DD) timestamp. Combined with a single patch-merged profile.md, this can make transient project/task state look eligible for profile storage.
Steps to Reproduce
- Configure OpenViking 0.4.11 with the default Memory V2 templates.
- Commit multiple sessions containing stable facts such as a profession or work style together with transient statements such as “I am currently fixing project X”, “this week I am reviewing branch Y”, or “the current task is blocked”.
- Let asynchronous memory extraction complete.
- Inspect
viking://user/{user_id}/memories/profile.md. - Observe that transient project/task statements may be appended as dated profile bullets instead of being omitted or routed to entity/event memory.
Expected Behavior
profile.md contains only durable personal identity and work-style facts. Repository-specific ownership, current project phases, one-off tasks, branches, tickets, local paths, and temporary blockers are omitted from profile or routed to entity/event memory.
Actual Behavior
Transient project and task state can accumulate in profile.md as dated bullets, causing profile bloat and increasing the chance that stale state is injected into future conversations.
Minimal Reproducible Example
Not code-specific; the reproduction uses ordinary session commits and the default Memory V2 profile template.
Error Logs
No runtime error is emitted; this is a memory classification and profile-boundary problem.
OpenViking Version
0.4.11
Python Version
3.12
Operating System
macOS
Model Backend
OpenAI-compatible Codex OAuth provider
Additional Context
Proposed bounded fix:
- Clarify the built-in profile template so time-varying project/task state is explicitly excluded.
- Route project/task status examples to entity/event memory instead of profile.
- Add regression tests for stable profile facts versus transient project/task facts.
- Keep the change template/test scoped, with no storage schema or API changes.
I am willing to contribute this fix after maintainer confirmation.
please see https://github.com/volcengine/OpenViking/pull/3684#pullrequestreview-4843740671 for detals