JuliusBrussee/caveman · error

cave_memory_consent_unsupported

cave_memory_consent_unsupported

Error message

cave_memory_consent_unsupported: only "local_only" consent is supported

What it means

Fail-closed guard in memory(): consent is 'project_shared', but only 'local_only' consent is implemented. Sharing memory across tenants is a contract this package does not provide, so it is refused at construction.

Source

Thrown at packages/agent/src/primitives.ts:290

    throw new Error("caveman agent: memory recallBudget must be a non-negative integer");
  }
  try {
    memoryTTLMilliseconds(options.ttl);
  } catch {
    throw new Error("caveman agent: memory ttl must use positive m, h, or d duration");
  }
  // Fail closed at CONSTRUCTION, not at tool-call time: the durable
  // store implements only local, single-tenant memory. A `project`/`external`
  // provenance or a `project_shared` consent is a shared-backend contract this
  // package does not provide, so it is refused here rather than burning a model
  // turn to discover a config the framework already knew was unsupported.
  const provenance = options.provenance ?? "local";
  if (provenance !== "local") {
    throw new Error("cave_memory_provenance_unsupported: only \"local\" memory is supported");
  }
  const consent = options.consent ?? "local_only";
  if (consent !== "local_only") {
    throw new Error("cave_memory_consent_unsupported: only \"local_only\" consent is supported");
  }
  return Object.freeze({
    kind: "memory",
    namespace: options.namespace,
    provenance,
    ttl: options.ttl,
    recallBudget: options.recallBudget,
    consent,
  });
}

export type ContextKind =
  | "instruction"
  | "user_intent"
  | "tool_schema"
  | "skill"
  | "memory"
  | "history"

View on GitHub (pinned to 766dce6b13)

Solutions

  1. Set consent: 'local_only' (or omit it) in memory()
  2. Remove project_shared consent until a shared store exists
  3. Model cross-project knowledge as explicit context inputs instead
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/agent/src/primitives.ts:290 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of JuliusBrussee/caveman@766dce6b13 (2026-08-18). Data as JSON: /api/errors/5c7dd19a4098903f. Report an issue: GitHub.