feat(workflow): secret-free user environment profile for cross-machine restore - #45
Merged
Merged
Conversation
…e restore - New user_profile_export.py (stdlib+yaml, read-only): inventories Hermes config (redacted), .env key names only, 143 Hermes skills, Codex config (provider/model names kept, credentials redacted), 10 agents skills, rules; fail-closed redaction (unredacted secret value -> no write) - Tracked manifest config/user-environment-profile.json (34 redacted values, secret-pattern scan clean) - docs/workflow/user-environment-profile.md: refresh + new-machine restore flow; self-improvement skill gains 'User environment preservation' section - Boundary contract detect extended (secret-free environment inventory); README doc entry added; 5 regression tests (redaction, env keys, toml, skills inventory, end-to-end secret-free)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Preserve the user's Hermes + Codex user configuration and skills in neutral, secret-free form so a machine change does not start from zero.
scripts/workflow/user_profile_export.py(stdlib+yaml, read-only): inventories Hermes config (values redacted),.envkey names only, 143 Hermes skills (name+description+path), Codex config (provider/model names kept, credentials redacted), 10 agents skills, rules list. Fail-closed redaction: an unredacted secret value makes the export refuse to write.config/user-environment-profile.json: secret-pattern scan clean, 34[REDACTED]values, provider/model names preserved.docs/workflow/user-environment-profile.md: content summary, refresh command, new-machine restore flow.workflow-assistance-self-improvementskill gains a 'User environment preservation' section.detectextended (secret-free environment inventory); README doc entry added (governance README-surface test); 5 regression tests (key/value redaction, env key names only, TOML redaction, skills inventory, end-to-end secret-free).No user config is modified; no credentials/sessions/keychains read; values are never committed.
Evidence
git diff --cached --checkclean; treec91d754.0116edf.