"""Synthetic fixture for issue 43001; run with a destination directory argument.
Start each checkout with T3CODE_DEV_SEED=0 and T3CODE_ENVIRONMENT_LABEL='Evidence environment'.
Add this fixture using `node apps/server/src/bin.ts project add --base-dir <checkout>/.t3 --title 'Fork skill evidence' <fixture>`.
Start `/fork-probe go` using `thread start --base-dir <checkout>/.t3 --provider claudeAgent --model claude-haiku-5-5 <project> '/fork-probe go'`.
Open the parent, expand its work, open /fork-probe, and expand its work while running; retain view through completion.
"""
from pathlib import Path
import subprocess, sys
p = Path(sys.argv[1]); p.mkdir(parents=True)
(p / '.claude/skills/fork-probe').mkdir(parents=True)
(p / 'hello.txt').write_text('original\n')
subprocess.run(['git', 'init', str(p)], check=True)
subprocess.run(['git', '-C', str(p), 'add', '.'], check=True)
subprocess.run(['git', '-C', str(p), '-c', 'user.name=Fixture', '-c', 'user.email=fixture@example.com', 'commit', '-m', 'fixture'], check=True)
(p / 'hello.txt').write_text('greetings from the fixture change.\n')
(p / '.claude/skills/fork-probe/SKILL.md').write_text('''---
name: fork-probe
description: Probe fork activity
context: fork
agent: general-purpose
model: claude-haiku-5-5
---
Run exactly five separate Bash tool calls, in this order: `ls`, `sleep 8`, `cat hello.txt`, `sleep 8`, `echo done`. Do not combine calls. Then reply exactly: FORK-REPORT hello contents were <contents of hello.txt>.
''')
