For an outside-contributor gift, follow external tips (task 0.3):
prepare --schema-version 0.3 --fork OWNER/REPO --head-ref NEW_BRANCH, then explicit
implementation, draft and published verify stages. The historical routes
below retain their separate approval and owner/maintainer requirements.
Every agent-contrib command, its options, exit codes and limits. Commands print JSON
by default (see text output); the field-by-field JSON reference is in
output-reference.md. Start with the command index;
sections are grouped by task.
- Discovery and ranking
- Contracts and verification
- Local checkout tools
- Host authorization
- Reports and integration
- Global options and output
- Offline manifest setup and validation
- Jar inspection
- Find public invitations
- Command index
Every command exits 2 for a usage error and 1 when its own input, protocol or core reads
fail. Report-only reads that cannot change a command's result are the exceptions:
their failures are reported inside the report and the exit code is unchanged. These
are the default-on repository_policy report of discover, inspect and prepare,
verify --observe-ci, verify --observe-signatures and --cache (a cache miss or
unusable cache falls back to live reads). The opt-in reports inspect --ownership,
discover --responsiveness, discover --check-top and discover --repo-dir do make
an incomplete report exit 1, as the table says. "Reads GitHub" means fixed
gh api --method GET reads; nothing is ever written.
| Command | Purpose | Reads GitHub? | Exit codes |
|---|---|---|---|
init |
Create an explicit-state local invitation template at a new path | No | 0 created; 1 file error; 2 usage |
jar-check |
Validate a bounded local invitation without printing its text | No | 0 valid; 1 invalid/unreadable; 2 usage |
session |
Offline proposed shortlist with stopping caps | No | 0 proposal created (possibly empty); 1 invalid input or output |
find |
Verify one public invitation batch, at most ten indexed hits | Yes | 0 complete bounded batch; 1 unknown/search incomplete |
jar |
Inspect a pinned root invitation directly, without parent tracker resolution | Yes | 0 welcome/closed/undeclared; 1 unknown |
discover |
Rank open issues of one repository, or 2-20, with policy and overlap context | Yes | 0 complete; 1 incomplete (also an incomplete --responsiveness, --check-top or --repo-dir report) |
inspect |
One issue: approval, instructions, exclusions, overlapping PRs | Yes | 0 complete; 1 incomplete (also incomplete --ownership signals) |
prepare |
Write a draft task contract; grants nothing | Yes | 0 complete read and draft written; 1 otherwise |
verify |
Contract, evidence and live gates; never runs validation commands | Yes | 0 when the gate passes (0.1: completion readiness; 0.2: the selected --stage); 1 otherwise |
authorization-request |
Schema 0.2: unsigned request with every mandate binding pre-filled | Yes | 0 ready for issuance; 1 otherwise |
lint |
Offline contract schema and reviewed-contract check | No | 0 schema-valid reviewed contract; 1 otherwise |
scope-check |
Offline check of local changes against the contract scope | No | 0 no violation; 1 violation or error |
evidence init |
Unfilled evidence skeleton from observed Git facts | No | 0 file written; 1 error |
pr-body |
Markdown PR description from the contract, evidence and a fresh verify |
Yes | 0 file written; 1 error |
receipt |
Save a public PR observation to a new file | Yes | 0 written; 1 invalid/incomplete read or write error |
card |
Create a local SVG gift card from a receipt; share manually | No | 0 written; 1 invalid input or write error |
impact |
Summarize editable recorded observations, deduplicated by numeric identity | No | 0 valid summary; 1 invalid/conflicting input |
feedback |
Reviews, comments and exact-head checks of a published PR | Yes | 0 complete; 1 incomplete |
ownership |
Report-only claims, linked PRs and possible prior fixes for one issue | Yes | 0 complete; 1 incomplete |
drift |
What changed since the contract was prepared | Yes | 0 complete and not drifted; 1 drifted or incomplete |
audit |
Maintainer view of what agents see in a repository | Yes | 0 complete; 1 incomplete |
instructions |
Installed workflow, CLI version and supported schemas | No | 0 |
skill |
Export the canonical Skill file | No | 0 written; 1 error (an existing file is never overwritten) |
schema |
JSON Schema of a command's JSON output | No | 0 |
| Command | Result |
|---|---|
agent-contrib find [--owner OWNER] |
Partial public invitation batch with pinned verification; no authority |
agent-contrib discover owner/repo [--limit N] |
Repository resolution, policy/instruction context, ranked issues and overlap/completeness metadata |
agent-contrib discover owner/a owner/b ... [--repositories-file FILE] |
Two to 20 repositories in one run, each with its own result, plus a merged candidate order |
agent-contrib discover owner/repo --signals |
Same reads and fields, plus per-issue signals and a signal-aware ordering |
agent-contrib discover owner/repo --responsiveness |
One extra read of recently closed PRs, reported as repository_signals.responsiveness; issues and ordering unchanged |
agent-contrib receipt owner/repo#123 --output receipt.json |
New schema 0.1 public PR observation; never overwrites |
agent-contrib card receipt.json --output gift.svg [--caption TEXT] |
Offline SVG; personal caption, never a GitHub title; never overwrites |
agent-contrib impact receipt.json [FILE...] |
Offline counts from at most 100 bounded local receipts |
agent-contrib audit owner/repo [--print-policy] |
Read-only maintainer report: policy validity, labels, instruction coverage, issue-quality and overlap counts, non-binding suggestions |
agent-contrib inspect 'owner/repo#123' |
Detailed issue snapshot, source policy, instructions, exclusions and PR matches |
agent-contrib prepare 'owner/repo#123' --output task.json |
A new schema 0.1 draft with a pending ai-policy-review prerequisite; an existing output file is never overwritten |
agent-contrib verify task.json |
Schema, current source/approval/overlap and execution-readiness checks; no commands executed |
agent-contrib verify task.json --evidence evidence.json --repo-dir checkout |
Also validates supplied evidence against the local checkout and live source |
agent-contrib authorization-request task.json |
Schema 0.2 only: an unsigned request with every mandate binding pre-filled from the contract and live reads and every human-only field null. Grants nothing; exit 1 when not ready |
agent-contrib lint task.json |
Offline contract check: bundled task schema, then the reviewed-contract rules verify applies first; exit 0 only for a schema-valid reviewed contract. No GitHub or Git reads |
agent-contrib scope-check task.json --repo-dir checkout [--base REV] |
Offline check of committed, staged, unstaged and untracked paths against the contract scope; exit 1 lists each violation. Never evidence |
agent-contrib evidence init task.json --repo-dir checkout --base REV --output evidence.json |
A new evidence skeleton with observed Git facts and contract IDs; results stay unfilled and the file fails validation until completed |
agent-contrib pr-body task.json [--evidence e.json --repo-dir checkout] [--closes] [--assistant TEXT] --output body.md |
A new Markdown PR description built from the contract, evidence and a fresh read-only verify run |
agent-contrib feedback 'owner/repo#PR' [--expected-head SHA] |
Read-only review state, review/issue comments and failing or pending check runs for a published PR |
agent-contrib inspect 'owner/repo#123' --ownership or agent-contrib ownership 'owner/repo#123' |
Opt-in, report-only timeline and comment signals: cross-referenced PRs, assignments, claims and possible prior fixes |
repository_policy (always added by discover, inspect and prepare) |
Report-only policy inventory and hints; never a verdict. --ai-policy is deprecated and ignored (one stderr notice) |
agent-contrib drift task.json |
Read-only report of what changed since preparation: issue, instruction files, branch, policy and open-PR overlap |
agent-contrib verify task.json --evidence e.json --observe-ci |
Also reports GitHub check runs and combined status for the evidence head; never changes gates or exit code |
agent-contrib verify task.json --evidence e.json [--repo-dir checkout] --observe-signatures |
Also reports GitHub's signature verification for the evidence head, required-signature rulesets on the base branch and local signature-header presence; never verifies locally or changes gates or exit code |
agent-contrib --report-budget [--min-remaining N] COMMAND ... |
Adds the core REST rate-limit budget before and after a GitHub-reading command; optionally refuses to start below N |
agent-contrib --cache COMMAND ... |
Reuses verified file contents at pinned commits of public repositories from the user cache; every other read stays live and output is unchanged |
agent-contrib instructions |
Installed workflow Markdown, CLI version, schema support and update behavior |
agent-contrib skill --output SKILL.md |
Canonical adapter export, CLI version and SHA-256 |
agent-contrib schema COMMAND |
The JSON Schema of COMMAND's JSON output; see Output schemas |
agent-contrib --version |
CLI/library semantic version |
discover, inspect and prepare wrap their results with
requested_repository, issue_source_repository, proposed_target_repository
and resolution_provenance. The proposed target is context, never authority.
A disabled-issue fork uses one immediate parent's enabled tracker; ordinary
repositories and enabled-issue forks keep their own tracker. Missing parent
metadata, a parent without Issues, malformed responses and API failures remain
unresolved, with errors and complete: false.
A heuristic overlap's reason ends with what triggered it: the shared title
words (two or more) and/or shared checklist IDs, sorted, at most ten of each with
a count of the rest. An explicit issue reference keeps its own reason. The
duplicate entry fields are unchanged. When a shared ID is a well-known standard
name such as SHA-256 or UTF-8, the reason adds that it may name a standard,
not a work item. The match still blocks: spelling alone cannot tell a standard
from a project ticket such as SHA-1234.
Use the reference emitted by discovery for subsequent commands. It keeps the
requested spelling; schema 0.2 prepare refuses a case variant of the canonical
issue_source_repository with case_mismatch, so rerun with that spelling. In a fork
request, fork/repo#123 means “resolve issue 123 for this requested repository”;
its issue_url names the actual source. It is not a claim that the issue exists
on the fork. Both repositories' open PRs are scanned, including drafts; a bare
#123 in a PR belongs to that PR's repository.
discover --limit N accepts ASCII decimal integers from 1 through 1000 (leading
zeros are allowed). Zero, negatives, non-decimal values and larger integers
return a structured invalid_limit error (exit 1) before any GitHub reads,
including --report-budget. A missing value is a usage error (exit 2).
The limit applies after all existing discovery scans, pagination, fork resolution,
ranking and opted-in reports. It changes neither read bounds nor --check-top's
own budget. It slices the final ranked issues list for one repository. With
several repositories it slices the merged ranked candidates list globally,
then retains only those entries in each repository's issues list. A repository
may show zero candidates; its resolution, policy, reports, errors and provenance
are still present. The full per-repository and aggregate scan status stays intact.
Limited responses add display (also on each repository in a multi-repository
run), with:
requested_limit: the normalized requested budget, shared across repositories.total_issues_considered: successfully inspected observed entries before display projection; inaccessible or malformed issues are not counted. Multi-repository totals count each requested repository's entries, even when trackers are shared.returned,omitted,truncated: retained entries, omitted entries, and whether any observed entry was omitted. These describe the display, not read completeness.overlapping,excluded: counts from the full observed list, including entries omitted by the limit. These counts do not waive blockers or approve work.
Text shows these totals and keeps its existing 20-row abbreviation; any extra
retained entries are available in JSON. Omitted entries are absent from both
lists; rerun without --limit for their details. Check complete, errors and
provenance independently. Even an unresolved repository has zero-count display
metadata. With no --limit, output and reads are unchanged and no display
field is added. These optional fields extend the unreleased output/1 candidate;
task and evidence schemas and their versions are unchanged.
discover --signals adds deterministic, explained heuristics to each issue
without extra API calls. Without the flag, output and ordering are unchanged.
code_location: paths in the issue title/body (first 64 KiB) that exist in the snapshot tree, including repository-relative suffixes of stack-frame paths and file names that match exactly one tree path (at most 20). It isunknownwhen the tree read was incomplete. Module names of two or more segments joined by.or::(pkg.mod,pkg.mod.func,crate::a::b) also count when they name exactly one file: the file's path without its extension, or a package directory holding__init__.py,mod.rsorindex.*, must end with the segments. A leading Rustcrate,selforsuperis ignored. Trailing segments are treated as members, so the longest prefix that names any module decides; an ambiguous match gives no hint and never falls back to a shorter prefix. Single names (signals), names inside paths, names of more than 16 segments or longer than 300 characters (as a slash path), and a name cut off by the 64 KiB scan limit are refused whole; a name is never shortened to fit. Names are matched on regular-expression word characters (letters, digits and_in any script), soäpkg.modresolves as a whole andpkg.modinside it is never resolved on its own. A name containing other identifier characters, such as combining marks,℘or·, is refused; its fragments are never resolved either. Path and file-name matches come first and the same limit of 20 applies.named_paths_missinglists repository-relative file paths the issue names (docs/x.md,./src/a.rs,.github/ci.yml; a last segment with an extension) that the snapshot tree does not contain, at most 20 in order of appearance. The named path is compared exactly: unlike hints, an existing suffix (src/a.rsforold/src/a.rs) does not count. It is a heuristic, not a URL parser; it skips absolute paths, ordinary URLs, domains,..traversal and tokens cut at 300 characters, and it is empty when the tree is unknown. It is a staleness cue only: it does not changevalue,scoreor ordering.acceptance_clarity:high,mediumorlowfrom checklists, expected/actual sections, reproduction steps and code blocks.activity: age and last-update days, comment and reaction counts from the issue list payload; malformed fields arenull.maintainer: whether the issue author's association is OWNER, MEMBER or COLLABORATOR.labels: the issue's label names (sanitized, at most 100).demotion: documented, report-only demotions with one reason each. A label matches a phrase when the phrase's words appear as whole words in the lower-cased label name, with punctuation and separators read as spaces (Status: On-Holdmatcheson hold;blockednessmatches nothing). Each group counts once:- on hold or deferred:
icebox,on hold,blocked,deferred,postponed,frozen; - needs a decision or design discussion:
needs decision,needs design,needs discussion,discussion,question,rfc,proposal; - not planned or not this project:
not planned,out of scope,upstream,third party,wont do; - major-version or breaking-change bucket: only an explicit bucket, where the
label or its last
:or/part is exactlybreaking,breaking change,breaking changes,vNorvN.x(v5,kind/breaking,target: v6).non-breaking,v5-compatandbug: v5 regressionare not buckets. A phrase right afternon,not,noorundoes not match, sonot blockedandno discussion neededare not demotions. A title counts as meta-like when it starts withmeta,wip,tracking,tracker,roadmap,rfc,umbrellaorepicfollowed by:,],)or-, or containsmeta issue,tracking issue,umbrella issue,roadmaporfeatures list. These rules come from dogfood evidence where icebox'd, maintainer-reservedv5, question-labelled and tracking issues ranked first. They are heuristics: a label can be stale, and titles can mislead.
- on hold or deferred:
score: one point for found locations, up to two for clarity, one for a maintainer author unless the title is meta-like, minus two per demotion, never below zero.
--check-top N (1-5, with --signals and one repository) then reads the
existing ownership signals (as inspect --ownership) for only the top N
candidates. Each check reads the first timeline and comment page and at most 4
cross-referenced PR details, and all checks together make at most 30 reads.
Each read is one GitHub GET with no retry, so a transient failure marks the
check incomplete instead of making extra requests.
Reaching a cap, or a failed read, marks that check complete: false, and an
incomplete top_check exits 1. A checked issue is demoted when it has a
merged same-repository PR that references it exactly ("possibly already
fixed") or a current assignee. Claim comments never demote: comment prose is
untrusted and easy to misread (quoted instructions, code examples, other
issues), so claims stay visible only in the report-only inspect --ownership
output. A demoted issue then moves below every other candidate that is not
excluded or overlapping (known bad below unknown); relative order is otherwise
kept and issues below the top N are never read. Each
demotion is listed in the issue's top_check.demotions. No maintainer
"reserved" or "rejected" detector exists, so none is used. A clean or
incomplete check proves nothing, gates and overlap are unchanged, and the
reads appear in --report-budget. In live runs with N=5 it made 13-18 reads
and demoted ripgrep #2528 and hono #1018, both judged bad by that evaluator, to ranks 59 and 183.
Precision@5 stayed 1/5, 1/5 and 0/5 for click, ripgrep and hono: the issues
that moved up (ripgrep #1221, hono #2649) were judged bad too.
tests/test_ranking_eval.py replays a frozen dogfood-2 snapshot (public titles,
labels and signal inputs for click, ripgrep and hono, with the dogfood
evaluator's judgements; the evaluator was a model, Claude Opus 5.5, and no
separate human review was done) and checks precision@5 and the ranks of known bad labelled or meta issues offline.
The demotions move those issues out of the top ranks but do not raise
precision@5 on that snapshot (click 1/5, ripgrep 1/5, hono 0/5 before and
after): most remaining false candidates are design debates, already fixed or
not this project's bug, with no label or title cue.
Ordering stays exclusions first, then overlaps; with --repo-dir or
--check-top the next key is known-bad issues (locally referenced or demoted by
the check), which rank below every other candidate. Then low success likelihood;
only then does a higher score come first, with the issue number as the final
tie-breaker. Signals are heuristics. They never approve, authorize or replace
reading the issue.
discover owner/repo --repo-dir CHECKOUT (one repository) adds a report-only
local_work object for unpublished local work. A commit closes issue N only when
one line of its message, after stripping surrounding ASCII whitespace, is exactly
<keyword> #N or <keyword> owner/repo#N for the source repository (owner and
name in any case). The keyword is one of fix, fixes, fixed, close,
closes, closed, resolve, resolves or resolved, in any case, optionally
followed by a colon, then one space. Nothing else may be on the line, so lists
(Fixes #1, #2), inline mentions, Refs #N, PR numbers, other repositories and
quoted examples never count, and Markdown is not interpreted (a line that is
exactly Fixes #12 counts even inside a code block). The rule is conservative by
design: under-counting only means an issue is not demoted. Only commits
reachable from the checkout's HEAD but not from the snapshot's source
default-branch commit are read. It lists the newest 500 commits at most,
checks each commit object's size before reading any message, and reads only
whole messages: a commit larger than 64 KiB is skipped, and reading stops once
messages would exceed 4 MiB in total. Reads use the hardened Git reader after the
worktree-root and checkout-config checks. A missing base commit (the CLI never
fetches), a missing or non-Git --repo-dir, a shallow checkout (a shallow
boundary can hide commits), an unsafe
config, a subdirectory, more than 500 commits, a skipped message or a message
containing a NUL byte make it incomplete, which exits 1. Messages are read from
the raw commit objects (git cat-file --batch), never reformatted, and commit
headers such as the author are not parsed. With --signals, each issue gets signals.local_work
(referenced, none or unknown), and a referenced issue ranks below every
other candidate that is not excluded or overlapping. Its score, gates and
exclusions are unchanged. Without --signals the issue order is unchanged. A
reference is not proof that the work is done.
discover --responsiveness makes exactly one additional GET for the issue
source repository, repos/{source}/pulls?state=closed&sort=updated&direction=desc&per_page=100,
and adds a top-level repository_signals.responsiveness report. Without the
flag, reads and output are unchanged, including with --signals. The report is
a one-page sample of the most recently updated closed PRs, never full history:
sample_size: closed PRs read;external_closedandexternal_merged: of those, PRs whose author association is not OWNER, MEMBER or COLLABORATOR and whose author is not a bot.value: measuredwithexternal_merge_rateandmedian_days_to_close(creation to close, merged or not) when at leastminimum_external(5) external PRs are present; otherwiseinsufficient, with the rate and mediannull.value: unknown,complete: falseand an error when the read fails, a page or entry is malformed (including a missingmerged_atfield, a merge time outside the PR's creation-to-close interval, or a missing or repeated PR number), or discovery did not complete its source snapshot (then nothing is read).
Each report has an explanation. No PR text is copied. The report never changes
approval, exclusions, overlaps, ordering or discovery complete. As with
inspect --ownership, exit 1 also covers an incomplete opted-in report; in a
multi-repository run each repository carries its own report. Author association
is not verified identity, and responsiveness is a heuristic, never approval.
discover accepts several repositories as arguments and/or
--repositories-file FILE (UTF-8, at most 64 KiB, one owner/repo per line,
blank lines and # comments ignored). With exactly one repository the output is
the unchanged single-repository result. With 2 to 20 distinct repositories it
returns repositories (each repository's complete single-repository result, in
input order), candidates (every issue with its repository, reference and the
ordering facts), errors prefixed with the repository name, and top-level
complete, true only if every repository is complete. A failing repository
never aborts the others or marks them complete. All identifiers are validated
before any read. The merged order is exclusions, overlaps, low likelihood,
higher signal score with --signals, then repository and issue number.
Reads cost the sum of the single-repository runs; combine with
--report-budget --min-remaining N on large lists. A display cap such as the
proposed discover --limit (#1) would apply per repository. Deriving
repositories from a dependency graph is out of scope.
discover (once per repository), inspect and prepare add repository_policy
in the CLI output. The report changes no core result, contract field,
instructions_sha256 or exit code. Separately, prepare now writes a pending
ai-policy-review prerequisite into new contracts; existing contracts are unchanged. --ai-policy is deprecated: it is
accepted, changes no output or exit status, and writes one notice line to stderr (best effort: a missing,
closed or readerless stderr changes nothing). The earlier unreleased ai_policy excerpts and
the agent_contribute.aipolicy module no longer exist.
-
Inventory. The issue source repository (never a requested fork) at the observed commit. It covers the loaded instruction files plus policy-named files at any depth. A name matches when it equals a prefix or continues it after
.,-,_or a space, case-insensitively:contributing,contribute,ai,llm,agents,claude,gemini,copilot-instructions,pull_request_template,code_of_conduct,code-of-conduct,security,support,governance(nested copies of these five are read after top-level ones and their hints rank lower, but they are never skipped), and a rootreadme. SoCONTRIBUTING.en.md,AI_USAGE_RULES.md,SECURITY-POLICY.mdandREADME.development.mdall match. Also matched:.cursorrules,.cursor/rules/*,llms.txt,.github/PULL_REQUEST_TEMPLATE/*, and files undercontributing/,contributors/,contribute/,policy/orpolicies/directories.- Paths are classified in full and displayed shortened to 500 characters,
with
path_truncated. - Core instruction paths of 500 or more characters may already have been shortened, so they are listed as an unresolved identity.
- The owner's
.githubrepository (root,.github/,docs/) is read at its default-branch commit. Contents are read by commit SHA, and the decoded bytes must hash to the tree's Git blob SHA.
- Paths are classified in full and displayed shortened to 500 characters,
with
-
Formats.
.md,.markdown,.rst,.txtand extensionless files are scanned. Other document formats with a policy name (.adoc,.pdf,.html,.docx,.odt,.org,.textile,.rtf,.mdx) are listed inunassessedasunsupported format. Code, data and image files are not policy candidates. -
sources_scanned. Origin, repository, path, commit, SHA-256 of the file bytes, scan kind, and notes such asparagraphs with non-Latin script not assessed: N. The vocabulary is English only. -
unassessed. Policy-like links from any scanned file, including READMEs (referenced, not assessed; links to a scanned file at the same revision are omitted). Also unsupported formats, failed reads, an owner.githubrepository that isnot found or inaccessible(never "absent"), and content that did not match the pinned tree entry. -
hints. Attention labels, not classifications:possible_agent_restriction,possible_ai_restrictionandpossible_pr_restriction: an agent/automation, AI or pull-request term within 12 words of a restriction word.ai_mention: any AI or agent term.
Paragraphs are joined across wrapped lines, and headings are kept as context. HTML comments are scanned, and entities, tags, fullwidth forms and zero-width characters are normalized. Adding sentences or paragraphs before or after a passage never removes its hint kinds. Inserting words between the matched terms can move them out of the 12-word window, and so can added text that turns an existing line into a heading. Excerpts are sanitized and at most 300 characters, start late enough that the restriction word lies within their first 170 characters, and carry
excerpt_truncatedwhen text before or after was left out.Hints are ordered for attention: agent, then PR submitter-eligibility rules (a PR term near "limited", "restricted", "invitation" or "instead", or near both "only" and an actor such as "maintainer" or "members": "Pull requests are limited to maintainers", "Only a maintainer may submit"; not review requirements), then AI restrictions, then PR restrictions whose paragraph also names AI or agents, then PR restrictions in policy files (AI policy, agent instructions, contributing, PR templates), then other PR restrictions, then restrictions from nested security, support, governance or conduct files, and mentions last. When the 100-hint bound or the report-size bound applies, mentions are dropped first. A dropped restriction hint is counted as
restriction hintsorreport size: restriction hints, whichhides_sources. -
limits_reachedandreads. At most 25 logical GitHub requests per report (each with the client's usual three attempts), 12 source and 8 owner policy files, 200 kB per file and 1 MB scanned, all counted in UTF-8 bytes. The report keeps 100 hints, 50 unassessed entries and 256 kB serialized, and identifiers are truncated withwhat_truncated. Anything dropped is counted inlimits_reached. To fit the size bound, hints go first, then unassessed entries, then long source paths are shortened, and finally source records are left out. Each step is recorded as areport size: ...limit. -
Identity. Every source, omitted candidate and unassessed entry has
identity_sha256, a hash of its original repository and path (or URL) as read from GitHub. Displayed paths can be shortened (path_truncated,what_truncated) or sanitized of control and format characters (path_sanitized,what_sanitized), so two entries can look alike. The identity, not the display text, is what deduplication andinventory_sha256use. -
hinted_linesandproject_vocabulary.hinted_linesis the reading list: one entry per hinted source line in attention order, with every hint kind on that line. Lines whose only hints are mentions made of the project's own name (for example "agent" in a repository namedagent-kit) are summarized inproject_vocabularywith a count and bounded line list. Restriction hints are never summarized, andhintsstill lists every retained hint. -
Hint IDs.
hints[].idisH-plus the full SHA-256 (64 hex digits) of the canonical JSON["policy-hint/1", source identity_sha256, line, kind]. It never depends on report position, so a disposition recorded by ID keeps naming the same line when other sources or hints change the order, or a later build reorders the report. An edit that moves the line changes the ID. If two hints ever shared an ID, the first is kept, the others are dropped and counted ashint_id_collision, a limit that hides sources, so the review stays unresolved. -
omitted_sourcesandhides_sources. A policy candidate that a file, byte or request limit left unread is named inomitted_sources(at most 50, with its repository, path, kind and reason; overflow is counted). Eachlimits_reachedentry says whether ithides_sources; hint limits do not.limits_hide_sourcesis true when any limit hides a source or reference. The workflow then treats repository policy as unresolved until every omitted candidate is read manually or shown inapplicable. -
never_inspected. A fixed list: wikis, external websites, images and PDFs, comments, other repositories, non-Latin text. -
owner_lookup. The owner.githublookup outcome:read,not_found_or_inaccessible(HTTP 404 from the repository metadata lookup only),unavailable(any other failure, including a 404 on the commit or tree after the repository was found, recorded as the hiding limitowner lookupbecause its policy files are unknown),not_read_request_limitornot_applicable. It is part ofinventory_sha256, so a change such as readable to not found is drift, anddrift --policy-sha256treats anunavailablelookup as incomplete. -
Unread candidates. Unassessed and omitted file entries carry
blob_sha, the pinned Git blob id from the tree, so an edit to an unread policy file (such asAI_POLICY.adocor an oversizedAI_POLICY.md) changes the inventory hash. Policy-like links to files in the pinned tree (such asdocs/rules.md) carry that file's blob id too, without a new read, as dogithub.com/OWNER/REPO/blob|tree/REF/PATHlinks into either inventoried repository (the source or the owner.github, in both directions) whose REF is that repository's default branch or pinned commit (host and owner case,www.,http://, protocol-relative forms, fragments and queries are accepted). A known file without a valid blob id, or a blob/tree link into an inventoried repository that cannot be resolved to its pinned tree (another branch, a tag, an unknown ref, a missing path or a directory), is the hiding limitunfingerprinted files. -
inventory_sha256. A hash of the scanned sources' bytes, the retained unassessed identifiers and the limits. It excludes commit SHAs, so unrelated pushes do not change it. No verifier checks it; the workflow records it in prerequisiteai-policy-review. -
inventory_format. The version of the material thatinventory_sha256hashes, itself part of the hash (currently 2). Format 1 is the unversioned hash of earlier 0.3.0 candidate builds. Any change to the hashed material bumps it, so a hash recorded under another format is recognizable.
With --format text, the Policy line is followed by up to five restriction
hints in attention order, for example ! possible_ai_restriction pallets/.github:CONTRIBUTING.md:22 -- AI-generated PRs and issues are closed on sight..., and a count of the rest. Shortened excerpts end with .... Restriction
hints that limits dropped are counted separately. With none it says "No
restriction hints; this is not permission.", or "No restriction hints retained"
when limits dropped hints or hid sources.
Up to five unassessed references and files follow, one per line, sanitized and
shortened to 150 characters, for example ? https://palletsprojects.com/contributing/ (referenced, not assessed) from pallets/click:README.md:62, and a pointer to
repository_policy.unassessed for the rest.
There is deliberately no coverage, complete or clear field. Hints are
noisy on purpose. The installed workflow's mandatory policy review decides what
they mean, and that review is not verifier-enforced.
inspect --ownership adds ownership_signals to the normal inspect result;
ownership 'owner/repo#123' prints them with repository resolution. Without
the flag, inspect, prepare and verify neither read nor report them, and no
approval, overlap or readiness decision changes in any schema version.
Reads: the issue timeline and comments (complete pagination; timeline events
without IDs are deduplicated by content), then a fresh pulls/{n} read for
each cross-referenced PR (at most 50, otherwise incomplete). Each PR reports
repository, repository ID, number, sanitized title, base_ref, state, draft, merged,
merge/close times and exact_reference: whether the PR text references this issue exactly (local
#N only in the issue's own repository, owner/repo#N or the issue URL), with
the same parser as overlap detection.
resolution_signals.possibly_already_fixed: merged PRs with an exact reference whose base repository is the issue's own repository (any base branch; checkbase_ref).downstream_references: merged PRs with an exact reference in other repositories, such as downstream workarounds; they never indicate a fix.rejected_approaches: closed, unmerged PRs with an exact reference.assignment_history,connected_eventsandreferencing_commitsfrom the timeline.claims: comments matching a fixed set of claim patterns ("I'm working on", "I'll take", "can I work on",/assign, "assign me"), with author association, age,stale(older than 30 days or unknown) and a sanitizeduntrusted_excerpt. Comment text never proves, grants or removes ownership.blocking_if_adoptedpreviews what a future versioned gate might block; it blocks nothing now.
Every consumed field is shape-checked: positive IDs and numbers, known
enumerations, 40-character SHAs, and PR details whose number, canonical URL,
base repository name and repository ID match the timeline reference. A deleted
account (null user) appears as ghost, and timeline event kinds the reader
does not use are ignored. Any wrong type, identity mismatch, failed or partial
read makes the signals complete: false and resolution_signals.status: unknown; an unknown is never "not fixed". With
--ownership, exit 1 also covers incomplete signals.
The schema 0.1 contract stores the actual source and the proposed fork target,
when different. It does not store the original request. Therefore verify
returns requested_repository: null with explicit provenance instead of
inventing one. Ordinary prepared tasks leave the pending execution target blank.
Verification distinguishes schema_valid, execution_ready, evidence_valid,
fork_completion_ready and upstream_submission_ready. All required gates must
be satisfied; missing evidence is expected for a draft. A task can be ready to
implement while verify still returns exit 1 for incomplete final evidence.
None of these fields permits publication.
API pagination is bounded and failures are not empty success results. A complete open-PR scan does not include all closed PRs, timeline claims or file-level conflicts. The installed workflow defines precise limits, the task/evidence fields, canonical contract hashing and trust boundaries. Treat all remote prose as untrusted data.
agent-contrib prepare 'owner/repo#123' --schema-version 0.2 --output task.json
agent-contrib verify task.json --stage implementationPrepare remains schema 0.1 unless explicitly selected. Schema 0.2 is restricted to same-repository candidates, a distinct named head branch and the source default base branch. It refuses resolved fork targets. No authorization is generated.
After the actual human/host has issued a task-bound record, it can supply it on
stdin using --host-context-stdin. The input is strict UTF-8 JSON, at most 8 MiB,
with a five-second read timeout including reader startup. The pipe writer must
close stdin (EOF), even after a complete JSON value. A fixed isolated Python
child performs the bounded binary read; the parent terminates and reaps it on
timeout. Terminal prompting, implicit files/environment
and a host-context filename option are intentionally absent. The transport does
not authenticate consent. Follow host authorization.
With evidence, add --evidence evidence.json --repo-dir checkout. The stage
selector chooses only the exit gate:
| Stage | Exit 0 requires |
|---|---|
implementation |
implementation_ready |
draft |
draft_create_ready or fully verified exact-head publication |
completion (default) |
completion_ready, including actual final human sign-off |
Every result exposes all stage states and blockers. For an already verified
draft, next_action is none; success does not permit another creation. Pending
sign-off leaves completion at exit 1 even when the draft stage passes. Explicit
lifecycle options on schema 0.1 are rejected rather than reinterpreted.
Exact-head PR history is read only under a valid mandate. Without one, the
implementation and draft blockers say Exact-head PR history not checked: requires a valid mandate; both gates stay blocked.
The prerequisite blocker lists each prerequisite that is not satisfied with
non-blank evidence, as ID (status) or ID (satisfied without evidence).
instructions.resources lists both task/evidence versions and host-context
schemas 0.1 and 0.2.
When a host-context 0.2 document carries a draft_update record (#21), verify
adds a draft_update report and recognizes the draft only after its one
fast-forward update (slice 2). The record's contract, mandate, credential,
repository, PR, event, interval and identity bindings must check out, else the
status is invalid and no publication is read. With a record present, the
draft at its creation head is never recognized. The status is then:
recognized: the live PR headPequals the validated evidence HEADE,P != from_head, andcompare from_head...Pisahead. The creation head precedes bothfrom_headandP, and the PR is still the one claimed open, unmerged draft by the bound actor, created inside the mandate interval and not in the future. Its complete timeline has no force-push, head-ref deletion or restore, close, reopen, merge, ready-for-review or convert-to-draft event. A final re-read equals the first and keeps the route. The evidence is based on the reviewed source commit exactly, has no merge commit infrom_head..Eand only validations started after the round'sissued_at.publication.verifiedis true atE; completion also needs a final sign-off forEissued after the round.not_evaluated: the PR is still atfrom_head, so no update was pushed.blocked: anything else, with the reasons inerrors.
Every comparison must be internally consistent (status, commits and counters),
or it blocks. candidate_head is E exactly when the status is recognized,
else null; live_head is the PR head of the first complete read, or null.
The record may have expired after the push; current reports whether its
interval contains the verification time, judged after every read. Pre-push
readiness is not evaluated: no next_action asks for an update or a push, and
nothing here authorizes a push. Without the section the output is unchanged.
See host authorization.
With a host-context 0.2 document, verify adds overlap_dispositions and
waived_duplicates. The status is:
absent: no record;invalid: a schema, binding or expiry error. Nothing is waived. A record rejected on its own checks makes no extra read, but one that expires during the reads becomesinvalidonly after them;evaluated: the record's contract, mandate, credential, event, interval and entry bindings check out.
For an evaluated record, verify reads each disposed PR (pulls/{n}) and each
distinct base-branch tip (git/ref/heads/{ref}): at most 20 PRs and 20 refs. It
recomputes the match and reconciles it with the open-PR scan. It removes a PR
from the blocking lists only when all of these hold:
- the scan was complete;
- the match is the same topical one (never a direct reference);
- the author is not the credential actor;
- every bound observation is equal (ID, URL, repository, author, state, draft,
head repository and SHA,
updated_at, title/body/ref hash and base tip); - the record is still unexpired after all reads.
A direct reference, contradiction or failed read seen in that read blocks. A
direct reference first seen there is also added to duplicates with
observed_in: "disposition_read"; a failed read is a blocker only, never a
claimed overlap. A waived PR stays in duplicates. Waivers never remove any other blocker; text
output names them. A record that expires during the reads fails every stage
closed. Library callers may pass host context explicitly to core.verify;
that is the same host-asserted boundary as the CLI, not a privileged API.
lint task.json reads one contract and nothing else. It validates it against
the bundled task schema for its schema_version (unknown versions fail), and
for a schema-valid contract it applies the same reviewed-contract rules that
verify checks: reviewed status with no open questions, required fields,
concrete repository-relative scope, unique IDs, a definition of done covering
every criterion and validation, complete prepared discovery and satisfied
prerequisites. reviewed (and exit 0) means only that the contract is ready
for verify. It says nothing about the live issue, approval, overlap,
authorization or evidence, and it never runs validation argv.
drift task.json compares a schema-valid contract with the live source and
never writes anything. It reports:
source: stored and current source repository and issue URL, and for 0.2 stored and current repository, owner and issue numeric IDs. Any difference, such as a fork tracker switch or a recreated repository, is drift; an unresolved 0.2 identity makes the report incomplete.issue: whether the combined issue hash changed, stored and currentupdated_at, and the current title/body hashes, state, labels and assignees. Per-component baselines are unavailable because schemas 0.1 and 0.2 store one combined hash.instructions: the filesadded,removedandmodified(path and both SHA-256s). The baseline is reconstructed by re-reading the instruction files at the contract's immutablesource.commit; it is used only when its aggregate equals the storedinstructions_sha256(baseline_verified).default_branch: stored and current branch and commit. An advanced commit alone is informational and not drift.policy: stored and current approval status, plus policy hashes for 0.2.overlap: open source-repository PRs added to or gone from the prepared list.
The issue component read must hash to the same value as the inspection it
accompanies; if the issue changed in between, the report is incomplete. Exit 0
only when every read completed and nothing drifted. Any failed read,
including an unverifiable baseline, gives complete: false. The pinned re-read
costs another snapshot's worth of reads. After drift, review and prepare the
contract again.
drift task.json --policy-sha256 HASH also re-reads the repository policy
inventory at the current default-branch commit and adds
repository_policy_drift. HASH is the inventory_sha256 recorded in the
ai-policy-review prerequisite evidence; a malformed value is a usage error
before any read.
policy_driftedistruewhen the current inventory hash differs (it then counts as drift, exit 1), andnullwhen the current read is incomplete or a limit hides sources (incomplete, exit 1).- When the inventory rebuilt at the contract's pinned commit reproduces HASH
(
baseline_verified),added,removedandchangedlist every inventoried candidate byidentity_sha256andwhat, with itsstate(scanned,unassessed: <reason>oromitted: <reason>) andfingerprint(content SHA-256 when scanned, pinned blob id when unread). Otherwise they arenull: the owner.githubrepository is read at its current tip, so a baseline cannot always be rebuilt, and no deltas are invented. current_inventory_formatis the current report'sinventory_format.recorded_inventory_formatis the format under which the current report or the pinned baseline reproduces HASH, ornullwhen neither does. When the pinned baseline reproduces HASH only under another known format (a hash recorded by an earlier build), the note says so instead of suggesting a moved owner repository; it is still drift (exit 1): re-review and record the new hash. When nothing reproduces HASH, the note says it may come from a different inventory format, a moved owner.githubrepository or another snapshot.
This catches an edit to a policy-only file such as SECURITY.md or a new
AI_POLICY.md, which instructions_sha256 does not cover. It costs up to two
policy reports (at most 25 requests each).
A reviewed schema 0.2 contract may declare ci_requirements: 0 to 20 unique
{"check": NAME, "app_id": N} pairs. check is 1 to 200 characters without
control or format characters, and app_id is a positive integer. A non-empty list
needs create_draft in execution.requested_actions. An absent or empty list
changes nothing: no reads, no output, no blocker.
With requirements, once an exact-head published draft is verified, verify reads
every check suite and then every check run (filter=all) for the evidence
git_head, within a 50-request budget. It adds ci_gate. A requirement is met
only when all of these hold:
- every check run whose raw name is exactly
check, from appapp_id, on that head, is completed withsuccess; - every check suite of that app on the head is completed;
- at least one such run exists;
- both reads are complete, consistent and cover fewer than 1,000 suites.
There is no latest-attempt selection: a retained failed attempt blocks even if a
retry succeeded. Other states, decided in this order:
unknown (incomplete or inconsistent reads, the suite window, an exhausted
budget), failed, not_met (neutral or skipped), pending (an unfinished run,
action_required, or an unfinished suite of that app, such as after a
rerequest), and missing. Same-name runs from other apps are counted, never
accepted, and commit statuses never count.
A contract with requirements also cannot complete when the implementation diff
touches .github/ (additions, deletions and renames). Every gate blocker appears
only in stage_blockers.completion; the implementation and draft gates and the
--observe-ci report are unchanged. The gate observes the results GitHub
currently retains for that head. It does not prove which tree a job checked out,
and it never replaces review or final sign-off. Design:
docs/design/2026-11-03-ci-gating.md.
--repo-dir must be the Git worktree top level. verify, scope-check and
evidence init refuse a subdirectory or Git directory, because tree, index and
untracked-file reads there would omit the rest of the checkout. They also refuse an
index with assume-unchanged or skip-worktree entries, including any sparse
checkout, because Git status and diff would hide changes to those files. The
index is only read, never changed; clear the flags or use a full checkout.
A checkout whose effective Git config (including include/includeIf files)
sets a key a read could run as a program or use to fetch is refused with
unsafe_git_config: filter.*, gpg.program and gpg.*.program,
diff.external, diff.*.command, diff.*.textconv,
extensions.partialClone, remote.*.promisor, remote.*.partialCloneFilter
and protocol.*. Git reads also force log.showSignature=false and
protocol.allow=never and disable lazy fetching, so a missing object is a read
error, never a fetch. Credential, SSH, askpass, pager, editor and merge-driver
settings are not refused because none of the fixed read commands reaches them.
Reads also force full stat and mode checks (core.checkStat=default,
core.trustctime=true, core.ignoreStat=false, core.fileMode=true, and
core.symlinks=true on POSIX), so
relaxed checkout settings cannot hide an edit or an executable bit; on a
filesystem without executable bits every file then looks changed, which fails
closed. core.ignoreCase=true is refused on a case-sensitive filesystem, where
it would hide case twins, and accepted where the filesystem really ignores case.
Worktree content is compared with a commit through a fresh temporary index
outside the checkout, so the checkout's stat cache is never trusted; every
tracked file is hashed on each run. Each file's bytes must equal either the
committed blob or exactly what checkout writes for it (cat-file --filters,
with core.autocrlf=false and core.eol=lf). Git takes those attributes from
the checkout's .gitattributes files; a changed tracked one is reported as a
change, and an untracked one is always reported (even when a committed
.gitignore would ignore it) and is never within scope-check scope. So ident, eol/text and working-tree-encoding cannot hide
an edit, and an untouched checkout with those conversions stays clean. A CRLF
copy produced only by a local core.autocrlf reports as changed. A non-empty
.git/info/attributes is refused with unsafe_git_attributes;
core.attributesFile and system attributes are always ignored.
scope-check evaluates the working diff against the contract's
scope.allowed_paths and scope.prohibited_paths with the same function that
verify uses for evidence. It reads only the local checkout: committed changes
from --base (default: source.commit) to HEAD, staged and unstaged changes,
and untracked files that are not ignored. Only per-directory .gitignore files
count as ignore rules; .git/info/exclude and core.excludesFile never hide a
file, and an untracked .gitignore is always reported. Files ignored by a
committed .gitignore are not reported (verify and evidence init apply the
same rule). Renames report both paths. The base
must be an ancestor of HEAD; gitlinks fail closed. --base accepts exactly a
full 40-character SHA, HEAD, or a full ref name such as refs/heads/NAME or
refs/tags/NAME, each optionally followed by ~N or ^N (for example
HEAD~3 or refs/heads/base~1). Short branch or tag names, abbreviated SHAs
(convert with git rev-parse ABBREV), pseudo-refs other than HEAD and other
revision syntax (:/text, @{...}, REV^{type}, paths, ranges) are refused.
HEAD and refs/... names are looked up exactly with git show-ref --verify,
never through Git's short-name lookup, so a same-named ref such as
refs/tags/HEAD cannot stand in for them; an unborn HEAD is refused. The
object ID is captured first, then the suffix and ^{commit} are applied to it
with git rev-parse.
Every read uses the same hook, fsmonitor and replacement-object protections as
other Git reads, and nothing under .git is opened directly. base_commit
reports the full SHA. A value that is blank, starts with - or contains
whitespace or control characters is refused. When the default base is not an ancestor of HEAD,
warnings suggests passing --base for stacked or rebased work; the result
still fails. When the default base is an ancestor but more than one commit
behind HEAD and out-of-scope paths changed, warnings names the base, the
commit count and suggests --base; the violations and exit status are
unchanged. It makes no GitHub calls, so it can run as a pre-commit hook. Exit 0
means "no scope violation found", not evidence, readiness or authorization.
Each violation names the path and either the first matching prohibited pattern
or not in allowed_paths.
A changed path that is a symlink is also judged by its target, the same way in
verify and scope-check. The target comes from the commit, the index or the
worktree that holds the link, read without following it. It is resolved
lexically from the link's directory, expanding every link hop, including links
to directories, up to 40 hops. The link is a violation, with the reason as its
rule, when the target is absolute (/x or C:/x), contains a backslash,
escapes the repository, points at the repository root, is longer than 4096
bytes, contains a NUL byte, is not valid UTF-8, cannot be read (for example a
permission error on a hop), loops, or resolves to a path outside allowed_paths or matching
prohibited_paths (for example symlink to AGENTS.md: not in allowed_paths).
A link that resolves to a directory of the same snapshot (the commit, the index
or the worktree) exposes everything beneath it, so it is also a violation when
any prohibited pattern can match some path beneath that directory, whether or
not such a path exists (for example symlink to docs/private/: prohibited_paths: docs/private/* can match beneath it under docs/*). The check is conservative:
a pattern counts when a prefix of it matches the directory plus /.
A link to an allowed file passes; a scope pass does not prove the target exists.
Git records no path beyond a symlink, so a
file written through a linked directory appears at its real path and is judged
there.
evidence init writes a draft evidence file for the contract's schema version.
It fills only what the CLI observes locally: the canonical contract_sha256,
git_head, git_tree, the given base_commit and the observed
worktree_clean. Validation entries copy each contract id and argv;
criteria copy their IDs. Every result field is left unfilled (null or empty),
criteria and attestations are pending, and implementer is blank, so the
skeleton deliberately fails evidence validation. It never runs argv and never
writes passed.
The base is resolved like scope-check --base and recorded as a full SHA. It
must descend from source.commit and be an ancestor of HEAD. Gitlinks are
refused. The output is created exclusively and
must be outside the checkout's Git top level, because an untracked file there
would invalidate the evidence. A dirty worktree is recorded as observed
(worktree_clean: false), which verify rejects.
Schema 0.2 mandates and final sign-off are issued by the human or host, never by the CLI; see host authorization. The CLI only prepares the request.
authorization-request task.json makes the same GitHub reads as verify task.json without host context, writes no file and reads no stdin. It first
validates the full task 0.2 schema: a schema 0.1 or unknown version is a usage
error (exit 2), and an invalid contract returns error.code: invalid_contract
with schema_errors and no template (exit 1), before any read; the payload is
identical with --report-budget, which takes no budget snapshot in that case.
The output has issued: false, contract_sha256, mandate_fields,
human_only_fields, requested_actions, unresolved_fields, preflight_errors and
ready_for_issuance (exit 0 only when true). In a ready request the null
leaves of mandate_fields are exactly human_only_fields: a ready request
still awaits the host for every one of them. requested_actions repeats the
contract's actions; the host chooses mandate_fields.actions. When identity or
permission reads fail, credential_actor_id and authority are also null and
listed in unresolved_fields, which names only these derived fields; only fresh
trusted reads resolve them. Text output shows the requested actions, any
unresolved derived fields and the human-only fields.
preflight_errors omit the blockers that exist only because no mandate exists
yet. They are untrusted diagnostics and may contain repository-authored paths.
The request deliberately contains no scope, path, objective, criteria or
validation summary. The host renders the complete contract from the file it
hashes, issues the record, and the worker relays it unchanged. The request is not
host context: piping it to verify --host-context-stdin fails schema validation.
pr-body runs the same read-only verify and renders Markdown: the issue
reference (Refs by default, Closes only with --closes), objective, scope,
criteria with their evidence status, each validation argv as an exact JSON
code span with the recorded status, exit code, test and skip counts, review and
sign-off status, the count and full neutralized text of every verify blocker,
the open-PR scan provenance (completeness, pages, error count per scanned
repository) with every overlapping PR, and an AI-assistance disclosure with the
CLI version and contract hash. --assistant adds host-reported model text.
When supplied evidence does not pass verify, its statuses are labelled
unverified claim. Evidence that fails its schema is not quoted at all; its
errors appear among the gates. For schema 0.2, review and sign-off states come
from verify. pr-body takes no host context, so for 0.2 it shows only
technical_evidence_valid with source (including repository, owner and issue
identity), evidence and review blockers. It omits
the implementation, draft and completion gates, next_action, final sign-off and
authorization blockers, and says so, rather than misreporting authorized work as
unauthorized. The host's verify --host-context-stdin run decides those.
One extra bounded read of the tree at the contract's pinned source.commit
finds pull request templates (pull_request_template.md or a
pull_request_template/ directory at the root, .github/ or docs/,
case-insensitive). The body names each path and blob SHA, or says that none
exists, or that presence is unknown when the read fails or is truncated.
Template contents are not read and the CLI does not fill the template.
All quoted prose is neutralized: whitespace collapses to one line, HTML is
escaped, Markdown link/image/emphasis/code characters are backslash-escaped,
and zero-width space entities break @ mentions, # references, :// URLs
and closing keywords (close, fix, resolve and their forms). Data shown in code
spans (argv, template paths) is exact JSON. The output file is created
exclusively. Rendering never writes to GitHub and is not publication authority.
feedback reads one PR, its reviews, review comments, issue comments and the
check runs for its current head, then rereads the PR. The PR must have the
requested number, the canonical repository as its base and a valid head SHA. A
head that moves during the read makes the result incomplete.
Per reviewer it reports latest_state and decision: the latest APPROVED,
CHANGES_REQUESTED or DISMISSED review (DISMISSED clears it; COMMENTED and
PENDING never change it). Reviews are grouped by numeric user ID; author is
the latest observation and decision_author the author of the decisive review.
changes_requested_by_trusted_association is true when the decisive review of
an outstanding change request has a non-bot author with association OWNER,
MEMBER or COLLABORATOR. That association is a GitHub heuristic, not a
verified maintainer role. Deleted accounts appear as ghost. Review comments
include path, line and outdated (no diff position, or made on another
commit). Failing (failure, timed out, cancelled, action required, startup
failure, stale) and pending check runs are listed only for the exact head;
other_head_runs counts runs for other heads. --expected-head (for example
the evidence git_head of the recognized draft) adds head_moved. Logs are not
read.
All text fields are untrusted_* data with terminal controls removed. Feedback
never widens scope or grants authority; a requested change outside the reviewed
contract needs contract re-review. Malformed reviews, comments or check runs
are errors, not silently cleaned records: IDs and diff positions must be
positive, author associations, review states, run statuses and conclusions must
be known values, a run's conclusion must be set exactly when it is completed,
and SHAs must be 40 hex characters. Null bodies, commit IDs and lines are
accepted where GitHub documents them as nullable. Check-run pagination requires unique run IDs, a stable
total_count and a matching final count. Any of these failures gives
complete: false (exit 1).
verify ... --evidence evidence.json --observe-ci adds ci_observation after
the verify decision and exit code are fixed; it never changes any gate. For the
evidence git_head in the contract's target repository (the source when the
target is blank), it reads every check-run page and the paginated combined
commit status. It reports check runs for that exact head (name, app slug and
numeric app ID, status, conclusion, URL), the count of runs for other heads,
and the combined state with each status context.
Shapes are strict: positive IDs, documented statuses and conclusions (set
exactly when a run is completed), and a combined status for the requested SHA.
For both check runs and statuses, total_count must be a non-negative integer
that stays stable across pages and equals the number of unique items read. Any failure, or a missing or
invalid evidence head, gives complete: false with errors. Queued, pending,
approval-required or missing runs are never success. This is an observation of
what GitHub reports, not proof that the evidence checks equal the CI checks.
verify ... --evidence evidence.json [--repo-dir checkout] --observe-signatures
adds signature_observation after the verify decision and exit code are fixed.
It is added only for a schema-valid contract and never changes any gate,
next_action or the exit status. The repository is the contract's target, or
the source when the target is blank. It has three parts:
github_verification: oneGET repos/{target}/git/commits/{git_head}. It reportsverified,reasonandverified_atfrom GitHub's verification object. A reason outside GitHub's documented set isunrecognizedand is not echoed; the signature, payload and message are never copied.verifiedmust agree with avalidreason.verified_meansstates what it shows: GitHub matched the signature to a key registered to an account. That is not approval, authorship, review or proof that tests ran. A head not yet pushed to the target cannot be observed and is reported as a failed read.required_signatures: every page ofGET repos/{target}/rules/branches/{base}, wherebaseis the contract'sexecution.base_refor elsesource.default_branch.requiredis true when an active ruleset rule of typerequired_signaturesapplies, andruleset_idslists those rulesets.falsemeans only that no visible active ruleset requires signatures. Each rule type must be one of GitHub's documented lowercase rule types. A malformed type makes the part unknown. So does a well-formed but unrecognized type, unless an exactrequired_signaturesrule is also present.classic_branch_protectionis alwaysnot_observed, because reading it needs admin access, and ruleset bypass actors are not visible either.local_commits(only with--repo-dir; otherwisenot_requested): the commits in evidencebase_commit..git_head, oldest first, each withsignature_header: presentorabsent, plus counts. This is header presence, not validity; anyone can write a forged header. First the checkout's effective Git configuration is checked, as for every checkout reader; config a read could run as a program or use to fetch (signature programs, filters, promisor remotes, protocol settings) makes the part incomplete before any other read. Then onlyrev-parse --is-shallow-repository,merge-base,rev-listandcat-filerun, through the hardened Git reads, which never lazy-fetch. No signature program runs: no gpg, ssh-keygen,verify-commitor--show-signature, so repository-configured programs are never executed. The base must be a full SHA and an ancestor of the head. A shallow repository is reported as incomplete, because its boundary can silently cut the range even when the base is reachable through a merge. More than 1000 commits is also reported as incomplete; the list is never truncated.
Any failed, partial or malformed read makes that part, and the observation,
complete: false with fixed error strings. Contract-required verified heads and
signed evidence attestations (the rest of #18) are not implemented.
tipjar receipt 'owner/repo#123' --output receipt.json
tipjar --format text impact receipt.json later-receipt.json
tipjar card receipt.json --output gift.svg
tipjar card receipt.json --caption 'A personal gift of agent work' --output captioned.svgreceipt exclusively saves a schema 0.1 public PR observation from two fixed
GitHub GETs (repository metadata and PR detail). Exact canonical URL and numeric
repository/PR identities, author, head/base, state and merge facts must be
complete and consistent. It refuses private repositories and never overwrites.
impact is offline: 1–100 regular non-symlink files, at most 64 KiB each. It
rejects unknown schemas, duplicate JSON keys, malformed records and conflicting
identities. The latest valid timestamp per numeric identity wins, regardless of
file order; equal-time conflicting snapshots reject. Drafts count as open;
closed means unmerged. Output counts unique PRs and repositories represented and
lists selected observations. Editable local data is labeled self-reported
recorded observations, never signed proof, authenticated contributions, tests,
quality or permission. card reuses the bounded offline receipt loader and creates
an exclusive, inert SVG file. Its JSON result includes the artifact SHA-256,
canonical PR link, exact observed state/date and observation warning. Receipt 0.1
has no title: cards show an honest missing-title fallback, or optional bounded
--caption text visibly labeled personal (never a GitHub title). Full sanitized
captions remain accessible when visually truncated. Review and share manually;
nothing posts or refreshes. See receipt limits and card workflow.
Every command's JSON output has a packaged JSON Schema (draft 2020-12 subset).
agent-contrib schema COMMAND prints it; error is the error envelope that
replaces any command's result on a usage, input or protocol error, and
evidence-init is evidence init. instructions reports the
output_schema_version (currently 3) and the package directory. Objects are
closed: a field is required unless marked optional, and fields not listed never
appear. Output values do not carry the schema version; a shape change bumps the
version together with the CLI's semantic version and changelog. Remote text in
fields named untrusted_* and in instruction files stays untrusted data.
The field-by-field reference for every command is in output-reference.md. It is generated from the schemas, and a test fails when it drifts.
Commands emit JSON by default except help/version. Exit codes: 0 for a complete read,
successful export/draft write or a passed verification gate (completion
readiness for schema 0.1, the selected --stage for 0.2); 1 for an
expected error, incomplete read or unresolved verification; 2 for usage
errors. An exit code is not authorization.
JSON results are flushed before returning. If the stdout pipe's consumer has
closed, the command closes the failed stream and exits 1 without a traceback
or a second error during interpreter shutdown. This also overrides an otherwise
successful result or usage-error status when its JSON cannot be delivered.
A missing stdout stream (for example, fd 1 closed before Python starts) also
returns 1 quietly. Caller-provided replacement streams need only support
write(); their flush() and cleanup close() methods are used when available.
Writable stdout, including a redirected output file, retains the normal JSON
format and command exit status. Help/version output is unchanged.
agent-contrib --help and agent-contrib COMMAND --help describe each command
and option of the installed version. Exit status is 0 when a command succeeds and
its gate passes, 1 when a gate is not passed, a read is incomplete or an error
occurs, and 2 for usage errors.
--report-budget before a GitHub-reading command reads GET rate_limit (which
does not consume the budget) before and after the command and adds
api_budget: both snapshots (limit, remaining, used, reset) and
used_during_command. Because other processes may share the token, that
number is an upper bound. It is null, with delta_unknown_reason, when a
snapshot failed, the reset window or limit changed, or the used counter
decreased; a negative difference is never reported. A snapshot is rejected
(null values with an error, never zero) unless its counters are non-negative
integers with used + remaining == limit. Command arguments are validated
before the first snapshot: malformed repository references, unreadable input
files and schema-invalid drift/pr-body/authorization-request contracts
cause no GitHub read.
verify still reports schema and evidence failures in its normal result envelope;
optional budget reads do not turn those failures into success. --min-remaining N refuses to start (error rate_limit_budget, exit 1)
when the budget is unknown or below N, before any command read. The CLI does not
estimate a command's cost; choose N yourself. Offline commands reject the flag
(see "Global options on offline commands").
Without the flag, no rate-limit read happens and output is unchanged.
--cache before a command reuses file contents that GitHub returned for a
pinned commit, so repeated discover, inspect, prepare, verify and
drift runs skip re-reading the same instruction and policy files. The cache is
content-addressed and self-verifying, and it never changes output, gates or exit
status.
- Only
repos/{owner}/{repo}/contents/{path}?ref={40-hex commit}reads are served from it, and only for a repository whose live metadata earlier in the same command said both"private": falseand"visibility": "public". Private, internal or unobserved repositories always read live. - The expected Git blob SHA for the path comes from the live recursive tree read at that commit. Trees, metadata, issues, PRs, labels, permissions, branch heads, comparisons, checks and every other read are never cached.
- Entries are the decoded file bytes, named by blob SHA. A stored response must
carry that SHA and hash to it. Every hit recomputes the Git blob hash
(SHA-1 of
blob <length>\0<bytes>) and must match the live tree; a mismatching, oversized, symlinked, foreign-owned or non-regular entry (such as a FIFO, opened nonblocking) is deleted and read live. Identical files at different paths share one entry. - The directory is
$XDG_CACHE_HOME/agent-contrib(an absoluteXDG_CACHE_HOME), otherwise~/.cache/agent-contrib.- It is opened once by walking every component of the absolute path from
/without following symlinks: a symlink anywhere in the path disables the cache. Ancestors must already exist; only the cache directory itself is created (0700), after every ancestor passed. - The configured path is read lexically.
os.path.abspathcollapses..before the walk, soa/link/../cmeansa/c, even where a shell followinglinkwould land elsewhere. - Every ancestor must be owned by root or by you, and not group- or
other-writable. The only exception is a root-owned sticky directory, such
as
/tmp. Ancestors you own must carry no POSIX ACL. - The cache directory itself must be yours, mode exactly 0700, with no POSIX ACL.
- Any doubt disables the cache for that run; it is never an error and, by
design, prints no diagnostic, so output stays identical. If warm runs never
get faster, check these rules for your
XDG_CACHE_HOME. Platforms withoutos.listxattr, where ACLs cannot be ruled out, disable it too. - Default Ubuntu homes disable the cache: umask 002 makes
~/.cache0775. To enable it, pointXDG_CACHE_HOMEat a private 0700 directory, for examplemkdir -m 700 ~/.agent-contrib-cacheand thenXDG_CACHE_HOME=~/.agent-contrib-cache agent-contrib --cache …. Every ancestor of that directory must meet the rules above. - Every read, write, rename, scan and delete then works relative to that open directory, so renaming or replacing its name afterwards cannot redirect them.
- Writes are atomic and private (0600), and eviction touches only valid entry names and the CLI's own temporary files. A temporary file older than one hour, left by a crashed store, is removed. Younger ones count toward the total but are never deleted, since they may belong to a concurrent store.
- Without POSIX ownership checks or
dir_fdsupport, the cache is bypassed.
- It is opened once by walking every component of the absolute path from
- Entries are at most 8 MiB. After each store the total is brought under 256 MiB by deleting the oldest entries. Entries another invocation removes meanwhile are skipped, so concurrent commands may exceed the total briefly, but once they finish the last eviction pass has seen every stored entry. Delete the directory to clear it; any cache error falls back to the live read.
--report-budgetcounts only the live reads that remain. The cache is active for one invocation; library callers never inherit it.- Offline commands reject
--cache, as they reject--report-budget.
Put the global option before the subcommand:
agent-contrib --format text discover owner/repo
agent-contrib --format text verify task.json
agent-contrib --format json inspect 'owner/repo#123'Text changes presentation only, never scan depth, authorization or exit status.
It is a summary: discovery shows at most 20 issues per repository, each with its
overlapping-PR count, whether it is excluded and (with --signals) its score,
followed by overlapping and excluded counts over all issues; lists show at
most 50 entries and long remote lines are shortened. Omitted list entries are
counted. inspect --ownership and ownership list the ownership report's
possible prior fixes, downstream references, rejected approaches, open linked
PRs, claims (author association and age) and assignments, say whether the report
is complete and list its errors. Discovery adds one line each for --responsiveness and --repo-dir local
work when requested. Multi-repository discovery includes every repository's completeness and
errors. Verification shows the gates and blockers. With an explicit
verify --stage X, text starts with stage X, its exit gate and its blockers;
the other stages appear only as blocker counts, because they do not decide that
exit. When schema validation fails before any stage is evaluated, the stage
line reads not evaluated; see Errors and the schema errors follow. JSON still
contains every stage. scope-check lists each violating path
and rule, warnings and errors. drift lists the reasons that set drifted, then
informational changes (an advanced default branch, PRs no longer open) apart.
authorization-request shows whether the request is ready for issuance, that it
is unsigned and grants nothing, the contract hash, and each preflight error and
unresolved field. instructions prints a version line and then the
workflow Markdown unchanged, so it can be read without unwrapping JSON. Other
commands show top-level scalar fields; use JSON for full nested results, instructions and provenance.
Remote text is sanitized to a single line so it cannot add fake gate headings.
Default JSON bytes are unchanged. Parse-time usage errors still use structured
JSON when argument parsing has not produced a valid format selection.
A global option (--format, --report-budget, --min-remaining, --cache) placed after
the subcommand is still a usage error (exit 2); its message says to move the
option before the subcommand.
instructions, schema, skill, lint, scope-check, evidence init, init, jar-check, dependencies, impact, session and card
never read GitHub. On them --report-budget and --cache are both usage errors
(exit 2, "--cache applies only to commands that read GitHub", and likewise for
--report-budget), checked before any file is read; --min-remaining already
requires --report-budget. --format applies to every command.
The text option uses the same stdout handling as JSON. Closed output returns 1 quietly; writable output retains the command's normal exit status.
tipjar dependencies PATH [--installed] [--output NEW_JSON_FILE] (also available as
agent-contrib dependencies) reads explicit GitHub
dependency URLs from local npm manifests/lockfiles and Python requirements.
Explicit --installed also reads bounded existing node_modules repository
metadata for at most 100 direct registry packages, preserving observed versions
and refusing symlinks. It
never runs project code or requests registry metadata. --format text goes
before the command. Malformed input, duplicate JSON keys, unsafe filesystem
paths and unknown npm lock versions fail closed. Successful partial resolution
reports exit 0 and distinguish complete from resolution_complete. Repository
candidates grant no approval or execution/publication permission.
See dependency give-back workflow for formats, provenance,
limits and the explicit report-to-discover step. schema dependencies exposes
the packaged output contract.
tipjar init --status welcome --output .tipjar.json
# Or choose --status closed explicitly when declining agent work.
# Edit the template to describe your actual wanted work and boundaries, then:
tipjar jar-check .tipjar.json
tipjar --format text jar-check .tipjar.json
tipjar schema init
tipjar schema jar-check
# Equivalent through the original command name:
agent-contrib init --status closed --output closed-example.json
agent-contrib jar-check closed-example.jsoninit requires both --status welcome|closed and --output FILE. It creates only
that explicit local path, refusing existing files and symlinks. Templates use the
packaged manifest parser before writing and include editable wanted/boundary text.
The result contains output, state, the exact file byte sha256, notice and
next_steps. Replace the marked wanted placeholder and review the boundaries
before adoption; structurally valid text is not proof of your policy's intent.
jar-check FILE reads at most 16,385 bytes from one regular local file (symlinks
and nonregular files are refused), then uses the same strict packaged parser as
remote jar inspection. Success reports path, state, sha256, valid: true
and notice; it does not print the manifest text or modify the file. Invalid,
unsupported, oversized, non-UTF-8 and unreadable files return exit 1 with the
standard structured error envelope and no input-content echo. The hash covers
original bytes, including formatting and line endings. Validation is local: it
does not establish remote provenance, policy approval or any authorization.
Both commands work without GitHub authentication, Git or gh. GitHub-only global
--cache, --report-budget and --min-remaining options are refused with exit 2
before touching a file. --format text is supported before either command.
The agent-contrib alias exposes the same commands. See the
maintainer two-minute setup for adoption
and old-client limitations. No file is published automatically.
agent-contrib jar acme/project
agent-contrib --format text jar acme/project
agent-contrib schema jar
# Equivalent through the candidate alias:
tipjar jar acme/projectThe command inspects the named repository itself, even when its issue tracker is
disabled. It never resolves a parent or inherits an owner jar. It pins the actual
default-branch commit and a complete tree, and checks exact file bytes against
the tree's Git blob identity. No issue, label or pull-request endpoints are read.
There are at most four jar gh api invocations, without application retries;
a transient failure immediately reports unknown. GitHub CLI may follow internal
HTTP redirects, so this is not a cap on raw HTTP GETs. The reader rejects changed
canonical repository identities and never follows application-returned URLs.
With --report-budget, the before/after rate-limit invocations and their existing
retries are additional to the four-invocation jar budget.
This command stays fresh even when --cache is selected.
Malformed repository arguments are usage errors (exit 2) before any GitHub read, including budget instrumentation. Existing commands keep their argument-exit behavior.
Current output 4 uses invitation/2: .tipjar.json takes precedence at the pinned
commit; only when absent does the reader inspect root README.md for the exact
repository-scoped official prefix. Invalid manifests never fall back to README.
Reports include repository_id, tree_sha, manifest_present, source_kind
and nullable badge; path, blob_sha and sha256 identify the actual file.
README reports keep manifest: null. Historical output 1–3 remains unchanged.
See README invitations. States:
| State | Meaning | Exit |
|---|---|---|
welcome |
Valid source invitation; policy review still required | 0 |
closed |
Valid opt-out declaration | 0 |
undeclared |
Complete source has no recognized invitation | 0 |
unknown |
Read, identity, file-kind or validation failure | 1 |
Exit 0 reports a complete observation; it grants no permission. On early failure, unavailable branch/commit/blob/digest fields remain null. The exact byte SHA-256 is exposed only after path, file kind, base64, supplied sizes and Git blob identity are verified; parse failures retain that verified digest. A readable undeclared README legitimately has non-null digests. A digest authenticates no consent. Text output is abridged and sanitized; canonical JSON retains validated untrusted text.
discover, inspect, audit and prepare include the actual issue source's
pinned declaration. Current public reads and task 0.3 use invitation/2. Published
task 0.1/0.2 preparation and verification retain manifest-only invitation/1 and
historical inventories, with no additional README intent read or blocker.
Applicable closed/unknown declarations still block their routes.
A welcome never grants issue approval or execution/publication authority.
Live gates reconstruct the jar at the contract's source commit: added, removed
or byte-changed jars require refreshing and reviewing the contract. Branch
advancement alone does not change an unchanged declaration. Instruction baseline
hashes and task/evidence/host schemas keep their existing meanings.
Find declared welcomes among names obtained from dependencies, bookmarks or a list you supply:
agent-contrib discover acme/one acme/two --welcomed-only --limit 10
agent-contrib discover --repositories-file repos.txt --welcomed-onlyThe filter runs after full scans/ranking and before display limits. Excluded sources retain diagnostic states and scan provenance; unknown reads make the run incomplete. Complete undeclared or closed sources may yield an empty selection successfully. Default explicit discovery keeps no-jar candidates; closed/unknown raw findings are diagnostic and excluded from combined candidates. Selection means “declared welcome; policy review required.” No score, approval or overlap gate changes. There is no global jar index or owner-jar inheritance.
Current public policy inventories and task 0.3 use format 4, including a reserved
tipjar entry with the pinned invitation source kind, path, blob and digest,
manifest-presence binding, and validated manifest wanted/boundaries when present.
These bindings are independent of prose-file limits. Published task 0.1/0.2 retain
manifest-only format-3 inventory semantics. Ordinary source and owner prose
remain binding; unresolved links and refusals cannot be waived by a welcome. Historical inventory 1/2 hashes
remain recognizable in drift reports, but do not attest jar review. Standalone jar ignores --cache. Integrated jar reads use
single-attempt requests and live tree checks; an opt-in cached content response
is accepted only after its bytes match that pinned tree blob. Policy reads retain
their own existing bounded budget in addition to jar reads.
Caller-supplied report dictionaries are untrusted data. Public policy inventory
builders reread the source jar at the requested commit (up to four additional
gh api invocations). Live guards reread the current default-branch declaration
(up to four) and the task's historical declaration (up to four), in addition to
inspection and other command reads. The standalone four-invocation jar budget
is not a bound on an entire integrated command. Failed or inconsistent pins
remain blockers. Each read resolves the commit object and queries its canonical
tree SHA; explicit historical commits must match the returned commit identity.
Supplying repository metadata saves one invocation, but never skips commit or
tree validation. A jar absent from the complete tree saves the content read.
The library's core.prepare(inspected) is an offline pending-draft transformation.
It validates complete report shape, state/digest consistency and source pin
identity, but cannot authenticate a well-formed caller-fabricated inspection.
Direct lifecycle preparation has the same jar-data boundary, alongside its
existing schema 0.2 identity reads. Use actual inspection data and fresh verify
for enforcement; a shaped pending draft grants no action readiness or authority.
These checks do not sandbox a native caller that replaces the GitHub client or
changes the library itself.
A repository without a jar is still manually targetable for assessment:
agent-contrib discover acme/project --signals
agent-contrib inspect 'acme/project#12' --ownership
agent-contrib prepare 'acme/project#12' --output task.json
agent-contrib lint task.json
agent-contrib verify task.jsonPreparation produces a pending draft. Read all ordinary contribution policies, including refusals and unresolved requirements; wanted work is a preference, and boundaries remain untrusted requirements to review. Neither welcome nor absence changes source approval, local execution permission or publication authority. Schema 0.1 upstream mode still requires matching label approval; its existing fork route requires an available immediate GitHub fork and actual local execution authorization, and fork completion grants no upstream authority. Schema 0.2 still requires actual admin/maintain authority and host mandates. For an explicitly selected no-jar repository, use the separately reviewed task 0.3 external route below; absence of a jar supplies no approval or authority.
Task schema 0.3 explicitly supports a reviewed draft from a personal immediate fork to a human-selected public upstream issue, with separate implementation and exact-result publication assertions. Welcome and undeclared sources both require complete source/fork policy accounting; no invitation or approval is invented. See the complete external-tip workflow for commands, records, pause points and limits. Evidence remains schema 0.2; new reports use output/4. Existing 0.1/0.2 authority is unchanged.
tipjar authorization-request task.json --repo-dir CHECKOUT
tipjar authorization-request task.json --repo-dir CHECKOUT --policy-assessment assessment.json --policy-ledger policy.md
tipjar authorization-request task.json --stage draft --repo-dir CHECKOUT --evidence evidence.json --publication-payload payload.json --policy-assessment assessment.json --policy-ledger policy.md
tipjar drift task.json
tipjar pr-body task.json --repo-dir CHECKOUT --evidence evidence.json --output body.mdFor task 0.3, authorization-request emits
kind: agent-contrib/external-authorization-request, request version 0.1: a
review view with issued: false and ready_for_issuance: false always. It
contains no fillable consent record. Neither this envelope nor bindings can
serve as an external-context assertion. A zero exit means live view reads
completed, including when authorization or evidence remains blocked. Exit 1
means incomplete reads or invalid input; unsupported options give exit 2 before
GitHub/budget reads. Task 0.2 retains its original request shape, readiness
semantics and default behavior; the new options are refused for it.
The default view is implementation. The draft view requires checkout, evidence
0.2 and exact draft-payload 0.1. Optional policy assessment JSON is shape-checked
and canonically hashed; the original ledger is read as bounded regular bytes
(up to 8 MiB) and hashed without normalization. Neither becomes “policy clear.”
Absent assessment/ledger hashes remain null and unresolved. Inputs named with
--repo-dir must be outside that checkout. Source/fork inventory digests, task,
actor, refs and invitation basis are shown; a draft view adds evidence, review,
payload, head/tree and current base-tip bindings. A no-jar acknowledgement is a
required human decision, never an emitted approval. All inventory and blocker
text remains untrusted. The host must render its own full snapshot, issue actual
assertions, refresh applicable-target observations and retain real decision
events. No native human authorization issuer is implemented.
Task 0.3 drift defaults to the task's stored source inventory digest. An explicit
--policy-sha256 must match that binding. Source identity, issue, instructions,
label policy, jar state/exact byte hash and current inventory comparisons remain
report-only. A moved source tip alone is informational. tipjar.reviewed holds
the jar binding from the task; baseline is a reconstructed observation, which
need not reproduce reviewed bytes. external.fork_policy reports the current
fork digest with null expected/changed values because the task contains no fork
baseline; compare with the retained host assertion. Applicable external links
must still be reread by host tools. An unchanged report grants no authority and
does not establish policy compliance or fresh host observations.
Task 0.3 pr-body consumes evidence 0.2, renders self-attested claims and
pending host-context gates, points to source templates and describes bounded
external overlap/history checks accurately. It does not read a host context or
assert publication readiness. --closes is refused with exit 2 before API reads;
use the default Refs body. It preserves exclusive creation and the returned
sha256 hashes the exact UTF-8 body bytes. Review/merge required template text
before fixing the exact draft-payload strings. Rendering publishes nothing.
These variants belong to active output schema 3; frozen output/1 and output/2
resources are unchanged. Export with tipjar schema authorization-request,
tipjar schema drift and tipjar schema pr-body. See the giver journey
for human stops and external tips for binding requirements.
agent-contrib session DISCOVERY_JSON --max-tasks N --minutes M --output FILE creates
a proposed shortlist with per-task stopping caps. N is 1–20, M is 1–1440.
Input is bounded to 8 MiB; no network or execution occurs, and actions remain
unauthorized. The output file must not exist. --format text precedes session.
See the 60-minute example and host workflow.
tipjar find
tipjar find --owner acme
agent-contrib --format text find --owner acme
agent-contrib schema findExactly two sequential authenticated page-1 searches use
filename:.tipjar.json path:/ and "tipjar:welcome:v1" filename:README.md path:/,
each optionally scoped with user:OWNER, per_page=5 and page=1. OWNER accepts the GitHub login grammar (1–39 ASCII letters, digits and
hyphens, starting with a letter or digit), never arbitrary search qualifiers.
There is no cursor, backfill, fallback query, sort promise or fair rotation.
Each distinct eligible hit is checked against fresh repository/owner identities
and public active metadata, then the pinned default-branch jar reader. Indexed
blob SHAs are candidate hints: stale hits may now be closed or undeclared. A
complete welcome gets a second metadata check; identity/default-branch changes
make it unknown, and known private/archived/disabled targets are excluded. Known
private names, ids and manifests are suppressed. A fork invites only itself.
Only disposition: welcome is selectable; ordinary policy review and separate
execution/publication authority still apply. There is no automatic issue proposal.
Canonical current output is find-jars-report/2 in output schema 4.
observations contains {repository, repository_id, disposition, reason, verified_at, jar}. Jar reports use the versioned invitation source union. Reasons are fixed
codes; invalid identities and withheld private data are null. requests.search
and requests.core count command gh invocations, excluding instrumentation.
searches contains two records with query, page, per_page, total_count,
incomplete_results, returned_count, truncated, short_page and fixed error codes.
Unavailable values are null. Failed searches retain verified findings from the
other query; cross-query paths for one validated repository share one inspection.
coverage.exhaustive is always false. Timestamps and pinned commits are
observations, not atomic or “live now” guarantees.
At most 52 command gh invocations (two searches and up to fifty core), sequential,
without application retries/sleeps/pagination; --report-budget adds two snapshots
with up to three invocations each (54 all-success, at most 58). These are not raw
HTTP counts: gh may internally follow redirects, which are not instrumented.
Application code never follows returned URLs or adopts renamed/transferred
identities. Each whole invocation retains the 30-second parent timeout and
8 MiB response cap: summed command invocation timeouts are at most 26 minutes,
excluding processing and optional instrumentation. Find reads remain uncached
even with --cache. Search has a separate, tighter quota; --min-remaining and
api_budget measure core only, never search availability. Authentication, quota
or query errors are visible failures, without fallback or invented results.
Exit 0 means this bounded batch is complete, including empty selection, known
exclusions or intentional truncation. Unknowns, malformed search envelopes,
short pages, server incompleteness or read errors give exit 1 while retaining
other verified findings. Invalid usage gives exit 2 before budget reads. A
complete batch is never a global census. Search omits many repositories,
especially forks; indexing may lag. No adoption is established and there is no
curated fallback list. Until indexed jars exist, explicitly name projects for
existing assessment commands; absence grants nothing. Direct tipjar jar owner/repo works without indexing. A selected outside contribution continues
through the reviewed task 0.3 external-tip route.
agent-contrib badge owner/repo prints output-4 repository, exact README snippet
and placement/precedence guidance. agent-contrib --format text badge owner/repo
prints the snippet for pasting at byte zero of README.md with its blank line.
Offline; no file write or GitHub request. See README invitations.
The current find output is find-jars-report/2: exactly two sequential page-1
searches, each at most five hits, followed by one shared pass over at most ten
repositories. The searches records retain independent failures and counts.
At most 52 gh invocations, or 58 with budget instrumentation; no retry/backfill.
Output 4 includes actual README invitation provenance; historical output 1–3 is
unchanged. Task 0.3 now requires inventory format 4 and fresh repreparation of old
unpublished drafts. Published task 0.1/0.2 behavior is unchanged.