feat: review_only input and an enumeration check in the monthly prompt
tests / unittest (push) Successful in 23s
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:
1 parent
f39409e62c
commit
9dea56ce98
15 files changed
+223
-29
No files matched your search
@@ -47,7 +47,8 @@ receives the diff (or a list of changed files), the listed documents, the reposi
|
||||
|
||||
Claude runs with file tools only (read, search, edit), with no shell, and its permission
|
||||
rules confine those tools to its working directory. That directory is a copy of the tree
|
||||
with no `.git` and no symlinks, and only listed documents are copied back out of it.
|
||||
with no `.git` and no symlinks, and only listed documents not marked `review_only` are
|
||||
copied back out of it.
|
||||
Its environment is an allowlist: system basics and its own Claude credential. The Gitea
|
||||
token never reaches it, drafted files are checked for credential values before they are
|
||||
committed, and everything posted to Gitea has credential values replaced with `***`.
|
||||
@@ -108,6 +109,7 @@ The package can also be run by hand: `python3 -m docs_review pr|closed|monthly -
|
||||
| `docs` | required | Newline-separated patterns for the living documents. |
|
||||
| `generated` | none | Patterns for generated files. |
|
||||
| `top_level` | `README.md` | The subset of `docs` the monthly pass re-reads in full. |
|
||||
| `review_only` | none | Newline-separated patterns for documents in `docs` that the drafter may read but not edit, such as a vision statement in the owner's own words. Stage 1 flags them like any listed document; the drafter reports what is stale in them instead of editing them, and a run that changes one fails like one that changes a file outside `docs`. Each entry must match a `docs` pattern. |
|
||||
| `source_dirs` | `R` and `scripts` | Newline-separated directories whose files count as source. |
|
||||
| `workstream` | `docs` | Scope in draft commit messages, as `docs(<workstream>): ...`. |
|
||||
| `tracking_issue` | none | Issue number the monthly pass's commit messages cite. |
|
||||
|
||||
Reference in new issue
Block a user