{"record":{"id":"d5fbbb6ebce13f98","repo":"iflytek/astron-agent","slug":"run-failed","errorCode":"run_failed","errorMessage":"run_skill completed, skillId={}, status=failed, errorType={}","messagePattern":"run_skill completed, skillId=(.+?), status=failed, errorType=(.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"console/backend/hub/src/main/java/com/iflytek/astron/console/hub/service/chat/springai/RunSkillToolCallback.java","lineNumber":81,"sourceCode":"        body.put(\"command\", command);\n        body.put(\"stdin\", args.get(\"stdin\"));\n        body.put(\"resources\", skill.getJSONArray(\"resources\"));\n        body.put(\"sandbox\", skill.getJSONObject(\"sandbox\") == null ? new JSONObject() : skill.getJSONObject(\"sandbox\"));\n        log.info(\n                \"run_skill invoked, skillId={}, commandBytes={}\",\n                skillId,\n                command.getBytes(java.nio.charset.StandardCharsets.UTF_8).length);\n        try {\n            String result = runtime.executeSandbox(body);\n            log.info(\n                    \"run_skill completed, skillId={}, status=success, responseBytes={}\",\n                    skillId,\n                    result == null\n                            ? 0\n                            : result.getBytes(java.nio.charset.StandardCharsets.UTF_8).length);\n            return result;\n        } catch (Exception e) {\n            log.warn(\n                    \"run_skill completed, skillId={}, status=failed, errorType={}\",\n                    skillId,\n                    e.getClass().getSimpleName());\n            return new JSONObject().fluentPut(\"skill_id\", skillId)\n                    .fluentPut(\"error\", \"run_failed\")\n                    .toJSONString();\n        }\n    }\n}\n","sourceCodeStart":63,"sourceCodeEnd":91,"githubUrl":"https://github.com/iflytek/astron-agent/blob/5e758547a83371a5a4b29dadf4ac03e8dd527635/console/backend/hub/src/main/java/com/iflytek/astron/console/hub/service/chat/springai/RunSkillToolCallback.java#L63-L91","documentation":"RunSkillToolCallback.call executes a skill command in the runtime and returns its output. Any exception during execution is caught, logged as a warning with only the exception class name, and converted to a JSON result {skill_id, error:'run_failed'} — the command and exception details are deliberately withheld from the model response for security.","triggerScenarios":"The skill execution request to the runtime fails (runtime unreachable, command rejected, timeout, sandbox error, missing skill) while the agent invokes the run_skill tool.","commonSituations":"Skill runtime service down; skill command requires dependencies not installed in the sandbox; execution timeout; invalid or malicious command blocked by the runtime; skill package corrupted.","solutions":["Check hub server logs for the full stack trace behind the masked errorType","Verify the skill runtime service is up and the skill is installed/valid","Run the skill command manually in the runtime environment to reproduce the failure","Check runtime resource limits (timeout, memory) and sandbox dependency availability"],"exampleFix":"null","handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try { return runInRuntime(skillId, command); } catch (Exception e) { log.warn(\"run_skill failed, skillId={}, errorType={}\", skillId, e.getClass().getSimpleName(), e); return new JSONObject().fluentPut(\"skill_id\", skillId).fluentPut(\"error\", \"run_failed\").toJSONString(); }","preventionTips":["Validate skill commands against an allowlist before dispatch","Set explicit execution timeouts in the runtime client","Pre-install and verify skill dependencies in the sandbox image","Monitor runtime availability and run_skill failure rates"],"tags":["skill","execution","tool-call","sandbox"],"backgroundTag":"api-request-failed","analyzedSha":"5e758547a83371a5a4b29dadf4ac03e8dd527635","analyzedAt":"2026-09-12T08:03:51.356Z","contentChangedAt":"2026-09-12T08:03:51.356Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}