Anchorage API reference
    Preparing search index...

    Interface ObjectiveRouterOptions

    interface ObjectiveRouterOptions {
        audit?: ObjectiveAuditSink;
        basePath?: string;
        maxContentBytes?: number;
        maxRunsCap?: number;
        resolve: TenantResolver;
        roles?: readonly ApprovalRole[];
        store: ObjectiveStore;
    }
    Index

    Properties

    Every mutation (and denied read) is audited through this. Absent ⇒ no audit.

    basePath?: string

    Route prefix. Default '/api/threads' (goals mount at /:threadId/goal).

    maxContentBytes?: number

    Max raw request-body size in bytes. Must be a nonnegative safe integer; zero denies every non-empty body. Default 16384.

    maxRunsCap?: number

    The ceiling on a per-objective maxRuns. A request above it is REJECTED; the stored record never carries a higher value. Default the core DEFAULT_GOAL_MAX_RUNS (50). Must be a positive safe integer.

    Authenticate, validate the tenant ID, and bind it; undefined means 401.

    roles?: readonly ApprovalRole[]

    Who may SET/UPDATE/CLEAR an objective. Default RUN_START_ROLES (operator/admin) — reviewers/viewers cannot author standing instructions. Reads (GET) are not role-gated beyond ownership.

    The thread-state domain in which the goal record lives.