OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

Support per-user workspace kinds for team, project, and personal memory policies

Open neurosovereign opened this issue 4 months ago • 0 comments

Problem

OpenViking's extraction policy and system prompt are currently selected from a global/default workspace concept. That works for personal memory, but it is insufficient when one account contains multiple users representing different collaboration scopes.

A single account may contain team users with fixed members, project users that bring together agents from multiple teams, and personal users with private preferences and memories.

The workspace kind therefore needs to be configured per user, not only globally.

Proposed behavior

Allow the root/admin account-management API to set a user's workspace kind at creation time and persist it in that user's configuration. The extraction prompt should resolve the user's configured workspace kind, with a global default as fallback.

Initial definitions could include personal, team, project, and organization. Each definition should describe its intended use case and provide the corresponding extraction system prompt.

This preserves OpenViking's existing account/user/peer/resource URI model while making the policy explicit and useful for multi-agent collaboration.

Local implementation

A working local implementation is available in the accompanying draft PR:

  • configurable workspace-kind YAML prompt definitions;
  • per-user workspace_kind in UserConfig;
  • admin user-creation support;
  • extraction prompt resolution from per-user configuration with global fallback.

The implementation is intentionally small and backward-compatible when no workspace kind is configured.

neurosovereign avatar Jul 15 '26 11:07 neurosovereign