Skip to content

refactor: defer base directory resolution and decouple option resolvers#107

Merged
ebisawa merged 1 commit into
mainfrom
refactor/lazy-workspace-resolution-and-option-decoupling
May 27, 2026
Merged

refactor: defer base directory resolution and decouple option resolvers#107
ebisawa merged 1 commit into
mainfrom
refactor/lazy-workspace-resolution-and-option-decoupling

Conversation

@ebisawa
Copy link
Copy Markdown
Owner

@ebisawa ebisawa commented May 27, 2026

Summary

  • Workspace resolution now accepts a closure for lazy base directory resolution, avoiding unnecessary computation when the base directory is not needed (e.g. when workspace is explicitly specified via CLI option or environment variable)
  • Decoupled resolve_options_with_allow_expired_key from resolve_options_with_read_trust_allowances so that commands using only --allow-expired-key are not affected by invalid allow_non_member configuration
  • Updated user guide command references (EN/JA) to reflect --allow-non-member and --allow-weak-password options

Test plan

  • Added app_context_resolves_workspace_from_options_home_config_without_secret_env_home test to verify lazy resolution path
  • Added test_resolve_options_with_allow_expired_key_ignores_allow_non_member_config test to verify decoupled behavior
  • Added test_resolve_options_with_read_trust_allowances_rejects_invalid_allow_non_member_config test to verify validation still applies where expected

…decouple option resolvers

Workspace resolution now accepts a closure for lazy base directory
resolution, avoiding unnecessary computation when the base directory
is not needed. Also separates resolve_options_with_allow_expired_key
from allow_non_member validation to prevent unrelated config errors.
Updates user guide command references with new CLI options.
@ebisawa ebisawa merged commit 018d3f8 into main May 27, 2026
4 checks passed
@ebisawa ebisawa deleted the refactor/lazy-workspace-resolution-and-option-decoupling branch May 27, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant