feat: review_only input and an enumeration check in the monthly prompt
tests / unittest (push) Successful in 23s

review_only names listed documents the drafter may read but not edit. They stay
in stage 1, are listed separately in the prompt, and a change to one fails the
run like a change outside docs. Each entry must match a docs pattern.

The monthly prompt now makes checking every list and count in the top-level
documents against the repository the drafter's main job. Mode-specific text
moves to prompts/mode-pr.md and prompts/mode-monthly.md; the pr text is
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-12 15:40:09 -05:00
1 parent f39409e62c
commit 9dea56ce98
15 files changed
+223 -29

No files matched your search

+5 -2
View File
@@ -7,7 +7,8 @@ sentinel (file touched when invoked), env_file (file receiving the env var names
cwd_file (file receiving the working directory), argv_file (file receiving argv as
JSON), prompt_copy (file receiving the --append-system-prompt-file contents),
edit (path to append a line to), write (text to append to `edit` instead),
delete (path to remove), fail (print an error result and exit 1).
delete (path to remove), fail (print an error result and exit 1), stdin_copy (file
receiving the prompt read on stdin).
"""
import json
@@ -15,9 +16,11 @@ import os
import sys
from pathlib import Path
sys.stdin.read()
prompt = sys.stdin.read()
config_path = Path(__file__).resolve().with_name("fake_claude.json")
config = json.loads(config_path.read_text()) if config_path.exists() else {}
if config.get("stdin_copy"):
Path(config["stdin_copy"]).write_text(prompt, encoding="utf-8")
if config.get("sentinel"):
Path(config["sentinel"]).write_text("invoked\n", encoding="utf-8")