Skip to content

Stop Architectural Data from allowing a Signal - #42

Merged
ww-mw merged 1 commit into
mainfrom
arch-disallow-signal
Sep 28, 2026
Merged

ww-mw merged 1 commit into
mainfrom
arch-disallow-signal

Conversation

@ww-mw

@ww-mw ww-mw commented Sep 28, 2026

Copy link
Copy Markdown
Member

A Simulink.Signal is design data. Architectural Data models interfaces, and its bus and connection-bus entries are the interface types; nothing in the product supported adding a signal there. Neither arch fixture (arch.sldd, arch_binary_as_text.sldd) holds one.

allowsType gates add and paste only — it is never consulted while parsing — so a dictionary that already contains a derived signal still loads and still displays. archPresentation.test.ts keeps that case pinned, driven from metadata now that the section can no longer produce it through addEntry.

Four tests in sectionNode.test.ts used an arch Simulink.Signal incidentally, as a vehicle for testing derived stamping, cross-section unique naming and execRemoveEntry. They now use Simulink.Bus, which arch does model.

Needed by the Add Gallery in the extension, where the allow-list is the one gate deciding which tiles a section offers.

npm run verify green: 166 test files, 4909 tests.

A Simulink.Signal is design data. Architectural Data models interfaces, and
its bus and connection-bus entries are the interface types; nothing in the
product supported adding a signal there. Neither arch fixture holds one.

allowsType gates add and paste only — it is never consulted while parsing — so
a dictionary that already contains a derived signal still loads and still
displays. archPresentation keeps that case pinned, driven from metadata now
that the section can no longer produce it.

Four tests in sectionNode used an arch Simulink.Signal incidentally, as a
vehicle for testing derived stamping, cross-section unique naming and
execRemoveEntry. They now use Simulink.Bus, which arch does model.
@ww-mw
ww-mw merged commit a529d64 into main Sep 28, 2026
1 check passed
@ww-mw
ww-mw deleted the arch-disallow-signal branch September 28, 2026 15:01
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