Cotal TypeScript packages
    Preparing search index...

    Type Alias SpaceMaterialComposition

    SpaceMaterialComposition:
        | { injected: true; root?: undefined }
        | { injected: false; root: string }

    WHICH COMPOSITION IS ASKING — the one input the per-kind resolvers below cannot infer.

    A UNION, not a root?: string, for the reason SysCredsSource is one (sys-creds.ts): the two arms answer differently and the workstation arm cannot do its job without a root. Rule 2's migration is FILESYSTEM-ONLY, so a hosted caller must get the canonical key and no rename; a workstation caller must get the migration, because skipping it is not a cosmetic miss — the kinds have absent-means-mint writers (healMembershipDataCreds in the CLI's up), so a canonical read on an unmigrated root reads ABSENT and mints a SECOND live cred beside the one the daemons are using. An optional root would let a workstation caller silently take the hosted answer and land in exactly that state. Requiring the root on that arm makes the unsound call impossible to express instead.

    injected is always the composition root's own fact — never inferred by probing the store or sniffing .cotal/, both of which report "workstation" for a hosted daemon.