Files
novalon-website/docs/acceptance/2026-09-30-seal/check-motion.txt
T
zhangxiang 1b8ffd5486 docs(seal): 2026-09-30 封版验收判定与证据入库 + 台账假事实更正
代码封版点仍是 a0328a6;本提交只含验收证据与文档,用于把台账
§0 的「未达可判验收通过(唯一阻断 AUTH-D1)」改判为「封版通过
(含例外清单)」。

补齐 sealed 树上从未跑过的 5 项门禁并如实记录非全绿:
- 全站 check:axe EXIT=0(34 路由 × 双引擎 × 双主题,violation=0)
- 产物安全头 EXIT=0(每头单次,WARN 仅 HSTS 边缘注入)
- 生产目标 E2E 91 passed / 1 failed(唯一红 = firefox 并发墙钟,
  隔离与 4-project 复跑均绿;dev.db 指纹前后一致,未写库)
- 视觉只读 94 passed / 31 failed(20 缺参照 + 11 已过时参照,
  逐条归因;未写任何基线)
- check:motion EXIT=1 / 23 处(与周期 2 同数,未新增)

更正 4 处文档假事实:DEC-N21b(/admin 实有服务端 gating,入口是
src/proxy.ts 而非 middleware.ts)、视觉基线「85 张未提交」(实测
107 张全在库)、「无需重跑 db:seed」(seed 改过 modelCode 而
permissions 精确匹配)、lint 105→104。
2026-09-30 23:41:22 +08:00

74 lines
6.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
> ruixin-website-react@1.0.0-phase1 check:motion
> tsx scripts/utils/check-motion-constraints.ts
🎬 动效契约检查(时长档位 + 缓动曲线)
契约:入场 180–280ms · 反馈 100ms · 上限 700ms · ease-ink [0.22, 1, 0.36, 1]
出处:CONTEXT.md:76 / :77 / :82(N-29:此前无任何脚本约束)
令牌层允许曲线:[0.000, 0.000, 0.200, 1.000] [0.220, 1.000, 0.360, 1.000] [0.400, 0.000, 0.200, 1.000] [0.400, 0.000, 1.000, 1.000] [0.650, 0.000, 0.350, 1.000]
❌ [easing-palette] src/app/(marketing)/news/[slug]/NewsDetailClient.tsx:14 const EASE = [0.25, 1, 0.5, 1]
曲线 [0.250, 1.000, 0.500, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/app/(marketing)/template.tsx:16 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/app/(marketing)/template.tsx:24 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [entrance-cap] src/app/globals.css:268 1000ms
--transition-gentle = 1000ms 超过 700ms 入场硬上限
❌ [css-transition-token] src/app/globals.css:1457 0.6s
transition 写了裸时长字面量,应改用 var(--transition-*)
❌ [easing-palette] src/components/sections/challenge-section.tsx:43 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/sections/cta-section.tsx:44 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/sections/hero-section-v2.tsx:13 const EASE = [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/sections/methodology-section.tsx:22 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/sections/product-matrix-section.tsx:20 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/sections/social-proof-section.tsx:43 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/sections/social-proof-section.tsx:59 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/sections/social-proof-section.tsx:70 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/sections/social-proof-section.tsx:98 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/sections/why-us-section.tsx:62 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/sections/why-us-section.tsx:86 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/sections/why-us-section.tsx:137 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/sections/why-us-section.tsx:154 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/ui/brand-visuals.tsx:66 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/ui/brand-visuals.tsx:95 ease: [0.16, 1, 0.3, 1]
曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/ui/page-transition.tsx:20 ease: [0.25, 1, 0.5, 1]
曲线 [0.250, 1.000, 0.500, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [easing-palette] src/components/ui/page-transition.tsx:76 ease: [0.25, 1, 0.5, 1]
曲线 [0.250, 1.000, 0.500, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000])
❌ [css-transition-token] src/lib/constants/design-system.ts:76 0.3s
内联 transition 串写了裸时长字面量,CSS 变量在 style 串里同样可用:var(--transition-*)
📊 检查摘要
扫描源码文件: 264(.ts/.tsx,已排除测试与 _archive)
扫描令牌/配置: CSS 1 · config 1
判定分母: CSS 声明 46 · 时长字面量 290 · 贝塞尔字面量 66 · --transition-* 令牌 6 · --ease-* 令牌 6
违规处数: 23
📋 分规则计数
token-band: 0 —— R1 令牌时长带:instant==100ms、fast/normal ∈ 180–280ms(CONTEXT.md:76)
entrance-cap: 1 —— R2 时长硬上限:任何动效时长不得超过 700ms(infinite 循环动画除外)(CONTEXT.md:82)
css-transition-token: 2 —— R3 令牌间接层:transition 声明的时长必须走 var(--transition-*)(CONTEXT.md:76(令牌层是时长的唯一事实来源))
easing-palette: 20 —— R4 缓动曲线:写死的 cubic-bezier 必须等于 --ease-* 令牌集,且 --ease-ink 必须是 [0.22,1,0.36,1](CONTEXT.md:77)
修复方向示例(easing-palette):改用 var(--ease-*) / ease-* 类,或把曲线值改回令牌层已声明的那条
❌ 存在动效契约违反!