p = r"C:\Users\decid\Documents\projects\spt-core\.worktrees\ir57\crates\spt-daemon\src\lifecycle.rs"
s = open(p, encoding="utf-8").read()

bad = '            "PSYCHE_ROLE_ABSENT:{id}: manifest declares no [session.psyche_resume] role \u2014              psyche turns skipped (no strikes; declare the role to enable them)"\n'
assert bad in s, "literal not found as expected"

good = (
    '            "PSYCHE_ROLE_ABSENT:{id}: manifest declares no [session.psyche_resume] '
    'role \u2014 \\\n'
    '             psyche turns skipped (no strikes; declare the role to enable them)"\n'
)
s = s.replace(bad, good, 1)
open(p, "w", encoding="utf-8", newline="").write(s)
print("continuation restored")
