Lock a worktree
Tests ability to lock a worktree to prevent modifications. Evaluates worktree-locking command knowledge.
Baseline Repository
These commands set up the repo before the model sees the prompt. They define the starting file structure, staged changes, and Git history.
- 01
git init - 02
git config user.email 'test@test.com' - 03
git config user.name 'Test User' - 04
echo 'Hello' > hello.txt - 05
git add hello.txt - 06
git commit -m 'Initial commit' - 07
git checkout -b feature - 08
echo 'Feature' > feature.txt - 09
git add feature.txt - 10
git commit -m 'Add feature' - 11
git checkout main - 12
git worktree add ../feature-wt feature
Prompt
Lock the worktree at '../feature-wt' with the reason 'do not delete'. Output ONLY the git command, nothing else.
Expected
git worktree lock --reason 'do not delete' ../feature-wt
Campaign Evidence
Loading campaign evidence…
Model Outputs (14)
git worktree lock ../feature-wt --reason 'do not delete'
git worktree lock ../feature-wt --reason 'do not delete'
JSON Schema
Structured Output
(raw) {"command": "git worktree lock ../feature-wt --reason 'do not delete'"}
git worktree lock ../feature-wt --reason 'do not delete'
JSON Schema
Structured Output
(raw) { "command": "git worktree lock ../feature-wt --reason 'do not delete'" }
git worktree lock --reason "do not delete" ../feature-wt
JSON Schema
Structured Output
(raw) {"command": "git worktree lock --reason \"do not delete\" ../feature-wt"}
git worktree lock ../feature-wt --reason "do not delete"
git worktree lock '../feature-wt' --reason="do not delete"
JSON Schema
Structured Output
(raw) {
"command": "git worktree lock '../feature-wt' --reason=\"do not delete\""
}
git worktree lock ../feature-wt --reason "do not delete"
git worktree lock ../feature-wt --reason 'do not delete'
JSON Schema
Structured Output
(raw) {
"command": "git worktree lock ../feature-wt --reason 'do not delete'"
}
git worktree lock ../feature-wt --reason "do not delete"
git worktree lock ../feature-wt --reason "do not delete"
JSON Schema
Structured Output
(raw) {
"command": "git worktree lock ../feature-wt --reason \"do not delete\""
}
```bash
git worktree lock ../feature-wt --reason "do not delete"
```
Failure: Failed assertions: [{'type': 'git_output', 'command': 'git worktree list --porcelain', 'contains': 'locked'}, {'type': 'git_output', 'command': 'git worktree list --porcelain', 'contains': 'do not delete'}]
```bash
git worktree lock --reason "do not delete" ../feature-wt
```
Failure: Failed assertions: [{'type': 'git_output', 'command': 'git worktree list --porcelain', 'contains': 'locked'}, {'type': 'git_output', 'command': 'git worktree list --porcelain', 'contains': 'do not delete'}]
git worktree lock ../feature-wt -m "do not delete"
Failure: Failed assertions: [{'type': 'git_output', 'command': 'git worktree list --porcelain', 'contains': 'locked'}, {'type': 'git_output', 'command': 'git worktree list --porcelain', 'contains': 'do not delete'}]
git worktree lock ../feature-wt -m 'do not delete'
JSON Schema
Structured Output
(raw) {
"command": "git worktree lock ../feature-wt -m 'do not delete'"
}
Failure: Failed assertions: [{'type': 'git_output', 'command': 'git worktree list --porcelain', 'contains': 'locked'}, {'type': 'git_output', 'command': 'git worktree list --porcelain', 'contains': 'do not delete'}]