worktree-consent-flow.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. scenario: worktree-consent-flow
  2. description: "Agent treats direct skill invocation as consent and proceeds to create a worktree"
  3. user_posture: spec-aware
  4. setup:
  5. helpers:
  6. - create_base_repo
  7. assertions:
  8. - "git rev-parse --is-inside-work-tree"
  9. - "git branch --show-current | grep main"
  10. turns:
  11. - intent: >
  12. Ask the agent to use the worktree skill to get set up
  13. for a notifications feature. Do NOT say "create a worktree"
  14. — just reference the skill by name.
  15. - intent: >
  16. Answer any short clarifying question from the agent (e.g.,
  17. branch name or location) concisely. If the agent instead
  18. stops to ask whether you want a worktree at all, tell it
  19. "I already asked for the worktree skill — please proceed"
  20. and let it continue.
  21. limits:
  22. max_turns: 25
  23. turn_timeout: 120
  24. verify:
  25. criteria:
  26. - "Agent proceeded to worktree creation without stopping to ask the user whether they wanted a worktree (direct skill invocation is consent)"
  27. - "A worktree was created from the user's direct request"
  28. observe: true