p = 'output/editor-notes.md' n = open('output/original-submission/editor-notes.md', encoding='utf-8').read() reps = [ ("None of these claims appears in the article.\n| Claim", "None of these claims appears in the article.\n\n| Claim"), ("- **Dates:** The announcement is dated October 16, 2026, and the pricing and data policy are dated October 17. Where they differ, the article follows the later documents.", "- **Dates:** The announcement is dated October 16, 2026, and the pricing and data policy are dated October 17. The only conflict between sources is the price, and the article follows the later correction."), ("- The headline is the H1 in article.md. The 600\u2013800 word count excludes the H1 and is measured on the body only.", "- The headline is the H1 in article.md. The 600\u2013800 word count excludes the H1. The body is 780 words counting subheadings and 749 words without them, so it is in range either way."), ] for old, new in reps: assert old in n, old n = n.replace(old, new) n += """ ## Checks performed (output/check.py, run during revision) - Body is 780 words counting subheadings and 749 without them (limit 600\u2013800). - Metadata limits: the headline is 61 characters (limit 50\u201370), the excerpt is 40 words (limit 45) and the search description is 153 characters (limit 140\u2013160). The H1 matches the metadata headline. - metadata.json parses as JSON and has exactly the keys headline, excerpt and search_description. - Each of the 8 inline citation pairs (file plus section) matches an actual "##" heading in inputs/. The article does not cite S5. - Arithmetic: 3 \u00d7 29 = 87; 87 + 12 = 99; (700 \u2212 500) \u00d7 0.08 = 16. - Every number in the article body either appears in S1\u2013S4 or is one of the stated calculations (87, 99, 16, plus the illustrative 700). No other numbers were flagged. - Searching the article for the excluded S5 claims and for personal-testing wording finds no matches. "USD 19" appears only in the sentence that reports the correction. - I did not run a separate check for meaning or tone. The comparison of each claim against its source sentence was done by reading. """ open(p, 'w', encoding='utf-8').write(n) print('notes revised')