Files
jason.woltjeandClaude Opus 5.5 c9df996ac1 agents: Rocko row 153 round 1 packet (#1647)
Build packet for row 153, project init cleanup and the nested records repo
refusal. Filbert approved round 1 (comment 28727). Committed by Sage for
Rocko, who has no git authority; secrets scan clean, no binaries.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-15 19:28:02 -05:00

18 lines
1.1 KiB
Python

#!/usr/bin/env python3
import hashlib, pathlib, subprocess
root = pathlib.Path('/mnt/storage/src/mosaic-stack-rocko-153')
out = pathlib.Path(__file__).resolve().parent
tracked = subprocess.check_output(['git', 'diff', '--name-only'], cwd=root, text=True).splitlines()
new = subprocess.check_output(['git', 'ls-files', '--others', '--exclude-standard', '--', 'packages/project/tests'], cwd=root, text=True).splitlines()
paths = sorted(set(tracked + new))
patch = subprocess.check_output(['git', 'diff', '--binary', '--no-ext-diff'], cwd=root)
for path in sorted(new):
result = subprocess.run(['git', 'diff', '--no-index', '--binary', '--', '/dev/null', path], cwd=root, stdout=subprocess.PIPE)
assert result.returncode == 1
patch += result.stdout
(out / 'build.patch').write_bytes(patch)
(out / 'base.txt').write_bytes(subprocess.check_output(['git', 'rev-parse', 'HEAD'], cwd=root))
(out / 'candidate-manifest.sha256').write_text(''.join(hashlib.sha256((root / p).read_bytes()).hexdigest() + ' ' + p + '\n' for p in paths))
print('paths', len(paths))
print('candidate', hashlib.sha256((out / 'candidate-manifest.sha256').read_bytes()).hexdigest())