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

oe-test-matrix-navigator

将代码更改或错误症状映射到最小的高信号测试子集。在决定运行哪些测试(DET_/FLOW_/REG_)时使用,当回归防护提到测试ID时,或者当你需要一个与tests/TEST_MATRIX_detection_and_flow.md匹配的最小编译重现时。

person作者: jakexiaohubgithub

oe-test-matrix-navigator

Decide the class of change (pick one)

  1. Detection change (classification/heuristics/routing decisions)
    • Target: DET_* tests
  2. Flow change (Step progression 1–7, detours, gatekeeping, state machine)
    • Target: FLOW_* tests + relevant step/unit tests
  3. Regression/bug fix (TEAM_GUIDE item or previously fixed behavior)
    • Target: REG_* tests (or add one)

Find the right test IDs fast

  1. Search the matrix for your symptom/keyword (room choice, billing, deposit, site visit, manager, Q&A, detour):

    • rg -n "<keyword>" tests/TEST_MATRIX_detection_and_flow.md
  2. If the matrix references a DET_* / FLOW_* / REG_* id, use it as the primary handle in the PR description.

  3. Cross-check where the actual tests live and whether they’re currently flaky/failing:

    • tests/TEST_INVENTORY.md

Run the minimum test subset

  1. Always run the fast baseline first if you’re unsure:

    • ./scripts/tests/test-smoke.sh
  2. Then run the narrowest relevant suite:

    • Q&A / detection: pytest tests/specs/nlu/ -q and pytest tests/specs/date/ -q (as applicable)
    • Step 3 room availability: pytest tests/specs/room/ -q
    • Step 4/5 offer + negotiation: pytest tests/specs/products_offer/ -q and pytest tests/specs/gatekeeping/ -q
    • Detours/change propagation: pytest tests/specs/detours/ -q and pytest tests/specs/dag/ -q
    • Manager/HIL path: pytest backend/tests/agents/test_manager_approve_path.py -q
    • Prompt-injection defenses: pytest backend/tests/regression/test_security_prompt_injection.py -q

When adding a missing test ID

  • Prefer updating the matrix with a new REG_* row and adding the corresponding test near the closest existing file (keep it searchable by the ID).