Skip to content

feat: structural provider provenance via meta.provider#399

Merged
sini merged 1 commit intodenful:mainfrom
sini:sf3/provider-provenance
Apr 8, 2026
Merged

feat: structural provider provenance via meta.provider#399
sini merged 1 commit intodenful:mainfrom
sini:sf3/provider-provenance

Conversation

@sini
Copy link
Copy Markdown
Collaborator

@sini sini commented Apr 8, 2026

Summary

  • Adds meta.provider typed option tracking each aspect's structural origin as a path (e.g., ["foo" "bar"] for foo.provides.bar)
  • providerPrefix threads through the provides submodule so child providers accumulate their parent's path
  • mkAspectsType factory allows namespaces and den.provides to set their own provider root

How it works

The provides submodule extends providerPrefix with the current aspect's name before passing it to child provider types. Namespaces set providerPrefix = [ name ] as their root. den.provides uses [ "den" "provides" ]. Top-level aspects default to [].

This lets adapters distinguish "bar provided by foo" from a top-level "bar" by inspecting aspect.meta.provider.

Provider path tracking now lives in meta.provider instead of
__provider. providerPrefix threads through provides submodules
and mkAspectsType sets namespace roots.
@sini sini changed the title Sf3/provider provenance feat: structural provider provenance via meta.provider Apr 8, 2026
@vic vic added the allow-ci allow all CI integration tests label Apr 8, 2026
@vic
Copy link
Copy Markdown
Member

vic commented Apr 8, 2026

Flawless!

Please merge this yourself when you accept the maintainer invitation.

@sini sini merged commit 6ca251e into denful:main Apr 8, 2026
27 of 28 checks passed
@vic vic self-requested a review April 8, 2026 07:34
@sini sini deleted the sf3/provider-provenance branch April 8, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted allow-ci allow all CI integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants