{"record":{"id":"274aa46075f5513c","repo":"multica-ai/multica","slug":"mirror-shared-hermes-home-w","errorCode":null,"errorMessage":"mirror shared hermes home: %w","messagePattern":"mirror shared hermes home: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/internal/daemon/execenv/hermes_home.go","lineNumber":427,"sourceCode":"\t\tmounted, err := mountHermesSessionDB(hermesHome, sessionStore, logger)\n\t\tif err != nil {\n\t\t\treturn hermesSessionMount{}, fmt.Errorf(\"mount conversation sessions: %w\", err)\n\t\t}\n\t\tsessions = mounted\n\t}\n\t// Memory: link memories/ at the agent's persistent store so it survives the\n\t// task, or fall back to a fresh task-local dir when there is no store (no\n\t// agent to key on, or an unresolvable profile dir). See hermes_memory.go.\n\tif memoryStore != \"\" {\n\t\tif err := mountHermesMemories(hermesHome, memoryStore, logger); err != nil {\n\t\t\treturn hermesSessionMount{}, fmt.Errorf(\"mount agent memories: %w\", err)\n\t\t}\n\t} else if err := detachHermesMemories(hermesHome); err != nil {\n\t\treturn hermesSessionMount{}, fmt.Errorf(\"create task memories dir: %w\", err)\n\t}\n\n\tif err := mirrorSharedHermesHome(sharedHome, hermesHome, logger); err != nil {\n\t\treturn hermesSessionMount{}, fmt.Errorf(\"mirror shared hermes home: %w\", err)\n\t}\n\tif err := writeDerivedHermesConfig(sharedHome, hermesHome, env, logger); err != nil {\n\t\treturn hermesSessionMount{}, fmt.Errorf(\"derive hermes config: %w\", err)\n\t}\n\tif err := writeDerivedHermesEnv(sharedHome, hermesHome); err != nil {\n\t\treturn hermesSessionMount{}, fmt.Errorf(\"derive hermes .env: %w\", err)\n\t}\n\tif err := writeHermesBoundSkills(hermesHome, workspaceSkills, logger); err != nil {\n\t\treturn hermesSessionMount{}, err\n\t}\n\treturn sessions, nil\n}\n\n// writeDerivedHermesEnv writes the task-local .env: the source home's .env\n// contents (credentials/settings preserved) with any HERMES_HOME assignment\n// removed, then a pinned HERMES_HOME pointing at the overlay appended last so it\n// wins. Hermes loads <HERMES_HOME>/.env with override=True right after profile\n// resolution, so without this an out-of-band HERMES_HOME= in the source .env","sourceCodeStart":409,"sourceCodeEnd":445,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/daemon/execenv/hermes_home.go#L409-L445","documentation":"Error \"mirror shared hermes home: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/daemon/execenv/hermes_home.go:427 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error from mirroring the shared hermes home."],"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-15T22:17:37.221Z"}