worktree-already-inside.yaml 736 B

12345678910111213141516171819202122232425262728
  1. scenario: worktree-already-inside
  2. description: "Agent detects it is already inside a worktree and skips creation"
  3. user_posture: naive
  4. setup:
  5. helpers:
  6. - create_base_repo
  7. - add_existing_worktree
  8. workdir_override: "../${WORKDIR_NAME}-existing-worktree"
  9. assertions:
  10. - "git rev-parse --is-inside-work-tree"
  11. - "git worktree list | wc -l | tr -d ' ' | grep 2"
  12. turns:
  13. - intent: >
  14. Ask the agent to create an isolated workspace
  15. for building a signup feature.
  16. limits:
  17. max_turns: 15
  18. turn_timeout: 120
  19. verify:
  20. criteria:
  21. - "Agent detected it was already inside a worktree"
  22. - "Agent did NOT create a new worktree"
  23. - "Agent communicated that the current worktree is sufficient"
  24. observe: true