multica-ai/multica · error
invalid hermes profile name %q
Error message
invalid hermes profile name %q
What it means
Error "invalid hermes profile name %q" thrown in multica-ai/multica.
Source
Thrown at server/internal/daemon/execenv/hermes_home.go:350
// normalize_profile_name + validate_profile_name + get_profile_dir. It returns
// the home dir, whether that home must already exist (true for a named profile),
// or an error for an empty/malformed/reserved name (which Hermes sys.exit(1)s on).
func hermesProfileDir(root, name string) (home string, mustExist bool, err error) {
stripped := strings.TrimSpace(name)
if stripped == "" {
return "", false, fmt.Errorf("hermes profile name cannot be empty")
}
var canon string
if strings.EqualFold(stripped, "default") {
canon = "default"
} else {
canon = strings.ToLower(stripped)
}
if canon == "default" {
return root, false, nil // the default profile IS the root home
}
if !hermesProfileNameRe.MatchString(canon) {
return "", false, fmt.Errorf("invalid hermes profile name %q", canon)
}
if _, reserved := hermesReservedProfileNames[canon]; reserved {
return "", false, fmt.Errorf("hermes profile name %q is reserved", canon)
}
return filepath.Join(root, "profiles", canon), true, nil
}
// prepareHermesHome builds the per-task HERMES_HOME compatibility overlay
// described above. The daemon exports the given path as HERMES_HOME on the
// hermes subprocess so the CLI discovers the bound skills natively.
//
// Callers gate this on the agent having skills bound; it is a full rebuild each
// time (mirror reconciled, config re-derived, bound skills rewritten) so a Reuse
// after a skill/config change lands cleanly. It fails CLOSED: if the mirror, the
// derived config, or the bound skills can't be established the whole overlay is
// unusable, so the error propagates and the caller must not start Hermes against
// a half-built home.
// sourceHome is the shared home to seed from (resolved by the daemon viaView on GitHub (pinned to 2c0912b6ec)
Solutions
- Use a valid hermes profile name (no unsafe characters).
When it happens
Trigger: Thrown at server/internal/daemon/execenv/hermes_home.go:350 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/cc0ba849f57bdec8.
Report an issue: GitHub.