{"record":{"id":"780085bb4bbfe9d5","repo":"JuliusBrussee/caveman","slug":"assembly-slot-slot-id-r-content-is-not-json-seri","errorCode":null,"errorMessage":"assembly slot {slot.id!r} content is not JSON-serializable","messagePattern":"assembly slot (.+?) content is not JSON-serializable","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"packages/sdk/python/caveman_cloud/core.py","lineNumber":434,"sourceCode":"            raise ValueError(\"assemble requires model and session_id\")\n        if options.emit_cache_hints not in {\"gateway\", \"self\", \"none\"}:\n            raise ValueError(f\"unknown emit_cache_hints value {options.emit_cache_hints!r}\")\n\n        ids: set[str] = set()\n        normalized: list[AssemblySlot] = []\n        for slot in options.slots:\n            if not slot.id or slot.id in ids:\n                raise ValueError(f\"assembly slot id must be non-empty and unique: {slot.id!r}\")\n            ids.add(slot.id)\n            if slot.stability not in {\"stable\", \"session\", \"volatile\"}:\n                raise ValueError(\n                    f\"assembly slot {slot.id!r} has unknown stability {slot.stability!r}\"\n                )\n            try:\n                content_json = _canonical_json(slot.content)\n                content = json.loads(content_json)\n            except (TypeError, ValueError):\n                raise ValueError(\n                    f\"assembly slot {slot.id!r} content is not JSON-serializable\"\n                ) from None\n            if slot.stability != \"volatile\":\n                key = (options.session_id, slot.id)\n                content_hash = _sha256_hex(content_json)\n                with self._assembly_hash_lock:\n                    previous = self._assembly_hash_ledger.get(key)\n                    if previous is not None and previous != content_hash:\n                        raise AssemblyStabilityError(slot.id)\n                    self._assembly_hash_ledger[key] = content_hash\n            normalized.append(AssemblySlot(slot.id, slot.stability, content))\n\n        ordered = [\n            slot\n            for stability in (\"stable\", \"session\", \"volatile\")\n            for slot in normalized\n            if slot.stability == stability\n        ]","sourceCodeStart":416,"sourceCodeEnd":452,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/27d5a3981a347890211bb1bf2439e5c821a63bc9/packages/sdk/python/caveman_cloud/core.py#L416-L452","documentation":"Error \"assembly slot {slot.id!r} content is not JSON-serializable\" thrown in JuliusBrussee/caveman.","triggerScenarios":"Thrown at packages/sdk/python/caveman_cloud/core.py:434 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Make the assembly slot content JSON-serializable."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"27d5a3981a347890211bb1bf2439e5c821a63bc9","analyzedAt":"2026-08-15T09:26:11.751Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}