Contributions
A contribution is one open change (today, a pull request) as Vagaris sees it: who owns it, which mission it
serves, where it stands in plain words, what its required checks say at its exact head, and whether Change Review
has looked at that head. vagaris contributions reads that picture; it never computes it. The state is the
server's, so the CLI, the API and the web app show the same thing.
vagaris contributions list
vagaris contributions list --state needs_input
vagaris contributions list --repo vagarylabs/vagaris --json
vagaris contributions show vagarylabs/vagaris#642
vagaris contributions show vagaris#642
vagaris contributions coverage
list and show cover every project in your organization that you may read, so one list shows changes across all
of your repositories; a repository you cannot read is left out rather than failing the whole list. --project-id
narrows either to one project, and --repo <owner>/<name> to one repository.
coverage is reported per project. Its project comes from --project-id, the environment (VAGARY_PROJECT), the
nearest vagary.json, or the project linked to your context profile (vagaris context link), in that order. With
none, it refuses (exit 13) and says how to give one.
Plain states
State (--state) | Shown as | Means |
|---|---|---|
needs_input | Needs your input | A draft, changes were requested, it conflicts with its base, a required check failed, or a newer commit replaced this head |
combining_changes | Combining changes | It is being combined with other changes before landing |
verifying | Verifying | Its checks are running, have not been read, or have passed. Passed checks are an observation, recorded in the qualification record below; they never make a change ready to release on their own |
merged / closed | Merged / Closed | It landed, or was closed without landing |
Three more states have labels, but the server does not derive them today (the read slice's state type excludes them,
server/src/services/integration/plain-state.ts:8):
ready_to_release(Ready to release) needs the release owner's artifact and authorization proof for the head. This read does not have that proof, so it never shows the state, even when every required check passed (plain-state.ts:32-35).--statedoes not list it; the CLI still accepts it from older callers.waiting_for_capacity(Waiting for capacity) andrepairing(Repairing) are not derived yet.
The CLI keeps all three labels so that a server which sends them is shown correctly.
A state the CLI does not recognise is shown as Unknown, never as a guess. The reason line (for example "1 required check failed") is the server's sentence.
Qualification record
qualification is the latest record for the contribution's exact head. Today it is read from the required
checks at that head (source: github_check_runs); a record from the Evidence Plane carries a record_id,
tree_digest and base_sha once that reader is live. An incomplete read is unknown, never passed. An
Evidence Plane record that exists but is not currently valid (admissible: false) is shown as "not admissible", and
its verdict is never shown.
"not read yet" means there is no record at all, which is not the same as "no checks".
Change Review signal
change_review is the latest Change Review recorded for the same head: reviewed (with its risk class and number
of findings), incomplete (with the reasons), or unavailable. A review of an older head is not shown.
Output and exit codes
--json prints the server's response unchanged. show <owner>/<repo>#<n> finds the contribution through the list
(following pages), then reads its detail, which adds every check and the merge record.
| Exit | When |
|---|---|
5 | No such contribution in this project, or one you cannot see |
3 | Not signed in, or not allowed to read this project or repository |
11 | The contribution registry is unavailable |
13 | A bad --state, --repo, --limit or reference, or coverage with no project |
An empty list means the registry holds no open contributions you can read. contributions coverage tells
"not reconciled yet" apart from "none open".