JuliusBrussee/caveman · critical
cave_privacy_conformance_failed
cave_privacy_conformance_failed
Error message
cave_privacy_conformance_failed
What it means
After sandbox conformance, the CLI runs contextIRIsContentBlind(lowered.ir) to guarantee the compiled context IR contains no raw content — CAVE builds must be content-blind (only handles/hashes, no payload text). If the lowered IR fails this privacy check, the build is aborted with this coded error.
Solutions
- Remove raw content from the context definition; reference bodies via handles instead of embedding text.
- Re-run the build; only structural/metadata fields should remain in the IR.
- If a newly added field triggers it, mark/structure it as content-blind per the IR schema.
- Audit any recently changed context files with git diff to find what introduced content.
Example fix
// before
context: { system: "You are helping user {{user.name}} with {{user.notes}}" }
// after
context: { system: HANDLE("system_prompt"), userNotes: HANDLE("user_notes") } Defensive patterns
Strategy: type-guard
Validate before calling
// ensure context fields reference handles, not raw text
for (const [k, v] of Object.entries(contextDefinition)) {
if (typeof v === "string" && v.length > 64 && !v.startsWith("handle:")) {
throw new Error(`context field ${k} looks like inline content; use a body handle`);
}
} Type guard
const isHandle = (v: unknown): v is { handle: string } =>
typeof v === "object" && v !== null && typeof (v as { handle?: unknown }).handle === "string"; Try / catch
try {
await build();
} catch (err) {
if (String(err?.message) === "cave_privacy_conformance_failed") {
console.error("Context IR contains raw content; replace with handles/hashes");
}
throw err;
} Prevention
- Never inline user data, prompts, or secrets into context definitions.
- Lint context files to flag long literal strings.
- Review any new IR segment types against the content-blind requirement.
- Keep bodies separate and referenced by handle only.
When it happens
Trigger: A build whose context IR contains content-bearing segments/fields, so contextIRIsContentBlind() returns false — e.g. a context definition embedding literal conversation text, secrets, or payload bodies instead of references/handles.
Common situations: Authoring a context that inlines user data or API keys into IR fields; adding a new IR segment type that the content-blind verifier flags; migrating a context from a template that carried raw text.
Understand the failure class
Background: Schema validation failed / invalid input schema: payload rejected because its shape doesn't match the expected schema — this error's family across 28 libraries.
Related errors
- ambiguous escaped path sequence
- auth_token: in is ignored — the inbound token is read only…
- awscreds: AWS_CONTAINER_CREDENTIALS_FULL_URI is not a valid…
- awscreds: refusing plaintext container credentials endpoint…
- awscreds: refusing plaintext IMDS endpoint at host
AI-assisted analysis of JuliusBrussee/caveman@3ee70a1026 (2026-09-20).
Data as JSON: /api/errors/c00ea57f45422206.
Report an issue: GitHub.
Appendix: source
Thrown at packages/agent/src/cli.ts:750
evalDynamicKinds(approved),
{
...(loaded.config.allowedModels === undefined ? {} : { allowedModels: loaded.config.allowedModels }),
...(loaded.config.deniedModels === undefined ? {} : { deniedModels: loaded.config.deniedModels }),
...(loaded.config.forbiddenSafetyClasses === undefined
? {}
: { forbiddenSafetyClasses: loaded.config.forbiddenSafetyClasses }),
},
);
const entitled = await engineEntitled();
const plannedRuns = candidates.filter((candidate) => !candidate.static_rejection).length * approved.length * 5;
const estimatedCeiling = candidates
.filter((candidate) => !candidate.static_rejection)
.reduce((sum, candidate) => sum + candidate.estimated_cost_usd_per_run * approved.length * 5, 0);
process.stdout.write(`search ceiling: $${estimatedCeiling.toFixed(4)} public-catalog estimate · ${plannedRuns} runs\n`);
const sandboxConformance = await verifySandboxConformance();
if (!sandboxConformance) throw new Error("cave_sandbox_conformance_failed");
const privacyConformance = contextIRIsContentBlind(lowered.ir);
if (!privacyConformance) throw new Error("cave_privacy_conformance_failed");
const conversations = new Map<string, ConversationState>();
const result = await compileAndWrite({
agent: loaded.agent,
contextIR: lowered.ir,
evals: loaded.evals,
candidates,
baselinePlan: baseline,
seeds: [1, 2, 3, 4, 5],
config: loaded.config,
entitled,
sourceSha256: loaded.sourceSha256,
catalogSha256: CATALOG_SHA256,
transformRegistrySha256: transformRegistry.sha256,
runtimeVersion: FRAMEWORK_VERSION,
adapterVersion: PI_ADAPTER_VERSION,
upstreamVersion: PI_UPSTREAM_VERSION,
runner: async ({ plan, eval: fixture, seed, signal }) => runFixture(
root,View on GitHub (pinned to 3ee70a1026)