Skip to content

fix(profiles): use allowlist for default profile export, add symlinks=True - #58468

Closed
arc-butler wants to merge 1 commit into
NousResearch:mainfrom
arc-butler:fix/profile-export-allowlist
Closed

fix(profiles): use allowlist for default profile export, add symlinks=True#58468
arc-butler wants to merge 1 commit into
NousResearch:mainfrom
arc-butler:fix/profile-export-allowlist

Conversation

@arc-butler

Copy link
Copy Markdown

Summary

Fixes two issues with the default profile export:

  1. Allowlist filtering: DEFAULT_EXPORT_ALLOW_ROOT now only includes known profile artifacts (skills, cron, scripts, sessions, plugins, memories, config.yaml, SOUL.md, contribute-tracker.json). Everything else is ignored.

  2. symlinks=True: Passed to shutil.copytree() so stale symlinks are preserved as-is instead of raising an error during export.

Changes

  • hermes_cli/profiles.py: Filter default export to an explicit allowlist; add symlinks=True to copytree call.

Co-authored-by: ARC arc345.assistant@gmail.com

…=True

- Replace _DEFAULT_EXPORT_EXCLUDE_ROOT (blocklist) with _DEFAULT_EXPORT_ALLOW_ROOT (allowlist) so only known profile artifacts are exported -- fixes crash when HERMES_HOME is the cwd (Docker) and contains unrelated files with broken symlinks

- Add symlinks=True to shutil.copytree as a second line of defense against stale symlinks in the source tree

- Closes NousResearch#58394
@arc-butler arc-butler closed this Jul 4, 2026
@alt-glitch alt-glitch added type/bug Something isn't working comp/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists duplicate This issue or pull request already exists labels Jul 4, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Duplicate of #58445 (the earlier, still-open twin). Both rewrite the default profile export to an allowlist (_DEFAULT_EXPORT_ALLOW_ROOT) and add symlinks=True to shutil.copytree() in hermes_cli/profiles.py with identical mechanism. #58445 is the canonical open version; also see #58397 (symlinks-only) and issue anchor #58394.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants