worktree-codex-app-detached-head.yaml 843 B

12345678910111213141516171819202122232425262728
  1. scenario: worktree-codex-app-detached-head
  2. description: "Agent detects Codex App's detached HEAD worktree and skips creation"
  3. user_posture: naive
  4. backend: codex-app
  5. manual: true
  6. setup:
  7. notes: >
  8. Codex App launches agents in detached HEAD worktrees under
  9. $CODEX_HOME/worktrees/. No setup needed — just create a task
  10. in Codex App on any repo.
  11. turns:
  12. - intent: >
  13. Ask the agent to help you build a login feature.
  14. Mention you want to keep main clean.
  15. Do NOT mention worktrees, workspaces, or isolation.
  16. limits:
  17. max_turns: 10
  18. turn_timeout: 300
  19. verify:
  20. criteria:
  21. - "Agent detected it was in an existing worktree (detached HEAD)"
  22. - "Agent did NOT attempt to create a new worktree"
  23. - "Agent communicated that the current workspace is sufficient or noted the detached HEAD state"
  24. observe: true