Cotal TypeScript packages
    Preparing search index...

    Function spaceMaterialMigrationRefusal

    • §2 RULE 4'S PRECONDITION, ASKABLE: would migrateLegacyCotalMaterial refuse on this root, and why? undefined means the root can be shown to hold exactly one tenant.

      THE ONE IMPLEMENTATION of the rule, exported so a guard that needs to know whether cotal up can migrate this root ASKS instead of re-deriving a tenant count. That is commit 2's repairAdvice lesson (sys-creds.ts) applied where it was still owed: a count is a second implementation of the rule, and it reads "one" on the corrupt-inventory root where this fails CLOSED. A guard built on a count would print a remedy on exactly the root where the remedy refuses.

      The two callers need it for opposite reasons — the choke point to refuse, the doors below to say truthfully what an operator can do next — and a rule with two implementations drifts at whichever one is not the one someone edits.

      Parameters

      • root: string

      Returns SpaceMaterialMigrationRefusal | undefined