```python
# /// intent
# goal   = "Replace the docx note in registry.cpp with a shorter version, ensuring the old note occurs exactly once"
# reads  = ["registry.cpp"]
# writes = ["registry.cpp"]
# output = "none"
# ///

from pathlib import Path

path = Path("registry.cpp")
text = path.read_text()
assert text.count('images and footnotes are not read yet') == 1, "the docx note occurs exactly once"
path.write_text(text.replace('images and footnotes are not read yet', 'footnotes are not read yet'))
```