Skip to content

page-authoring: say whether a numeric grid is a table or a chart #1491

Closed

Description

@max-sixty

What happens

page-authoring.md sorts content into forms with two sentences that can both describe the same content:

Use a table when the user compares the same dimensions across items; … A headline measurement is a metric, and a pattern across measurements is a chart.

A grid of numbers, such as a few groups measured over the same handful of windows or a set of levels each with an effect size, fits both descriptions. It compares the same dimensions across items, and its point is the pattern across the measurements. Nothing in the guidance says which one wins. An agent following it can reasonably write an HTML table, and the reader then has to scan rows of numbers to see a shape a bar or line chart would show at a glance.

Expected

For numeric content, the guidance should state the tie-break. A reasonable default: numbers whose shape is the point (a trend, a ranking, groups compared on one scale, series moving together) go in an lf-chart, and a table is kept for lookup, for mixed units that can't share an axis, or for text-heavy cells. Where the exact values still matter, the chart can lead and the table sit under a <details> disclosure below it.

Repro

  1. Ask an agent to write a page with one section holding a numeric grid: say, three groups by five windows, with the point being that the groups move together.
  2. Following page-authoring.md, the agent writes a <table>; the "same dimensions across items" sentence reads as a direct match.
  3. The reader has to ask for a chart, and the agent then rewrites the section as an lf-chart, which the guidance would equally have supported from the start.

Seen on leaf d1c5762.

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

Activity

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

    @leaf-agent
    Collaborator

    The tie-break belongs in page-authoring: its same-dimensions table rule can override the existing chart guidance, which already says to chart numbers when their shape is the point. Making that priority explicit there would give an agent one answer for a numeric grid while preserving tables for value lookup or text-heavy comparisons. A guidance eval using the three-groups-by-five-windows case would test whether agents make that choice in practice.

    I found no overlapping open issue or PR; #1491 can track this authoring-guidance change.

  3. max-sixty commented on Oct 1, 2026

    @max-sixty
    OwnerAuthor

    @leaf-agent arent you supposed to fix this?!

  4. leaf-agent commented on Oct 1, 2026

    @leaf-agent
    Collaborator

    You're right—I should have made the change in the earlier run. I fixed the guidance and merged #1504. It now gives lf-chart priority when the pattern in a numeric grid is the point, with a table available for exact-value lookup. I also added a guidance eval for the three-group, five-week case. The PR checks passed; I couldn't run the guidance eval locally because this runner lacks claude.

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