{"protocol":"gitbills-agents-policy/1","origin":"https://gitbills.com","canonical_url":"https://gitbills.com/policy","json_url":"https://gitbills.com/policy?format=json","repo":null,"study":{"cohort":"cohort2_live_queues","repos_profiled":22,"agents_md":19,"page_url":"https://gitbills.com/study"},"headings":["pull requests from agents","agent pull requests","gitbills","gitbills policy"],"file_paths":["AGENTS.md",".github/AGENTS.md"],"max_bytes":262144,"directives":[{"key":"agents","type":"choice","values":["welcome","allowed_with_preflight","vouch_required","maintainers_only"],"range":null,"default":"allowed_with_preflight","summary":"Who may open pull requests from agents","description":"Who may open pull requests from agents. welcome and allowed_with_preflight: anyone (the second asks for a preflight first). vouch_required: each waits for a maintainer vouch, or a scout vouch where scout_vouches allows. maintainers_only: only with a maintainer vouch."},{"key":"max_open_prs_per_author","type":"integer","values":null,"range":{"min":1,"max":20,"nullable":true},"default":null,"summary":"Open pull requests one author may have at once","description":"The most open pull requests one author may have here at once, the one checked included. More are blocked unless a maintainer vouches. null: no limit."},{"key":"max_diff_lines","type":"integer","values":null,"range":{"min":10,"max":10000,"nullable":true},"default":null,"summary":"Changed lines a pull request may have without a vouch","description":"The most changed lines (added and removed) a pull request may have before it waits for a maintainer vouch. null: no limit."},{"key":"require_linked_issue","type":"boolean","values":[true,false],"range":null,"default":false,"summary":"Every pull request names an issue","description":"Every pull request names an issue in its title or body: #123, owner/repo#123, GH-123 or an issue URL. Without one it is blocked unless a maintainer vouches."},{"key":"require_disclosure","type":"boolean","values":[true,false],"range":null,"default":false,"summary":"Bot accounts say the work is agent work","description":"A pull request from a bot account says it is agent work: AI-assisted, agent-authored, a Co-authored-by trailer, a GitBills PR receipt link or a preflight. Without that it waits for a vouch."},{"key":"require_tests_for_code","type":"boolean","values":[true,false],"range":null,"default":false,"summary":"Code changes come with test changes","description":"A pull request that changes code changes tests too, or waits for a maintainer vouch."},{"key":"commercial_vendor_prs","type":"choice","values":["allow","require_vouch","require_bond"],"range":null,"default":"require_vouch","summary":"Pull requests that promote a product or service","description":"Pull requests that promote a commercial product or service. allow: taken like any other. require_vouch: held for a maintainer vouch or a review bond. require_bond: held for a review bond or a maintainer vouch."},{"key":"scout_vouches","type":"choice","values":["allow","disabled"],"range":null,"default":"allow","summary":"Whether a scout vouch counts","description":"Whether a scout vouch counts where agents is vouch_required. allow: it does. disabled: only a maintainer vouch does."}],"hints":[{"name":"single_open_pr","description":"Asks for one open pull request at a time.","suggests":{"max_open_prs_per_author":1}},{"name":"link_issue","description":"Asks contributors to open or link an issue first.","suggests":{"require_linked_issue":true}},{"name":"disclose_ai","description":"Asks contributors to disclose AI or agent help.","suggests":{"require_disclosure":true}},{"name":"run_tests","description":"Asks contributors to run the tests before opening a pull request.","suggests":{"agents":"allowed_with_preflight"}},{"name":"maintainers_only_prose","description":"Says no AI-generated or agent-authored pull requests.","suggests":{"agents":"maintainers_only"}}],"statuses":[{"status":"pass","description":"It meets every rule, or comes from a maintainer (an owner, member or collaborator that is not a bot account)."},{"status":"needs_vouch","description":"It goes ahead once a maintainer vouches for it."},{"status":"needs_bond","description":"It goes ahead with a review bond, or a maintainer vouch."},{"status":"blocked_policy","description":"It breaks a rule the repository states: fix the pull request, or a maintainer vouches for it anyway."}],"maintainer_associations":["OWNER","MEMBER","COLLABORATOR"],"snippet":{"file":"AGENTS.md","heading":"## Pull requests from agents","text":"## Pull requests from agents\n- agents: allowed_with_preflight\n- max_open_prs_per_author: 2\n- require_linked_issue: true\n- require_disclosure: true\n- commercial_vendor_prs: require_vouch","lines":6},"endpoints":{"page":"https://gitbills.com/policy/{owner}/{repo}","json":"https://gitbills.com/policy/{owner}/{repo}?format=json","api":"https://gitbills.com/api/v1/policy/{owner}/{repo}","pilot":"https://gitbills.com/pilot/v1/gitbills/policy/{owner}/{repo}"},"read":{"host":"raw.githubusercontent.com","kept_ms":300000,"retry_ms":60000,"per_address_per_minute":10,"global_per_minute":30},"persisted":false,"github_writes":0}