Repository navigation
Reject partial diagram comment targets at render check - #1467
Merged
Merged
Conversation
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
commented
Sep 30, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
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
commented
Sep 30, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
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.
This was referenced Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 nonemptypartslist with the diagram's registered, nameable boxes and reports those omitted. Omittingpartsstill 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
claudeexecutable is unavailable.Closes #1455 — automated triage