{"record":{"id":"dce19d7eea8c50c0","repo":"google-gemini/gemini-cli","slug":"missing-or-invalid-object-section-name-in-work","errorCode":null,"errorMessage":"Missing or invalid object '{section_name}' in workable_spec","messagePattern":"Missing or invalid object '(.+?)' in workable_spec","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"tools/caretaker-agent/cloudrun/triage-worker/utils/validator.py","lineNumber":12,"sourceCode":"import re\n\ndef _assert_section_schema(\n    spec: dict, section_name: str, expected_schema: dict\n) -> None:\n    \"\"\"\n    Asserts that spec[section_name] is a dict containing all expected\n    field names with their required data types.\n    \"\"\"\n    section = spec.get(section_name)\n    if not isinstance(section, dict):\n        raise ValueError(\n            f\"Missing or invalid object '{section_name}' in workable_spec\"\n        )\n\n    for field_name, expected_type in expected_schema.items():\n        if field_name not in section:\n            raise ValueError(f\"Missing '{section_name}' key: {field_name}\")\n\n        field_value = section[field_name]\n        if isinstance(expected_type, list):\n            element_type = expected_type[0]\n            valid_list = isinstance(field_value, list) and all(\n                isinstance(item, element_type) for item in field_value\n            )\n            if not valid_list:\n                raise ValueError(\n                    f\"Key '{field_name}' in '{section_name}' must be a list of \"\n                    f\"{element_type.__name__}\"\n                )","sourceCodeStart":1,"sourceCodeEnd":30,"githubUrl":"https://github.com/google-gemini/gemini-cli/blob/5024443c7217464a66e98f80d73172a26440bd8f/tools/caretaker-agent/cloudrun/triage-worker/utils/validator.py#L1-L30","documentation":"Error \"Missing or invalid object '{section_name}' in workable_spec\" thrown in google-gemini/gemini-cli.","triggerScenarios":"Thrown at tools/caretaker-agent/cloudrun/triage-worker/utils/validator.py:12 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5024443c7217464a66e98f80d73172a26440bd8f","analyzedAt":"2026-08-12T06:01:53.711Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}