Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

docs(design-rules): 双模式门槛放宽为「实现硬性 / 目检尽力」

Lizi01e8325fa5f8
diff --git a/AGENTS.md b/AGENTS.md
index 07d909e4bd..ca13fb1473 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -51,8 +51,10 @@
的术语照用,不自造译法;表里没有或拿不准的,在 `i18n/glossary.json` 加
`status: "proposed"` 条目再讨论。门禁为 `pnpm check:i18n-glossary`,规则见
`docs/dev-rules/engineering-conventions.md` §5.1。
-- 所有新增或修改的 UI 必须同时完成 Light 与 Dark 两种模式;只实现或只验证一种模式,
- 视为未完成。具体实现与验收要求以 `docs/design-rules/DESIGN.md` 的双模式交付门槛
+- 所有新增或修改的 UI 必须同时**实现** Light 与 Dark 两种模式(颜色一律走语义 token,
+ 禁止只适配一种模式的硬编码或条件补丁);只实现一种模式视为未完成。**两种模式的实机
+ 目检不是硬性门槛**——能目检更好,做不到时如实写明哪种模式未验证,不得把「复用了 themed
+ 样式」当成「双模式已验证」。具体要求以 `docs/design-rules/DESIGN.md` 的双模式交付门槛
为准。
- 修改 Orca 多 Agent 协同时,必须先读
`docs/dev-rules/orca-team-architecture.md`。
diff --git a/docs/design-rules/DESIGN.md b/docs/design-rules/DESIGN.md
index cdbe734ae2..91e943b97a 100644
--- a/docs/design-rules/DESIGN.md
+++ b/docs/design-rules/DESIGN.md
@@ -330,10 +330,10 @@ Cindy Mobile (React Native) has its own device-class rules (phone / pad portrait
### Light / Dark Dual-Mode Delivery Gate(双模式交付门槛)
-- **Every UI must support both Light and Dark modes.** When adding or changing any page, component, layout, style, motion, or UI copy, both modes must be completed within the same piece of work; designing, implementing, or verifying only one mode counts as incomplete.
+- **Every UI must be implemented for both Light and Dark modes.** When adding or changing any page, component, layout, style, motion, or UI copy, both modes must be designed and built within the same piece of work; designing or implementing only one mode counts as incomplete. **Visual QA in both modes is expected effort, not a blocking gate** — see the last bullet.
- Both modes must cover every state actually touched by the change — default, hover, pressed, selected, focus, disabled, loading, empty, error, overlays and scrims. States the change does not touch need not be retrofitted just to tick a box.
- Colors must be consumed through semantic tokens; hardcoded values or conditional patches that only fit one mode are forbidden. When the design mock provides only one mode, the other mode must still be filled in through the existing token system; if a clear semantic mapping is missing, request a design ruling first — never ship with a mode omitted.
-- Before delivery, verify the affected surfaces in both Light and Dark and record it honestly in the commit / PR verification notes. If either mode is unreadable, indistinguishable, missing states, or visibly regressed, the work is not done.
+- **Verification is best-effort and must be reported honestly.** Eyeballing the affected surfaces in both Light and Dark before delivery is the preferred path, but skipping it does not block the change — say plainly in the commit / PR verification notes which mode was actually checked and which was not. Never upgrade "reused existing themed styles / added no raw color values" into a claim that both modes were verified. If a mode *is* checked and comes back unreadable, indistinguishable, missing states, or visibly regressed, that is a real defect and must be fixed before delivery.
### Architecture
diff --git a/docs/design-rules/design-decision-log.md b/docs/design-rules/design-decision-log.md
index eac36f38a3..3f221cc2b5 100644
--- a/docs/design-rules/design-decision-log.md
+++ b/docs/design-rules/design-decision-log.md
@@ -12,6 +12,13 @@
## 2026-07
+- **07-26** §10「双模式交付门槛」放宽为「实现硬性 / 目检尽力」:**实现**两模式(走语义
+ token、禁单模式硬编码、覆盖本次改动涉及的状态)仍是硬性要求;**两模式实机目检**从
+ 硬门槛降为尽力项——做不到不阻塞交付,但必须在 commit / PR 验证说明里写明哪种模式
+ 未验证,且不得把「复用既有 themed 样式、无新增裸色值」当作「双模式已验证」;一旦目检
+ 发现某模式不可读 / 无区分 / 缺态 / 明显回退,仍按真实缺陷处理必须修。背景:原门槛
+ 要求每次 UI 改动都实机跑两遍,纯复用 themed 样式的小改动也被卡在「未完成」上,与
+ Agent 日常交付节奏不匹配(用户拍板)。同步改 `AGENTS.md` 规则索引对应条目。
- **07-25(梳理批次 2)** `DESIGN.md §15` 保号重构:小节编号冻结为稳定标识
(15.9 从未分配;15.13 物理位置移回 15.12 与 15.14 之间),各小节只留现行规范,
决策史迁入本文件;§10/§11/§14/§15 及 §2/§4/§5 残留中文段英文化(§16 冻结暂缓,