Skip to content

docs: the 5-file PR cap is for headless agents only; headed agents have no cap - #8899

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
docs/file-cap-headless-only
Nov 21, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
docs/file-cap-headless-only

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What this does

Makes the file-cap rule unmistakable for every agent that works in this repo. The owner's ruling (2026-11-21): the "at most 5 hand-written files per PR" cap is for headless agents only; headed agents (a person working with them) have no cap.

  • New rule .claude/rules/pr-file-cap.md: a two-row table (headed / headless), how to tell which you are (no human has written to you in the session means headless; unsure means ask), why the cap exists (data-driven from squid-bot's PR-size dashboard: the share of PRs needing a fix run climbs past five files, about 50-58% at 6, 7 and 8+ against about 36% at five), what still applies to headed agents (one coherent change, lint and ratchets, draft PRs, no merging without the owner), what still applies to headless agents, and a note for agents that launch other agents (an agent you start with no human channel is headless: put the cap in its brief).
  • .claude/agents/gitgalaxy-pr-worker.md: the cap bullet now opens by saying it binds headless workers and points to the rule. The wording pinned by tests/tools/test_file_cap_grant_wording_8422.py is unchanged.
  • CLAUDE.md and AGENTS.md: the same short statement and the pointer.

Checks run

test_file_cap_grant_wording_8422, doc-refs audit (0 findings), test_change_classifier, test_generated_branch, audit_check.py: all pass.

Agent-config change: the owner asked for it, but a maintainer should read it before it merges.

🤖 Generated with Claude Code

…ve no cap

Owner ruling 2026-11-21. A new rule, .claude/rules/pr-file-cap.md, says which agent follows which: headless (churn workers, unattended sessions, anything
launched with no person in the loop) keeps a PR to at most 5 hand-written files, as before and data-driven from squid-bot's PR-size dashboard; headed
(a person is working with the agent) has no file cap and should structure the PR for clarity. The worker brief now opens its cap bullet by saying it
binds headless workers (the pinned wording of #8422 is unchanged), and CLAUDE.md and AGENTS.md carry the same one-paragraph statement and the pointer.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvejJbzNR67xR3D2VxV
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 21, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 21, 2026 15:19
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 21, 2026 15:29
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 06fbcd4 into main Nov 21, 2026
60 checks passed
@squid-shepherd
squid-shepherd Bot deleted the docs/file-cap-headless-only branch November 21, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant