Skip to content

crysk status JSON

The output of crysk status --json, for agents and scripts that follow a pull request review.

View as Markdownllms.txt

crysk status reads a pull request’s crysk check, findings and replies through the GitHub CLI (gh), and says what to do next. It is read-only: it writes nothing to GitHub.

Terminal window
npx -y crysk status --pr 12 --json
npx -y crysk status --pr 12 --json --wait
Flag Effect
--pr <n> Required. The pull request number.
--json One JSON object on stdout and nothing else. Without it, a few lines go to stderr.
--wait Polls every 15 seconds until a review that is running or about to start settles, then prints.

--wait keeps polling while a review is in flight, while no crysk check exists on the head within 180 seconds of first seeing it, and for 180 seconds after a /crysk review, /crysk review --full or /crysk recheck comment. After 90 minutes it stops with an error. A failed read during a wait is retried twice.

Code Meaning
0 Status printed. A red check still exits 0: read next_action, not the exit code.
1 A read from GitHub failed, or --wait timed out. Nothing is printed on stdout.
2 Usage error, such as a missing --pr.

The schema id is pr-hero.status/v1. The name predates Crysk and stays stable.

Field Type Meaning
schema string Always pr-hero.status/v1.
pr number Pull request number.
head string Full commit SHA of the pull request head.
gate.state enum State of the crysk check on the head.
gate.description string | null The check’s description.
gate.target_url string | null Link of the check.
gate.created_at string | null When the check was set.
gate.pending_in_flight boolean A pending check that a run still holds (under 90 minutes old).
gate.override.active boolean The check is green because of /crysk override.
gate.override.by string | null Login that overrode it.
report.head string | null Commit the latest review summary was written for.
report.complete boolean | null false when some reviewers failed.
report.reviews number | null Reviews run on this pull request.
report.outcome_code string | null CRYSK-* code of the latest outcome comment. See error codes.
findings array Every posted finding, on every head.
unresolved_blocking number Blocking findings still counted by the check.
next_action enum What to do next.
reason string One sentence explaining next_action.

Each item of findings:

Field Type Meaning
id string | null Finding id such as R001. null when the summary has no row for it.
path, line string, number Where it was posted.
head string | null Commit it was posted on.
comment_id number | null Comment to reply to. null for a finding that lives only in the summary.
channel inline | outside A review thread, or a top-level comment.
severity string | null BLOCKER, CRITICAL, WARNING or SUGGESTION.
tier enum See below.
blocking boolean true for every tier except advisory.
live_on_head boolean Still applies to the current head.
triage object | null Newest reply that counts: tag, verdict, actor (agent or human), head.
ci_verdict enum | null upheld, rejected or inconclusive: the CI ruling on a dismissed reply.
Field Values
gate.state success, failure, error, pending, none (no crysk check on the head). Any other state reads as error.
tier blocking, advisory, unrecoverable (the tier could not be read; counts as blocking).
triage.tag applied, dismissed, deferred, misclassified.
triage.verdict upheld, rejected, inconclusive, or null when none was given.
next_action See below.
next_action What to do
wait A review is running. Wait, or poll with --wait.
review No review has read this head, or it did not finish. Comment /crysk review.
triage Reply to the findings that have no reply yet.
fix Every blocking finding is answered and one is applied. Push the fix.
recheck A blocking finding is dismissed without a CI ruling. Comment /crysk recheck.
override-or-fix The check is red and nothing clears it without a change. Push a fix, or comment /crysk override.
done Nothing is owed on this head.

Values are an example.

{
"schema": "pr-hero.status/v1",
"pr": 12,
"head": "9f2c1d8e0b7a4c63a1e5d7b2f48c90ab3e6d1f57",
"gate": {
"state": "failure",
"description": "crysk: 1 blocking finding(s) — fix and push, or /crysk override",
"target_url": "https://github.com/acme/app/actions/runs/1234567890",
"created_at": "2026-11-18T10:42:07Z",
"pending_in_flight": false,
"override": { "active": false, "by": null }
},
"report": {
"head": "9f2c1d8e0b7a4c63a1e5d7b2f48c90ab3e6d1f57",
"complete": true,
"reviews": 1,
"outcome_code": null
},
"findings": [
{
"id": "R001",
"path": "src/billing/refund.ts",
"line": 48,
"head": "9f2c1d8e0b7a4c63a1e5d7b2f48c90ab3e6d1f57",
"comment_id": 2041873650,
"channel": "inline",
"severity": "CRITICAL",
"tier": "blocking",
"blocking": true,
"live_on_head": true,
"triage": null,
"ci_verdict": null
}
],
"unresolved_blocking": 1,
"next_action": "triage",
"reason": "1 live blocking finding(s) on this head have no triage reply that answers this review; triage them first."
}