Skip to content

Reject partial diagram comment targets at render check - #1467

Merged
max-sixty merged 4 commits into
mainfrom
fix/issue-1455
Sep 30, 2026
Merged

max-sixty merged 4 commits into
mainfrom
fix/issue-1455

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

A diagram can currently name only some of its rendered boxes in parts, so neighboring boxes respond differently to Comment. The render check now compares a nonempty parts list with the diagram's registered, nameable boxes and reports those omitted. Omitting parts still makes the drawing one target. The diagram excludes its renderer-generated state start/end markers from that inventory.

The reported partial flowchart failed the new browser regression test before the fix and passes after it. The supported diagram-type fixture, the affected shipped examples, and all 198 runtime tests pass. The guidance evaluation could not start in this CI image because the claude executable is unavailable.

Closes #1455 — automated triage

Check complete visual-part declarations against the renderer's inventory so authors choose all box targets or the whole diagram. Exclude synthetic state start/end markers, update the supported diagram fixtures and guidance, and add a regression test that failed on the reported flowchart before this change.

Closes #1455

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A Mermaid comment before stateDiagram-v2 makes the new completeness check reject a valid diagram. With the existing complete state-diagram fixture, adding %% note before the declaration produces leaves nameable parts unlisted node:_start in both color schemes; _start is renderer-generated and cannot be authored as a part.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test check is red because the new x-visual.parts registry contract has not been carried into the generated registry-key page. test_the_key_reference_is_generated_from_the_registry fails locally with the same mismatch. I’m regenerating that page on this branch.

@max-sixty
max-sixty merged commit a4ecc75 into main Sep 30, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/issue-1455 branch September 30, 2026 18:51
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.

A diagram whose parts list names only some nodes leaves the reader unable to comment on the rest, with no sign why

2 participants