Repository navigation
Description
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 只是把扔改成说清楚。要不要收编是产品/协议决定,不是清扫决定,故单开此件。
要决定的是两问:
- 收编吗?收编就等于在共享形状上声明它,而共享形状挂在约 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已经把这条说清楚了,作者不会再撞第二次。
- A1:只在
- 若收编,拼法:
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 的协议决定。
参考
- 未知键静默剥离仍是全仓默认:把 #3405 的 strict 收紧从一个 schema 推广到整个可授权面(ADR-0078 完整性闸门) #4001 批 16(测量来源)· objectui
normalize-list-view.ts的ARIA_KEY_ALIASES(label/describedBy旧拼法,批 16 已收为 alias) - Prime Directive chore: version packages #10(declared ≠ enforced)· ADR-0078
- https://www.w3.org/TR/wai-aria-1.2/
Generated by Claude Code
Activity
feat(spec)!: close AriaProps against unknown keys, reclassify widget …
os-zhuang commentedon Aug 6, 2026
分诊(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_01N3uGFF8teXbpgtbEJ1aYXuGenerated by Claude Code
os-zhuang commentedon Aug 6, 2026
维护者裁决(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_01N3uGFF8teXbpgtbEJ1aYXuGenerated by Claude Code
os-warren commentedon Aug 31, 2026
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-holdwith noRestart-when:line in either channel. Correct on the literal, and only a form problem — the maintainer ruling recorded on this thread (2026-08-06, comment5199346285) already names the exit, verbatim: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.jsonexists on origin/main,packages/spec/package.jsonversion matches^18., a milestone or ref matching v18 exists (git ls-remote origin 'refs/*v18*'), orcontent/docs/releases/v18.mdxis created — or a maintainer re-schedules the cardAll four legs measured false, each with a control
Read against
origin/maintoday:.changeset/pre.json.changeset/tree resolves and lists files — the zero is a reading, not a failed pathpackages/specversiongit ls-remote origin 'refs/*v18*'empty)refs/tags/*17*returns real refs, so the remote answerscontent/docs/releases/v18.mdx⇒ 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.
livespelling (extendListViewSchema.ariaonly — A2 rejected as declaring a capability 29 carriers do not implement, A3 rejected because objectui's owndescribeis 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
refactor(spec)!: strip internal tracker ids from the three customer-f…
os-litant commentedon Sep 19, 2026
Triage:
Path: records-forms; gradenone→p2; disposition keep (returned topm:queue).rationale: The inverse of declared ≠ enforced: objectui's ListView reads
aria.liveand 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.mdas part of the maintainer-assigned full-board sweep.pm:on-holdwas 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
os-litant commentedon Sep 19, 2026
Triage:
Path: records-forms; gradenone→p2; disposition keep (returned topm:queue).rationale: The inverse of declared ≠ enforced: objectui's ListView reads
aria.liveand 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.mdas part of the maintainer-assigned full-board sweep.pm:on-holdwas 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
os-litant commentedon Sep 19, 2026
Triage: closing
not_plannedunder the maintainer-assigned full-board re-grade againstdocs/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.liveand 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
os-litant commentedon Sep 19, 2026
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 closednot_planned. The card has been reopened and itspm:on-holdrestored.⛔ The re-grade was made without reading this thread, and it contradicted the ruling recorded here:
維護者裁決 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
os-litant commentedon Sep 19, 2026
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 closednot_planned. The card has been reopened and itspm:on-holdrestored.⛔ The re-grade was made without reading this thread, and it contradicted the ruling recorded here:
維護者裁決 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
objectstack-fleet commentedon Sep 24, 2026
Closed
not_plannedby the director seat (summon #28 续,session_01GLdRPcbaCBQCTvVmU6YEUY), 2026-09-24T05:25Z, on the maintainer's word — closure review batch 3 of the opendomain:speccards under the restructured triage standard, presented from the business angle in this seat's chat; maintainer verbatim 「同意」 to the batch as presented.Why:
aria-liveon 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: extendListViewSchema.ariaonly, spellinglive) 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.