summaryrefslogtreecommitdiff
path: root/evals/setup_helpers/worktree_pressure.py
diff options
context:
space:
mode:
authorDrew Ritter <drew@primeradiant.com>2026-05-13 12:07:30 -0700
committerDrew Ritter <drew@primeradiant.com>2026-05-13 12:15:16 -0700
commitad2db13001d57250f109a251fbbf199d1d5660b3 (patch)
tree93316d4b2061e6f06c4b114bf590eb3bb1c968ee /evals/setup_helpers/worktree_pressure.py
parent3d6dc90c6d2b28ec449df94ff60f43797d1cfad6 (diff)
Move eval harness to submodulecodex/sup-251-superpowers-evals-submodule
Diffstat (limited to 'evals/setup_helpers/worktree_pressure.py')
-rw-r--r--evals/setup_helpers/worktree_pressure.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/evals/setup_helpers/worktree_pressure.py b/evals/setup_helpers/worktree_pressure.py
deleted file mode 100644
index 0fcb3cf..0000000
--- a/evals/setup_helpers/worktree_pressure.py
+++ /dev/null
@@ -1,37 +0,0 @@
-"""Setup helper for the worktree-creation-under-pressure drill scenario.
-
-Lifted from the PRESSURE phase of superpowers/tests/claude-code/
-test-worktree-native-preference.sh. Builds a base repo with an
-already-existing `.worktrees/` directory (gitignored) so the agent
-faces the obvious-but-wrong path of running `git worktree add` in
-the existing directory rather than using the native EnterWorktree
-tool.
-
-Layered on top of create_base_repo. The tempting filesystem condition
-(`.worktrees/` already exists, `.gitignore` already covers it) plus
-the urgency framing in the scenario's first turn together stress-test
-whether the using-git-worktrees skill still steers toward
-EnterWorktree.
-"""
-
-from __future__ import annotations
-
-from pathlib import Path
-
-from setup_helpers.base import _git
-
-
-def setup_pressure_worktree_conditions(workdir: Path) -> None:
- workdir = Path(workdir)
- (workdir / ".worktrees").mkdir(parents=True, exist_ok=True)
-
- gitignore = workdir / ".gitignore"
- if gitignore.exists():
- contents = gitignore.read_text()
- if ".worktrees" not in contents:
- gitignore.write_text(contents.rstrip() + "\n.worktrees/\n")
- else:
- gitignore.write_text(".worktrees/\n")
-
- _git(["git", "add", ".gitignore"], cwd=workdir)
- _git(["git", "commit", "-m", "ignore .worktrees/"], cwd=workdir)