将 overnight-runner skill 无前缀并入套件;dev-build 编排自测/UI/代码评审;指南左侧导航;example 实现账号能力与 progress。 Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
7.4 KiB
JSON
18 lines
7.4 KiB
JSON
{"at": "2026-11-06T16:34:29+08:00", "task_id": "20261106-20261106-businessrule-datadictionary-api-tests", "question": "测试失败根因判定(Plan §9.5 用例4)", "answer": "实现 bug,不是断言写错:resources/business-rules/*.yml 从未被加载进 Environment(测试中 mybatis-plus.mapper-locations=null 证明 test 的 application.yml 遮蔽了 main 的,且无 spring.config.import 引用这两个 YAML),导致 BusinessRuleConfig 恒为空、BusinessRuleProvider 的 if(!ruleConfig.isEmpty()) 分支永不进入,接口响应永远没有 config 字段;与 docs/designs/api.yaml、docs/designs/topic/businessrule.md、docs/standards/business-rule.md 三处事实文档矛盾 → 做最小修复(不改 API 契约、不改 YAML 文件内容)", "source": "agent", "rule_id": ""}
|
||
{"at": "2026-11-06T16:41:40+08:00", "task_id": "20261106-20261106-businessrule-datadictionary-api-tests", "question": "db-migration(是否执行数据库迁移脚本)", "answer": "本轮无任何 DDL/表结构变更,目标接口不读写数据库,schema.sql/data.sql 未改动,因此不执行迁移、无需回滚脚本;仅复用 TestBase 既有的 resetAll() 隔离机制", "source": "agent", "rule_id": ""}
|
||
{"at": "2026-11-06T16:41:40+08:00", "task_id": "20261106-20261106-businessrule-datadictionary-api-tests", "question": "missing-plan(plan 未写清的部分)", "answer": "① Plan §9.5 用例4 的断言以 docs/designs/api.yaml + docs/standards/business-rule.md 定义的契约为准(config 必须存在),而非以当前运行时行为为准——这是本轮唯一的实现侧改动;② RestAssured 5.3.2 的 JsonPath 走 Jayway/GPath,$[*] 写法不被支持,改用隐式遍历路径 ruleName / config.appointment.slot.minMinutes / items.code(已在实现前用探针实测确认);③ 探针文件 ProbeTmpTest.java 仅用于取事实,已删除,未留在仓库", "source": "agent", "rule_id": ""}
|
||
{"at": "2026-11-06T16:41:40+08:00", "task_id": "20261106-20261106-businessrule-datadictionary-api-tests", "question": "flaky-test(测试偶发失败)", "answer": "未观察到偶发失败:新用例连续 3 轮 10/10 全绿,全量 28/28 全绿;根因排查集中在配置装载一次性完成(@PostConstruct 缓存),无并发写入,不存在竞态,无需修复", "source": "agent", "rule_id": ""}
|
||
{"at": "2026-11-06T16:41:40+08:00", "task_id": "20261106-20261106-businessrule-datadictionary-api-tests", "question": "scope-creep(是否扩大改动范围)", "answer": "不扩大,记录 3 项发现不修:① AGENTS.md §7 示例 JSON 写 message/timestamp,与代码实际 ErrorResponse(errorCode/errorMessage/data) 不符(Plan §6.4 已记录,建议单独开一轮);② config.auth.publicEndpoints 因 Map<String,Object> 绑定被序列化为 {\"0\":...} 而非数组(属既有 Map 绑定设计的固有结果,非本轮引入);③ docs/designs/topic/businessrule.md 的\"配置路径\"列指向 application.yml→jwt.expiration / SecurityConfig(hardcoded),与现在对外暴露的 config.auth.* 来源(business-rules/auth.yml)不完全一致", "source": "agent", "rule_id": ""}
|
||
{"at": "2026-11-06T16:41:40+08:00", "task_id": "20261106-20261106-businessrule-datadictionary-api-tests", "question": "文档同步检查", "answer": "已更新:docs/standards/business-rule.md 补 4 行\"加载方式\"说明(防同类静默回归);application.yml.example 补 spring.config.import(该文件才是入库版本,真实 application.yml 被 gitignore);docs/designs/api.yaml、db-schema.md、topic/businessrule.md、topic/data-dict.md、docs/e2e-cases/ 均不涉及(契约、库表、规则与字典定义均未变)", "source": "agent", "rule_id": ""}
|
||
{"at": "2026-11-17T16:26:13+08:00", "task_id": "20261117-plan", "question": "[test-failure] UserProfile.update 空 avatarUrl 触发 NPE(500)", "answer": "定位为实现 bug,最小修复 trimToNull 判空,未扩大改动", "source": "agent", "rule_id": "", "waited_sec": 0.0, "session_id": "ses_e17ac1c79ffe7PIi4BLheybXvI"}
|
||
{"at": "2026-11-17T16:26:13+08:00", "task_id": "20261117-plan", "question": "[test-failure] 手机号格式用例返回 VALIDATION_ERROR 而非 PARAM_ERROR", "answer": "断言与实际契约不符(请求缺 code 先触发 @Valid),补齐 code 参数后断言 PARAM_ERROR", "source": "agent", "rule_id": "", "waited_sec": 0.0, "session_id": "ses_e17ac1c79ffe7PIi4BLheybXvI"}
|
||
{"at": "2026-11-17T16:26:13+08:00", "task_id": "20261117-plan", "question": "[test-failure] 验证码重发间隔判定把 interval=0 当成\"仍在间隔内\"", "answer": "实现 bug,改为 now.isBefore(createdAt+interval)", "source": "agent", "rule_id": "", "waited_sec": 0.0, "session_id": "ses_e17ac1c79ffe7PIi4BLheybXvI"}
|
||
{"at": "2026-11-17T16:26:13+08:00", "task_id": "20261117-plan", "question": "[db-migration] 是否执行迁移脚本", "answer": "先写回滚脚本 db/rollback/V20261117__acc_account_rollback.sql,再按 plan §11.3 重建本地 consultation 库并执行迁移,随后跑通 plan §13 六步冒烟", "source": "agent", "rule_id": "", "waited_sec": 0.0, "session_id": "ses_e17ac1c79ffe7PIi4BLheybXvI"}
|
||
{"at": "2026-11-17T16:26:13+08:00", "task_id": "20261117-plan", "question": "[missing-plan] plan 未写明 ADMIN 种子如何落密文", "answer": "推断为运行时由 AccountSeedInitializer 创建(密文与部署密钥相关,静态 SQL 不可行),已登记为假设", "source": "agent", "rule_id": "", "waited_sec": 0.0, "session_id": "ses_e17ac1c79ffe7PIi4BLheybXvI"}
|
||
{"at": "2026-11-17T16:26:13+08:00", "task_id": "20261117-plan", "question": "[missing-plan] plan 未写明 JWT 签发如何被应用层调用", "answer": "沿用工程既有 PasswordService 端口模式,新增 domain 端口 TokenIssuer,JwtTokenProvider 实现之", "source": "agent", "rule_id": "", "waited_sec": 0.0, "session_id": "ses_e17ac1c79ffe7PIi4BLheybXvI"}
|
||
{"at": "2026-11-17T16:26:13+08:00", "task_id": "20261117-plan", "question": "[missing-plan] plan 未写明验证码 TTL/重发间隔/协议版本", "answer": "取 5 分钟 / 60 秒 / v1,全部做成配置项并记录", "source": "agent", "rule_id": "", "waited_sec": 0.0, "session_id": "ses_e17ac1c79ffe7PIi4BLheybXvI"}
|
||
{"at": "2026-11-17T16:26:13+08:00", "task_id": "20261117-plan", "question": "[flaky-test] E2E TC-003 偶发失败(保存后昵称回退)", "answer": "根因是个人中心异步回填覆盖用户输入,加载期间禁用表单(不靠重试掩盖)", "source": "agent", "rule_id": "", "waited_sec": 0.0, "session_id": "ses_e17ac1c79ffe7PIi4BLheybXvI"}
|
||
{"at": "2026-11-17T16:26:13+08:00", "task_id": "20261117-plan", "question": "[flaky-test] Element Plus 弹窗按钮随系统语言变英文导致 E2E 不稳", "answer": "应用统一 zh-cn 语言包,消除环境差异", "source": "agent", "rule_id": "", "waited_sec": 0.0, "session_id": "ses_e17ac1c79ffe7PIi4BLheybXvI"}
|
||
{"at": "2026-11-17T16:26:13+08:00", "task_id": "20261117-plan", "question": "[scope-creep] AGENTS.md §10 写 MariaDB4j/@ActiveProfiles(\"test\") 与工程现状不符", "answer": "不改工程与文档,记录在 progress 备注", "source": "agent", "rule_id": "", "waited_sec": 0.0, "session_id": "ses_e17ac1c79ffe7PIi4BLheybXvI"}
|
||
{"at": "2026-11-17T16:26:13+08:00", "task_id": "20261117-plan", "question": "[scope-creep] 未引入 Vitest 前端单测", "answer": "不新增依赖,前端行为由 E2E 覆盖,记录在 progress 备注", "source": "agent", "rule_id": "", "waited_sec": 0.0, "session_id": "ses_e17ac1c79ffe7PIi4BLheybXvI"}
|