- review.yml and git.push set http.<GITHUB_SERVER_URL>/.extraHeader, so the bot token
is sent only to the Gitea server; git.push falls back to the unscoped key when no
server is known.
- README: a same-repository PR runs the caller workflow from its head, so the
safeguards bound PR content, not edits to the caller; drafter: local fails the job.
- Tests: the source-grep fetch test is replaced by a behavioral one over a resumed run
(fetch ends options, push uses the scoped key); the no-op summary test is dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- drafter: claude with neither CLAUDE_CODE_OAUTH_TOKEN nor ANTHROPIC_API_KEY set posts
the stage 1 flags with the note 'drafter: claude but no Claude credential is set' and
fails, without starting Claude.
- total_cost_usd and num_turns are printed and appended to GITHUB_STEP_SUMMARY.
- git.fetch puts --end-of-options before the branch; run_pr and run_monthly use it.
- The bot's own PRs match head.repo.full_name case-insensitively.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage 1 flags the living documents a pull request makes stale (no model, nothing sent).
Stage 2, on repositories that opt in with drafter: claude, has Claude Code draft the edits
in a sandboxed copy of the tree and opens them as a pull request into the feature branch.
A monthly pass re-reads the top-level documents against the whole repository.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>