import io

p = r"C:\Users\decid\.claude-spt\accounts\alt\projects\C--Users-decid-Documents-projects-spt-claude-code\memory\MEMORY.md"
s = io.open(p, encoding="utf-8").read()

anchor = "- [pacer 0.7.0 boundary frames](pacer-0700-boundary-frames.md)"
assert s.count(anchor) == 1
line = (
    "- [v0.37.0 across-commune drop detect](v0370-commune-drop-detect.md) \u2014 2026-09-06 SHIPPED "
    "(#25 DONE): the boundary keyed on the WRITE TOOL, so a Bash-written commune fired none. Now keys "
    "on the DROP FILE at PostToolUse/PreToolUse/Stop. \u2b50 An EVENT trigger swapped for a STATE one "
    "re-fires until something remembers \u2014 stamp the last EXAMINED identity, not the armed one "
    "(more \u2b50 in file).\n\n"
)
io.open(p, "w", encoding="utf-8", newline="\n").write(s.replace(anchor, line + anchor, 1))
print("ok", len(s))
