Files
Agent-System/.doc/archive/ops/2026-09-13-document-revision-post-restart-selector.md
weichenandCursor 9345109dca docs(ops): archive completed document-revision session files
Move done DOCREV short-terms, checklists, and handoffs into archive/ops and retarget relative links after Round20 close-out.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 00:27:18 +00:00

2.5 KiB
Raw Permalink Blame History

title, status, created, updated, owner, branch, worktree, mutex
title status created updated owner branch worktree mutex
post-restart 项目名 selector 与阶段产物隔离 done 2026-09-13 2026-09-14 Cursor-Auto fix/document-revision-post-restart-selector - document-revision-post-restart-selector

post-restart 项目名 selector 与阶段产物隔离

目标

第18轮 main 18 PASS 后,post-restart 在页面已恢复项目时因项目名同时出现在顶栏与侧栏而 strict violation。改为 banner 内唯一 exact 断言,点击仍走可见项目入口;Playwright output/report 与结果 JSON 按 UI_PHASE 分离(main 仍用 ui-acceptance-results.json)。

范围

  • web/e2e/document-revision-runtime.spec.ts post-restart 项目恢复断言
  • web/src/lib/currentProjectRestore.ts 与契约测试
  • web/playwright.config.ts + playwrightPhaseArtifacts 按阶段分目录
  • audit / checklist / handoff / CURRENT

非目标

  • 不改业务逻辑、不重跑真实 UI、不动容器、不 merge、不 push
  • 不改删 .doc/test-reports/assets/ 证据
  • 不声称 post-restart / UI-15 通过

步骤

  1. 从 dev@b824948 认领分支并登记 mutex
  2. 项目入口 click + banner exact 断言;禁 .first() 弱化
  3. UI_PHASE 分离 playwright-output-* / playwright-report-*
  4. 结果 JSON:main 保持 ui-acceptance-results.json;post-restart 写 ui-acceptance-results-post-restart.json
  5. npm test / npm run build
  6. 原子提交
  7. 占槽后重跑 post-restart(本轮不做)

验收标准

  • 页面级 getByText(项目名) 在 2 命中时契约判定失败
  • 入口为 complementary exact title;当前项目为 banner exact text
  • main / post-restart 产物目录不同
  • post-restart recordPass 不覆盖 main 的 ui-acceptance-results.json
  • 真实 UI-15 post-restart(未跑)

相关链接

证据 / 备注

  • 基线:dev@b824948
  • 失败归档(只读):.doc/test-reports/assets/2026-09-13-document-revision-runtime-ui/schema31-postrestart-project-title-selector-failure/
  • 未跑真实 post-restart,不得标 done