GrepBoard/Manuals
605 manuals ·

Rewrite a report so the conclusion comes first

·Tested on Claude Sonnet 5.5 · 2026-10·Test scope ↓·7 steps

Rewrite a report with the conclusion on the last page so the first paragraph decides it, and count by script that no number or name was added or lost.

The conclusion of a chat-tool replacement report sits in section 4, at the very end, and the approver decides from the first paragraph. A one-line request, "Rewrite this report so the conclusion comes first", does move the conclusion up, but the approval deadline can slip into the second paragraph and numbers the original never had can creep in. Below, the prompt names what the first paragraph must hold and a script compares the numbers with the original.

[1] Put the original in a file. It is a fictional report in the order background, current state, comparison, conclusion (1,300 characters; the middle is cut here, the full text is in run/report.en.txt).

report.en.txt
Review of replacing the internal chat tool 1. BackgroundThe company has used the chat tool "OfficeTalk" since 2021, now in its fifth year, and the contract ends on December 31, 2026. ... 2. Current stateThere are 350 users and the annual fee is 31,000 USD. Over the last 6 months there were 2.8 outages per month on average ... so partners ask staff to email files 18 times a month. 3. ComparisonThere are two candidates, "WorkChannel" and "TeamLink". WorkChannel costs 42,000 USD a year (10 USD per user per month), has a 500 MB file limit ... Migration takes 7 weeks ... TeamLink costs 27,000 USD a year ... Migration takes 4 weeks. 4. Conclusion and requestReplacing the tool with WorkChannel is recommended. The annual fee rises by 11,000 USD, but the 18 monthly partner requests and the file limit problem go away. Migration takes 7 weeks, so approval of the extra budget is needed by October 30 to finish before the contract ends. Approval is requested.

[2] The prompt. One sentence of reason is attached: the approver decides from the first paragraph. Anthropic's section on adding context says a stated reason helps the model follow an instruction. A separate rule forbids touching numbers and names and forbids new calculations.

tail.en.txt
Rewrite the <report> above so it reads conclusion first. The approver who receives it decides from the first paragraph alone. So the first paragraph by itself must say what is recommended and what the approver has to do by when. Rules:- The first paragraph is two or three sentences: the recommendation and the request (what, by when).- After it, give the support under short headings, in the order current state, comparison, background.- Do not change, drop or add any number or proper noun from the original. Do not create new calculated numbers such as totals or percentage changes.- Do not write recommendations, opinions or dates that are not in the original.- Output the rewritten report only, with no explanation.

[3] Wrap the original in <report>, add the instructions and run.

console
$ (echo "<report>"; cat report.en.txt; echo "</report>"; cat tail.en.txt) > prompt.en.txt$ claude -p --model claude-sonnet-5-5 --max-turns 1 --tools "" --setting-sources "" --strict-mcp-config < prompt.en.txt > out.en.1.txt

The start of the first result (the rest is cut):

output
Recommendation: replace OfficeTalk with WorkChannel. The annual fee rises by 11,000 USD, but the 18 monthly partner requests and the file limit problem go away. Please approve the extra budget by October 30, because the 7-week migration must finish before the contract ends on December 31, 2026. ## Current state...

[4] The checking script looks for WorkChannel, 11,000, October 30 and approv in the first paragraph (the first block that is not a heading), then compares the set of numbers and the set of (number, unit) pairs between the original and the rewrite. Headings are dropped line by line, so a heading with no blank line under it does not leak into the first paragraph. Spelled-out numbers (two, fifth) count as numbers, except "one" and "first", which are too often ordinary words. The pairs matter because deleting "4 weeks" would leave a bare 4 somewhere else and the plain number set would not notice.

check.py (excerpt)
...  (per-language lists and number extraction: see run/check.py)def pairs(t):    """(number, unit) so that '4주' and '4년째' are different facts. unit = first Korean syllable right after the number,    or an English unit word from UNITS_EN (plural and 'N-week' forms folded); anything else = ''."""    t = re.sub(r"(?m)^\s*(?:#+\s*)?\d+[.)]\s", "", t)    out = set()    for num, kor, eng in re.findall(r"(\d[\d,]*(?:\.\d+)?)(?:([가-힣])|[ \-]?([A-Za-z%]+))?", t):        u = kor        if not u and eng:            e = eng.lower()            e = e[:-1] if e.endswith("s") and e[:-1] in UNITS_EN else e            u = e if e in UNITS_EN else ""        out.add((num.replace(",", ""), u))    return out fail = []# 1) first paragraph = first block of text that is not a headinglines = ["" if re.match(r"\s*#+\s", l) else l for l in new.splitlines()]   # a heading line ends a paragraph, even with no blank line after itblocks = [b.strip() for b in re.split(r"\n\s*\n", "\n".join(lines).strip())]blocks = [b for b in blocks if b]first = blocks[0] if blocks else ""if not first:    fail.append("no first paragraph")for k in FIRST:    if k.lower() not in first.lower():        fail.append(f"first paragraph lacks: {k}")# 2) numbers and namesa, b = numbers(orig), numbers(new)if not a:    fail.append("original has no numbers (broken input)")for x in sorted(b - a, key=float):    fail.append(f"number added: {x}")for x in sorted(a - b, key=float):    fail.append(f"number missing: {x}")pa, pb = pairs(orig), pairs(new)for x in sorted(pb - pa):    fail.append(f"number+unit added: {x[0]} {x[1]}")for x in sorted(pa - pb):    fail.append(f"number+unit missing: {x[0]} {x[1]}")...

[5] Run it.

console
$ python3 -I check.py en report.en.txt out.en.1.txtfirst paragraph: 295 chars; numbers original 21 / rewritten 21exit 0

All 3 English runs and all 3 Korean runs passed. The one-line request was run twice per language. In English both runs left October 30 out of the first paragraph and dropped "fifth year", and one added a calculated figure, "4,000 USD less than today". In the Korean one-line runs, one run had everything in its first paragraph but wrote the date as 2026-12-31, which changed a number-and-unit pair (same content), and the other left the deadline and the word for approval out of the first paragraph.

For a failing one-line result, one follow-up prompt was sent: the previous rewrite pasted in, plus "the first paragraph has no approval deadline; put the recommendation, the cost increase and the approval request with its deadline there" (run/follow*). The Korean rewrite passed. The English one still had no deadline in its first paragraph and failed. Google's prompt guide recommends refining with follow-ups, but one round was not guaranteed to finish the job.

[6] To see whether the script catches anything, the first Korean result was broken by hand: a rounded number, a calculated number added, the 4-week row deleted, a product renamed, 40 minutes changed to 50, the first paragraph removed, the original pasted back. All 7 were caught with exit code 1, and so was an English edit (inputs and outputs are in run/bad*; not model output). One example from the English side:

console
$ python3 -I check.py en report.en.txt bad2.en.txtFAIL number+unit added: 35 %exit 1

One edit was not caught: swapping the file limits of WorkChannel and TeamLink (500 MB and 100 MB) leaves both sets unchanged, so it passes. It was not fixed.

[7] Read what the script cannot see.

  • Check in the comparison that each candidate still has its own figures.
  • (Because "one" is not counted, a changed spelled-out "one" is not seen either.) A change of register and any recommendation the original did not contain have to be found by reading.

#report#claude#prompt#bluf