release: 26.4.0 — profiles promotion + settings framework cleanups#33
Merged
Conversation
Promotes the descriptor/registry/auth/template patterns from mountainash-data into mountainash-settings, enabling reuse by mountainash-utils-files, mountainash-utils-secrets, and mountainash-acrds-core. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
10 tasks: port AuthSpec hierarchy (11 subclasses + dispatch), build profiles/ sub-package (descriptor + registry + DescriptorProfile + template wiring + invariants helper), wire public re-exports. Ships the reusable mechanism ahead of any consumer migration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…upport Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Lifts ConnectionProfile from mountainash-data, renames to DescriptorProfile, drops domain-specific to_driver_kwargs/to_connection_string, renames helpers to _default_kwargs/_auth_kwargs, and wires ParameterSpec.template via post_init (Pattern B). All 13 new tests pass alongside prior 16 (29 total). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds MISSING, DescriptorProfile, ParameterSpec, ProfileDescriptor, Registry, descriptor_invariants_for, and the full auth hierarchy (AuthSpec + 10 subclasses, auth_to_driver_kwargs, AUTH_TO_DRIVER_KWARGS) to mountainash_settings.__init__ and __all__. Smoke tests confirm both surfaces are importable from the package root. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat(profiles): promote descriptor/registry/auth machinery from mountainash-data — Phase 1
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #33 +/- ##
==========================================
- Coverage 96.85% 96.67% -0.19%
==========================================
Files 15 31 +16
Lines 573 841 +268
Branches 81 109 +28
==========================================
+ Hits 555 813 +258
- Misses 14 16 +2
- Partials 4 12 +8 ☔ View full report in Codecov by Sentry. |
4 tasks
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.




Release 26.4.0
This release promotes the descriptor/registry/auth machinery from
mountainash-dataintomountainash-settingsso other settings-heavy packages can reuse the pattern. It also includes several architectural cleanups across the core settings framework.Highlights
Profiles promotion (new
profiles/+auth/sub-packages)profiles/— pattern mechanism (Pattern A + B):ProfileDescriptor,ParameterSpec(with newtemplatefield for declarative Pattern B wiring)DescriptorProfile— pure-mechanism base class (pydantic v2,AfterValidatorwiring, template resolution inpost_init, adapter contract preserved)Registry— per-domain registry class with bound decorator, ID resolution, and test seamsdescriptor_invariants_for(registry)— pytest helper producing parametric invariant tests for any registryauth/— cross-cutting typed auth:AuthSpecbase + 10 subclasses (NoAuth,PasswordAuth,TokenAuth,JWTAuth,OAuth2Auth,ServiceAccountAuth,IAMAuth,AzureADAuth,KerberosAuth,CertificateAuth,WindowsAuth) — pydantic v2 discriminated unionAUTH_TO_DRIVER_KWARGS+auth_to_driver_kwargs()default dispatchPublic re-exports from
mountainash_settings.__init__expose all new symbols at package root.Settings framework cleanups
SettingsParameters.merge()SettingsUtilsfacade; normalize kwargs atSettingsParameters.create()boundarynamespacefield from settings architectureSettingsManager.get_settings_object()secrets_diras structural parameter in hash/eqsuper().post_init()call inAppSettingsDependencies
mountainash-constantsdependency (no longer needed)Test plan
v26.4.0after merge to mainWhat's next
Downstream consumers (mountainash-data Phase 2 migration) can now pin
mountainash-settings >= 26.4.0and consumeprofiles/+auth/from the upstream location.Full changelog
See merged PRs on develop since v25.8.0 for the full list (11 commits delivered via #32 plus prior architectural cleanups).