p = 'crates/spt-daemon/tests/attach.rs'
s = open(p, encoding='utf-8', newline='').read()
nl = '\r\n' if '\r\n' in s else '\n'
anchor = '/// Attach once under `client`, observing the admission-time ClientPolicy the'.replace('\n', nl)
assert s.count(anchor) == 1, s.count(anchor)
i = s.index(anchor)
blk = open(r'C:\Users\decid\AppData\Local\Temp\claude\C--Users-decid-Documents-projects-spt-core\59484d41-21f9-4915-ac5f-ad7839ece511\scratchpad\block.rs', encoding='utf-8', newline='').read()
blk = blk.replace('\r\n', '\n').replace('\n', nl)
s = s[:i] + blk
open(p, 'w', encoding='utf-8', newline='').write(s)
print('spliced; new line count:', s.count(nl) + 1)
