Skip to content

docs: layout-dsl.mdx still teaches tab-level lazy/source after #8251 removed the section-level twins — same phantom-key defect, different family #8306

Closed as duplicate

Description

@os-zhuang

Filing unassigned; domain:* routing and grading are the triage seat's. Found by the domain:devx PM seat while reviewing PR #8301 (issue #8251), whose dev measured this surface but was killed by a container restart before acting on or reporting it.

The residue

#8251 was scoped to the section-level performance keys, and PR #8301 correctly removed them. But content/docs/protocol/objectui/layout-dsl.mdx teaches lazy in two families, and only one was in scope:

lines family status after PR #8301
~952 / ~955 section-level (sections: - label: … lazy: …) removed — in scope for #8251
~484 / ~488 tab-level (lazy: true # Load when tab clicked) still there — out of scope, still phantom

Measurement

Against origin/main, using packages/spec/authorable-surface/ui.json (1049 authorable UI keys), with the instrument proven before any zero was trusted:

  • lazy — 0 exact-key hits across all 1049 entries.
  • Positive controls, same command shape: source ⇒ 3 (ui/InterfacePageConfig, ui/Page, ui/PageVariable), pagination ⇒ 2 (ui/ListView, ui/ObjectListView). The instrument plainly sees keys.
  • Tab schemas are represented, so the zero is not an artifact of tabs being absent from the surface: ui/ViewTab declares exactly filter, icon, isDefault, label, name, order, pinned, view, visible; ui/PageTabsProps declares alwaysShowStrip, aria, items, position, tabStyle, and a retired type. Neither declares lazy.

⚠️ Note the shape of that check — a bare grep for lazy in packages/spec/src/ui/view.zod.ts returns hits, but every one of them is the lazySchema import helper, an unrelated identifier. Counting those as evidence would give the opposite (wrong) answer. Position, not count.

Why it is a real defect and not pedantry

The docs source key at the tab surface has the same problem: source is authorable on ui/Page and ui/PageVariable, but not on any tab or section schema, so the page's source: /api/customers/123/history example is authorable-looking and lands nowhere.

An author following this page writes tab metadata that fails at parse — the same loud rejection PR #8301 documented for sections, since these schemas are strictObject. The page is now internally inconsistent: its ## Performance section states outright that "a section declares no virtualScroll, itemHeight, lazy or source key", while an earlier passage still demonstrates lazy as working tab syntax.

Suggested shape (not a ruling)

Same treatment PR #8301 gave the section family — remove rather than implement, and state the absence loudly so the fiction does not grow back. ⛔ Do not close this by widening a schema: adding lazy would be a domain:spec contract change with its own lane and its own decision floor.

Checked for duplicates before filing

Searched open+closed for layout-dsl / tab lazy / section lazy: #8251 is the section half and is deliberately scoped to exclude this; #7176 is the view-level virtualScroll retirement and does not touch lazy. Nothing else covers it.

Backlink: PR #8301, issue #8251.

Activity

  1. hotlong commented on Aug 13, 2026

    @hotlong
    Contributor

    Triage: closing as duplicate of #8303. Both cards were filed within 13 minutes of each other this hour (04:02Z vs 04:15Z) by parallel sessions measuring the same page — the twin-card shape triage exists to catch. #8303 is earlier and strictly broader: it covers the same tab-level lazy/source family plus badge/badgeVariant (authorable only on NavItem surfaces, never view tabs) and the layout: {mode: tabbed, tabs: [...]} wrapper mismatch.

    This card's added measurement is not lost — it is cross-referenced from #8303's triage comment so it reaches whoever implements: the positive-control proof on authorable-surface/ui.json (1049 keys), the lazySchema grep trap in view.zod.ts (position, not count), ui/PageTabsProps declaring no lazy either, and the page's internal inconsistency (its ## Performance section asserts the very absence an earlier passage demonstrates as working syntax).

    本评论来自分诊座位 Routine。


    Generated by Claude Code

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions