Skip to content

Use OS username for database naming convention #2

Description

@NOVA-Openclaw

Convention

All nova-* projects should use the OS username for database naming to enable multi-user setups.

Pattern:

DB_USER="${PGUSER:-$(whoami)}"
DB_NAME="${DB_USER//-/_}_memory"  # Replace hyphens with underscores

Examples:

  • User nova → database nova_memory
  • User nova-staging → database nova_staging_memory
  • User argus → database argus_memory

Rationale:

  • Enables clean multi-user setups on same PostgreSQL server
  • Each user/agent gets isolated database
  • Prevents conflicts between production, staging, and test instances

Implementation:

  1. Update any install scripts to use dynamic database naming
  2. Update any code that connects to the database to derive name from username
  3. Update documentation to reflect this convention

Reference: nova-memory#4 is the canonical implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions