You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
page-authoring: say whether a numeric grid is a table or a chart #1491
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
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.
Following page-authoring.md, the agent writes a <table>; the "same dimensions across items" sentence reads as a direct match.
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.
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.
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.
Activity
leaf-agent commentedon Oct 1, 2026
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.
max-sixty commentedon Oct 1, 2026
@leaf-agent arent you supposed to fix this?!
leaf-agent commentedon Oct 1, 2026
You're right—I should have made the change in the earlier run. I fixed the guidance and merged #1504. It now gives
lf-chartpriority 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 lacksclaude.fix(triage): open a PR when a maintainer is reasonably likely to merg…