返回 Skill 列表
extension
分类: 开发与工程无需 API Key

oe-e2e-site-visit

端到端验证现场访问(步骤7)流程。当您需要重现或验证系统是否能够达到现场访问提示/选项,并且可以通过确定性的后端跟踪(manual_ux_scenario_I/H)或者通过浏览器UI检查(Playwright/MCP)继续进行确认时,请使用此方法。

person作者: jakexiaohubgithub

oe-e2e-site-visit

Deterministic lane (fast, backend-only)

Use this lane first to prove workflow correctness without UI variability.

  1. Generate a trace that includes the site-visit flow:

    • python3 scripts/manual_ux/manual_ux_scenario_I.py > /tmp/ux_site_visit_I.json
    • (optional variant) python3 scripts/manual_ux/manual_ux_scenario_H.py > /tmp/ux_site_visit_H.json
  2. Validate the trace invariants (fails fast with a precise message):

    • python3 scripts/manual_ux/validate_manual_ux_run.py /tmp/ux_site_visit_I.json --require_site_visit
  3. If validation fails:

    • Identify the first record whose action indicates the break (search confirmation_site_visit / confirmation_site_visit_sent in the trace).
    • Correlate with Step 7 routing and state machine:
      • backend/workflows/steps/step7_confirmation/trigger/step7_handler.py
      • backend/workflows/runtime/pre_route.py

Browser lane (UI correctness)

Use this when you need to confirm the frontend shows the site-visit message/options.

  1. Start backend:

    • ./scripts/dev/dev_server.sh start
  2. Start frontend:

    • cd atelier-ai-frontend && npm run dev
  3. Drive the UI until the site-visit step appears:

    • Prefer Playwright MCP (agent can inspect DOM, click actions, and capture screenshots).
    • Otherwise, do manual browser steps and capture screenshots in .playwright-mcp/.

Evidence capture (for PRs / debugging agents)

  • Attach:
    • the trace file (/tmp/ux_site_visit_*.json)
    • the validator output
    • a UI screenshot when using the browser lane.