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

+8
View File
@@ -153,6 +153,14 @@ class ClaudeMonthlyTests(MonthlyCase):
self.assertIn("R/a.R", self.fake.issues[0]["body"])
self.assertEqual(git(self.work, "status", "--porcelain"), "")
def test_review_only_doc_edit_fails_and_commits_nothing(self):
self.claude(edit="docs/README.md")
self.assertEqual(self.run_monthly("2026-12", INPUT_REVIEW_ONLY="docs/README.md"), 1)
self.assertEqual(self.fake.prs, [])
self.assertNotIn("monthly", " ".join(self.remote_branches()))
self.assertIn("docs/README.md", self.fake.issues[0]["body"])
self.assertEqual(git(self.work, "status", "--porcelain"), "")
def test_delivered_pr_closes_the_open_monthly_issue(self):
self.claude(fail=True)
self.assertEqual(self.run_monthly("2026-11"), 1)