mirror of
https://github.com/obra/superpowers.git
synced 2026-05-21 02:52:44 +00:00
32 lines
957 B
YAML
32 lines
957 B
YAML
|
|
scenario: worktree-codex-detached-head
|
||
|
|
description: "Agent detects externally managed worktree with detached HEAD"
|
||
|
|
user_posture: naive
|
||
|
|
|
||
|
|
setup:
|
||
|
|
helpers:
|
||
|
|
- create_base_repo
|
||
|
|
- add_existing_worktree
|
||
|
|
- detach_worktree_head
|
||
|
|
workdir_override: "../${WORKDIR_NAME}-existing-worktree"
|
||
|
|
assertions:
|
||
|
|
- "git rev-parse --is-inside-work-tree"
|
||
|
|
- "test -z $(git branch --show-current)"
|
||
|
|
|
||
|
|
turns:
|
||
|
|
- intent: >
|
||
|
|
Ask the agent to help you get set up for building
|
||
|
|
a dashboard feature. Mention you're not sure if the
|
||
|
|
current environment is ready. Do NOT mention worktrees
|
||
|
|
or isolation specifically.
|
||
|
|
|
||
|
|
limits:
|
||
|
|
max_turns: 15
|
||
|
|
turn_timeout: 120
|
||
|
|
|
||
|
|
verify:
|
||
|
|
criteria:
|
||
|
|
- "Agent detected it was in an externally managed worktree (detached HEAD)"
|
||
|
|
- "Agent did NOT attempt to create a new worktree"
|
||
|
|
- "Agent worked in (or proposed working in) the existing detached-HEAD worktree rather than creating a new one"
|
||
|
|
observe: true
|