Cotal TypeScript packages
    Preparing search index...

    Function grantActor

    • Grant (or update — an upsert, so re-granting narrows/widens in place) an INTERACTIVE (owner, actor) row. Refuses a token hash (that's the managed space's shape, written only by the spawn path) and refuses to shadow an existing managed-agent row — the two spaces stay disjoint at the write, so the read sides never disambiguate.

      NOT attenuated by design: interactive rows are OPERATOR-authored (the local cotal actor grant CLI is the only writer), and the operator is the authority the envelope rule bottoms out in. An optional parent here is an audit link only — do not build a delegated-USER write path on this function; user-authored delegation belongs in the managed space, where the chain walk enforces the envelope (an interactive row that carries a parent still gets link-checked when a managed chain passes THROUGH it).

      Parameters

      • dir: string
      • row: Omit<ActorRow, "grantedAt">

      Returns ActorRow