Skip to content

Reconcile legacy workspace-docs source paths without deleting embeddings #211

Description

@100yenadmin

TL;DR\n\nOn legacy installs, workspace-docs may remain registered with the old workspace-root local_path even though the current updater correctly resolves and imports the agents.defaults.workspace/docs directory. This makes future sync --all semantics and doctor freshness misleading. Reconcile the path without deleting or re-embedding the user's source.\n\n## Reproduction\n\nLocal configured workspace: /Users/lume/.openclaw/workspace-eva.\nResolved docs directory: /Users/lume/.openclaw/workspace-eva/docs.\nRegistered workspace-docs local_path: legacy workspace root.\nThe exact-tag updater imports the docs directory, searches pass, and embeddings remain 100%, but the source record retains the older root.\n\n## Safety boundary\n\nDo not repair this by sources remove plus re-add: that deletes source-scoped pages and may trigger costly re-embedding. Prefer a provider-neutral, guarded source-path update seam or an idempotent migration that verifies source identity and path overlap first.\n\n## Acceptance\n\n- Fresh installs still register the docs subdirectory.\n- Legacy installs update the registered path without deleting pages, chunks, or embeddings.\n- Path overlap and missing-path guards fail closed.\n- Updater and health tests cover the migration.\n- Existing customer databases are not rebuilt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions