#!/usr/bin/env python3
"""Creates a new timestamped synthetic fixture; never reads a database."""
from pathlib import Path
import subprocess,datetime,json
base=Path('/tmp/lead-32471-r2/evidence-capture-2')
run=base/('run-'+datetime.datetime.now(datetime.timezone.utc).strftime('%Y%m%dT%H%M%S%fZ'))
repo=run/'fixture-project'
(repo/'.claude/skills/finalize').mkdir(parents=True)
(repo/'.claude/commands').mkdir()
(repo/'.claude/skills/finalize/SKILL.md').write_text('---\nname: finalize\ndescription: Finalize the fixture change\n---\nReview the synthetic fixture and finalize the change.\n')
(repo/'.claude/commands/finalize-command.md').write_text('---\ndescription: Finalize the synthetic command fixture\n---\nReview the synthetic fixture.\n')
(repo/'README.md').write_text('# Removed worktree evidence fixture\nSynthetic data only.\n')
for args in [['git','init','-b','main'],['git','config','user.name','Evidence Fixture'],['git','config','user.email','fixture@example.invalid'],['git','add','.'],['git','commit','-m','fixture: add project skill and command']]:subprocess.run(args,cwd=repo,check=True)
(run/'manifest.json').write_text(json.dumps({'run':str(run),'repo':str(repo)},indent=2))
print(run)
