Cotal TypeScript packages
    Preparing search index...

    Interface ActorRow

    One granted (owner, actor) row — everything the two trust boundaries mint from.

    interface ActorRow {
        actor: string;
        allowPublish: string[];
        allowSubscribe: string[];
        custody?: ManagedGrantCustody;
        eventPayloads?: false;
        grantedAt: string;
        label?: string;
        lifecycleUid?: string;
        owner: string;
        parent?: string;
        role?: string;
        scope: string[];
        tokenHash?: string;
    }
    Index
    actor: string

    The agent-instance id under that owner.

    allowPublish: string[]

    Channel post ACL minted at connect. Explicit HERE (empty = cannot post anywhere), with the same caveat as ActorRow.allowSubscribe: cotal actor grant --full supplies > for an omitted --allow-publish.

    allowSubscribe: string[]

    Channel read ACL minted at connect. Explicit HERE: this layer invents no default.

    LAYERS ABOVE DO, and that is the part a reader of this line will get wrong. Two of them:

    • runActor (commands.ts), behind cotal actor grant --full, fills every flag the operator omits with the WIDEST value: > read, > post, spawn,run,role:default scope. Without --full it refuses an omitted flag, because a grant is an upsert of the whole row and a dropped flag would widen a narrow row rather than leave it alone.
    • the spawn paths (manager.ts, the CLI's spawn.ts) fall back to [] for BOTH sets: an omitted read set is NO channel, not general. The post set is [] too, except where a spawn derives an events grant, which is appended to whatever the caller passed. Narrower, not wider, so not a hazard, but a reader asking "does anything default these before they land here" must be told both.

    Name the flag: without it the grant refuses, and under --full the row gets >.

    Who holds this managed lifecycle, recorded by the writer that granted it: a manager on this host attesting its own logical instance id, the auth service enrolling for an authenticated remote manager, or a foreground spawn with no manager. REQUIRED on every managed row written by this version, REFUSED on an interactive row. A managed row written before this field existed reads with it absent; a reader that needs the binding must refuse such a row rather than infer one.

    eventPayloads?: false

    Durable restriction used by every native credential mint and renewal.

    grantedAt: string

    ISO timestamp of the grant (audit).

    label?: string

    Operator-chosen display label for list legibility (e.g. "david laptop"). NEVER the IdP subject/email — the ledger stays as non-PII as the wire.

    lifecycleUid?: string

    The incarnation's lifecycle UID (SPEC §13.1): the value the auth callout mints this agent's lifecycle-keyed grants from (dm_…-<uid>/dlv_…-<uid>/chathist_…-<uid>), rotated with the row on each (re)spawn — a same-name successor's row carries a fresh uid, so a stale bearer's next mint can never name the successor's broker resources. Absent on legacy/interactive rows: the callout refuses to mint agent creds without one (the v0.4 hard cut).

    owner: string

    The opaque derived owner (u_…) this actor belongs to.

    parent?: string

    The spawning principal (<owner>.<actor> dot-form) when the ledger records one (audit link).

    role?: string

    Role (scopes the TASK-queue consumer), when the actor serves one.

    scope: string[]

    Capability scope the bearer carries (act.scope, e.g. ["spawn"]). Explicit HERE: this layer invents no default. The CLI above it does, so read the caveat on ActorRow.allowSubscribe.

    tokenHash?: string

    SHA-256 hex of the per-agent exchange secret. REQUIRED in a managed-agent row (its space's defining shape), REFUSED in an interactive row (readRow fails closed on either violation). The plaintext secret is returned ONCE at grant time and never persisted.