OptionalauditOptionalbaseRoute prefix. Default '/api/threads' (goals mount at /:threadId/goal).
OptionalmaxMax raw request-body size in bytes. Must be a nonnegative safe integer; zero denies every non-empty body. Default 16384.
OptionalmaxThe 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.
OptionalrolesWho 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.
Every mutation (and denied read) is audited through this. Absent ⇒ no audit.