# Implementation Plan: AI UI Test Readiness **Branch**: `main` | **Date**: 2026-01-26 | **Spec**: `docs/seed_verification.md` **Input**: 验证 AI 浏览器自动化遗漏点并修复,更新 `AGENTS.md` 指引。 **Note**: 本计划遵循 `docs/templates/plan-template.md`。 ## Summary 逐项验证 AI 浏览器自动化的遗漏点(代理、登录、tenantCode、断言、错误检测),补齐相关配置或文档,并在 `AGENTS.md` 中列出 AI 测试应参考的关键文件。 ## Technical Context **Language/Version**: Go 1.22 + Vite + Chrome DevTools MCP **Primary Dependencies**: Vite proxy, seeded data **Storage**: PostgreSQL **Testing**: 页面自动化 (MCP) **Target Platform**: local/staging **Project Type**: Web application **Performance Goals**: N/A **Constraints**: 不修改生成文件 **Scale/Scope**: 文档与种子数据/配置修复 ## Constitution Check - 遵循 `backend/llm.txt` - 只改非生成文件 ## Project Structure ### Documentation (this feature) ```text docs/ ├── plan.md ├── seed_verification.md └── plans/ ``` ### Source Code (repository root) ```text backend/app/commands/seed/seed.go AGENTS.md ``` ## Plan Phases ### Phase 1: 缺口验证 - 逐项验证代理、登录、tenantCode、断言、错误检测。 ### Phase 2: 修复与补充 - 通过 seed/文档补齐缺口,更新 `AGENTS.md`。 ### Phase 3: 复核与归档 - 复核覆盖面,完成 plan 归档。 ## Tasks **Format**: `[ID] [P?] [Story] Description` ### Phase 1 - [ ] T001 [US0] 校验代理/端口与登录细节 - [ ] T002 [US0] 校验 tenantCode 获取方式与断言点 - [ ] T003 [US0] 校验错误检测与 console 监控指引 ### Phase 2 - [ ] T010 [US1] 修复 seed/配置/文档缺口 - [ ] T011 [US1] 更新 `AGENTS.md` AI 测试参考文件 ### Phase 3 - [ ] T020 [US2] 复核并归档计划 ## Dependencies - Phase 1 → Phase 2 → Phase 3。 ## Acceptance Criteria - 文档包含完整 AI 自动化前置与断言说明。 - `AGENTS.md` 指明 AI 测试参考文件。 - 计划已归档并清空 `docs/plan.md`。 ## Risks - Staging 环境不可访问导致验证不足。 ## Complexity Tracking 无。