Skip to content

AriaProps 与 WAI-ARIA 1.2 的两处缺口:aria.live 只活在 objectui 的扩展里,aria-labelledby 全无对应 #5058

Closed as not planned

Description

@xuyushun441-sys

Path: records-forms

Path: records-forms

批 16(#4001)把 packages/spec/src/ui/i18n.zod.ts 的 AriaPropsSchema 按真门收紧时测出来的两条协议缺口。批 16 没有改声明面(只把静默剥离换成响亮拒绝 + 处方),这两条是加声明,属 additive,按 2026-08-04 切线规则应进 v18 地图,不抢 v17 窗口。

AriaPropsSchema 的 JSDoc 自称 “Aligned with WAI-ARIA 1.2 specification”,实际只声明三个键:ariaLabel / ariaDescribedBy / role。

缺口一:aria.live —— 渲染器真读,协议没声明

objectui 的列表渲染器逐字读这个键并落到 DOM 上:

packages/plugin-list/src/ListView.tsx:1984
  {...(schema.aria?.live ? { 'aria-live': schema.aria.live } : {})}

而 objectui 自己的类型是扩展 spec 的形状得到的:

packages/types/src/zod/objectql.zod.ts:463
  aria: SpecAriaPropsSchema.extend({
    live: z.enum(['polite','assertive','off']).optional()
      .describe('aria-live politeness for the list region (objectui-only — promote rather than grow this extension)'),
  })

注意那句 describe 是 objectui 自己写的:“promote rather than grow this extension” —— 它在等这边收编。

现状的三层不一致:

通道 今天的行为
spec 类型(defineView 等 TS 授权路径) tsc 直接报错 —— 写不进去
spec parse(objectstack validate / 保存校验) 收紧前静默剥离;批 16 后响亮拒绝并指明它只在 objectui 列表面有效
objectui 渲染路径 不过 zod,aria-live 真的渲染出来

所以没有「今天能用、批 16 打断了」的路径 —— TS 早就拦着,parse 早就在扔。批 16 只是把扔改成说清楚。要不要收编是产品/协议决定,不是清扫决定,故单开此件。

要决定的是两问:

  1. 收编吗?收编就等于在共享形状上声明它,而共享形状挂在约 30 个 aria: 载体上(view / page / page component / dashboard widget / chart / action / 20 个 SDUI component / widget manifest),其中只有列表渲染器实现了 aria-live。在共享形状上加 = 对另外 29 个载体宣告一个运行时不兑现的能力,正是 Prime Directive chore: version packages #10 与本战役要杀的 declared ≠ enforced。
    • A1:只在 ListViewSchema.aria 上扩展(AriaPropsSchema.extend({ live })),声明面与实现面严格对齐。
    • A2:加到共享 AriaPropsSchema,并同批把 aria-live 落到其余渲染器 —— 成本在 objectui,收益存疑。
    • A3:不收编,保持 objectui 扩展。批 16 的 guidance 已经把这条说清楚了,作者不会再撞第二次。
  2. 若收编,拼法:live 还是 ariaLive?本文件三个键有两个带 aria 前缀(ariaLabel / ariaDescribedBy),role 不带 —— 前缀约定本身就不齐。但 live 是唯一活读者用的拼法(schema.aria?.live),改成 ariaLive 需要 objectui 同步改渲染器或走 ADR-0087 转换层。

倾向 A1 + 保持 live:声明=实现,且不动唯一活读者。

缺口二:aria-labelledby 全无对应

aria-labelledby(引用另一元素的 id 作为无障碍名)是 WAI-ARIA 1.2 里与 aria-label(字面字符串)并列的核心属性,本 schema 一个都没声明。作者写 ariaLabelledBy / labelledBy:

  • 收紧前:静默剥离;
  • 收紧后:响亮拒绝。批 16 特意给了 guidance 而不是 alias —— 把它重命名到 ariaLabel 语义是错的(一个指 id,一个是字面串),而本战役自己的 finding 7 记过「错误的指示比没有指示更坏」。

要不要声明 ariaDescribedBy 的姊妹键 ariaLabelledBy,同样是 additive 的协议决定。

参考


Generated by Claude Code

Activity

  1. added
    domain:spec
    and removed on Aug 4, 2026
  2. added
    needs-user-decision
    on Aug 6, 2026
  3. os-zhuang commented on Aug 6, 2026

    @os-zhuang
    Contributor

    分诊(spec 车道欠账代扫,维护者 2026-08-05 指令):挂 needs-user-decision。两问均为 additive 契约决定:① aria.live 收编与否(A1 仅 ListView 扩展 / A2 共享形状+补齐 29 个载体 / A3 不收编;填单人倾向 A1+保持 live 拼法,理由「声明=实现且不动唯一活读者」成立);② ariaLabelledBy 是否补声明。target:v18 在身不急,随 v18 规划批量过;objectui 侧 describe 自己写着「promote rather than grow this extension」可作输入。不构成认领。会话:session_01N3uGFF8teXbpgtbEJ1aYXu


    Generated by Claude Code

  4. os-zhuang commented on Aug 6, 2026

    @os-zhuang
    Contributor

    维护者裁决(2026-08-06,经本会话转达):缺口一取 A1 + 保持 live 拼法——只在 ListViewSchema.aria 上 .extend({ live }),声明面与唯一活读者严格对齐;A2 否决(对 29 个无实现载体宣告能力);A3 否决(objectui 的 describe 自己在等收编)。缺口二(ariaLabelledBy)暂不声明——无渲染器兑现就加声明是新造 declared≠enforced,等 objectui 有载体同批兑现时再议。执行窗口 = 协议 18(additive 切线规则),转 pm:on-hold:重启条件 = v18 列车开启时由 spec 座位回捡。会话:session_01N3uGFF8teXbpgtbEJ1aYXu


    Generated by Claude Code

  5. added
    pm:on-hold
    and removed
    needs-user-decision
    on Aug 6, 2026
  6. os-warren commented on Aug 31, 2026

    @os-warren
    Collaborator

    Hold-condition completion (triage seat, H9 patrol of 2026-08-31). ⛔ No state change, no re-grade, no new decision — this transcribes an exit condition this card already carries into the machine form the unlock scan can read.

    The half-state patrol flags this card under H9: pm:on-hold with no Restart-when: line in either channel. Correct on the literal, and only a form problem — the maintainer ruling recorded on this thread (2026-08-06, comment 5199346285) already names the exit, verbatim:

    执行窗口 = 协议 18(additive 切线规则),转 pm:on-hold:重启条件 = v18 列车开启时由 spec 座位回捡。

    The unlock scan greps the literal key, so a correctly-named condition stated in prose is invisible to it. Adding the line in the house form established on #8345 (triage seat, 2026-08-19, on-hold weak-hit audit), unchanged:

    Restart-when: the v18 cycle opens — first true of: .changeset/pre.json exists on origin/main, packages/spec/package.json version matches ^18., a milestone or ref matching v18 exists (git ls-remote origin 'refs/*v18*'), or content/docs/releases/v18.mdx is created — or a maintainer re-schedules the card

    All four legs measured false, each with a control

    Read against origin/main today:

    leg reading control
    .changeset/pre.json absent the .changeset/ tree resolves and lists files — the zero is a reading, not a failed path
    packages/spec version 17.2.0 —
    a remote ref matching v18 none (git ls-remote origin 'refs/*v18*' empty) refs/tags/*17* returns real refs, so the remote answers
    content/docs/releases/v18.mdx absent the directory lists v9 … v17

    ⇒ v18 has not opened; this hold is sound and stands.

    Freshness checked before writing: this thread's two comments both predate the body's last edit and neither disturbs the 2026-08-06 ruling. Nothing else on the card has moved.

    ⚠️ Note for whoever picks this up at v18, carried from the ruling so it is not re-litigated: gap ① is decided as A1 + keep the live spelling (extend ListViewSchema.aria only — A2 rejected as declaring a capability 29 carriers do not implement, A3 rejected because objectui's own describe is waiting to be adopted); gap ② (ariaLabelledBy) is deliberately not declared yet — adding it with no renderer to honour it would be a fresh declared ≠ enforced.


    Generated by Claude Code

  7. added
    pm:queue
    priority:p2
    and removed
    pm:on-hold
    on Sep 19, 2026
  8. os-litant commented on Sep 19, 2026

    @os-litant
    Contributor

    Triage: Path: records-forms; grade none → p2; disposition keep (returned to pm:queue).

    rationale: The inverse of declared ≠ enforced: objectui's ListView reads aria.live and writes it to the DOM (ListView.tsx:1984) while spec declares only three AriaProps keys, and objectui's own schema comment says "promote rather than grow this extension" — it is waiting to be adopted. Additive and already mapped to the v18 train: p2.

    Re-graded against docs/NORTH-STAR.md as part of the maintainer-assigned full-board sweep. pm:on-hold was removed because the charter permits that state only with a machine-readable wake condition. Closures in this sweep are the maintainer's call — this card was kept, not closed.


    Generated by Claude Code

  9. os-litant commented on Sep 19, 2026

    @os-litant
    Contributor

    Triage: Path: records-forms; grade none → p2; disposition keep (returned to pm:queue).

    rationale: The inverse of declared ≠ enforced: objectui's ListView reads aria.live and writes it to the DOM (ListView.tsx:1984) while spec declares only three AriaProps keys, and objectui's own schema comment says "promote rather than grow this extension" — it is waiting to be adopted. Additive and already mapped to the v18 train: p2.

    Re-graded against docs/NORTH-STAR.md as part of the maintainer-assigned full-board sweep. pm:on-hold was removed because the charter permits that state only with a machine-readable wake condition. Closures in this sweep are the maintainer's call — this card was kept, not closed.


    Generated by Claude Code

  10. os-litant commented on Sep 19, 2026

    @os-litant
    Contributor

    Triage: closing not_planned under the maintainer-assigned full-board re-grade against docs/NORTH-STAR.md.

    North Star basis: none. Accessibility is not among the eleven capabilities in 「做出来的是什么」, is not a step on the measured journey, and has zero of the 264 checklist items. (An earlier sweep of mine appeared to find an a11y item; that was a character-level false positive — page-variables — and is withdrawn.)

    What is kept, not lost. Closing an issue does not delete it — the body and its whole thread stay readable and reopening is free. The measurement stays in the body: objectui's ListView reads aria.live and writes it to the DOM (ListView.tsx:1984) against a spec that declares only three keys, and objectui's own schema comment asks for exactly this — "promote rather than grow this extension".

    Reopening is free the moment an accessibility requirement enters the definition or the checklist.


    Generated by Claude Code

  11. removed
    pm:queue
    on Sep 19, 2026
  12. added
    pm:on-hold
    on Sep 19, 2026
  13. os-litant commented on Sep 19, 2026

    @os-litant
    Contributor

    Correction — this seat's batch-1 re-grade on this card is withdrawn

    Triage seat (#6015), session_01Y6AwMBAN8zRUHgmgFdV1Qr. Earlier today this card was re-graded, then closed not_planned. The card has been reopened and its pm:on-hold restored.

    ⛔ The re-grade was made without reading this thread, and it contradicted the ruling recorded here:

    缺口一取 A1 + 保持 live 拼法…执行窗口 = 协议 18(additive 切线规则),转 pm:on-hold(維護者裁决 2026-08-06)

    維護者裁決 outranks 北極星 in the priority order, so a North Star re-grade cannot override it. Nothing about this card had changed; the seat simply had not read it.

    Root cause, stated rather than buried. The sweep detector read only the issue body, so every ruling and every Restart-when: line living in a comment was invisible to it. All eight cards touched in batch 1 carry such a ruling; five were closed and all five are reopened. The sweep's 「112 cards carry no wake mechanism」 figure is withdrawn as measured on a broken instrument. The charter already required the fix — 「每张候选读全文 + 全部评论」 — and this seat did not do it.


    Generated by Claude Code

  14. os-litant commented on Sep 19, 2026

    @os-litant
    Contributor

    Correction — this seat's batch-1 re-grade on this card is withdrawn

    Triage seat (#6015), session_01Y6AwMBAN8zRUHgmgFdV1Qr. Earlier today this card was re-graded, then closed not_planned. The card has been reopened and its pm:on-hold restored.

    ⛔ The re-grade was made without reading this thread, and it contradicted the ruling recorded here:

    缺口一取 A1 + 保持 live 拼法…执行窗口 = 协议 18(additive 切线规则),转 pm:on-hold(維護者裁决 2026-08-06)

    維護者裁決 outranks 北極星 in the priority order, so a North Star re-grade cannot override it. Nothing about this card had changed; the seat simply had not read it.

    Root cause, stated rather than buried. The sweep detector read only the issue body, so every ruling and every Restart-when: line living in a comment was invisible to it. All eight cards touched in batch 1 carry such a ruling; five were closed and all five are reopened. The sweep's 「112 cards carry no wake mechanism」 figure is withdrawn as measured on a broken instrument. The charter already required the fix — 「每张候选读全文 + 全部评论」 — and this seat did not do it.


    Generated by Claude Code

  15. objectstack-fleet commented on Sep 24, 2026

    @objectstack-fleet
    Contributor

    Closed not_planned by the director seat (summon #28 续, session_01GLdRPcbaCBQCTvVmU6YEUY), 2026-09-24T05:25Z, on the maintainer's word — closure review batch 3 of the open domain:spec cards under the restructured triage standard, presented from the business angle in this seat's chat; maintainer verbatim 「同意」 to the batch as presented.

    Why: aria-live on list views is an accessibility capability that is not on NORTH-STAR's road, and no application or customer has asked for it (zero measured pull since 2026-08-04). Today the protocol refuses the key loudly with guidance (batch 16), so no author is silently misled, and objectui's own extension carries the rendering for anyone who bypasses the schema door. Ruling A1 (2026-08-06: extend ListViewSchema.aria only, spelling live) waited for a v18 window; the maintainer chose not to carry it.

    Supersedes the 2026-08-06 A1 ruling, on the maintainer's word. If an application asks, re-file with that application named; the A1 shape stays the recorded answer and is an S-size additive change that needs no major window under 阶段姿态 「速度优先于兼容」. Gap two (aria-labelledby, no counterpart anywhere) closes with it for the same reason. Ledger: seat post #12708, this summon's next block.

  16. removed
    pm:on-hold
    on Sep 24, 2026
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

    domain:specpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions