Skip to content

bm doctor false failure when project_root is configured #665

@bengreeno

Description

@bengreeno

Environment:

  • Basic Memory 0.20.2
  • Docker deployment
  • managed project root enabled (/app/data)

Command:

  • bm doctor

Observed behavior:

  • The doctor command creates a temp-named project successfully
  • Then it fails with:
    ValueError: API note file missing: doctor/Doctor API Note.md

However, the note is actually created on disk under the managed project root, for example:

  • /app/data/doctor-7467a76f/doctor/Doctor API Note.md

So this appears to be a false failure rather than an actual write failure.

Likely cause:

  • cli/commands/doctor.py creates the project with path=str(temp_path)
  • later it checks for the created note under that same temp_path
  • when project_root is configured, project creation ignores the requested path and resolves the project under project_root/<sanitized-project-name>
  • as a result, doctor checks the wrong filesystem path and fails

Suggested fix:

  • after project creation, use the actual resolved project path returned by the project service/API instead of assuming the requested temp path is the project location

Additional note:

  • after the main failure, a background task logs a noisy CancelledError, but that looks secondary to the path-assumption bug above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions