enquire-mcp API reference - v4.0.0-rc.7
    Preparing search index...

    Function assertEmbedDbRecoveryOwnership

    • Validate a pre-existing embedding database before recovery guidance may describe or clear its associated watcher guard. A missing database is the expected stranded-guard case and succeeds. A present file must prove the exact supported EmbedDb class and requested vault root on one read-only handle; foreign, malformed, future, unreadable, and close-failing files are refused with one stable path-free error.

      This is a read-only guidance snapshot, not bootstrap authority. A later mutating operation must perform its own same-handle transactional admission.

      Parameters

      • file: string

        Absolute path to the embedding database associated with recovery.

      • expectedVaultRoot: string

        Exact vault root allowed to own a present database.

      Returns Promise<void>

      A promise that resolves for a missing or exact-owned supported database.

      If file does not end exactly in .embed.db.

      If a present database cannot prove recovery ownership.

      await assertEmbedDbRecoveryOwnership(embedFile, canonicalVaultRoot);