{"record":{"id":"def2fbb069d8c39a","repo":"multica-ai/multica","slug":"execenv-prepare-hermes-home-w","errorCode":null,"errorMessage":"execenv: prepare hermes-home: %w","messagePattern":"execenv: prepare hermes-home: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/internal/daemon/execenv/execenv.go","lineNumber":526,"sourceCode":"\t}\n\n\t// For Hermes, redirect HERMES_HOME to a per-task compatibility overlay ONLY\n\t// when the agent has skills bound. A skill-less Hermes task keeps the user's\n\t// real home and its original behavior untouched. The overlay makes the bound\n\t// skills visible — Hermes discovers skills only from its home, so the old\n\t// .agent_context/skills/ fallback was never read (issue #5242). See\n\t// hermes_home.go.\n\t//\n\t// Note this is a local contract, not an observable product behaviour: the\n\t// server appends the platform's built-in skills to every agent's skill set\n\t// (service.LoadAgentSkillBundles), so a claimed task's AgentSkills is never\n\t// empty and the skill-less branch is effectively unreachable in production.\n\t// Emptying an agent's own skill list is NOT a way to opt out of the overlay.\n\tif params.Provider == \"hermes\" && len(params.Task.AgentSkills) > 0 {\n\t\thermesHome := filepath.Join(envRoot, \"hermes-home\")\n\t\tsessions, err := prepareHermesHome(hermesHome, params.HermesSourceHome, params.HermesSourceMustExist, params.Task.AgentSkills, params.HermesEnv, params.HermesMemoryStore, params.HermesSessionStore, logger)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"execenv: prepare hermes-home: %w\", err)\n\t\t}\n\t\tenv.HermesHome = hermesHome\n\t\tif sessions.Mounted {\n\t\t\tenv.HermesSessionStore = params.HermesSessionStore\n\t\t\tenv.HermesSessionHistoryPresent = sessions.HistoryPresent\n\t\t}\n\t}\n\tif params.Provider == \"qwenpaw\" {\n\t\tqwenpawWorkspace := filepath.Join(envRoot, \"qwenpaw-workspace\")\n\t\tif err := prepareQwenpawWorkspace(qwenpawWorkspace, params.Task.AgentSkills, logger); err != nil {\n\t\t\treturn nil, fmt.Errorf(\"execenv: prepare qwenpaw workspace: %w\", err)\n\t\t}\n\t\tenv.QwenpawWorkspace = qwenpawWorkspace\n\t}\n\n\t// For Reasonix, deny the `ask` tool for this task through a project-scoped\n\t// reasonix.toml. Degraded, not fatal: without it the task still runs under\n\t// the backend's fail-closed question handling.","sourceCodeStart":508,"sourceCodeEnd":544,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/daemon/execenv/execenv.go#L508-L544","documentation":"Error \"execenv: prepare hermes-home: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/daemon/execenv/execenv.go:526 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error from hermes-home preparation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}