fix(modules): show authored names for intermediates inside imported modules #39

Merged
abiwab merged 7 commits from fix/module-intermediate-display-name into main 2026-09-29 11:52:04 +02:00
Owner

Fixes #26.

Composition scope-qualifies a module's private intermediates with $ (e.g. tofu$marinated$pressed) so two modules can each declare &dough. That internal identity was also used as the display label, so it leaked into gram view, HTML and Markdown.

  • parser: optional displayName on reference and intermediate declaration nodes
  • modules: record the authored name when qualifying (innermost name kept across nested imports; bound exports untouched)
  • kitchen: register it as the registry label; identity (graph, scheduling, yield) is unchanged
  • renderer: declaration and HTML section badge now read the registry label
  • conformance: 7 goldens change only in registry name; new case mod-029
  • docs (EN/FR) and a patch changeset
Fixes #26. Composition scope-qualifies a module's private intermediates with `$` (e.g. `tofu$marinated$pressed`) so two modules can each declare `&dough`. That internal identity was also used as the display label, so it leaked into `gram view`, HTML and Markdown. - parser: optional `displayName` on reference and intermediate declaration nodes - modules: record the authored name when qualifying (innermost name kept across nested imports; bound exports untouched) - kitchen: register it as the registry label; identity (graph, scheduling, yield) is unchanged - renderer: declaration and HTML section badge now read the registry label - conformance: 7 goldens change only in registry `name`; new case mod-029 - docs (EN/FR) and a patch changeset
Merge branch 'main' into fix/module-intermediate-display-name
All checks were successful
CI / Build, Test & Publish (pull_request) Successful in 2m51s
22241163ce
abiwab scheduled this pull request to auto merge when all checks succeed 2026-09-29 11:51:59 +02:00
abiwab merged commit 592e471852 into main 2026-09-29 11:52:04 +02:00
abiwab deleted branch fix/module-intermediate-display-name 2026-09-29 11:52:04 +02:00
Sign in to join this conversation.
No description provided.