gabriel / muse public
refactor patch dev
AI Agent gabriel · 146 days ago · Apr 25, 2026 · Diff

refactor: purge all remaining user-from-config references

config_cmd.py - Module docstring: remove user.* from settable namespaces; add blocked entry - JSON schema in docstring: remove user key - get/set help text: remove user.* examples; redirect to muse auth whoami - run_read: remove dead [user] printing block (config_as_dict never populates it) - run_get/run_set docstrings: replace user.* examples with hub.url / domain.* - Error format hint: user.handle → hub.url

commit.py - Comment: 'read user.handle from config' → 'resolve from identity.toml' - Variable rename: config_name → identity_handle

test_cmd_config.py - ArgParsing tests: user.handle → hub.url as parse target - TestConfigValueHelpers: set_and_get_user_* → set_user_*_raises (blocked) - test_config_as_dict_includes_user → test_config_as_dict_no_user_section - TestConfigCLI: user.* invocations replaced with hub.url / domain.* - TestConfigE2E: workflow uses hub+domain; asserts user absent from JSON - TestConfigSecurity: injection test uses domain.label; user.type test asserts blocked - Use config_toml_path() for inline path construction

sha256:a980e1d6745629801924ff6f8c07e5a228ef96f50825ee8daf44a1703bbb9697 sha
+10 ~23 −9 symbols
sha256:e399af84760b4db2251681158c1fac91f2a391ec166dcce98bbfb758ae3ed0ac snapshot
+10
symbols added
~23
symbols modified
−9
symbols removed
0
dead code introduced
Semantic Changes 42 symbols
~ muse/cli/commands/commit.py .py 1 symbol modified
~ run
~ tests/test_cmd_config.py .py 10 symbols added, 9 symbols removed, 18 symbols modified
test_set_then_get_user_name method method test_set_then_get_user_name L214–219
test_set_user_name method method test_set_user_name L208–212
test_set_user_type_rejects_unknown_values_gracefully method method test_set_user_type_rejects_unknown_values_gracefully L363–368
test_toml_injection_in_name_is_stored_safely method method test_toml_injection_in_name_is_stored_safely L339–351
test_config_as_dict_includes_user method method test_config_as_dict_includes_user L163–168
test_get_missing_key_returns_none method method test_get_missing_key_returns_none L129–132
test_set_and_get_user_email method method test_set_and_get_user_email L111–115
test_set_and_get_user_name method method test_set_and_get_user_name L105–109
test_set_and_get_user_type method method test_set_and_get_user_type L117–121
+ test_set_then_get_hub_url method method test_set_then_get_hub_url L215–220
+ test_set_user_handle_blocked method method test_set_user_handle_blocked L210–213
+ test_set_user_type_is_blocked method method test_set_user_type_is_blocked L362–366
+ test_toml_injection_in_domain_value_stored_safely method method test_toml_injection_in_domain_value_stored_safely L339–351
+ test_config_as_dict_no_user_section method method test_config_as_dict_no_user_section L164–170
+ test_get_missing_hub_key_returns_none method method test_get_missing_hub_key_returns_none L130–133
+ test_set_user_email_raises method method test_set_user_email_raises L112–116
+ test_set_user_handle_raises method method test_set_user_handle_raises L106–110
+ test_set_user_type_raises method method test_set_user_type_raises L118–122
+ config_toml_path import import config_toml_path L18–18
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:a980e1d6745629801924ff6f8c07e5a228ef96f50825ee8daf44a1703bbb9697 --body "your comment"