№ · 活跃设计 CH.07.05
主页 · 📐 活跃设计 · Phase1 回归测试 v1

Phase1 回归测试 v1

📅 2026-07-05 · 📦 3.1 KB · 📐 活跃设计 · 📝 MD 文档 🆕 14d 🏷️ 装备🏷️ 设计🏷️ 时间🏷️ Phase1🏷️ 词条🏷️ 回归

时间:2026-07-02 14:20 +08:00 范围:⟦tag:v2|task|2026-07-10-phase1-roll-regression⟧ 真值层:以 docs/plans/active/2026-07-06-5日开发计划-v1.md v1.1 的 Day 5 / §3 / §5 为准

1. 当前回归对象

  • T7 生成入口:src/utils/items/rollEquipment.ts
  • T7 既有实现:src/utils/items/itemGen.ts
  • T7 回归脚本:src/utils/items/rollEquipment.regression.ts
  • T8 视觉真源:src/components/BaggageTab.tsxsrc/components/item/QualityFrame.tsxsrc/components/item/AffixChip.tsxsrc/index.css

2. 已验证结果

2.1 T7 生成回归

  • 已补 canonical Day 5 入口:rollEquipment({ tier, category })
  • 已补 46 组回归脚本:
    • 45 组:9 档 qualityTier × 5 类 affix kind
    • 1 组:旧存档 fallback rarity -> qualityTier
  • 每组验证点:
    • 输出 qualityTier 与输入一致
    • 输出 equipmentTypecategory 一致
    • affix kind 不漂移
    • rollValue 落在该 tier 的 affixRoll 区间内
    • rolledValue 落在该 affix 的 valueRange

2.2 T8 视觉/展示静态核对

  • 背包页真实接线已存在:
    • BaggageTab 直接渲染 QualityFrame + AffixChip
  • 视觉 tokens 已存在:
    • src/index.css 已有 9 档品质色和 5 类 affix 色
  • 组件实物已存在:
    • QualityFrame.tsx
    • AffixChip.tsx
    • ItemGallery.tsx 可作 quick demo 对照

3. 仍未闭环项

  • 未完成“真实旧档开档验证”:
    • 2026-07-05 已按当前 top1 lane 尝试通过 src/components/welcome/WelcomeGate.tsx 的 Phase 1 验收入口 + src/utils/playthroughVerification.ts 的注入路径完成真实开档验证;当前判断不需要也不应扩到 src/App.tsx
    • npm.cmd run build 已通过
    • 本机宿主 vite dev 页可返回 200,但 Codex in-app browser 对 http://127.0.0.1:3106/http://192.168.188.62:3106/ 均返回 ERR_CONNECTION_REFUSED
    • 随后尝试切到 Windows Computer Use 接管宿主 Chrome 时,工具直接停止并返回:could not determine the current browser URL on Windows with enough confidence to enforce policy
    • 因当前验收环境阻塞,尚未拿到“旧档开档 -> 背包/装备显示 -> 至少 1 个完整周期”的浏览器级实证;当前只能按 blocker 保留
  • npm run lint 仍非绿态,当前失败点在 lane 外 repo baseline
  • 当前 repo 真值并非“roll 后把 16 件静态装备全量持久化为非空 affixes”;它仍是运行时生成/桥接路径

4. Day 5 差异说明

  • 旧 task 卡写的是 rollEquipment({ tier, category })
  • 当前 repo 的既有实现真源在 src/utils/items/itemGen.ts,参数名是 type
  • 本回归以 v1.1 Day 5 真值为准,新增 src/utils/items/rollEquipment.ts 作为 Day 5 canonical entry,把 category 收口到当前 repo 已存在的 type 实现上

5. 最小验收口径

  • npm.cmd run build 通过
  • src/utils/items/rollEquipment.regression.ts 46 组通过
  • BaggageTab / QualityFrame / AffixChip / index.css 的静态接线存在
  • 浏览器手验若受当前工具环境阻塞,需在本文档显式登记 blocker,不得伪装成已闭环