Cotal TypeScript packages
    Preparing search index...

    Function assertNoUnsegmentedLegacyMaterial

    • THE space add DOOR (§2.1): refuse to add a second tenant to a root that still holds unmigrated root-scoped material.

      Adding a tenant to such a root creates the one state segmentation cannot resolve — legacy material whose owner is unrecorded — and it is the only door that creates it, because up cannot mint a second tenant on an established root (ensureRootForSpace in the CLI's up command refuses). Checking here costs one inventory read in a verb that is already taking the lock and reading the inventory (per-space-lifecycle.md §2.1 step 1).

      This keeps that state from being CREATED. It does not keep it from being ENCOUNTERED — roots already multi-tenant when this series lands, and backups of them, bypass the door entirely. Rule 4 of migrateLegacyCotalMaterial is what catches those. The two are one design and neither is sufficient alone.

      NOT YET CALLED: cotal space add does not exist as a command today (the verb is designed in per-space-lifecycle.md §2.1 and not implemented). This is the guarantee it must call when it is built, landed with the foundation so the verb cannot be written without it.

      Parameters

      • root: string
      • operation: string

      Returns void