worktree-codex-app-detached-head-spec-aware.yaml 962 B

1234567891011121314151617181920212223242526272829
  1. scenario: worktree-codex-app-detached-head-spec-aware
  2. description: "Agent detects Codex App's detached HEAD worktree and skips creation (spec-aware user)"
  3. user_posture: spec-aware
  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 use the worktree skill to get set up
  14. for building a login feature. Do NOT say "create a worktree"
  15. — just reference the skill by name.
  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. - "Agent mentioned branch creation will be needed at finish time"
  25. observe: true