Skip to content

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

Closed

Description

@max-sixty

What happens

lf-diagram makes a box commentable on its own only when parts lists it, and a page can list some boxes and leave others out. The reader then finds that some boxes take a comment and their neighbours don't. Nothing on the page says why, so it reads as a bug.

I hit this on a page whose flowchart had eleven nodes. I listed six of them in parts: the four decision diamonds, the start node and one outcome box. The reader could comment on the diamonds but not on the other outcome boxes beside them, and asked why.

Smallest repro

  1. On a page, author a flowchart with parts naming only some of its nodes:

    <lf-diagram id="flow" parts="node:A node:B">
    <pre>
    flowchart TD
      A{Ready?} -- yes --> B{Tested?}
      A -- no --> C[Wait]
      B -- yes --> D[Ship]
      B -- no --> E[Test]
    </pre>
    </lf-diagram>
  2. Open the page. A and B each take a comment of their own; C, D and E take only the whole-diagram comment.

page check --render passes, and the registry entry and the authoring reference say only that listed boxes become targets. Neither says which boxes an author should list.

Expected

A reader shouldn't be able to tell which boxes the author happened to list. Any of these would get there:

  • Every node with an authored id is a part by default, and parts is only for narrowing the set, or for opting out.
  • page check flags a diagram whose parts names some of its nodes but not all of them.
  • The authoring guidance says to list every node or none.

The first removes the choice entirely. The other two keep the attribute as it is and only stop the partial case.

Seen on leaf d088065, installed 2026-09-27T14:13:44-07:00.

This was written by Claude Code on behalf of max-sixty

Activity

  1. added
    enhancement
    on Sep 30, 2026
  2. leaf-agent commented on Sep 30, 2026

    @leaf-agent
    Collaborator

    This is a valid authoring gap. I recommend making a diagram's comment targets all or none: keep omission of parts as the whole-diagram choice, and have page check --render flag a partial list of nameable boxes. That would catch the confusing page before handoff while preserving the current choice to keep a diagram whole. Guidance alone would leave the page check green in the reported case.

    The diagram entry declares parts as the admitted list. The browser admission rule deliberately permits the widget to register more boxes than that list names, and the render check checks only the declared names. A completeness check belongs at the diagram's rendered inventory boundary and would also need the existing partial diagrams in the test corpus brought into line.

  3. max-sixty commented on Sep 30, 2026

    @max-sixty
    OwnerAuthor

    @leaf-agent isnt it on you to fix? isn't that in the triage-issue instructions? please debug

  4. leaf-agent commented on Sep 30, 2026

    @leaf-agent
    Collaborator

    You're right; my first reply stopped at diagnosis when I should have attempted the fix. I opened #1467: page check --render now rejects a diagram that lists only some nameable boxes in parts, and omitting parts still keeps the whole diagram as one Comment target. The reported flowchart failed the new regression test before the change and passes after it.

    Lint has passed on the pushed head. The PR test job was still running when the CI poll reached its limit, so I have not merged the PR or marked the issue resolved.

  5. max-sixty commented on Oct 1, 2026

    @max-sixty
    OwnerAuthor

    @leaf-agent this just happened again, check the recent issue. diagnose and put an issue into this repo or tend

  6. leaf-agent commented on Oct 1, 2026

    @leaf-agent
    Collaborator

    I traced the repeat to Tend’s triage instructions and filed tend#1470 with the two run records and a proposed change.

    The first run on this issue classified the report as a feature request, so it stopped after recommending a fix; the later mention produced merged #1467. The triage run for #1491 followed the same path: it located the guidance conflict but left the edit for a follow-up. Tend’s triage skill currently reserves its fix step for “Bug reports only,” even when a feature request is scoped and verifiable. The separate mention run on #1491 is active and can handle that page guidance change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions