Skip to content

fix: forward provides children onto aspect root - #506

Merged
vic merged 1 commit into
denful:mainfrom
sini:fix/provides-forward-to-root
May 11, 2026
Merged

vic merged 1 commit into
denful:mainfrom
sini:fix/provides-forward-to-root

Conversation

@sini

@sini sini commented May 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Forward provides children onto the merged aspect root in mergeWithAspectMeta, so aspect.docker resolves to aspect.provides.docker without requiring the _.docker accessor
  • Tag forwarded keys via __providesForwarded so the pipeline's key classification skips them — prevents double-processing alongside includes
  • Add __providesForwarded to structuralKeysSet

Fixes regression from #504 which removed _.docker usage but did not implement the forwarding, breaking den.aspects.virtualization.docker access in diagram-demo template.

Test plan

  • 771/771 CI tests pass
  • diagram-demo template evaluates (148 checks)
  • den-configs helix.enable = true
  • aspect-path.test-excludeAspect-by-provider passes (validates forwarded keys don't affect pipeline classification)

In mergeWithAspectMeta, shallow-merge provides children onto the
merged aspect so aspect.docker resolves to aspect.provides.docker
without requiring the _.docker accessor.  Forwarded keys are tagged
via __providesForwarded so the pipeline's key classification skips
them — prevents double-processing alongside includes.

Fixes regression from denful#504 which removed _.docker usage but did not
implement the forwarding.
@sini
sini requested review from theutz and vic May 11, 2026 02:48
@vic

vic commented May 11, 2026

Copy link
Copy Markdown
Member

omg thanks! and sorry for the regression.

@vic
vic merged commit 00857e7 into denful:main May 11, 2026
22 of 29 checks passed
charlesfire pushed a commit to charlesfire/den that referenced this pull request May 16, 2026
## Summary

- Forward `provides` children onto the merged aspect root in
`mergeWithAspectMeta`, so `aspect.docker` resolves to
`aspect.provides.docker` without requiring the `_.docker` accessor
- Tag forwarded keys via `__providesForwarded` so the pipeline's key
classification skips them — prevents double-processing alongside
includes
- Add `__providesForwarded` to `structuralKeysSet`

Fixes regression from denful#504 which removed `_.docker` usage but did not
implement the forwarding, breaking `den.aspects.virtualization.docker`
access in diagram-demo template.

## Test plan

- [x] 771/771 CI tests pass
- [x] diagram-demo template evaluates (148 checks)
- [x] den-configs helix.enable = true
- [x] `aspect-path.test-excludeAspect-by-provider` passes (validates
forwarded keys don't affect pipeline classification)
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.

2 participants