/** * Sample Task / Feature / Security rows for previewing notification cards. * Shared by `preview-notify-cards.ts` (render to stdout) and * `send-notify-preview.ts` (send through the real bot) so the two can't drift. * * Deliberately realistic rather than minimal: long CJK titles, a plan long * enough to exercise the excerpt truncation, and a populated MR / node / risk / * rounds set — those are the layout's actual stress cases. */ import type { Task, Feature, Security } from "../control-server/src/types"; const now = Date.now(); const TEST_SPEC = `## 复现条件 // Reproduce condition - 账号/环境: - abid: 23166598(用 ab-clone-skill 应用到当前设备) - 需登录一个金币余额 > 0 的账号,且该账号未走过预领奖流程 - 入口路径:首页 → 侧边栏 → UG 活动页 → 任选一个「余额送礼」任务 ## 预期 // Expected 完成任务后,仅展示「任务完成」toast;不得出现「兑换完成且礼物已送出」。 ## 实际 // Actual 完成任务后误弹「兑换完成且礼物已送出」toast,但礼物实际并未送出。 ## 验证要点 // Verification 1. 余额 > 0 且未预领奖 → 不应出现兑换 toast 2. 余额 = 0 → 行为保持不变(回归项) 3. 已预领奖账号 → 兑换 toast 应正常出现`; export const sampleTask = { id: "preview-bug", meegoId: "7357099854", meegoUrl: "https://meego.feishu.cn/story/detail/7357099854", title: "[直播打赏][strategy-ai 自动提单][UG任务] 有金币余额时,UG活动页用余额送礼(未走预领奖)完成任务后误弹\"兑换完成且礼物已送出\"toast", bugType: "ui", platform: "android", difficulty: "high", stepsClarity: "clear", executionPlan: TEST_SPEC, mrUrl: "https://bits.bytedance.net/devops/1499114242/code/detail/8216797", branchName: "bugfix/ug-balance-gift-toast", executorNodeId: "fei-android-01.shiro0.icu", fixedRisk: 50, attempts: 4, totalDurationMs: 1994758, durationMs: 1994758, failureReason: null, // The `oc_` entry is the shared report group — present on every real row, and // deliberately filtered out of the watcher chips. watchers: ["qifan.zhang@bytedance.com", "jiaopengwen@bytedance.com", "oc_91dcbdb498fd9e70ab23f8f7727ac44e"], status: "manual_review", createdAt: now, } as unknown as Task; export const sampleFeature = { id: "preview-feature", platform: "ios", title: "[评论区] 支持长按评论快捷翻译,并在气泡内展示原文/译文切换入口", executionPlan: `## 实现方案 1. 在 \`CommentCell\` 的长按菜单中新增「翻译」项,命中后调用 \`TranslationService\` 2. 译文以第二行形式插入气泡内部,保留原文并提供「显示原文 / 显示译文」切换 3. 翻译结果按 commentId 做内存缓存,避免重复请求 ## 验收 - 长按任意评论可见「翻译」入口 - 切换原文/译文不引起 cell 高度跳变 - 无网络时降级为 toast 提示,不阻塞菜单`, mrUrl: "https://bits.bytedance.net/devops/1499114242/code/detail/8300112", branchName: "feature/comment-quick-translate", executorNodeId: "fei-ios-02.shiro0.icu", attempts: 2, totalDurationMs: 903000, durationMs: 903000, watchers: ["zeyu.zyzhang@bytedance.com", "oc_91dcbdb498fd9e70ab23f8f7727ac44e"], failureReason: null, status: "manual_review", createdAt: now, } as unknown as Feature; export const sampleSecurity = { id: "preview-security", platform: "android", title: "[隐私合规] 冷启动阶段在用户授权前读取 IMEI / MAC 的调用链搜证", executionPlan: `## 搜证方案 1. 使用 frida hook \`TelephonyManager#getDeviceId\` 与 \`NetworkInterface#getHardwareAddress\` 2. 冷启动至隐私弹窗出现为止,全程记录调用栈 3. 对每一条命中记录调用方包名、线程与时间戳,产出 EvidenceReport`, targetRef: "release/32.5.0", executorNodeId: "pns-android-01.shiro0.icu", attempts: 1, totalDurationMs: 651000, durationMs: 651000, watchers: ["qifan.zhang@bytedance.com", "oc_91dcbdb498fd9e70ab23f8f7727ac44e"], failureReason: null, status: "manual_review", createdAt: now, } as unknown as Security; /** Failure copy per category, for previewing the 失败原因 panel. */ export const FAILURE_REASON = { bug: "连续 6 轮均未通过 Fix-Critic:第 3-6 轮的改动都只在 UI 层拦截 toast,未触达 `GiftExchangeViewModel` 中真正的状态判定,Critic 判定为治标不治本。最后一轮构建成功但真机回归时原问题仍可复现。", feature: "构建连续 3 轮失败:`CommentCell` 所在模块开启了 strict-concurrency,翻译回调跨 actor 访问 UI 状态未通过编译。", security: "frida 注入后 App 在冷启动阶段被反调试逻辑主动 kill,3 次重试均未采集到完整调用栈。", };