fix: local drafter review round 1

- Refuse to run pi as root when DOCS_REVIEW_DRAFTER_USER is unset.
- Keep a record of the run: parse partial output on timeout, add the first
  redacted stderr line to failures, and report summed output and peak
  input tokens with turns in the log and step summary.
- Delete top-level .pi* entries from the sandbox before drafting and
  refuse a draft that recreates one.
- Probe: an HTTP error, redirect or non-JSON answer is a hard failure;
  only connection failures and an empty model list are soft. Refuse model
  ids starting with "-" and pass --model=<id>.
- README: mid-run model swap note, hard-failure cases, rewrap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-12 16:42:10 -05:00
1 parent 28b993cb23
commit 7095db060e
9 files changed
+330 -86

No files matched your search

+6 -5
View File
@@ -4,10 +4,11 @@ in these top-level documents against what is actually in the repository:
{top_level}
An enumeration is any list of files, scripts, modules, filename prefixes, outputs or
steps, and any stated count. Use Glob or ls to list the files each one describes. Where a list
or count no longer matches, correct it: add what is missing, remove what no longer
exists, fix the number. A list presented as complete must be complete. If a list is
deliberately partial, it should say so; when adding every missing item would make it
unwieldy (more than about 15 new entries), add that phrase instead.
steps, and any stated count. Use Glob or ls to list the files each one describes.
Where a list or count no longer matches, correct it: add what is missing, remove what no
longer exists, fix the number.
A list presented as complete must be complete. If a list is deliberately partial, it
should say so; when adding every missing item would make it unwieldy (more than about 15
new entries), add that phrase instead.
Then correct anything else in these documents that no longer matches the repository.