Every operation in the Proofline Review API 9.1.0, generated from the same OpenAPI document the SDKs are built from.
All paths are under /api/v1/organizations/{org_id} and take a token with the scope shown. The full document is at /docs/openapi.json.
Each example reads the token, the organization and every other required parameter from an environment variable named after it, such as REVIEW_ID for review_id. A patch review reads its patch from change.patch, and a coverage upload reads its report from coverage/lcov.info.
Reviews#
Get agent session#
GET /api/v1/organizations/{org_id}/agent-sessions/{session_id}
Get a coding-agent session
Returns a coding-agent session's latest status, its vendor link, its untrusted vendor summary and the pull request GitHub confirmed it opened in the target repository.
- Scope:
agent_sessions:start - TypeScript:
client.getAgentSession() - Python:
client.get_agent_session()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
session_id | path | string (uuid) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | AgentSession | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.getAgentSession({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
session_id: process.env.SESSION_ID!,
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.get_agent_session(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["SESSION_ID"]),
)
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/agent-sessions/$SESSION_ID" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Export reviews#
GET /api/v1/organizations/{org_id}/exports/{dataset}
Export review metadata
Returns one page of an export dataset (reviews, finding_outcomes, finding_validations, spend or findings) for an RFC3339 window of at most 31 days, as NDJSON by default or CSV. Each dataset has its own row version, which the X-Proofline-Export-Version response header states on every page, including a page with no rows. Rows respect the token's repository restriction.
- Scope:
analytics:read - TypeScript:
client.exportReviews() - Python:
client.export_reviews()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
dataset | path | Dataset | yes | |
org_id | path | string (uuid) | yes | |
cursor | query | string or null | no | Treat this signed continuation as opaque. Retain the same window and grouping. |
format | query | string or null | no | ndjson (default) or csv. Each CSV page repeats its column header. |
from | query | string | yes | Inclusive RFC3339 creation, debit or first-publication time. At most 31 days. |
group_by | query | FindingOutcomesGroupBy or null | no | finding_outcomes only; defaults to repository. |
to | query | string | yes | Exclusive RFC3339 creation, debit or first-publication time. |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/x-ndjson or text/csv | one ExportRow per row | At most 5000 review, finding, validation or daily spend rows, or 1000 finding-outcome groups. NDJSON uses the declared dataset row per line; CSV uses the same named columns, RFC4180 quoting and formula-safe text. Nested count and reference objects are JSON text in CSV cells. The settled horizon and optional opaque continuation are response headers. |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
200 response headers:
| Header | Type | Required | Description |
|---|---|---|---|
X-Proofline-Export-Next-Cursor | string | no | Opaque signed continuation. Absent on the last page. |
X-Proofline-Export-Settled-Until | string | yes | Frozen RFC3339 horizon, five minutes before the first request. |
X-Proofline-Export-Version | string | yes | The row version of the selected dataset, sent on every page, including a page with no rows: reviews 1, finding_outcomes 1, finding_validations 2, spend 1, findings 2. |
The examples read one page. Analytics exports follows its cursor to collect every page of the window.
import { type ExportParameters, ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const page = await client.exportReviews({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
dataset: process.env.DATASET! as ExportParameters["path"]["dataset"],
},
query: { from: process.env.FROM!, to: process.env.TO! },
});
for (const row of page.rows) console.log(JSON.stringify(row));
console.error(`version ${page.version}, settled until ${page.settledUntil}`);
if (page.nextCursor !== null) console.error(`next cursor ${page.nextCursor}`);import json
import os
import sys
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
page = client.export_reviews(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
os.environ["DATASET"],
from_time=os.environ["FROM"],
to_time=os.environ["TO"],
)
for row in page.rows:
print(json.dumps(row))
print(f"version {page.version}, settled until {page.settled_until}", file=sys.stderr)
if page.next_cursor is not None:
print(f"next cursor {page.next_cursor}", file=sys.stderr)curl -sS --fail-with-body -G "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/exports/$DATASET" \
-H "Authorization: Bearer $PROOFLINE_TOKEN" \
-D /dev/stderr \
--data-urlencode "from=$FROM" \
--data-urlencode "to=$TO"List repositories#
GET /api/v1/organizations/{org_id}/repository-names
List repository names
Returns the ID and full name of each connected repository inside the token's repository restriction, including repositories with no review, so a client can resolve owner/name to an ID.
- Scope:
reviews:read - TypeScript:
client.listRepositories() - Python:
client.list_repositories()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | RepositoryNames | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.listRepositories({
path: { org_id: process.env.PROOFLINE_ORGANIZATION_ID! },
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.list_repositories(UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]))
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/repository-names" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"List reviews#
GET /api/v1/organizations/{org_id}/reviews
List reviews
Lists the latest run of each pull request in the organization, with filters and cursor pagination. A search equal to a full head commit SHA returns the latest run at that commit instead.
- Scope:
reviews:read - TypeScript:
client.listReviews() - Python:
client.list_reviews()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
attention | query | string or null | no | needed lists terminal reviews of open pull requests with active findings, FAILED/INCOMPLETE/STOPPED execution, or an earlier reviewed commit. |
audits | query | string or null | no | only lists repository audits; none leaves them out, so kind=REVISION_SCAN&audits=none lists plain revision scans. |
author | query | string or null | no | mine for the caller's own pull requests, or a GitHub user ID. mine needs a person's sign-in or token. |
cursor | query | string or null | no | |
environment | query | string (uuid) or null | no | |
findings | query | string or null | no | present lists reviews with at least one finding; none lists reviews with no finding. |
kind | query | string or null | no | One review kind: PULL_REQUEST, DEPLOYMENT, PATCH, COMMIT, FILES, MERGE_GROUP or REVISION_SCAN. |
limit | query | integer (int64) or null | no | |
query | query | string or null | no | Qualifiers, quoted values, AND/OR, groups and minus exclusions. |
repository | query | string (uuid) or null | no | |
search | query | string or null | no | |
status | query | string or null | no | One review status: PENDING, RUNNING, COMPLETED, INCOMPLETE, FAILED, SUPERSEDED, STOPPED or EXCLUDED. |
org_id | path | string (uuid) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | ReviewPage | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.listReviews({
path: { org_id: process.env.PROOFLINE_ORGANIZATION_ID! },
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.list_reviews(UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]))
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/reviews" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Get review#
GET /api/v1/organizations/{org_id}/reviews/{review_id}
Get a review
Returns a review with its subjects, assessments and open items. An incomplete assessment reports its gaps; an empty finding list from it says nothing about the change.
- Scope:
reviews:read - TypeScript:
client.getReview() - Python:
client.get_review()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
review_id | path | string (uuid) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | CustomerReviewDetail | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.getReview({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
review_id: process.env.REVIEW_ID!,
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.get_review(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["REVIEW_ID"]),
)
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/reviews/$REVIEW_ID" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Get assessment#
GET /api/v1/organizations/{org_id}/reviews/{review_id}/assessments/{assessment_id}
Get an assessment
Returns one assessment of a review with its decision, checks and findings.
- Scope:
findings:read - TypeScript:
client.getAssessment() - Python:
client.get_assessment()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
assessment_id | path | string (uuid) | yes | |
org_id | path | string (uuid) | yes | |
review_id | path | string (uuid) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | CustomerAssessmentDetail | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.getAssessment({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
review_id: process.env.REVIEW_ID!,
assessment_id: process.env.ASSESSMENT_ID!,
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.get_assessment(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["REVIEW_ID"]),
UUID(os.environ["ASSESSMENT_ID"]),
)
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/reviews/$REVIEW_ID/assessments/$ASSESSMENT_ID" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Rerun review#
POST /api/v1/organizations/{org_id}/reviews/{review_id}/rerun
Rerun a review
Creates a new run of the review's original immutable code subject and leaves earlier runs unchanged. Local patch, commit, named-file, merge-group and deployment reviews, repository audits and on-demand scans are not rerun and return 400. Requires live GitHub write access; a repeated request can create another run, so clients make one attempt.
- Scope:
reviews:rerun - TypeScript:
client.rerunReview() - Python:
client.rerun_review()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
review_id | path | string (uuid) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | RerunResponse | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.rerunReview({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
review_id: process.env.REVIEW_ID!,
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.rerun_review(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["REVIEW_ID"]),
)
print(result)curl -sS --fail-with-body -X POST "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/reviews/$REVIEW_ID/rerun" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Get review routing#
GET /api/v1/organizations/{org_id}/reviews/{review_id}/routing
Get review routing
Returns the review's validated routing plan and recorded finding placements. It reports retained routing facts, not model output or a deployment recommendation.
- Scope:
reviews:read - TypeScript:
client.getReviewRouting() - Python:
client.get_review_routing()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
review_id | path | string (uuid) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | ReviewRoutingView | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.getReviewRouting({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
review_id: process.env.REVIEW_ID!,
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.get_review_routing(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["REVIEW_ID"]),
)
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/reviews/$REVIEW_ID/routing" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Stop review#
POST /api/v1/organizations/{org_id}/reviews/{review_id}/stop
Stop your local review
Stops the holder's own pending or running withheld patch, commit or named-file review. Requires a personal or CLI device token with live GitHub read access to the review's repository. Organization, CI job and MCP OAuth tokens cannot stop reviews. A repository audit is refused on this route: only a person with live GitHub write access stops it, through the audit stop, and no token or platform authority does. The stopped review retains its findings and exact code identity; requesting the same input returns that stopped review.
- Scope:
reviews:request - TypeScript:
client.stopReview() - Python:
client.stop_review()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
review_id | path | string (uuid) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | StopResponse | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.stopReview({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
review_id: process.env.REVIEW_ID!,
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.stop_review(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["REVIEW_ID"]),
)
print(result)curl -sS --fail-with-body -X POST "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/reviews/$REVIEW_ID/stop" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Get deployment review#
GET /api/v1/organizations/{org_id}/reviews/deployments/{public_key}
Get a deployment review
Returns the deployment review with the given public key.
- Scope:
reviews:read - TypeScript:
client.getDeploymentReview() - Python:
client.get_deployment_review()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
public_key | path | string | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | CustomerReviewDetail | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.getDeploymentReview({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
public_key: process.env.PUBLIC_KEY!,
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.get_deployment_review(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
os.environ["PUBLIC_KEY"],
)
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/reviews/deployments/$PUBLIC_KEY" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"List pull request reviews#
GET /api/v1/organizations/{org_id}/reviews/pr/{repository}/{pull_request_number}
List a pull request's review runs
Lists the review runs of one pull request, addressed by repository name and pull request number.
- Scope:
reviews:read - TypeScript:
client.listPullRequestReviews() - Python:
client.list_pull_request_reviews()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
pull_request_number | path | integer (int64) | yes | |
repository | path | string | yes | The repository's name without its owner, or a name it had before a rename. |
attention | query | string or null | no | needed lists terminal reviews of open pull requests with active findings, FAILED/INCOMPLETE/STOPPED execution, or an earlier reviewed commit. |
audits | query | string or null | no | only lists repository audits; none leaves them out, so kind=REVISION_SCAN&audits=none lists plain revision scans. |
author | query | string or null | no | mine for the caller's own pull requests, or a GitHub user ID. mine needs a person's sign-in or token. |
cursor | query | string or null | no | |
environment | query | string (uuid) or null | no | |
findings | query | string or null | no | present lists reviews with at least one finding; none lists reviews with no finding. |
kind | query | string or null | no | One review kind: PULL_REQUEST, DEPLOYMENT, PATCH, COMMIT, FILES, MERGE_GROUP or REVISION_SCAN. |
limit | query | integer (int64) or null | no | |
query | query | string or null | no | Qualifiers, quoted values, AND/OR, groups and minus exclusions. |
repository | query | string (uuid) or null | no | |
search | query | string or null | no | |
status | query | string or null | no | One review status: PENDING, RUNNING, COMPLETED, INCOMPLETE, FAILED, SUPERSEDED, STOPPED or EXCLUDED. |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | ReviewPage | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.listPullRequestReviews({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
repository: process.env.REPOSITORY!,
pull_request_number: Number(process.env.PULL_REQUEST_NUMBER),
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.list_pull_request_reviews(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
os.environ["REPOSITORY"],
int(os.environ["PULL_REQUEST_NUMBER"]),
)
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/reviews/pr/$REPOSITORY/$PULL_REQUEST_NUMBER" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Get pull request review#
GET /api/v1/organizations/{org_id}/reviews/pr/{repository}/{pull_request_number}/runs/{run_number}
Get a pull request review run
Returns one review run of a pull request, addressed by repository name, pull request number and run number.
- Scope:
reviews:read - TypeScript:
client.getPullRequestReview() - Python:
client.get_pull_request_review()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
pull_request_number | path | integer (int64) | yes | |
repository | path | string | yes | The repository's name without its owner, or a name it had before a rename. |
run_number | path | integer (int64) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | CustomerReviewDetail | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.getPullRequestReview({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
repository: process.env.REPOSITORY!,
pull_request_number: Number(process.env.PULL_REQUEST_NUMBER),
run_number: Number(process.env.RUN_NUMBER),
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.get_pull_request_review(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
os.environ["REPOSITORY"],
int(os.environ["PULL_REQUEST_NUMBER"]),
int(os.environ["RUN_NUMBER"]),
)
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/reviews/pr/$REPOSITORY/$PULL_REQUEST_NUMBER/runs/$RUN_NUMBER" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Findings#
Get finding#
GET /api/v1/organizations/{org_id}/findings/{finding_id}
Get a finding
Returns one finding with its evidence references, validation state and causal graph.
- Scope:
findings:read - TypeScript:
client.getFinding() - Python:
client.get_finding()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
finding_id | path | string (uuid) | yes | |
org_id | path | string (uuid) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | CustomerFinding | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.getFinding({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
finding_id: process.env.FINDING_ID!,
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.get_finding(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["FINDING_ID"]),
)
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/findings/$FINDING_ID" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Get agent session prompt#
GET /api/v1/organizations/{org_id}/findings/{finding_id}/agent-session-prompt
Preview a coding-agent session
Returns the exact prompt and target a coding-agent session on this pull request finding would send, with every protected value withheld, the prompt digest a start names, and the ID and vendor of each active connection that allowlists the target repository. Requires access to every repository in the review.
- Scope:
agent_sessions:start - TypeScript:
client.getAgentSessionPrompt() - Python:
client.get_agent_session_prompt()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
finding_id | path | string (uuid) | yes | |
org_id | path | string (uuid) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | AgentSessionPrompt | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.getAgentSessionPrompt({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
finding_id: process.env.FINDING_ID!,
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.get_agent_session_prompt(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["FINDING_ID"]),
)
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/findings/$FINDING_ID/agent-session-prompt" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Start agent session#
POST /api/v1/organizations/{org_id}/findings/{finding_id}/agent-sessions
Start a coding-agent session
Starts one Cursor Cloud Agents or Devin session on the finding's reviewed pull request through an administrator's vendor connection, with the prompt whose digest the request names. Only a personal token or a browser session may start one, and it requires live GitHub write access to the repository. A repeated request starts another session, up to 3 per finding at one commit.
- Scope:
agent_sessions:start - TypeScript:
client.startAgentSession() - Python:
client.start_agent_session()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
finding_id | path | string (uuid) | yes | |
org_id | path | string (uuid) | yes |
Request body: StartSession
| Status | Media type | Body | Description |
|---|---|---|---|
201 | application/json | AgentSession | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.startAgentSession(
{
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
finding_id: process.env.FINDING_ID!,
},
},
{ connection_id: process.env.CONNECTION_ID!, prompt_digest: process.env.PROMPT_DIGEST! },
);
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient, StartSession
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.start_agent_session(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["FINDING_ID"]),
body=StartSession(connection_id=os.environ["CONNECTION_ID"], prompt_digest=os.environ["PROMPT_DIGEST"]),
)
print(result)curl -sS --fail-with-body -X POST "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/findings/$FINDING_ID/agent-sessions" \
-H "Authorization: Bearer $PROOFLINE_TOKEN" \
-H "Content-Type: application/json" \
-d "$(jq -n --arg connection_id "$CONNECTION_ID" --arg prompt_digest "$PROMPT_DIGEST" '{"connection_id": $connection_id, "prompt_digest": $prompt_digest}')"Get finding fix prompt#
GET /api/v1/organizations/{org_id}/findings/{finding_id}/fix-prompt
Get a finding's fix prompt
Returns a bounded untrusted prompt for a recorded pull request finding, or an explicit refusal. Requires access to every repository in the review. Each code reference retains its recorded commit; private evidence and diagnostics are omitted.
- Scope:
findings:read - TypeScript:
client.getFindingFixPrompt() - Python:
client.get_finding_fix_prompt()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
finding_id | path | string (uuid) | yes | |
org_id | path | string (uuid) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | FindingFixPrompt | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.getFindingFixPrompt({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
finding_id: process.env.FINDING_ID!,
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.get_finding_fix_prompt(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["FINDING_ID"]),
)
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/findings/$FINDING_ID/fix-prompt" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Repositories#
Request commit review#
POST /api/v1/organizations/{org_id}/repositories/{repo_id}/commit-reviews
Review pushed commits
Reviews the change from an exact base commit to an exact head commit, both of which GitHub has in the repository, and returns those commits' review when one exists. The base must be an ancestor of the head. The review reads only those two commits, and is never posted to a pull request. Requires live GitHub read access; the same commits always return the same review.
- Scope:
reviews:request - TypeScript:
client.requestCommitReview() - Python:
client.request_commit_review()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
repo_id | path | string (uuid) | yes |
Request body: CommitReviewRequest
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | CommitReviewResponse | |
400 | application/problem+json | RunNowRefused | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.requestCommitReview(
{
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
repo_id: process.env.REPO_ID!,
},
},
{ base_commit_sha: process.env.BASE_COMMIT_SHA!, head_commit_sha: process.env.HEAD_COMMIT_SHA! },
);
console.log(result);import os
from uuid import UUID
from proofline import CommitReviewRequest, ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.request_commit_review(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["REPO_ID"]),
body=CommitReviewRequest(base_commit_sha=os.environ["BASE_COMMIT_SHA"], head_commit_sha=os.environ["HEAD_COMMIT_SHA"]),
)
print(result)curl -sS --fail-with-body -X POST "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/repositories/$REPO_ID/commit-reviews" \
-H "Authorization: Bearer $PROOFLINE_TOKEN" \
-H "Content-Type: application/json" \
-d "$(jq -n --arg base_commit_sha "$BASE_COMMIT_SHA" --arg head_commit_sha "$HEAD_COMMIT_SHA" '{"base_commit_sha": $base_commit_sha, "head_commit_sha": $head_commit_sha}')"Get commit deploy verifications#
GET /api/v1/organizations/{org_id}/repositories/{repo_id}/commits/{commit_sha}/deploy-verifications
Get a commit's deploy verifications
Returns each deploy of one exact commit in the repository that Proofline recorded, across the organization's environments: its environment ID, GitHub Environment, task, workflow run and attempt, where its verification stands, whether a check regressed, each check's result and due time, the gaps that leave it unproven and its console page. commit_sha must be a full 40-character lowercase commit SHA; a branch, tag or abbreviated SHA gets 400. A commit with no recorded deploy returns recorded: false and no deploys, which is never a result about a deploy. A repository outside the token's repository restriction or organization returns 404.
- Scope:
reviews:read - TypeScript:
client.getCommitDeployVerifications() - Python:
client.get_commit_deploy_verifications()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
commit_sha | path | string | yes | The full 40-character lowercase commit SHA the job deployed. A branch, tag or abbreviated SHA is refused. |
org_id | path | string (uuid) | yes | |
repo_id | path | string (uuid) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | CommitDeployVerifications | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.getCommitDeployVerifications({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
repo_id: process.env.REPO_ID!,
commit_sha: process.env.COMMIT_SHA!,
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.get_commit_deploy_verifications(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["REPO_ID"]),
os.environ["COMMIT_SHA"],
)
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/repositories/$REPO_ID/commits/$COMMIT_SHA/deploy-verifications" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Upload coverage reports#
POST /api/v1/organizations/{org_id}/repositories/{repo_id}/coverage-reports
Upload coverage reports
Records the LCOV, Cobertura, JaCoCo or Go coverage reports a CI run produced for one exact commit GitHub has in the repository, for COVERAGE checks that accept uploads. A branch, tag or abbreviated SHA, or a report that cannot be read, gets 422 and stores nothing. Requires a repository-restricted token and live GitHub write access; the same reports for the same commit return the report already recorded.
- Scope:
coverage:write - TypeScript:
client.uploadCoverageReports() - Python:
client.upload_coverage_reports()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
repo_id | path | string (uuid) | yes |
Request body: CoverageUploadRequest
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | CoverageUploadResponse | |
201 | application/json | CoverageUploadResponse | |
422 | application/problem+json | CoverageRefused | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { readFileSync } from "node:fs";
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.uploadCoverageReports(
{
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
repo_id: process.env.REPO_ID!,
},
},
{ reports: [{ name: "coverage/lcov.info", content: readFileSync("coverage/lcov.info", "utf8") }], tested_sha: process.env.TESTED_SHA! },
);
console.log(result);import os
from pathlib import Path
from uuid import UUID
from proofline import CoverageUploadRequest, ProoflineClient, UploadedReport
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.upload_coverage_reports(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["REPO_ID"]),
body=CoverageUploadRequest(reports=[UploadedReport(name="coverage/lcov.info", content=Path("coverage/lcov.info").read_bytes().decode())], tested_sha=os.environ["TESTED_SHA"]),
)
print(result)jq -n --rawfile reports coverage/lcov.info --arg tested_sha "$TESTED_SHA" '{"reports": [{"name": "coverage/lcov.info", "content": $reports}], "tested_sha": $tested_sha}' |
curl -sS --fail-with-body -X POST "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/repositories/$REPO_ID/coverage-reports" \
-H "Authorization: Bearer $PROOFLINE_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @-Request file review#
POST /api/v1/organizations/{org_id}/repositories/{repo_id}/file-reviews
Review selected whole files
Reviews up to twenty exact file paths at one pushed commit. Requires live GitHub read access and verifies every path at that commit. The retained selection is immutable; a repeat by the same person returns its review. Results remain in Proofline and are never posted to GitHub.
- Scope:
reviews:request - TypeScript:
client.requestFileReview() - Python:
client.request_file_review()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
repo_id | path | string (uuid) | yes |
Request body: FileReviewRequest
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | FileReviewResponse | |
400 | application/problem+json | RunNowRefused | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
The examples read paths from PATHS as a JSON array of strings, so a path with a space stays one path: export PATHS='["src/main.ts", "docs/Release notes.md"]'.
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.requestFileReview(
{
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
repo_id: process.env.REPO_ID!,
},
},
{ commit_sha: process.env.COMMIT_SHA!, paths: JSON.parse(process.env.PATHS!) },
);
console.log(result);import json
import os
from uuid import UUID
from proofline import FileReviewRequest, ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.request_file_review(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["REPO_ID"]),
body=FileReviewRequest(commit_sha=os.environ["COMMIT_SHA"], paths=json.loads(os.environ["PATHS"])),
)
print(result)curl -sS --fail-with-body -X POST "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/repositories/$REPO_ID/file-reviews" \
-H "Authorization: Bearer $PROOFLINE_TOKEN" \
-H "Content-Type: application/json" \
-d "$(jq -n --arg commit_sha "$COMMIT_SHA" --argjson paths "$PATHS" '{"commit_sha": $commit_sha, "paths": $paths}')"Request patch review#
POST /api/v1/organizations/{org_id}/repositories/{repo_id}/patch-reviews
Review local changes
Reviews a unified diff against a commit GitHub has in the repository, and returns that patch's review when one exists. The review reads only that commit and the patch, and is never posted to a pull request. With verify_finding_ids, the review also re-verifies those open findings of one pull request against the patch and reports each outcome on the review, without changing the pull request's findings. Requires live GitHub read access; the same patch on the same base, re-verifying the same findings, always returns the same review.
- Scope:
reviews:request - TypeScript:
client.requestPatchReview() - Python:
client.request_patch_review()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
repo_id | path | string (uuid) | yes |
Request body: PatchReviewRequest
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | PatchReviewResponse | |
400 | application/problem+json | RunNowRefused | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { readFileSync } from "node:fs";
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.requestPatchReview(
{
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
repo_id: process.env.REPO_ID!,
},
},
{ base_commit_sha: process.env.BASE_COMMIT_SHA!, patch: readFileSync("change.patch", "utf8") },
);
console.log(result);import os
from pathlib import Path
from uuid import UUID
from proofline import PatchReviewRequest, ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.request_patch_review(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["REPO_ID"]),
body=PatchReviewRequest(base_commit_sha=os.environ["BASE_COMMIT_SHA"], patch=Path("change.patch").read_bytes().decode()),
)
print(result)jq -n --arg base_commit_sha "$BASE_COMMIT_SHA" --rawfile patch change.patch '{"base_commit_sha": $base_commit_sha, "patch": $patch}' |
curl -sS --fail-with-body -X POST "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/repositories/$REPO_ID/patch-reviews" \
-H "Authorization: Bearer $PROOFLINE_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @-Request review#
POST /api/v1/organizations/{org_id}/repositories/{repo_id}/pull-requests/{number}/review
Request a pull request review
Returns the active or result-bearing review at the pull request's live head, or creates a withheld one. The FULL mode creates a new review of the whole change unless one is pending or running. Requires live GitHub write access; a repeated request can create another review, so clients make one attempt.
- Scope:
reviews:request - TypeScript:
client.requestReview() - Python:
client.request_review()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
number | path | integer (int64) | yes | |
org_id | path | string (uuid) | yes | |
repo_id | path | string (uuid) | yes |
Request body: RunNowRequest
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | RunNowResponse | |
400 | application/problem+json | RunNowRefused | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.requestReview(
{
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
repo_id: process.env.REPO_ID!,
number: Number(process.env.NUMBER),
},
},
{ mode: "EXISTING_OR_NEW" },
);
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient, RunNowMode, RunNowRequest
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.request_review(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["REPO_ID"]),
int(os.environ["NUMBER"]),
body=RunNowRequest(mode=RunNowMode.EXISTING_OR_NEW),
)
print(result)curl -sS --fail-with-body -X POST "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/repositories/$REPO_ID/pull-requests/$NUMBER/review" \
-H "Authorization: Bearer $PROOFLINE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"mode":"EXISTING_OR_NEW"}'Get review guidance#
GET /api/v1/organizations/{org_id}/repositories/{repo_id}/review-guidance
Get repository review guidance
Returns the review guidance configured for a repository, for tools and coding agents that read it before writing code.
- Scope:
guidance:read - TypeScript:
client.getReviewGuidance() - Python:
client.get_review_guidance()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
repo_id | path | string (uuid) | yes |
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | RepositoryGuidance | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.getReviewGuidance({
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
repo_id: process.env.REPO_ID!,
},
});
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.get_review_guidance(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["REPO_ID"]),
)
print(result)curl -sS --fail-with-body "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/repositories/$REPO_ID/review-guidance" \
-H "Authorization: Bearer $PROOFLINE_TOKEN"Request scan#
POST /api/v1/organizations/{org_id}/repositories/{repo_id}/scans
Scan a repository revision
Scans the whole repository at one commit, resolved once from ref or named by commit_sha, and records that resolution. Requires live GitHub write access, and budget_credits at most the organization's on-demand scan limit; a limit of 0 turns on-demand scans off. Sending the same request_id again returns the first resolution. Results remain in Proofline and are never posted to GitHub.
- Scope:
scans:request - TypeScript:
client.requestScan() - Python:
client.request_scan()
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string (uuid) | yes | |
repo_id | path | string (uuid) | yes |
Request body: ScanRequestBody
| Status | Media type | Body | Description |
|---|---|---|---|
200 | application/json | ScanResponse | |
400 | application/problem+json | RunNowRefused | |
| Any other | application/problem+json | Problem | An RFC 9457 problem; the HTTP status remains authoritative. |
import { ProoflineClient } from "@proofline/sdk";
const client = new ProoflineClient({
baseUrl: "https://proofline.sh",
token: process.env.PROOFLINE_TOKEN!,
});
const result = await client.requestScan(
{
path: {
org_id: process.env.PROOFLINE_ORGANIZATION_ID!,
repo_id: process.env.REPO_ID!,
},
},
{ budget_credits: Number(process.env.BUDGET_CREDITS!), commit_sha: process.env.COMMIT_SHA!, request_id: process.env.REQUEST_ID! },
);
console.log(result);import os
from uuid import UUID
from proofline import ProoflineClient, ScanRequestBody
with ProoflineClient(os.environ["PROOFLINE_TOKEN"], base_url="https://proofline.sh") as client:
result = client.request_scan(
UUID(os.environ["PROOFLINE_ORGANIZATION_ID"]),
UUID(os.environ["REPO_ID"]),
body=ScanRequestBody(budget_credits=int(os.environ["BUDGET_CREDITS"]), commit_sha=os.environ["COMMIT_SHA"], request_id=os.environ["REQUEST_ID"]),
)
print(result)curl -sS --fail-with-body -X POST "https://proofline.sh/api/v1/organizations/$PROOFLINE_ORGANIZATION_ID/repositories/$REPO_ID/scans" \
-H "Authorization: Bearer $PROOFLINE_TOKEN" \
-H "Content-Type: application/json" \
-d "$(jq -n --argjson budget_credits "$BUDGET_CREDITS" --arg commit_sha "$COMMIT_SHA" --arg request_id "$REQUEST_ID" '{"budget_credits": $budget_credits, "commit_sha": $commit_sha, "request_id": $request_id}')"Schemas#
Errors use Problem, an RFC 9457 problem document. The HTTP status is authoritative.
ActionUnavailability#
Type: READ_ONLY, REPOSITORY_UNAVAILABLE, REPOSITORY_WRITE_REQUIRED, PERMISSION_CHECK_UNAVAILABLE
ActorView#
The person behind an action on a review, as the page names them.
| Field | Type | Required | Description |
|---|---|---|---|
github_user_id | integer (int64) | yes | Stable GitHub identity. The login below is display metadata. |
login | string | yes | The login they were known by when they acted. Display metadata. |
name | string or null | no | Profile name resolved for this organization. Display metadata only. |
profile_url | string or null | no | Their profile on the deployment's GitHub host. |
AgentSession#
| Field | Type | Required | Description |
|---|---|---|---|
attempt | integer (int32) | yes | This session's place among the finding series' sessions at this commit, at most 3. |
cause | string or null | no | Why Proofline ended or refused the session, as a closed code. |
connection_id | string (uuid) | yes | The vendor connection the session was started with. |
created_at | string (date-time) | yes | When the session was requested. |
done | boolean | yes | Whether Proofline stopped following the session. |
finding_id | string (uuid) | yes | The finding the session works on. |
id | string (uuid) | yes | The session's ID. |
observed_head_sha | string or null | no | The pull request's head when it had moved past the reviewed commit, for a HEAD_MOVED session. |
pull_request_url | string or null | no | The pull request the vendor opened, once GitHub confirmed it belongs to the target repository. |
requested_by_user_id | string (uuid) | yes | The person who started the session. |
review_id | string (uuid) | yes | The review that recorded the finding. |
status | string | yes | REQUESTED until the workflow records a status, then STARTING, RUNNING, FINISHED, FAILED, REFUSED, HEAD_MOVED or UNKNOWN. |
target | AgentSessionTarget | yes | The pull request and commit the session is pinned to. |
untrusted_vendor_summary | string or null | no | The vendor's summary: untrusted text, never acted on. |
updated_at | string (date-time) | yes | When the session's latest status was recorded. |
vendor | AgentVendor | yes | The coding-agent vendor running the session. |
vendor_status | string or null | no | The vendor's own status token. |
vendor_url | string or null | no | The session in the vendor's console. |
AgentSessionConnection#
A vendor connection a session on the previewed target may use.
| Field | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | yes | The connection's ID, which a start names as connection_id. |
vendor | AgentVendor | yes | The coding-agent vendor. |
AgentSessionPrompt#
One of these objects, told apart by status:
status | Description | Other fields |
|---|---|---|
AVAILABLE | connections (array of AgentSessionConnection, optional); prompt_digest (string, required); target (AgentSessionTarget, required); untrusted_text (string, required); withheld_values (integer (uint), required) | |
UNAVAILABLE | reason (string, required) |
AgentSessionTarget#
What a session is pinned to: the finding's own reviewed pull request.
| Field | Type | Required | Description |
|---|---|---|---|
github_repository_id | integer (int64) | yes | The repository's stable GitHub ID, which the connection allowlists. |
head_sha | string | yes | The exact commit the review read. The session starts from it. |
pull_request_number | integer (int64) | yes | The reviewed pull request. |
repository_full_name | string | yes | The repository's owner/name on GitHub, as last recorded. |
repository_id | string (uuid) | yes | The reviewed repository's Proofline ID. |
AgentVendor#
Type: CURSOR_CLOUD_AGENTS, DEVIN
AssessmentProjection#
| Field | Type | Required | Description |
|---|---|---|---|
assessment_id | string (uuid) | yes | Assessment that owns this route binding. |
environment_id | string (uuid) | yes | Environment that the assessment covers. |
pass_output_recorded | boolean | yes | Whether this assessment retained a generalist output record. |
pass_output_sha256 | string or null | no | Digest of the immutable generalist output, when the assessment retained one. |
passes | array of PassProjection | yes | Pass and symbolic model binding retained by the plan. |
reach | string | yes | Environment reach retained by the plan. |
AuthorChoice#
| Field | Type | Required | Description |
|---|---|---|---|
id | integer (int64) | yes | The pull request author's GitHub user ID, the value the author filter accepts. |
login | string or null | no | The author's most recently recorded GitHub login, a display label. Null when none is recorded. |
ChangeDiagramKindView#
Type: FLOWCHART, SEQUENCE
ChangeDiagramOutcome#
| Value | Description |
|---|---|
DRAWN | |
NO_INTERACTION | No interaction between three or more components survived selection. |
INDEX_INCOMPLETE | The head's code index could not vouch for every edge. |
OVER_CAPS | The changed call path is larger than a diagram shows. |
DECISION_UNAVAILABLE | A decision the diagram depends on gave no answer. |
ChangeDiagramView#
The change-level diagram recorded for a review, or why there is none.
| Field | Type | Required | Description |
|---|---|---|---|
kind | ChangeDiagramKindView or null | no | Diagram format when a diagram was drawn; otherwise null. |
legend | array of string | yes | Markdown lines under the diagram: which environment and snapshot its dashed relations come from, or which environment was not read. |
mermaid | string or null | no | Mermaid source the server generated from the stored graph. Every label is escaped, and no model wrote any of it. Absent unless outcome is DRAWN. |
outcome | ChangeDiagramOutcome | yes | Whether the diagram was drawn, or why no diagram is available. |
ChangeSummary#
What a review recorded about its change.
| Field | Type | Required | Description |
|---|---|---|---|
base_sha | string or null | no | The compared base commit. Null when the review pinned none. |
files | array of FileFact | yes | The changed files the review read, by path, with the depth it read them at. Empty when the review recorded no change digest. Files the review's filters kept from review are listed apart, with their reason. |
head_sha | string | yes | The reviewed head commit. |
prose | Prose or null | no | Model-written prose. Present only when prose_outcome is PUBLISHED. It is untrusted text: render it inert. |
prose_outcome | ProseOutcome | yes | The recorded prose-generation outcome, before response-time withholding. |
route | SummaryRoute or null | no | The route the summary applied. Null when the review recorded no change digest, so no route was asked. |
CheckFile#
One file World cited for a check's result.
| Field | Type | Required | Description |
|---|---|---|---|
path | UntrustedText | yes | The repository-relative path. It is repository text. |
revision | CheckFileRevision | yes | The revision World read the file at. |
CheckFileRevision#
The revision a cited file was read at.
| Value | Description |
|---|---|
PROPOSED_CODE_REVISION | The reviewed commit. |
BASE_CODE_REVISION | Its merge base. |
CheckLifecycle#
World's lifecycle disclosure for the evaluator version that answered, as the receipt recorded it. A deployment gate counts only GATING results (DeterministicCoverage::gate_effective_status), and only when it evaluates a deployment; the lifecycle alone permits or blocks nothing.
| Value | Description |
|---|---|
GATING | Eligible to count toward a deployment gate. A receipt recorded before lifecycle disclosure reads as this, the meaning its decisions were made under. |
SHADOW | Recorded for review. A gate never counts it. |
QUARANTINED | Suspended after a recorded outcome contradicted it. A gate never counts it. |
RETIRED | Withdrawn. It takes part in no new evaluation. |
UNKNOWN | The receipt carries a disclosure this projection cannot read. |
CiFailureAttribution#
What the control plane records as a failure's cause.
Type: CAUSED_BY_CHANGE, PRE_EXISTING_ON_BASE, FLAKY_OR_INFRASTRUCTURE, ENVIRONMENT_STATE, UNKNOWN
CiFailureLine#
One failed CI job in the observation.
| Field | Type | Required | Description |
|---|---|---|---|
attribution | CiFailureAttribution | yes | The recorded cause: CAUSED_BY_CHANGE, PRE_EXISTING_ON_BASE, FLAKY_OR_INFRASTRUCTURE, ENVIRONMENT_STATE or UNKNOWN. UNKNOWN means the failure was not diagnosed, and undiagnosed says why. |
failed_step | string or null | no | The first failed step's name, admitted the same way. Null when no step concluded as failed. |
job_name | string | yes | The job's name as the diagnosis admitted it: masked, or <withheld>. A protected value of the observing review reads as the withheld marker. |
run_attempt | integer (int64) | yes | The GitHub Actions run attempt the job failed in, from 1. The line is the newest diagnosed attempt of its run. |
timed_out | boolean | yes | Whether the job timed out rather than failed. |
undiagnosed | CiFailureUndiagnosed or null | no | Why the failure was not diagnosed. Set exactly when attribution is UNKNOWN. |
CiFailureUndiagnosed#
Why a failed job's attribution is UNKNOWN.
| Value | Description |
|---|---|
LOG_UNAVAILABLE | GitHub returned no log for the job. |
LOG_TOO_LARGE | The complete log exceeds the read bound. |
LOG_NOT_ADMITTED | The log could not cross the credential mask or protected-value admission. The console names which. |
DECISION_UNAVAILABLE | The attribution decision fell back: Jev was unavailable or refused. |
SHADOW | The attribution decision runs in shadow mode, so its answer is not applied. |
UNDETERMINED | The decision applied no cause. |
CodeAssessmentStatus#
A code assessment's recorded execution status. It is never a verdict on the change: only COMPLETED says the assessment covered what it read.
| Value | Description |
|---|---|
PENDING | |
RUNNING | |
COMPLETED | |
INCOMPLETE | |
EXCLUDED | The repository's review configuration excluded the change, so the code assessment read nothing. |
CodeCeilingStop#
What a code assessment had read when its head's spending ceiling stopped it. A rerun of the same commit runs under the same ceiling.
| Field | Type | Required | Description |
|---|---|---|---|
changed_files | integer (uint) | yes | The distinct files the reviewed change touched. |
unfinished_paths | array of string | yes | The changed files of each part of the change the ceiling stopped or never reached, in review order. The assessment may have read some of their changed lines, so this lists files it did not finish. Empty when the ceiling stopped it after every part was read. |
CommentAddressEvaluationView#
One stored post-merge judgment of a finding comment.
| Field | Type | Required | Description |
|---|---|---|---|
evaluated_at | string (date-time) | yes | When the evaluation was made. |
outcome | CommentAddressOutcome | yes | ADDRESSED, NOT_ADDRESSED, or INCOMPLETE when the merged code could not be judged. |
reason | string | yes | Server-authored reason. Render as text. |
CommentAddressOutcome#
Type: ADDRESSED, NOT_ADDRESSED, INCOMPLETE
CommentReaction#
Type: THUMBS_UP, THUMBS_DOWN, LAUGH, HOORAY, CONFUSED, HEART, ROCKET, EYES
CommentReactionView#
One stored reaction on the finding's root comment.
| Field | Type | Required | Description |
|---|---|---|---|
actor_github_user_id | integer (int64) | yes | The stable GitHub identity of whoever reacted. |
actor_login | string or null | no | Provider text. Render as text. |
github_comment_id | integer (int64) | yes | The GitHub comment the reaction is on: the finding's root comment. |
reaction | CommentReaction | yes | The reaction as GitHub names it. |
CommitDeploy#
One deploy of the commit and where its verification stands.
| Field | Type | Required | Description |
|---|---|---|---|
checkpoints | array of DeployCoverageCheckpoint | yes | The four checks in order, each with its recorded result, if any, and when a missing one becomes overdue. Empty when no verification of the deploy exists. |
deploy_url | string or null | no | The deploy's console page. |
deployment_task | string or null | no | The GitHub deployment's task, such as deploy or deploy:web. |
environment_id | string (uuid) | yes | The Proofline environment that holds the deploy. |
gaps | array of DeployVerificationGap | yes | What the checks that leave the deploy unproven name. |
github_environment | string or null | no | The GitHub Environment the deployment named. |
regressed | boolean | yes | Whether any check recorded REGRESSED, whatever its gaps. |
rollback | CommitDeployRollback or null | no | Present when the deploy is a rollback: the previous deploy of the same task ran a commit that a recorded merge into this commit's branch made after this commit, as the deploy's console page reads it. Absent for a forward deploy and when either merge is unrecorded. |
rolled_back | boolean | no | Whether the deploy's newest recorded check found its service serving an earlier deploy again, as its console page reads it. A later check that finds none clears it, while regressed keeps an earlier regression. Older responses omit it, which reads as false. |
state | DeployCoverageState | yes | Where the deploy's verification stands. |
workflow_run_attempt | integer (int64) or null | no | The attempt of that run that created the deployment addressing the deploy; above 1 for a rerun. |
workflow_run_attempts | array of integer (int64) | no | Each distinct attempt of that run that created one of the deploy's deployments, ascending. A retry of a job that failed belongs to the deploy it retried, and a re-run of a job that had already landed is a deploy of its own. Absent outside Actions and when no recorded deployment of the deploy names its attempt. |
workflow_run_id | integer (int64) or null | no | The Actions run that created the deploy's deployments; absent outside Actions. |
CommitDeployRollback#
What a rollback deploy rolled back, and what it restored.
| Field | Type | Required | Description |
|---|---|---|---|
restores | CommitRollbackDeploy or null | no | The latest earlier deploy of this commit by the same task, before the deploys this one rolls back, within 30 days. Absent when the ledger holds none. |
rolls_back | array of CommitRollbackDeploy | yes | Each deploy of the same task that landed a commit merged into this commit's branch after it, after restores and before this deploy, newest first. |
CommitDeployVerifications#
The deploys of one commit that Proofline recorded, across the organization's environments.
| Field | Type | Required | Description |
|---|---|---|---|
deploys | array of CommitDeploy | yes | Each recorded deploy, earliest landing first. |
recorded | boolean | yes | Whether the ledger holds any deploy of the commit. false says only that none was recorded, never anything about a deploy. |
CommitReviewRequest#
Pushed commits to review: the exact base the change is compared with and the exact head it ends at.
| Field | Type | Required | Description |
|---|---|---|---|
base_commit_sha | string | yes | The full 40-character commit the change is compared with. GitHub must have it in this repository, and it must be an ancestor of the head. |
head_commit_sha | string | yes | The full 40-character commit the change ends at. GitHub must have it in this repository. |
CommitReviewResponse#
What a commit review request produced.
| Field | Type | Required | Description |
|---|---|---|---|
existing | boolean | yes | True when these exact commits already had a review and that one is returned. Sending the same commits twice reviews them once. |
review_id | string (uuid) | yes | The review of these commits, readable through the review and findings routes. |
CommitRollbackDeploy#
One deploy a rollback names.
| Field | Type | Required | Description |
|---|---|---|---|
commit_sha | string | yes | The commit that deploy ran. |
deploy_url | string or null | no | The deploy's console page. |
landed_at | string (date-time) | yes | When its last deployment first succeeded, or its AWS run ended. |
CountedCause#
What a review is counted under: the cause its assessments recorded, SPEND_LIMIT_REACHED where an assessment recorded a spend limit's code, or OUT_OF_CREDITS where an assessment recorded the credit refusal. An assessment's detail names that refusal by the rule public_reason_codes applies; no other detail is read into the summary.
Type: IncompleteCause or CreditRefusalCause
CoverageRefused#
An upload refused for its content: a symbolic or unknown commit, or a report that cannot be read. Nothing is stored.
| Field | Type | Required | Description |
|---|---|---|---|
detail | string | yes | One sentence naming what was refused and why. |
status | integer (uint16) | yes | Always 422. |
title | string | yes | Always unprocessable coverage upload. |
CoverageUploadRequest#
The coverage reports a CI run produced for one commit.
| Field | Type | Required | Description |
|---|---|---|---|
reports | array of UploadedReport | yes | One to 50 reports, each LCOV, Cobertura XML, JaCoCo XML or a Go cover profile, in a JSON body of at most 30 MiB. |
tested_sha | string | yes | The full 40-character commit the tests ran on. GitHub must have it in this repository. A merge commit counts for a pull request head that is one of its two parents. |
CoverageUploadResponse#
The report the upload recorded, or the one an identical upload recorded.
| Field | Type | Required | Description |
|---|---|---|---|
covered_lines | integer (uint64) | yes | Covered lines among those instrumented lines. |
created | boolean | yes | False when the same reports for this commit were already recorded. |
formats | array of string | yes | The format of each report, in upload order. |
instrumented_lines | integer (uint64) | yes | Instrumented lines across the reports, a file two reports name under one path counted once. |
report_id | string (uuid) | yes | The recorded report. |
tested_sha | string | yes | The commit the reports tested, as the upload named it. |
CreditRefusalCause#
A funding refusal Billing repairs, named apart from the NOT_CONFIGURED it records. The public contract keeps the name it had when credits were its only refusal.
| Value | Description |
|---|---|
OUT_OF_CREDITS | The organization had no credits left, so the code lane refused to run its model. |
SPEND_LIMIT_REACHED | A monthly spend limit of the organization, a repository or a team was reached, so the assessment refused to start. |
CustomerAssessment#
| Field | Type | Required | Description |
|---|---|---|---|
checks | CustomerChecks | yes | The deterministic World checks recorded for this assessment. |
completed_at | string (date-time) or null | no | When the assessment completed. Null while it has not. |
domains | array of DomainView | yes | The risk domains the assessment evaluated, each with its status and reason, ordered by domain. |
environment_display_name | string | yes | The display name of the environment this assessment covers. |
findings | array of CustomerFinding | yes | The findings this assessment recorded, SERIOUS first. |
id | string (uuid) | yes | The assessment's ID. |
incompleteness_kind | string or null | no | Why an INCOMPLETE assessment is incomplete: NOT_CONFIGURED, POLICY_EXCLUDED, EVIDENCE_UNAVAILABLE, HYPOTHESES_UNRESOLVED or MODEL_BUDGET_EXHAUSTED. Absent otherwise; an unclassified gap is not a complete assessment. |
reason_codes | array of string or null | no | Public assessment gap codes. A recorded out-of-credits refusal is projected as OUT_OF_CREDITS when no stored code exists. Other historical records may have no codes; private details are not exposed. |
release_evidence_gap | string or null | no | The typed gap the automatic release-set read recorded. Null when the read is pending, pinned a release, or was never attempted. |
started_at | string (date-time) or null | no | When the assessment started. Null until it starts. |
status | string | yes | The assessment's recorded status, such as RUNNING, COMPLETED or INCOMPLETE. |
CustomerAssessmentDetail#
| Field | Type | Required | Description |
|---|---|---|---|
checks | CustomerChecks | yes | The deterministic World checks recorded for this assessment. |
completed_at | string (date-time) or null | no | When the assessment completed. Null while it has not. |
domains | array of DomainView | yes | The risk domains the assessment evaluated, each with its status and reason, ordered by domain. |
environment_display_name | string | yes | The display name of the environment this assessment covers. |
findings | array of CustomerFinding | yes | The findings this assessment recorded, SERIOUS first. |
id | string (uuid) | yes | The assessment's ID. |
incompleteness_kind | string or null | no | Why an INCOMPLETE assessment is incomplete: NOT_CONFIGURED, POLICY_EXCLUDED, EVIDENCE_UNAVAILABLE, HYPOTHESES_UNRESOLVED or MODEL_BUDGET_EXHAUSTED. Absent otherwise; an unclassified gap is not a complete assessment. |
reason_codes | array of string or null | no | Public assessment gap codes. A recorded out-of-credits refusal is projected as OUT_OF_CREDITS when no stored code exists. Other historical records may have no codes; private details are not exposed. |
release_evidence_gap | string or null | no | The typed gap the automatic release-set read recorded. Null when the read is pending, pinned a release, or was never attempted. |
review_id | string (uuid) | yes | The review this assessment belongs to. |
started_at | string (date-time) or null | no | When the assessment started. Null until it starts. |
status | string | yes | The assessment's recorded status, such as RUNNING, COMPLETED or INCOMPLETE. |
subjects | array of SubjectView | yes | The review subjects this assessment's own release set authorized, plus each PRIMARY subject that carries no release authorization. |
CustomerCheck#
| Field | Type | Required | Description |
|---|---|---|---|
detail | string or null | no | Why World refused the check, or otherwise World's recorded explanation of the result. Null when neither is recorded. |
evaluated_at | string or null | no | When World evaluated this answer. A reused answer is evidence from this instant, which can precede the assessment. |
files | array of CheckFile | yes | The files World cited as evidence for this result, once each in World's order, with the revision World read each at. Empty when World cited no file, and on results recorded before World cited files. |
lifecycle | CheckLifecycle | yes | The lifecycle of the evaluator version that answered. It says whether a deployment gate could count this result, not whether one did. |
name | string | yes | The check's readable name, derived from its key. |
outcome | string | yes | The outcome the receipt recorded, which is the outcome a deployment gate weighed: READY, BLOCKED, UNRESOLVED, UNAVAILABLE, NOT_APPLICABLE or NOT_ASKED. A verdict never rewrites it. |
unresolved_reason | UnresolvedReason or null | no | Why an UNRESOLVED check did not settle, as World's verdict gave it. Absent on every other outcome, and on an unresolved receipt whose verdict names none of these reasons. |
CustomerChecks#
| Field | Type | Required | Description |
|---|---|---|---|
families | array of CustomerCheck | yes | One entry per recorded check result, ordered by check key and version. Empty when no receipt exists. |
receipt_recorded | boolean | yes | Whether these checks come from an immutable deterministic coverage receipt. When false, no check result is recorded. |
status | string | yes | The receipt's status, or PENDING, SUPERSEDED, STOPPED, NOT_ATTEMPTED or UNAVAILABLE when no receipt exists. |
CustomerCodeAssessment#
The review's code assessment as it recorded its run. Its findings rest on the pinned code alone, never on World evidence.
| Field | Type | Required | Description |
|---|---|---|---|
base_commit_sha | string | yes | The base commit the code assessment compared the head with. |
ceiling_stop | CodeCeilingStop or null | no | How much of the change the code assessment read before its head's spending ceiling stopped it. Null for every other ending, and for an assessment that recorded no change map. |
completed_at | string (date-time) or null | no | When the code assessment ended. Null while it has not. |
coverage_details | array of string | no | Recorded check coverage counts and fixed cancellation causes, without source text. Absent coverage does not establish that every check ran. |
findings | array of CustomerFinding | yes | The code-only findings the code assessment recorded, SERIOUS first. An empty list does not establish deployment safety. |
head_commit_sha | string | yes | The head commit the code assessment read. |
id | string (uuid) | yes | The code assessment's ID. |
incompleteness_kind | string or null | no | Why an INCOMPLETE code assessment is incomplete: NOT_CONFIGURED, POLICY_EXCLUDED, EVIDENCE_UNAVAILABLE, HYPOTHESES_UNRESOLVED or MODEL_BUDGET_EXHAUSTED. Null otherwise. |
reason_codes | array of string or null | no | Public causes of an INCOMPLETE code assessment: OUT_OF_CREDITS when credits refused its model, and MODEL_ANSWER_WITHHELD when the credential mask withheld its model's answer after the source was read. Absent otherwise; other recorded details stay private. |
started_at | string (date-time) or null | no | When the code assessment started. Null until it starts. |
status | CodeAssessmentStatus | yes | The code assessment's recorded execution status. |
CustomerEvidenceRef#
| Field | Type | Required | Description |
|---|---|---|---|
commit_sha | string or null | no | The commit a file or commit reference reads. Null for other kinds, and for a file reference whose review recorded no head commit. |
companion_repository | string or null | no | The repository a companion_repository_file reference reads from. Null for every other kind. |
end_line | integer (uint32) or null | no | The last cited line of a file reference. Null when the reference names no end line or is not a file reference. |
file_sha256 | string or null | no | SHA256 of the complete original file bytes retained by a trusted ENV or CODE read. Absent on older references and partial reads. |
kind | string | yes | The reference's kind: repository_file, companion_repository_file, commit, workflow_run, world_entity, deterministic_test, recorded_read, sandbox_experiment, vendor_documentation or text. |
label | string | yes | The reference's display label, such as a path with its line range. A recorded read, a vendor documentation read or an unnamed World entity carries a fixed label, and a deterministic test carries its check's readable name. |
legacy_text | string or null | no | The unstructured text of a text reference. Null for structured references and for recorded reads. |
provenance_status | string | yes | How the reference was obtained: VERIFIED_REPOSITORY_READ, PINNED_WORLD_ENTITY, EXECUTED_DETERMINISTIC_TEST, EXECUTED_SANDBOX_EXPERIMENT, PROVIDER_REFERENCE, RECORDED_READ or LEGACY_UNSTRUCTURED. |
repository_path | string or null | no | The cited file's path for a file reference. Null for every other kind. |
start_line | integer (uint32) or null | no | The first cited line of a file reference. Null when the reference cites no line or is not a file reference. |
url | string or null | no | The link the reference resolves to. Null when it resolves to none or the review's repository or head commit is unknown. |
workflow_attempt | integer (int32) or null | no | The run attempt of a workflow_run reference. Null when the reference names no attempt or is another kind. |
workflow_run_id | integer (int64) or null | no | The GitHub Actions run ID of a workflow_run reference. Null for every other kind. |
CustomerFinding#
| Field | Type | Required | Description |
|---|---|---|---|
causal_graph | FindingCausalGraphView or null | no | The typed causal graph the reviewer supplied for an ordering or reachability finding. Null when the finding carries none. |
claim | string | yes | What the reviewer states is wrong. |
comment_evaluation | CommentAddressEvaluationView or null | no | The post-merge judgment of whether the finding comment was addressed. It is not a finding decision; null when none is recorded. |
comment_reactions | array of CommentReactionView | yes | Emoji reactions stored on the Proofline finding comment. They are not a finding decision. |
evidence_class | FindingEvidenceClass or null | no | The kind of proof the finding rests on, derived from the typed evidence it cites. Null on findings recorded before the class existed. |
evidence_refs | array of CustomerEvidenceRef | yes | The references the finding cites, resolved as the pull request comment resolves them. |
finding_fingerprint | string or null | no | The retained semantic fingerprint used to correlate findings. It is opaque and separate from the occurrence ID and reviewed code digest. Absent when no fingerprint is retained; no replacement is derived. |
github_comment_url | string or null | no | The inline GitHub comment published for this occurrence of the finding. Null when none was published; earlier runs are never used as a fallback. |
id | string (uuid) | yes | The finding's ID. |
impact | string | yes | The consequence the reviewer states the claim has. |
latest_validation | CustomerFindingValidation or null | no | The latest decision on the finding's series, with who made it, where and when. Null when no decision is recorded. |
lifecycle_state | string | yes | The finding's recorded lifecycle state: NEW, UNCHANGED, RESOLVED or REINTRODUCED. |
local_findings | array of MatchedLocalFinding | no | Earlier occurrences in the author's local reviews linked by exact patch identity. These links carry no verdict or finding decision. |
placement | FindingPlacementView or null | no | Where this review's comment gate placed the finding, as it recorded the placement. Null when the review recorded none. |
remediation | string or null | no | The reviewer's proposed fix. Null when it proposed none. |
risk_domain | string | yes | The risk domain the reviewer assigned to the finding. |
rule_refs | array of FindingRuleRefView | yes | The bound review rules the reviewer cited for this finding, by key and the revisions its assessment showed the reviewer. A finding carried forward unchanged keeps the citations of the finding it carries. Empty when it cited none. |
severity | string | yes | SERIOUS or WARNING. |
supporting_evidence | FindingSupport or null | no | The verdict explanation and evidence of the supported hypothesis that produced this finding. Null when the finding links no supported hypothesis. |
symbols | array of string | yes | The code identifiers the reviewer declared in the finding's prose, in declaration order, so a reader can set each as code. |
thread_observation | ThreadObservationView or null | no | The latest observation of the finding's GitHub thread state. It is not a finding decision; null when none is recorded. |
validation | string or null | no | The latest decision on the finding, the same value latest_validation carries. Null when no decision is recorded. |
CustomerFindingValidation#
| Field | Type | Required | Description |
|---|---|---|---|
actor_github_user_id | integer (int64) or null | no | The actor's stable GitHub user ID. Null for the automatic decision. |
actor_login | string or null | no | The actor's GitHub login, a display label to render as text. Null for the automatic decision. |
actor_name | string or null | no | The actor's GitHub profile name, when known. Lead with it; the login is the fallback. Null for the automatic decision. |
covering_author_kind | string or null | no | For ALREADY_COVERED, HUMAN or BOT. Null for every other decision. |
covering_author_login | string or null | no | For ALREADY_COVERED, the login of whoever wrote the covering comment, to render as text. Null for every other decision. |
covering_comment_created_at | string (date-time) or null | no | For ALREADY_COVERED, when the covering comment was written. Null for every other decision. |
github_comment_url | string or null | no | The comment that carried a decision made on GitHub, or, for ALREADY_COVERED, the other reviewer's comment the decision rests on. |
recorded_at | string (date-time) | yes | When Proofline recorded the decision. |
source | string | yes | Where the decision came from: UI for the app's assessment controls, GITHUB_COMMENT for a pull request comment, or PROOFLINE for the automatic ALREADY_COVERED decision. |
validation | string | yes | The decision: CONFIRMED, DISMISSED, FIXED, ACCEPTED_RISK or ALREADY_COVERED. |
CustomerReviewDetail#
| Field | Type | Required | Description |
|---|---|---|---|
actions | ReviewActions | yes | Which review actions the caller may take now. |
assessment_count | integer (int64) | yes | How many environment assessments this review has. |
assessments | array of CustomerAssessment | yes | The environment assessments this review recorded. |
audit_mode | string or null | no | The repository audit's mode, CODE_ONLY or INFRASTRUCTURE_AWARE, when this REVISION_SCAN is an audit. An audit's findings are in its audit report, not in finding_count or the review's assessments. Null for every other review. |
base_branch_commit_sha | string or null | no | The base branch tip GitHub reported when the review was triggered, display metadata that differs from base_commit_sha when the base branch moved after the branch point. |
base_commit_sha | string or null | no | The base revision the review compares against; for a pull request, the merge base of its head and base branch. Null until pinned, and for a first deployment. |
base_commit_url | string or null | no | The GitHub page for base_commit_sha. Null when that commit or the repository is unknown. |
base_ref | string or null | no | The pull request's base branch name as last recorded from GitHub, for orientation only. Null when no pull request state is recorded. |
change_diagram | ChangeDiagramView or null | no | The change-level diagram: the changed call path from the pinned code index and the relations World declares. Absent when the review recorded none. |
change_summary | ChangeSummary or null | no | What the change does and which files the review read at which depth. Null until the review's publication records it, and for a review that is not of a pull request. Generated text has current credentials and recorded protected values withheld; missing or expired provenance withholds the generated text whole. |
check_run_url | string or null | no | The GitHub check run Proofline published for this review. Null when none was published. |
code_assessment | CustomerCodeAssessment or null | no | The code assessment this review recorded, apart from its environment assessments. Null when the review recorded none. It never completes an environment assessment, and no environment count includes its findings. |
compare_url | string or null | no | The GitHub comparison of the base and head commits. Null unless both are pinned and the repository is known, and for a patch review, whose head GitHub does not have. |
completed_at | string (date-time) or null | no | When the review reached a terminal status. Absent while it is still pending or running. |
cost_funding | ReviewCostFunding or null | no | What paid for cost_microcredits, read from each debit's own funding records. Present exactly when cost_microcredits is. |
cost_microcredits | integer (int64) or null | no | The credits this run was charged so far, in microcredits, whoever paid: the plan, the free review month or the organization's credits. Null for a caller who is not a member of the organization. |
counted_incomplete_causes | array of CountedCause | no | incomplete_causes as the Inbox and the reviews cause: search count them: OUT_OF_CREDITS or SPEND_LIMIT_REACHED in place of the NOT_CONFIGURED an assessment records when credits or a monthly spend limit refused it. Present exactly when incomplete_causes is. |
created_at | string (date-time) | yes | When the review was created. |
current_head_commit_sha | string or null | no | The pull request's head commit as the latest provider projection reports it, which can differ from head_commit_sha. Set only on a single-review read, and absent for a deployment review or a pull request with no projection. |
deep_review_escalation | DeepReviewEscalation or null | no | Automatic Deep Review outcome for this exact pinned comparison. Absent when no sensitive-path evaluation receipt was recorded. |
diff_stats | ReviewDiffStats or null | no | Line totals from this run's pinned comparison. Null until recorded, or when the provider's changed-file list was incomplete. |
environment_display_names | array of string | yes | Display names of this review's assessed environments, not current repository links. |
environments | array of EnvironmentCheck | no | For a pull-request review, each environment its repository linked when the review was created and each environment it assessed, with whether the review checked it and why not. Absent for any other review, and when the repository links no environment. |
finding_count | integer (int64) | yes | How many findings this review's assessments recorded, across all of them. |
fix_generation_enabled | boolean | no | Whether fix generation is configured for this deployment and organization. Write authorization is checked again when a fix is requested. |
head_commit_sha | string or null | no | The head commit this review is pinned to. For a patch review, the revision ID Proofline derives from its base commit and patch digest, which is not a commit. Absent when the review recorded none. |
head_commit_url | string or null | no | The exact revision reviewed. A commit URL, never a branch URL: the branch moves, the reviewed input does not. Absent for a patch review. |
head_ref | string or null | no | The pull request's head branch name as last recorded from GitHub, for orientation only. Null when no pull request state is recorded. |
id | string (uuid) | yes | The review's identifier. |
incomplete_causes | array of IncompleteCause | no | Why an INCOMPLETE review ended incomplete, as its incomplete assessments recorded it, in name order. UNKNOWN alone when none recorded a cause. Absent for every other status, and on reads other than the reviews list and a single review. |
investigation_findings | array of ReviewInvestigationFinding | no | The supported findings of each environment investigation this review published, by assessment in recorded order, including those the pull-request Check left off its list. Absent when there are none. |
is_deep_review | boolean | no | Present and true when this run is a Deep Review. |
kind | string | yes | PULL_REQUEST, DEPLOYMENT, PATCH, a review of local changes sent as a patch, COMMIT, a review of pushed commits, FILES, complete selected files at one pushed commit, MERGE_GROUP, the commit GitHub's merge queue built for a group of pull requests, or REVISION_SCAN, a scan of one captured commit. |
linked_issues | LinkedIssueCapture or null | no | What this review's linked-issue receipt recorded, read from the receipt and never from current settings, so a later allowlist change does not alter it. Null when the review kept no receipt: a kind that reads no linked issues, a run that has not prepared its context yet, a run that predates receipts, or a receipt that does not decode. Null never means that no issue was captured. |
local_reverifications | array of LocalReverification | no | For a patch review requested with verify_finding_ids, each finding it re-verifies against the patch and the outcome. The outcome is local: the pull request's finding is unchanged whatever it is. Absent otherwise. |
merge_gate | PullRequestMergeGate or null | no | The deterministic policy for this exact repository/head, when opted in. Its captured review owner and GitHub bypass remain separate history. |
merge_group_pull_request_numbers | array of integer (int64) | no | For a MERGE_GROUP review, the pull requests GitHub queued in the group, in number order. Absent for every other kind, and until Proofline has read the group's members. |
open_items | OpenItemsView or null | no | What Proofline still has open for the reviewed head, counted from the current finding decisions. Absent while the review is PENDING or RUNNING, and for a repository audit, whose findings are in its report. |
open_items_observation | ReviewOpenItems or null | no | Dated PR counts with head, evaluated-scope and bounded thread proof. Absent when that observation is unavailable; scalar counts remain separate. |
provider_wait | ProviderWait or null | no | What holds the review now: GitHub's rate limit, and when it resets. Null unless one of the review's runs waits for it, and once the run continues. |
public_key | string | yes | The review's stable public address: rev_ followed by its identifier without hyphens. |
publication | string | yes | Whether the review reached the pull request: PUBLISHED, WITHHELD, PUBLICATION_REQUESTED or PUBLICATION_REFUSED. A review run from Proofline is withheld until somebody publishes it. |
publication_detail | string or null | no | Why a publication was refused, or how one failed. Server text. |
pull_request_author_avatar_url | string or null | no | Provider-supplied avatar URL. Login-derived .png URLs do not work for GitHub App bot accounts and are not portable across GitHub hosts. |
pull_request_author_github_user_id | integer (int64) or null | no | The author's stable GitHub user id: identity for profile lookups, never display text. Absent when GitHub named no author. |
pull_request_author_login | string or null | no | Provider display metadata for the pull request author, not the rerun requester. |
pull_request_author_name | string or null | no | The author's GitHub profile name, when known. Lead with it; the login is the fallback. Display metadata, never identity. |
pull_request_author_url | string or null | no | The author's profile on the deployment's GitHub host. Absent when no author login is known. |
pull_request_draft | boolean or null | no | Whether the pull request is a draft, as provider state last reported it. Display state only: an open draft keeps pull_request_state OPEN. Absent when pull_request_state is. |
pull_request_number | integer (int64) or null | no | The pull request number. Absent for a deployment or patch review. |
pull_request_state | string or null | no | Current provider state of the pull request: OPEN, CLOSED, or MERGED. Absent for deployment reviews or a missing projection. |
pull_request_title | string or null | no | The pull request's title as provider state last reported it, so it names the change rather than only numbering it. Untrusted text: renderers must treat it as text, never markup. |
pull_request_url | string or null | no | The pull request on GitHub. Absent for a deployment review or when the repository is unknown. |
questions_unavailable_reason | QuestionsUnavailableReason or null | no | Why Proofline answers no question about this run: FORK_PULL_REQUEST when the pull request is recorded as coming from a fork, whose conversations the fork policy excludes whatever the run. Absent otherwise, which does not mean a question will be answered: each one is still checked for access and retained evidence. |
refresh | RefreshView or null | no | How this review decided what it reviews after a push or a full-review request. Absent for a review that refreshes nothing, and while a refresh has not decided yet. |
related_reviews | array of RelatedReview | yes | Every other run for this pull request the caller can see, plus reviews joined to this one by supersession or rerun. |
repository_full_name | string or null | no | The repository's owner/name. Absent when the review names no repository. |
repository_id | string (uuid) or null | no | The review's repository. Set only on a single-review read, and absent there when the review names no repository. |
repository_name | string or null | no | The repository's name within its owner. Absent when the review names no repository. |
repository_url | string or null | no | The repository on GitHub. Absent when the deployment's web base cannot be joined with the stored name. |
requested_by | ActorView or null | no | Who asked for this review, for the reviews a person asked for: the run-now button, a rerun, a pull request review command, or local changes and pushed commits sent from the CLI or an editor. Absent on automatic reviews, and on reviews recorded before requesters were. |
review_comment_url | string or null | no | The pull request review Proofline submitted for this review. Null when it submitted none. |
review_cost_microcredits | integer (int64) or null | no | The review work within the total, excluding the separately billed PR walkthrough. Visible to the same callers as the total. |
review_retracted_at | string (date-time) or null | no | When a submitted pull request review was marked retracted, a marker only older versions set. Null otherwise. |
run_number | integer (int64) or null | no | One-based, append-only ordinal within one repository pull request. |
run_progress | RunProgress or null | no | Where an unfinished review's runs stand: running, queued for a worker, waiting for a scheduled step, or due again after an attempt that did not finish. Null once the review has ended. |
status | string | yes | The review's lifecycle status: PENDING, RUNNING, COMPLETED, INCOMPLETE, FAILED, SUPERSEDED, STOPPED or EXCLUDED. |
stoppable | boolean | yes | Whether the stop action applies: the review is PENDING or RUNNING and decides no deployment gate. It says nothing about the caller's permission. |
stopped_at | string (date-time) or null | no | When the review was stopped. Null unless it was stopped. |
stopped_by | ActorView or null | no | Who stopped this review, for a STOPPED review whose stop recorded its actor. Null otherwise. |
stopped_from | string or null | no | Where the review was stopped: PROOFLINE or PULL_REQUEST. Null unless the stop recorded it. |
subjects | array of SubjectView | yes | What this review covers: the revision under review and any companion repositories, workflow runs, artifacts or deployments. |
submitted_reviews | array of SubmittedReview | no | Every distinct review Proofline submitted on the pull request for this run, including the early code publisher's, oldest first. Absent when it submitted none. |
superseded_by_review_id | string (uuid) or null | no | The newer review that superseded this one. Null when none did or the caller cannot see it. |
trigger_origin | string | yes | Who asked for this review: AUTOMATIC, COMMAND, RERUN, MANUAL, or UNKNOWN for a trigger key this build does not recognise. |
trigger_source | PatchTriggerSource or null | no | The git hook that asked for this patch review: HOOK_PRE_COMMIT or HOOK_PRE_PUSH. Null for any other review, and for a patch review requested without naming a hook. |
walkthrough | WalkthroughView or null | no | The reviewed head's changed files in reading groups, with a line per file. Absent until the walkthrough is stored, and for a review that has none. |
Dataset#
Type: reviews, finding_outcomes, finding_validations, spend, findings
DeepReviewEscalation#
| Field | Type | Required | Description |
|---|---|---|---|
reason | string | yes | A fixed customer explanation; internal admission errors are withheld. |
status | DeepReviewEscalationStatus | yes | Automatic Deep Review selection for this exact comparison: pending or unavailable evidence, refused admission, admitted, or not selected. |
DeepReviewEscalationStatus#
Type: UNEVALUATED, REFUSED, ADMITTED, NOT_SELECTED
DeployCheckResult#
| Value | Description |
|---|---|
HEALTHY | The deployed revision runs, a completed change check covered it, and every signal the deploy compares was read in full and stayed within tolerance. A deploy whose task the delivery target maps to services compares only the signals that name no service and those that name one of its services in the signal's Cloud Run project, and in its location when it names one, or in the signal's ECS account and region, and in its cluster when it names one. Every other deploy compares every watched signal. With none watched, every ECS service's rollout completed instead. |
REGRESSED | The deploy stopped running after it landed, its own ECS rollout failed, or a signal moved past its tolerance in the worse direction. |
SUPERSEDED | A later deploy of another revision replaced this one. |
INCOMPLETE | Nothing regressed, and at least one gap leaves the check unproven. |
DeployCheckpoint#
One of the four checks of a deploy.
Type: LANDING, MINUTES_20, HOUR_1, DAY_1
DeployCoverageCheckpoint#
One checkpoint of a verified deploy.
| Field | Type | Required | Description |
|---|---|---|---|
checkpoint | DeployCheckpoint | yes | |
due_at | string (date-time) | yes | When a missing check becomes overdue, allowing the workflow's read delay, landing inventory reread, successor wait and transient-read retries. |
gaps | array of DeployVerificationGap | no | The gaps this window's check recorded, beside its recorded result; empty while no check of this window is recorded. The deploy's gaps unite those that leave it unproven. |
result | DeployCheckResult or null | no | The recorded result; absent while no check of this window is recorded. |
DeployCoverageState#
Where one deploy's verification stands. Each deploy has exactly one, so the counts add up to the population.
| Value | Description |
|---|---|
VERIFIED | All four checks recorded HEALTHY or REGRESSED and none names a gap, a change-check gap included. |
VERIFIED_UNTIL_SUPERSEDED | A later deploy of the same task replaced this one after its landing check, and every check before then recorded HEALTHY or REGRESSED and names no gap, a change-check gap included. The verification observed the deploy for as long as it ran; the next deploy's own verification covers the time after. |
SUPERSEDED | A later deploy replaced this one at its landing check, or a check before the replacement has no recorded result. |
INCOMPLETE | A check recorded INCOMPLETE, or a check other than SUPERSEDED names a gap, a change-check gap included, whatever it recorded. |
UNRECORDED | A check came due, or the verification run ended, with no result recorded for it. |
NOT_YET_DUE | The checks recorded so far established the revision and signals, and the next one is not due yet. |
UNVERIFIED | The deploy landed and no verification of it exists in this environment, as when it landed while deploy checks were off. A GitHub deploy with no verification whose deployments were all first received before the environment's link to its repository existed is not in the population at all. |
FAILED | The latest status of one of the deploy's GitHub deployments is failure or error, even after it landed; in an Actions run, the deployment of the latest attempt of one of its jobs. |
INACTIVE | The ledger holds only inactive statuses of the deploy's GitHub deployments: it never saw them land or fail. |
DeployVerificationGap#
A named reason a check could not establish part of what it compares.
| Value | Description |
|---|---|
CHANGE_CHECK_MISSING | No review covered the deployed revision. |
CHANGE_CHECK_INCOMPLETE | The change check that covered it did not complete. |
ENVIRONMENT_NOT_CHECKED | A completed review covered the deployed revision but did not assess this environment, as a pull request review does while environment checks are off. The review is cited; the environment stays unchecked. |
RUNNING_REVISION_UNKNOWN | The ledger shows no running revision for the deploy, or a late check's runtime read shows a later deployment of the same task that landed after the check came due, so it shows the present and not the window. |
RUNTIME_TARGET_UNAVAILABLE | The check found no runtime to read: the environment names no Cloud Run service, the deploy's task is mapped to no approved service, or the delivery target's ECS runtime has no connected AWS account. An AWS run whose delivery target names no ECS runtime records it too. |
RUNTIME_CAPABILITY_UNQUALIFIED | The AWS runtime was not read, because no serving artifact could yet be bound to a repository commit. Checks before AWS serving bindings recorded this for every AWS deploy; no check records it now. |
AWS_TELEMETRY_CONNECTION_UNAVAILABLE | No active AWS connection of the environment can read the CloudWatch signal, or, when every watched signal is a CloudWatch signal, any of them. |
RUNTIME_INVENTORY_UNAVAILABLE | The check could not read an inventory of the connection's Cloud Run services or ECS tasks: Kian retains none, or the read failed or timed out. Nothing shows what runs. |
RUNTIME_INVENTORY_STALE | The newest inventory is older than the reader accepts, or was observed before the deploy landed, so nothing is read from it. |
RUNTIME_INVENTORY_INCOMPLETE | The newest inventory's collection did not read every table the runtime read needs in full, so nothing is read from it. |
RUNTIME_SERVICE_UNKNOWN | The inventory holds no single record of a service the check reads. |
RUNTIME_TRAFFIC_UNKNOWN | A Cloud Run service's traffic shares do not add up to 100 percent, so what serves it is unknown. |
RUNTIME_REVISION_UNKNOWN | A serving Cloud Run route names no revision the inventory holds, or an ECS service has no running task, more tasks than the reader reads, or a running container without an image digest. |
RUNTIME_ROLLOUT_UNSETTLED | An ECS service's rollout has not settled: its primary deployment's rollout is not complete, it has more than one deployment, or it runs fewer tasks than it wants. When nothing else decides the runtime read, the check reads once more, after the next inventory collection, and records this only from that read. A failed rollout or a ledger successor decides the check at the first read, which records this beside it. |
RUNTIME_COMMIT_BINDING_MISSING | A serving revision or container shows no commit: neither a qualified attestation of a Cloud Run revision's image digest nor its commit-sha label names a commit, an ECS image has no single qualified attestation of its commit, or every running container was built elsewhere. |
RUNTIME_ATTESTATIONS_PERMISSION_PENDING | The running image's commit binding was not read because the repository's GitHub installation has not accepted the App's attestations permission. It replaces RuntimeCommitBindingMissing. |
RUNTIME_IMAGE_BUILT_EARLIER | A running ECS container binds to a commit the deployed revision descends from, and the images its ECR repository received after it were not all read or bound, so whether a later build at or before the deployed revision replaced it is unknown. The newest such build runs the deploy, and a replaced one is a mismatch. |
RUNTIME_TASK_UNMAPPED | The repository deploys several GitHub deployment tasks into the environment, and its delivery target's task map does not name this deploy's task. No other task's services stand for it. |
TELEMETRY_CONNECTION_UNAVAILABLE | Proofline holds no Cloud Monitoring read access for the environment. |
TELEMETRY_CREDENTIAL_UNAVAILABLE | The read credential could not be minted for this window. |
NO_SIGNALS_CONFIGURED | The environment watches no signal. A check whose every ECS service's rollout completed records it under the report's suggestions instead. |
NO_SIGNALS_FOR_TASK_SERVICES | The environment watches signals, but the deploy's task is mapped to services and every watched signal names a service the check does not compare, so it compared none. A mapped task's check compares a signal that names one of its services in the signal's Cloud Run project, and in its location when it names one, or in the signal's ECS account and region, and in its cluster when it names one. |
SIGNAL_PROJECT_NOT_CONNECTED | No verified Cloud Build connection of the environment reads the signal's project. A Cloud Run, GKE or other connection to the same project does not read its metrics. |
SIGNAL_CONFIGURATION_INVALID | The signal's descriptors or statistic do not form a valid query, the project has no such metric, or the statistic cannot apply to the metric's kind and value type. |
SIGNAL_RESPONSE_INVALID | Cloud Monitoring answered with something the reader refused. |
SIGNAL_READ_PARTIAL | The provider read covered only part of the window, for the reason the reading records. |
SIGNAL_READ_UNAVAILABLE | The provider read returned nothing for the window, for the reason the reading records, such as a refused permission. |
SIGNAL_NO_DATA | A complete read returned no point and the signal does not treat that as zero. |
SIGNAL_NOT_SINGLE_SERIES | The provider reduced the read to more than one series. |
SIGNAL_BUCKET_UNEXPECTED | The read returned more than one bucket for the window. |
BASELINE_UNAVAILABLE | The window has a value and its baseline before landing has none. |
BELOW_TRAFFIC_FLOOR | A compared service's traffic signal counted fewer requests than its floor in the check's window or in its baseline, so that service's other signals say too little to call the check healthy. Each of the service's signal reports names the floor, both windows and their counts under traffic. |
BASELINE_HELD_REGRESSION | An earlier deploy of the same task found the signal regressed in a check whose window overlaps the hour before this deploy started, and the baseline that check compared with is not usable: its window ended more than a day before this deploy started, or the signal would no longer send the query it cites. The regressed hour is never compared in its place, so the signal is not compared. |
DomainView#
| Field | Type | Required | Description |
|---|---|---|---|
domain | string | yes | The risk domain this evaluation covers. |
reason | string | yes | Why the domain was considered or skipped, as recorded with the evaluation. |
status | string | yes | CONSIDERED or SKIPPED. |
EarlierOpenFinding#
A published occurrence of an unresolved series absent from the current run.
| Field | Type | Required | Description |
|---|---|---|---|
finding_id | string (uuid) | yes | The occurrence in the series' first published review. |
finding_series_id | string (uuid) | yes | The unresolved environment finding series counted for this run. |
review_id | string (uuid) | yes | The first published review containing this occurrence. |
run_number | integer (int64) | yes | The earlier pull-request run that contains this occurrence. |
severity | string | yes | Severity used by the series count; the linked occurrence may be less severe. |
title | string or null | no | The linked occurrence's title, which heads the series' GitHub thread. Absent when the occurrence has none or its review withheld a value from it, so no text that review kept off GitHub is shown here. |
EnvironmentCheck#
One environment linked to the reviewed repository, and whether this review checked it.
| Field | Type | Required | Description |
|---|---|---|---|
environment_display_name | string | yes | The environment's display name. |
environment_external_key | string | yes | The environment's key, which names its console pages. |
reason | EnvironmentCheckReason or null | no | Why the environment was not checked or does not apply. Null when it was checked or its check is still running. |
state | EnvironmentCheckState | yes | Whether this review checked the environment. |
EnvironmentCheckReason#
| Value | Description |
|---|---|
NOT_COVERED | NOT_CHECKED: Proofline does not check this environment for pull requests, so the review assessed its code only. |
NO_CLOUD_ACCOUNT | NOT_CHECKED: no AWS account, Google Cloud project or Azure subscription is connected to the environment, so the review assessed its code only. The environment's Setup page connects one. |
READS_REFUSED | NOT_CHECKED: the environment's assessment is incomplete because the inventory it pinned lacks reads a connected account's role refused. The environment's Setup page names them. |
FORK_PULL_REQUEST | NOT_CHECKED: the pull request comes from a fork, which Proofline does not check against an environment. |
UNFINISHED | NOT_CHECKED: the environment's assessment did not finish. |
ENDED | NOT_CHECKED: the review or the assessment stopped before the environment was checked. |
PULL_REQUEST_REVIEWS_OFF | NOT_APPLICABLE: pull request reviews are off on this repository's link to the environment. |
EnvironmentCheckState#
| Value | Description |
|---|---|
CHECKED | The environment's assessment finished. |
CHECKING | The environment's assessment is still running. |
NOT_CHECKED | The review did not check the environment; reason says why. |
NOT_APPLICABLE | The repository's link to the environment does not ask for pull request reviews; reason says so. |
ExportEvidenceKind#
Type: repository_file, repository_file_at_commit, companion_repository_file, commit, workflow_run, world_entity, deterministic_test, recorded_read, text
ExportEvidenceRef#
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable opaque occurrence-local identity, independent of evidence values. |
kind | ExportEvidenceKind | yes | The recorded reference kind, or text for a kind this export does not recognize. |
ExportFindingLane#
The review lane whose assessment recorded a finding.
| Value | Description |
|---|---|
ENVIRONMENT | An environment assessment, which covers one environment. |
CODE | The code assessment of the review's repository, which covers no environment. |
ExportFindingLifecycle#
Type: NEW, UNCHANGED, RESOLVED, REINTRODUCED
ExportFindingSeverity#
Type: WARNING, SERIOUS
ExportReviewKind#
Type: PULL_REQUEST, DEPLOYMENT, PATCH, COMMIT, FILES, MERGE_GROUP, REVISION_SCAN
ExportReviewStatus#
Type: PENDING, RUNNING, COMPLETED, INCOMPLETE, FAILED, SUPERSEDED, STOPPED, EXCLUDED
ExportRow#
The closed row vocabulary of the existing raw-stream export operation.
Type: ReviewsExportRow or FindingOutcomesExportRow or FindingValidationsExportRow or SpendExportRow or FindingsExportRow
ExportValidation#
Type: UNKNOWN, CONFIRMED, DISMISSED, FIXED, ACCEPTED_RISK, ALREADY_COVERED
ExportValidationSource#
Type: ui, github_comment, proofline
FileFact#
| Field | Type | Required | Description |
|---|---|---|---|
additions | integer (int64) | yes | Lines added in this file's recorded diff. |
deletions | integer (int64) | yes | Lines deleted in this file's recorded diff. |
depth | ReviewDepth | yes | The review depth recorded for this file. |
path | string | yes | The repository-relative path of the changed file. |
previous_path | string or null | no | The path before a rename. |
status | string | yes | GitHub's file status: added, modified, removed, renamed and so on. |
FileProjection#
| Field | Type | Required | Description |
|---|---|---|---|
depth | string | yes | The code-inspection depth retained by the plan. |
passes | array of string | yes | The review passes bound to this file. |
path | string | yes | Repository-relative path retained by the routing plan. |
FileReviewRequest#
Whole files selected at one exact pushed commit.
| Field | Type | Required | Description |
|---|---|---|---|
commit_sha | string | yes | The exact pushed commit whose whole files are reviewed. |
paths | array of string | yes | Between one and twenty exact repository-relative file paths. |
FileReviewResponse#
What a named-file review request produced.
| Field | Type | Required | Description |
|---|---|---|---|
existing | boolean | yes | True when this exact selection already had a review and that one is returned. Sending the same selection twice by the same person reviews it once. |
review_id | string (uuid) | yes | The review of this selection, readable through the review and findings routes. |
FileScope#
The retained selection, not a digest of file contents. Its identity uses a version prefix and length-framed UTF-8 paths in their sorted order.
| Field | Type | Required | Description |
|---|---|---|---|
paths | array of string | yes | Sorted, unique repository-relative paths selected for whole-file review. |
paths_digest | string | yes | Digest of the selected paths, not the file contents. |
FilterChoice#
| Field | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | yes | The repository or environment ID to pass as the filter value. |
name | string | yes | The repository's full name or the environment's display name. |
FindingCausalEdgeView#
| Field | Type | Required | Description |
|---|---|---|---|
from | string | yes | The id of the node the edge starts at. |
label | string or null | no | What the relation is. Model-authored text, and absent when the reviewer gave none. |
to | string | yes | The id of the node the edge ends at. |
FindingCausalGraphView#
| Field | Type | Required | Description |
|---|---|---|---|
edges | array of FindingCausalEdgeView | yes | Directed relations between nodes. An edge can name a node identifier that no node carries. |
nodes | array of FindingCausalNodeView | yes | The actors in the finding, as the reviewer named them. |
FindingCausalNodeView#
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | The reviewer-assigned node identifier that edges refer to. Model-authored text. |
label | string | yes | What the node is. Model-authored text: render as text. |
role | string | yes | One of change, dependency, failure, blocked or ok, or empty; a value outside that set is returned as recorded. |
FindingEvidenceClass#
| Value | Description |
|---|---|
ANALYZER_BACKED | |
CODE_ONLY | |
WORLD_EVIDENCED | A World entity or deterministic World evaluation at the pinned snapshot. |
EXPERIMENT_BACKED | A read of the deployed environment the sandbox recorded. |
FindingFixPrompt#
One of these objects, told apart by status:
status | Description | Other fields |
|---|---|---|
AVAILABLE | untrusted_text (string, required) | |
UNAVAILABLE | reason (string, required) |
FindingOutcomesCount#
| Field | Type | Required | Description |
|---|---|---|---|
count | integer (int64) | yes | Published finding series in the group whose series disposition is RESOLVED_BY_PUSH. |
drilldown | FindingOutcomesDrilldown | yes | The query that lists the series behind count. |
FindingOutcomesDrilldown#
| Field | Type | Required | Description |
|---|---|---|---|
group_key | string | yes | The group_key query value that limits the listed series to this count's group. |
outcome | FindingOutcomesOutcome or null | no | The outcome query value for an outcome selector, and null for every other selector. |
post_merge | FindingOutcomesPostMergeOutcome or null | no | The post_merge query value for a post_merge selector, and null for every other selector. |
selector | FindingOutcomesSelector | yes | The selector query value that lists the series behind this count. |
FindingOutcomesExportRow#
Exact shared aggregate counts for one admitted group and requested window.
| Field | Type | Required | Description |
|---|---|---|---|
code_changed | FindingOutcomesCount | yes | Published series whose series disposition is RESOLVED_BY_PUSH. |
dataset_version | integer (uint16) | yes | The row contract version, always 1. |
external_validation_denominator | integer (int64) | yes | Human-validated series; excludes automatic coverage and unrecorded outcomes. |
from | string (date-time) | yes | The inclusive start of the requested first-publication window. |
group_by | FindingOutcomesGroupBy | yes | The dimension that defines this row's group. |
key | string | yes | The grouping value: a repository or environment ID, a risk domain, a severity or a review kind, as group_by selects. Grouped by environment, code-lane findings, which belong to no environment, share the key code_review. |
limitations | array of string | yes | Gaps in publication history that keep findings outside these counts; they mean missing history, not zero findings. |
name | string | yes | The group's display name: the repository's full name (or Repository and its ID when no name is recorded), the environment's display name (Code review for the code-lane group), or otherwise key. |
organization_id | string (uuid) | yes | The organization whose findings are counted. |
outcomes | array of FindingOutcomesOutcomeCount | yes | One count per outcome, always all six FindingOutcomesOutcome values in a fixed order. |
post_merge | FindingOutcomesPostMergeCounts | yes | Published series counted by their latest post-merge comment-address evaluation. |
published | integer (int64) | yes | Finding series in the group whose first publication falls inside the window. |
to | string (date-time) | yes | The exclusive end of the requested first-publication window. |
FindingOutcomesGroupBy#
Type: repository, environment, risk_domain, severity, subject_kind
FindingOutcomesOutcome#
Type: FIXED, CONFIRMED, ACCEPTED_RISK, DISMISSED, ALREADY_COVERED, NO_RECORDED_OUTCOME
FindingOutcomesOutcomeCount#
| Field | Type | Required | Description |
|---|---|---|---|
count | integer (int64) | yes | Published finding series in the group whose latest qualifying outcome is outcome. |
drilldown | FindingOutcomesDrilldown | yes | The query that lists the series behind count. |
outcome | FindingOutcomesOutcome | yes | The outcome counted, where NO_RECORDED_OUTCOME means the series has no qualifying validation. |
validation_sources | FindingOutcomesValidationSources | yes | count split by where the outcome was recorded; a NO_RECORDED_OUTCOME count has no source. |
FindingOutcomesPostMergeCount#
| Field | Type | Required | Description |
|---|---|---|---|
count | integer (int64) | yes | Published finding series in the group whose latest evaluation recorded outcome. |
drilldown | FindingOutcomesDrilldown | yes | The query that lists the series behind count. |
outcome | FindingOutcomesPostMergeOutcome | yes | The outcome of the series' latest comment-address evaluation. |
FindingOutcomesPostMergeCounts#
| Field | Type | Required | Description |
|---|---|---|---|
judged | integer (int64) | yes | Series with a retained evaluation, rather than all published series. |
outcomes | array of FindingOutcomesPostMergeCount | yes | One count per post-merge outcome, always ADDRESSED, NOT_ADDRESSED and INCOMPLETE in that order. |
FindingOutcomesPostMergeOutcome#
Type: ADDRESSED, NOT_ADDRESSED, INCOMPLETE
FindingOutcomesSelector#
Type: outcome, code_changed, post_merge
FindingOutcomesValidationSources#
| Field | Type | Required | Description |
|---|---|---|---|
console | integer (int64) | yes | Series whose outcome comes from a validation recorded in the console. |
github_reply | integer (int64) | yes | Series whose outcome comes from a validation recorded by a GitHub comment reply. |
proofline | integer (int64) | yes | Series whose outcome is ALREADY_COVERED, recorded by Proofline itself. |
FindingPlacement#
Where the comment gate placed a finding. The placement is what the gate decided, not proof that a comment was posted.
| Value | Description |
|---|---|
INLINE | An inline comment on the pull request. |
CHECK_ONLY | A line on the Check, with no inline comment. |
WITHHELD | Kept off the pull request. |
FindingPlacementView#
| Field | Type | Required | Description |
|---|---|---|---|
placement | FindingPlacement | yes | The recorded placement. |
reason | string | yes | Why the finding has this placement, in Proofline's own words. |
FindingPromotionView#
| Field | Type | Required | Description |
|---|---|---|---|
created_at | string (date-time) | yes | When the immutable human override was requested. |
detail | string or null | no | Provider refusal, when publication could not proceed. |
promoted_by_login | string | yes | Display metadata for the person who requested the override. |
status | string | yes | Recorded publication state of the human override. |
FindingRuleIncidentView#
The incident behind a cited prevention rule, as the finding's assessment pinned it.
| Field | Type | Required | Description |
|---|---|---|---|
check | string | yes | What the assessment's pinned Kian view showed of that condition. |
commit_sha | string | yes | The commit the incident's confirmed cause names. |
condition | string | yes | What the incident needed in the environment. |
investigation_id | string (uuid) | yes |
FindingRuleRefView#
One review rule a finding cites. It carries no rule text and no scope identifier; the review rules page shows those to its readers.
| Field | Type | Required | Description |
|---|---|---|---|
key | string | yes | The rule key. |
revisions | array of FindingRuleRevisionView | yes | The layers of the key the assessment showed the reviewer, in precedence order. A team rule is a layer over the key for the files it matches. |
FindingRuleRevisionView#
| Field | Type | Required | Description |
|---|---|---|---|
incident | FindingRuleIncidentView or null | no | The incident a prevention rule came from. Absent for every other rule. |
revision | integer (int32) or null | no | The console revision. Null for a configuration-file or implicit rule. |
scope | string | yes | ORGANIZATION, ENVIRONMENT, TEAM or REPOSITORY. |
source | RuleSource | yes | Where the rule came from: the console, the repository's configuration file, or the implicit repository and environment guidance. |
FindingSupport#
| Field | Type | Required | Description |
|---|---|---|---|
evidence_refs | array of CustomerEvidenceRef | yes | The references the hypothesis cites for its verdict. |
explanation | UntrustedText or null | no | Why the hypothesis reached its verdict, as recorded at resolution. Null when no explanation is recorded. |
FindingValidationsExportRow#
One append-only validation, including its recorded actor display metadata. Missing historical actors stay absent; the export does not infer identity.
| Field | Type | Required | Description |
|---|---|---|---|
actor_github_user_id | integer (int64) or null | no | The GitHub user ID captured as the actor, null when none was captured. |
actor_login | string or null | no | The GitHub login captured as display metadata at validation time, null when none was captured. |
actor_user_id | string (uuid) or null | no | The Proofline user captured as the actor, null when none was captured. |
created_at | string (date-time) | yes | When the validation was recorded; the export window filters on this time. |
dataset_version | integer (uint16) | yes | The row contract version, always 2. |
environment_id | string (uuid) or null | no | The environment of the assessment that recorded the finding, null for a code-lane finding. |
expires_at | string (date-time) or null | no | When the decision expires, null when it records no expiry. |
finding_id | string (uuid) | yes | The finding occurrence the validation applies to. |
lane | ExportFindingLane | yes | The lane of the assessment that recorded the finding. |
organization_id | string (uuid) | yes | The organization that owns the finding. |
repository_id | string (uuid) or null | no | The review's primary repository, null when the review records none. |
review_id | string (uuid) | yes | The review whose assessment recorded the finding. |
source | ExportValidationSource | yes | Where the decision was recorded: ui or github_comment for a person, proofline for automatic coverage. |
validation | ExportValidation | yes | The recorded decision, including legacy UNKNOWN values. |
validation_id | string (uuid) | yes | The stable ID of this validation record. |
FindingsExportRow#
One immutable finding occurrence. Reference payloads and evidence values stay private.
| Field | Type | Required | Description |
|---|---|---|---|
assessment_id | string (uuid) | yes | The environment or code assessment that recorded the finding; lane says which. |
claim | string | yes | The finding's claim, with supported credential shapes masked as <REDACTED:kind>. |
created_at | string (date-time) | yes | When the finding was recorded; the export window filters on this time. |
dataset_version | integer (uint16) | yes | The row contract version, always 2. |
environment_id | string (uuid) or null | no | The environment the assessment covers, null for a code-lane finding. |
evidence_refs | array of ExportEvidenceRef | yes | The finding's evidence references in recorded order, each reduced to a kind and an opaque ID; an empty list means the finding records none. |
finding_id | string (uuid) | yes | The stable ID of this finding occurrence. |
impact | string | yes | The finding's stated impact, with supported credential shapes masked. |
lane | ExportFindingLane | yes | The lane of the assessment that recorded the finding. |
lifecycle_state | ExportFindingLifecycle | yes | The occurrence's recorded lifecycle state relative to earlier occurrences. |
organization_id | string (uuid) | yes | The organization that owns the finding. |
remediation | string or null | no | The suggested remediation with credential shapes masked, null when none is recorded. |
repository_id | string (uuid) or null | no | The review's primary repository, null when the review records none. |
review_id | string (uuid) | yes | The review whose assessment recorded the finding. |
risk_domain | string | yes | The risk domain the finding is recorded under. |
series_id | string (uuid) or null | no | The finding series this occurrence belongs to, null when it belongs to none. |
severity | ExportFindingSeverity | yes | The finding's recorded severity. |
GateStatus#
Type: REQUESTED, EVALUATING, ALLOWED, BLOCKED, BYPASSED, SUPERSEDED
IncompleteCause#
Why an assessment of the review ended incomplete, as the assessment recorded it (incompleteness_kind), or UNKNOWN when none did.
| Value | Description |
|---|---|
NOT_CONFIGURED | |
POLICY_EXCLUDED | |
EVIDENCE_UNAVAILABLE | |
HYPOTHESES_UNRESOLVED | |
MODEL_BUDGET_EXHAUSTED | |
UNKNOWN | The review ended incomplete and no assessment recorded why. |
KianFindingSource#
What published a supported Kian finding.
| Value | Description |
|---|---|
CONFIRMED_REQUIREMENT | A service violates a confirmed gate requirement of its delivery target ([requirements]). |
INVESTIGATION | The environment investigation found it ([kian_investigation]). |
SHARED_IDENTITY | A workload loses access when a change removes or narrows a grant on its shared identity. |
LinkedIssueCapture#
The count and outcome of a review's linked-issue receipt. Issue numbers, titles and the receipt's gaps stay in the receipt.
| Field | Type | Required | Description |
|---|---|---|---|
captured_count | integer (int64) | yes | How many issues the review captured as context. |
outcome | LinkedIssueOutcome | yes |
LinkedIssueOutcome#
What the review's linked-issue preparation found.
| Value | Description |
|---|---|
NOT_CONFIGURED | No issue source was connected for the review. |
NO_REFERENCES | The pull request referenced no issue. |
PREPARED | The pull request referenced issues and the source was read. |
SOURCE_UNAVAILABLE | The source could not be read, or the review's evaluation withheld linked issues. |
LocalReverification#
One finding a patch review re-verified against the patch. The outcome is local: the pull request's finding is unchanged whatever it is.
| Field | Type | Required | Description |
|---|---|---|---|
checks | any | yes | Each deterministic check the finding cited and its result on the patched head. Empty until an outcome is recorded. |
finding_id | string (uuid) | yes | The finding being re-verified against this patch. |
iteration | integer (int32) | yes | The request's number among the requests to re-verify the finding's series on this patch, at most 3. |
outcome | LocalReverificationOutcome | yes | The local re-verification result; it does not change the original finding. |
stored_check | LocalStoredCheck or null | no | The check a code reproduction stored for the finding, which a pushed head runs again; run its command against the local changes before pushing. The patch review does not run it. Absent for a finding with no stored check. |
LocalReverificationOutcome#
RESOLVED_VERIFIED needs the re-investigation to reject the finding's hypothesis and every cited check to pass. STILL_PRESENT: the hypothesis is supported, or a check still finds the mechanism. NOT_VERIFIED: anything else, including a review that ended without an answer. PENDING: the review is still running.
Type: RESOLVED_VERIFIED, STILL_PRESENT, NOT_VERIFIED, PENDING
LocalStoredCheck#
A finding's stored check and the newest result it gave. Its runs show what the code did under the conditions the test exercised in a sandbox, and establish no fact about a deployed environment.
| Field | Type | Required | Description |
|---|---|---|---|
check_id | string (uuid) | yes | |
command | string | yes | The command the sandbox ran the test with, as the agent recorded it, with the reproducing review's protected values withheld, and withheld whole when that provenance is gone. Untrusted text: render it as text. |
last_result | StoredCheckResult or null | no | Absent only for a check with no recorded run. |
MatchedLocalFinding#
A local occurrence with the same semantic fingerprint as this finding.
| Field | Type | Required | Description |
|---|---|---|---|
created_at | string (date-time) | yes | When the local review was requested. |
finding_id | string (uuid) | yes | The occurrence in that local review. |
review_id | string (uuid) | yes | The author's local review, linked by exact patch identity. |
NotAssessedView#
| Field | Type | Required | Description |
|---|---|---|---|
environment_display_name | string | yes | The display name of the environment whose assessment is not COMPLETED. |
incompleteness_kind | string or null | no | The assessment's recorded gap class. Absent is an unclassified gap, never a complete assessment. |
OpenFindingCounts#
| Field | Type | Required | Description |
|---|---|---|---|
serious | integer (uint64) | yes | Finding series with SERIOUS severity that are unresolved and not under an unexpired dismissal or risk acceptance. |
warning | integer (uint64) | yes | Finding series with WARNING severity that are unresolved and not under an unexpired dismissal or risk acceptance. |
OpenItemEnvironment#
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | yes | The environment's display name. |
environment_id | string (uuid) | yes | The environment whose assessment is not complete. |
reason | OpenItemsGapReason | yes | Why the assessment is not complete, derived from its status and recorded gap class; UNKNOWN when neither names a cause. |
status | OpenItemsReviewStatus | yes | The assessment's recorded status. |
OpenItemsGapReason#
Type: NOT_STARTED, IN_PROGRESS, NOT_CONFIGURED, POLICY_EXCLUDED, EVIDENCE_UNAVAILABLE, HYPOTHESES_UNRESOLVED, MODEL_BUDGET_EXHAUSTED, FAILED, STOPPED, UNKNOWN
OpenItemsHeadState#
Type: CURRENT, OUTDATED, UNKNOWN
OpenItemsReviewStatus#
Type: PENDING, RUNNING, COMPLETED, INCOMPLETE, FAILED, SUPERSEDED, STOPPED, EXCLUDED, UNKNOWN
OpenItemsThreadUnknown#
Type: GITHUB_UNAVAILABLE, READ_LIMIT_EXCEEDED, TRUNCATED, RECORDED_THREAD_MISSING, REPOSITORY_UNAVAILABLE
OpenItemsThreads#
One of these objects, told apart by status:
status | Description | Other fields |
|---|---|---|
KNOWN | observed_at (string (date-time), required); open_finding_threads (integer (uint64), optional); unresolved_count (integer (uint64), required); unresolved_urls (array of string, optional) | |
UNKNOWN | reason (OpenItemsThreadUnknown, required) |
OpenItemsView#
Recorded unresolved findings, accepted risks and assessment gaps. Coverage and notification suppression do not resolve a finding. These scalar counts make no claim about current heads, evaluated scope or threads.
| Field | Type | Required | Description |
|---|---|---|---|
accepted_risks | integer (uint) | yes | Finding series whose current decision is an unexpired ACCEPTED_RISK. |
earlier_findings | array of EarlierOpenFinding | no | Exact published occurrences of earlier unresolved environment findings. |
not_assessed | array of NotAssessedView | yes | Recorded assessment gaps, including explicit policy exclusions. |
open_findings | integer (uint) | yes | Unresolved recorded finding series, including notification-suppressed findings, decisions whose dismissal or risk acceptance expired, and earlier published series of the pull request that this review did not find again, and the supported findings its KIAN environment assessments published: each violated confirmed gate requirement the change does not set and each investigation finding, which have no severity. |
serious_findings | integer (uint) | yes | The SERIOUS findings among open_findings. |
Outcome#
Type: ALLOW, BLOCK
PassProjection#
| Field | Type | Required | Description |
|---|---|---|---|
model_binding | string | yes | Symbolic configuration binding, not a historical model identity. |
name | string | yes | Pass name from the closed routing schema. |
PatchReviewRequest#
Local changes to review: a unified diff against a commit GitHub has.
| Field | Type | Required | Description |
|---|---|---|---|
base_commit_sha | string | yes | The full 40-character commit the patch applies to. GitHub must have it in this repository. |
patch | string | yes | The changes as git diff --no-ext-diff --no-color <base> prints them, at most 5 MiB and 3000 files. Text changes only: binary changes, symbolic links and submodules are refused. |
trigger_source | PatchTriggerSource or null | no | The git hook that sent this request, when one did. A review recorded by an earlier identical request keeps the source it recorded. |
verify_finding_ids | array of string (uuid) | no | Open findings of one pull request in this repository to re-verify against the patch, at most 20. The review re-investigates each one and reports its outcome in local_reverifications; the pull request's findings are unchanged whatever it is. Requires an API token. Each finding's series takes at most 3 requests per patch, and the pull request at most 10 re-verification requests per hour, counted with those a coding agent makes through MCP. |
PatchReviewResponse#
What a patch review request produced.
| Field | Type | Required | Description |
|---|---|---|---|
existing | boolean | yes | True when this patch on this base already had a review and that one is returned. Sending the same patch twice reviews it once. |
patch_digest | string | yes | SHA-256 of the canonical patch, the identity the review pins with the repository and base commit. |
review_id | string (uuid) | yes | The review of this patch on this base, readable through the review and findings routes. |
verify | array of PatchVerification | yes | Each finding of verify_finding_ids the review re-verifies, one per finding series. Empty without verify_finding_ids. |
PatchTriggerSource#
The git hook that asked for a patch review. The client declares it; it is provenance for the reader, never an authority.
Type: HOOK_PRE_COMMIT, HOOK_PRE_PUSH
PatchVerification#
One finding a patch review re-verifies against the patch.
| Field | Type | Required | Description |
|---|---|---|---|
finding_id | string (uuid) | yes | The finding being re-verified against this patch. |
iteration | integer (int32) | yes | This request's number among the requests to re-verify the finding's series on this patch, at most 3. |
PlanProjection#
| Field | Type | Required | Description |
|---|---|---|---|
assessments | array of AssessmentProjection | yes | Environment assessment bindings recorded in the plan. |
base_sha | string | yes | Base commit pinned by the change digest. |
change_digest_sha256 | string | yes | Digest of the exact retained change input. |
fallback_causes | array of string | yes | Safe codes for fallback causes. Unrecognized values are never echoed. |
files | array of FileProjection | yes | File routing facts recorded in the plan. |
head_sha | string | yes | Head commit pinned by the change digest. |
repository_id | string (uuid) | yes | Repository named by the validated immutable plan. |
Problem#
RFC 9457 problem-details body. type is omitted and therefore about:blank: the title/detail pair carries the meaning.
| Field | Type | Required | Description |
|---|---|---|---|
detail | string or null | no | A caller-safe explanation of this occurrence, absent when the cause is an internal error that is logged rather than returned. |
status | integer (uint16) | yes | The HTTP status code of the response that carries this body. |
title | string | yes | A short, stable summary of the problem class, such as not found or conflict. |
Prose#
| Field | Type | Required | Description |
|---|---|---|---|
headline | string | yes | At most 120 characters. |
notable_paths | array of string | yes | Paths in the pinned diff the prose calls out. |
paragraphs | array of string | yes | At most three of at most 400 characters; one on the SHORT route. |
ProseOutcome#
Why the summary carries prose or does not.
| Value | Description |
|---|---|
PUBLISHED | |
NO_CHANGE_DIGEST | The review recorded no change digest to summarize. |
NOT_REQUESTED | The applied route was DETERMINISTIC_ONLY. |
MODEL_UNAVAILABLE | No fast-tier model was bound, priced or funded, or it did not answer. |
MALFORMED | The answer did not fit the tool's schema or its limits. |
REJECTED | The prose used a word a summary never uses ("safe", "no risk", "approved") or named a path outside the diff. |
UNGROUNDED | Jev answered that a statement does not follow from the diff slices. |
ProviderWait#
A provider wait that holds the review now.
| Field | Type | Required | Description |
|---|---|---|---|
reason | ProviderWaitReason | yes | GITHUB_RATE_LIMIT: GitHub's rate limit for the organization's App installation is reached, and the review continues after it resets. |
until | string (date-time) | yes | When the wait ends: the reset GitHub named, or, when it named none, when the run is due again. |
ProviderWaitReason#
Why a review's run waits on a provider.
Type: GITHUB_RATE_LIMIT
PullRequestMergeGate#
| Field | Type | Required | Description |
|---|---|---|---|
assessment_count | integer (int32) or null | no | The number of environment assessments counted by the recorded decision. Null before a decision. |
blocking_severity | string | yes | The frozen blocking threshold, either SERIOUS (serious and critical findings) or WARNING (every supported finding); later settings do not restamp it. |
bypassed_at | string (date-time) or null | no | When the bypass receipt was recorded. Null when this gate has no recorded bypass. |
coverage_digest | string or null | no | The digest of the deterministic coverage used by the decision, or null when no digest was recorded. |
decided_at | string (date-time) or null | no | When the immutable decision was recorded. Null before a decision. |
decision | Outcome or null | no | The immutable ALLOW or BLOCK decision. Null until a decision is recorded. |
finding_count | integer (int32) or null | no | The number of blocking findings counted by the recorded decision. Null before a decision. |
head_sha | string | yes | The exact lowercase commit SHA whose captured policy this gate evaluates. |
id | string (uuid) | yes | The immutable identity of the gate captured for this tenant, repository and head. |
merge_commit_sha | string or null | no | The exact merge commit reported by GitHub for the bypass, or null when none was reported. |
merged_by_github_user_id | integer (int64) or null | no | The stable GitHub user ID reported by a merged-close bypass, or null when none was reported. |
merged_by_login | string or null | no | The merger's GitHub login as this organization's developer record last saw it. Display metadata only. Null when the organization has no record of that user. |
merged_by_name | string or null | no | The merger's name, from the organization's developer record or their Proofline account. Display metadata only: merged_by_github_user_id stays the identity. Null when unknown. |
merged_pull_request_number | integer (int64) or null | no | The actual pull request merged in the recorded bypass, which may differ from the captured PR. |
policy_version | string | yes | The deterministic policy version frozen when this gate was captured. |
pull_request_number | integer (int64) | yes | The first pull request that captured this head's gate; a shared-head merge may name another PR. |
reason_code | string or null | no | The recorded deterministic decision or refusal reason. Null until a decision is recorded. |
review_id | string (uuid) or null | no | The review the gate decides from: the first review captured, or the one retry that replaced a review that could not finish. Null when its trigger was refused before a review existed. |
status | GateStatus | yes | The current gate projection, including a recorded bypass or supersession by a newer head. |
QuestionsUnavailableReason#
Type: FORK_PULL_REQUEST
RefreshView#
A recorded refresh decision, as the console shows it.
| Field | Type | Required | Description |
|---|---|---|---|
decided_by | string or null | no | What decided: FLOOR, a refresh rule that always reviews the whole change; JEV, Proofline's decision model within those rules; or FALLBACK, the refresh rules because the model did not decide. Absent for a full review a person requested, and for reviews decided before it was recorded. |
mode | string | yes | INCREMENTAL reviews only the files the push touched and carries the earlier review's untouched findings forward; FULL reviews the whole change. |
reason | string or null | no | Why, in words. Server text that may name repository paths. |
refreshes_review_id | string (uuid) or null | no | The review this one refreshes. Absent for a full review a person requested. |
RefusedEnvironment#
An environment a refusal names. external_key is how its pages are addressed.
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | yes | The environment's display name. Tenant free text: render as text. |
external_key | string | yes | The environment's stable machine key, unique within the organization. |
id | string (uuid) | yes | The environment's identifier. |
status | string | yes | The environment's lifecycle status, such as READY. |
RelatedReview#
| Field | Type | Required | Description |
|---|---|---|---|
created_at | string (date-time) | yes | When the related review was created. |
head_commit_sha | string or null | no | The head commit the related review is pinned to. Absent when it recorded none. |
public_key | string | yes | The related review's stable public address. |
relation | string | yes | A direct lineage relation, EARLIER_RUN / LATER_RUN when the two reviews share a pull request without a direct lineage edge, or LOCAL_REVIEW for the pull request author's local review of exactly the same change. |
review_id | string (uuid) | yes | The related review's identifier. |
run_number | integer (int64) or null | no | The related review's one-based ordinal within its pull request. Absent for a review that is not of a pull request. |
status | string | yes | The related review's lifecycle status. |
RepositoryGuidance#
| Field | Type | Required | Description |
|---|---|---|---|
additional_prompt | string or null | no | The repository-specific reviewer guidance new reviews snapshot, null when none is set. |
repository_id | string (uuid) | yes | The repository's stable Proofline ID. |
RepositoryName#
| Field | Type | Required | Description |
|---|---|---|---|
full_name | string | yes | The provider's owner/name. Display metadata: it can change on a rename, so callers keep id. |
id | string (uuid) | yes | The repository's stable Proofline ID. |
RepositoryNames#
| Field | Type | Required | Description |
|---|---|---|---|
repositories | array of RepositoryName | yes | The organization's repositories that are not deleted, ordered by name; a repository-restricted token sees only its allowlist. |
RerunResponse#
Manual rerun: a new review of the same immutable subjects, under a fresh trigger key so history accumulates instead of overwriting.
| Field | Type | Required | Description |
|---|---|---|---|
public_key | string | yes | The new review's stable public address. |
pull_request_number | integer (int64) or null | no | The pull request number. Absent for a deployment review. |
repository_name | string or null | no | The repository's name within its owner. Absent when the original review names no repository. |
review_id | string (uuid) | yes | The new review's identifier. |
run_number | integer (int64) or null | no | The new review's one-based ordinal within its pull request. Absent for a deployment review. |
ReviewActions#
| Field | Type | Required | Description |
|---|---|---|---|
promote_findings | boolean | yes | Whether a browser caller may request publication of a routed finding. |
publish | boolean | yes | Whether the caller may publish this pull request review's withheld results, which requires a browser session and repository write access. |
rerun | boolean | yes | Whether the caller may rerun this review. |
stop | boolean | yes | Whether the caller may stop this review from a browser session. |
unavailable_reason | ActionUnavailability or null | no | Why an action is unavailable, when a permission or repository check denied it. Null when no check denied one, which does not mean every action is allowed. |
validate_findings | boolean | yes | Whether the caller may record decisions on findings from a browser session. |
ReviewCostFunding#
What paid for a run's credit cost, as Usage splits a day. The three parts add up to the cost.
| Field | Type | Required | Description |
|---|---|---|---|
free_review_microcredits | integer (int64) | yes | Paid by the free review month: the same organization's free-review:{debit_id} grants for the run's debits. |
organization_microcredits | integer (int64) | yes | Taken from the organization's shared credit balance. |
plan_microcredits | integer (int64) | yes | Paid by the workspace allowance or the author's seat. |
ReviewDepth#
The depth the applied route plan read a file at.
Type: STANDARD
ReviewDiffStats#
| Field | Type | Required | Description |
|---|---|---|---|
additions | integer (int64) | yes | Lines added across every changed file in the pinned comparison. |
deletions | integer (int64) | yes | Lines deleted across every changed file in the pinned comparison. |
ReviewFilters#
| Field | Type | Required | Description |
|---|---|---|---|
authors | array of AuthorChoice | yes | Authors of visible pull request reviews, one per GitHub user. |
environments | array of FilterChoice | yes | Environments assessed by at least one visible review, ordered by display name. |
repositories | array of FilterChoice | yes | Repositories that have at least one visible review, ordered by full name. |
ReviewInvestigationCitation#
One environment evidence record a finding cites, as Proofline verified it.
| Field | Type | Required | Description |
|---|---|---|---|
collection_id | string (uuid) | yes | The evidence collection that holds the record. |
digest | string | yes | The record's stored digest. |
record_id | string (uuid) | yes | The record's ID. |
table | string | yes | The table that holds the record. |
ReviewInvestigationFinding#
One supported finding of an environment investigation.
| Field | Type | Required | Description |
|---|---|---|---|
area | string | yes | What the finding is about: secrets, configuration, iam, network, capacity or other. |
assessment_id | string (uuid) | yes | The environment assessment whose investigation recorded the finding. |
citations | array of ReviewInvestigationCitation | yes | The evidence records the finding cites, each verified, in the order the finding cites them. |
detail | string | yes | Model text with protected values withheld. Render it as plain text. |
requirement | ReviewRequirementTarget or null | no | The delivery target whose confirmed gate requirement the finding reports. Absent for an investigation's finding. |
source | KianFindingSource or null | no | What published the finding: a confirmed gate requirement its delivery target's services violate, the environment investigation, or a workload that loses an access because the change narrows the grants of an identity it shares. Every listed finding carries it. |
title | string | yes | Model text with protected values withheld. Render it as plain text. |
ReviewOpenItems#
| Field | Type | Required | Description |
|---|---|---|---|
accepted_risk_count | integer (uint64) | yes | Finding series whose current decision is an unexpired ACCEPTED_RISK. |
ci_failures | array of CiFailureLine | no | Failed CI jobs diagnosed on the reviewed head, the newest diagnosed attempt of each run, in diagnosis order. The pull-request Check counts them; none is a Proofline open item. Absent when no job was diagnosed. |
ci_failures_omitted | integer (uint64) | no | Diagnosed failed CI jobs on the reviewed head beyond ci_failures. |
ci_runs_pending | integer (uint64) | no | Failed CI run attempts on the reviewed head whose diagnosis is queued or running, so none of their jobs has a line yet. |
ci_runs_unfinished | integer (uint64) | no | Failed CI run attempts on the reviewed head whose diagnosis failed or was cancelled, so none of their jobs has a line. |
current_head_provider_updated_at | string (date-time) or null | no | GitHub's update time for the recorded pull request state that current_head_sha comes from. Null when none is recorded. |
current_head_sha | string or null | no | The pull request's head commit as Proofline last recorded it from GitHub. Null when no pull request state is recorded. |
earlier_findings | array of EarlierOpenFinding | no | Exact published occurrences of earlier unresolved environment findings. Absent from observations recorded before destinations were captured. |
environments | array of OpenItemEnvironment | yes | This review's environment assessments that are not COMPLETED, ordered by environment key. |
evaluated_scope_known | boolean | yes | Whether the review recorded at least one environment assessment. False means the evaluated scope is unknown, so an empty environments proves nothing. |
head_state | OpenItemsHeadState | yes | Whether reviewed_head_sha matches current_head_sha; UNKNOWN when either is missing. |
is_latest_review | boolean | yes | Whether this review is the newest review of its pull request the caller can see. |
latest_review_head_sha | string or null | no | The head commit of the newest review of this pull request the caller can see. Null when that review recorded none. |
latest_review_head_state | OpenItemsHeadState | yes | Whether latest_review_head_sha matches current_head_sha; UNKNOWN when either is missing. |
observed_at | string (date-time) | yes | When the database facts in this observation were read, all from one statement. |
open_findings | OpenFindingCounts | yes | Unresolved finding series that still demand attention, by severity: this review's own, and earlier published series of the pull request that this review did not find again. |
review_status | OpenItemsReviewStatus | yes | This review's recorded status; UNKNOWN for a status this build does not recognize. |
reviewed_head_sha | string or null | no | The head commit this review evaluated. Null when the review recorded none. |
threads | OpenItemsThreads | yes | The count of unresolved Proofline review threads on GitHub, or why that count is unknown. |
ReviewPage#
| Field | Type | Required | Description |
|---|---|---|---|
applied_query | string or null | no | The exact structured query applied before pagination. |
filters | ReviewFilters | yes | The values the review list can be filtered by, drawn from reviews the caller can see and independent of the current filters. |
items | array of ReviewSummary | yes | The reviews on this page, newest first. |
next_cursor | string or null | no | The cursor that requests the next page. Null when truncated is false. |
truncated | boolean | yes | Whether more reviews match the query beyond this page. |
ReviewRequirementTarget#
The delivery target whose confirmed entry a finding reports, as its Gate requirements page addresses it.
| Field | Type | Required | Description |
|---|---|---|---|
delivery_target_id | string (uuid) | yes | The delivery target. |
environment_id | string (uuid) | yes | The environment of the assessment that asked the requirement. |
repository_full_name | string | yes | The repository's owner/name, which names the target to a reader. |
repository_name | string | yes | The repository's name, as the page's address names it. |
ReviewRoutingView#
One of these objects, told apart by status:
status | Description | Other fields |
|---|---|---|
NOT_RECORDED | No immutable routing plan is retained for this review. | None |
UNSUPPORTED | A routing plan exists, but this server does not decode its version. | version (string, required) |
SUPPORTED | Validated routing and placement facts for this review. | findings (array of RoutingFindingView, required); plan (PlanProjection, required); version (string, required) |
ReviewSummary#
| Field | Type | Required | Description |
|---|---|---|---|
assessment_count | integer (int64) | yes | How many environment assessments this review has. |
audit_mode | string or null | no | The repository audit's mode, CODE_ONLY or INFRASTRUCTURE_AWARE, when this REVISION_SCAN is an audit. An audit's findings are in its audit report, not in finding_count or the review's assessments. Null for every other review. |
completed_at | string (date-time) or null | no | When the review reached a terminal status. Absent while it is still pending or running. |
counted_incomplete_causes | array of CountedCause | no | incomplete_causes as the Inbox and the reviews cause: search count them: OUT_OF_CREDITS or SPEND_LIMIT_REACHED in place of the NOT_CONFIGURED an assessment records when credits or a monthly spend limit refused it. Present exactly when incomplete_causes is. |
created_at | string (date-time) | yes | When the review was created. |
current_head_commit_sha | string or null | no | The pull request's head commit as the latest provider projection reports it, which can differ from head_commit_sha. Set only on a single-review read, and absent for a deployment review or a pull request with no projection. |
environment_display_names | array of string | yes | Display names of this review's assessed environments, not current repository links. |
finding_count | integer (int64) | yes | How many findings this review's assessments recorded, across all of them. |
head_commit_sha | string or null | no | The head commit this review is pinned to. For a patch review, the revision ID Proofline derives from its base commit and patch digest, which is not a commit. Absent when the review recorded none. |
head_commit_url | string or null | no | The exact revision reviewed. A commit URL, never a branch URL: the branch moves, the reviewed input does not. Absent for a patch review. |
id | string (uuid) | yes | The review's identifier. |
incomplete_causes | array of IncompleteCause | no | Why an INCOMPLETE review ended incomplete, as its incomplete assessments recorded it, in name order. UNKNOWN alone when none recorded a cause. Absent for every other status, and on reads other than the reviews list and a single review. |
kind | string | yes | PULL_REQUEST, DEPLOYMENT, PATCH, a review of local changes sent as a patch, COMMIT, a review of pushed commits, FILES, complete selected files at one pushed commit, MERGE_GROUP, the commit GitHub's merge queue built for a group of pull requests, or REVISION_SCAN, a scan of one captured commit. |
merge_group_pull_request_numbers | array of integer (int64) | no | For a MERGE_GROUP review, the pull requests GitHub queued in the group, in number order. Absent for every other kind, and until Proofline has read the group's members. |
public_key | string | yes | The review's stable public address: rev_ followed by its identifier without hyphens. |
publication | string | yes | Whether the review reached the pull request: PUBLISHED, WITHHELD, PUBLICATION_REQUESTED or PUBLICATION_REFUSED. A review run from Proofline is withheld until somebody publishes it. |
publication_detail | string or null | no | Why a publication was refused, or how one failed. Server text. |
pull_request_author_avatar_url | string or null | no | Provider-supplied avatar URL. Login-derived .png URLs do not work for GitHub App bot accounts and are not portable across GitHub hosts. |
pull_request_author_github_user_id | integer (int64) or null | no | The author's stable GitHub user id: identity for profile lookups, never display text. Absent when GitHub named no author. |
pull_request_author_login | string or null | no | Provider display metadata for the pull request author, not the rerun requester. |
pull_request_author_name | string or null | no | The author's GitHub profile name, when known. Lead with it; the login is the fallback. Display metadata, never identity. |
pull_request_author_url | string or null | no | The author's profile on the deployment's GitHub host. Absent when no author login is known. |
pull_request_draft | boolean or null | no | Whether the pull request is a draft, as provider state last reported it. Display state only: an open draft keeps pull_request_state OPEN. Absent when pull_request_state is. |
pull_request_number | integer (int64) or null | no | The pull request number. Absent for a deployment or patch review. |
pull_request_state | string or null | no | Current provider state of the pull request: OPEN, CLOSED, or MERGED. Absent for deployment reviews or a missing projection. |
pull_request_title | string or null | no | The pull request's title as provider state last reported it, so it names the change rather than only numbering it. Untrusted text: renderers must treat it as text, never markup. |
pull_request_url | string or null | no | The pull request on GitHub. Absent for a deployment review or when the repository is unknown. |
refresh | RefreshView or null | no | How this review decided what it reviews after a push or a full-review request. Absent for a review that refreshes nothing, and while a refresh has not decided yet. |
repository_full_name | string or null | no | The repository's owner/name. Absent when the review names no repository. |
repository_id | string (uuid) or null | no | The review's repository. Set only on a single-review read, and absent there when the review names no repository. |
repository_name | string or null | no | The repository's name within its owner. Absent when the review names no repository. |
repository_url | string or null | no | The repository on GitHub. Absent when the deployment's web base cannot be joined with the stored name. |
requested_by | ActorView or null | no | Who asked for this review, for the reviews a person asked for: the run-now button, a rerun, a pull request review command, or local changes and pushed commits sent from the CLI or an editor. Absent on automatic reviews, and on reviews recorded before requesters were. |
run_number | integer (int64) or null | no | One-based, append-only ordinal within one repository pull request. |
status | string | yes | The review's lifecycle status: PENDING, RUNNING, COMPLETED, INCOMPLETE, FAILED, SUPERSEDED, STOPPED or EXCLUDED. |
trigger_origin | string | yes | Who asked for this review: AUTOMATIC, COMMAND, RERUN, MANUAL, or UNKNOWN for a trigger key this build does not recognise. |
ReviewsExportRow#
The NDJSON row and CSV column contract. Repository names are display data; the stable repository ID and recorded commit identify the reviewed input.
| Field | Type | Required | Description |
|---|---|---|---|
base_commit_sha | string or null | no | The pinned base commit SHA, null when the review records none. |
completed_at | string (date-time) or null | no | When the review finished, null while it has not. |
created_at | string (date-time) | yes | When the review was created; the export window filters on this time. |
dataset_version | integer (uint16) | yes | The row contract version, always 1. |
github_repository_id | integer (int64) or null | no | GitHub's ID for the repository, null when the organization no longer owns it or the review records no repository. |
head_commit_sha | string or null | no | The pinned head commit SHA, null when the review records none. |
kind | ExportReviewKind | yes | Whether the review analyzes a pull request, a deployment, a local patch, pushed commits, selected whole files, a merge group or a revision scan. |
organization_id | string (uuid) | yes | The organization that owns the review. |
pull_request_number | integer (int64) or null | no | The pull request number, null when the review records none, as for a deployment. |
repository_full_name | string or null | no | The repository's current owner/name display name, null when the organization no longer owns it or the review records no repository. |
repository_id | string (uuid) or null | no | The stable ID of the review's primary repository, null when the review records none. |
review_id | string (uuid) | yes | The review's stable ID. |
run_number | integer (int64) or null | no | The review's ordinal among the reviews of its pull request, null for a review without a repository and pull request. |
status | ExportReviewStatus | yes | The review's recorded status. |
trigger_origin | string | yes | What started the review, derived from its trigger key: AUTOMATIC, COMMAND, RERUN, MANUAL, or UNKNOWN for a key this build does not recognize. |
ReviewsMetadataStream#
UTF-8 metadata file. NDJSON contains one ExportRow per line; CSV contains that dataset's named columns and a header. This response is neither a JSON object nor a JSON array.
Type: string
RoutingFindingView#
| Field | Type | Required | Description |
|---|---|---|---|
fallback_cause | string or null | no | Recognized safe fallback cause, when present. |
finding_id | string (uuid) | yes | Finding whose retained placement is reported. |
floor_reason | string or null | no | Recognized safe floor reason, when present. |
inline_limit_exceeded | boolean | yes | The original inline choice exceeded this review's inline comment limit. |
inline_reason | string or null | no | Why the recorded publication did not create an inline comment, when retained. |
placement | string | yes | Publication channel recorded for this finding. |
promotion | FindingPromotionView or null | no | Human override beside the original decision, when one was requested. |
publication_group | string (uuid) or null | no | The finding that represents this finding's publication group, when an applied group publishes it in one comment with other findings. Every member names the same finding, the representative included. |
reason_codes | array of string | yes | Recognized safe reason codes; unknown values are represented as UNRECOGNIZED. |
rule | string | yes | Rule that produced the recorded placement. |
RuleSource#
Type: CONSOLE, CONFIG_FILE, IMPLICIT
RunNowMode#
Whether an explicit request may reuse a settled review of the live head.
Type: EXISTING_OR_NEW, FULL
RunNowRefusalView#
Why a run-now request created nothing, each reason with what the page needs to link the setting to change.
One of these objects, told apart by reason:
reason | Description | Other fields |
|---|---|---|
TRIGGER_DISABLED | The organization's trigger mode excludes pull requests: review settings. | None |
REPOSITORY_DISABLED | Reviewing is off for this repository: the repository's review settings. | None |
NO_LINKED_ENVIRONMENT | No environment links this repository: the repository's setup. | None |
ENVIRONMENT_REVIEWS_OFF | The environment is linked but the link has pull request reviews off: the repository's review settings, where environments are chosen. | environment (RefusedEnvironment, required) |
ENVIRONMENT_NOT_READY | The environment reviews this repository but is not ready; its own account of why, when it has one, is status_detail. The environment's setup. | environment (RefusedEnvironment, required); status_detail (string or null, optional) |
ENVIRONMENT_EVIDENCE_UNAVAILABLE | The environment is ready and reviews this repository, but no cloud connection of its can currently supply evidence: the account is not connected, or the connection was revoked or predates the current permission manifest. Which one is on the environment's setup. | environment (RefusedEnvironment, required) |
INVALID_DELIVERY_CONFIGURATION | The environment's active typed revision cannot name one delivery target for this repository. The environment's link to the repository; absent only if the environment was removed meanwhile. | detail (string, required); environment (RefusedEnvironment or null, optional) |
PULL_REQUEST_UNKNOWN | Proofline has not received this pull request from GitHub: the GitHub installation. | None |
AUTHOR_HAS_NO_SEAT | The pull request's author holds no seat: seat settings. | None |
PULL_REQUEST_CLOSED | The pull request closed between GitHub's answer that it was open and the review's creation. Nothing to change; the pull request itself. | None |
RunNowRefused#
A run-now request that created nothing, as the 400 it is answered with. The refusal is a configuration fact, not a failure, and it is still sent as an RFC 9457 problem: title, status and detail are what a client that knows only problems shows, and repository_name and refusal are the extension members a client that knows refusals links from. During a rollout a page loaded from the previous bundle keeps working against this server, because a refusal was a 400 with a detail before too.
| Field | Type | Required | Description |
|---|---|---|---|
detail | string | yes | One sentence naming the condition and the setting to change, for a reader with no link to follow. |
refusal | RunNowRefusalView | yes | Why nothing was created, with what the page needs to link the setting to change. |
repository_name | string | yes | The repository's name within its owner, as its pages are addressed. |
status | integer (uint16) | yes | Always 400. |
title | string | yes | Always invalid request. |
RunNowRequest#
An empty body keeps the run-now behavior existing clients request.
| Field | Type | Required | Description |
|---|---|---|---|
mode | RunNowMode | no | EXISTING_OR_NEW, the default, returns any review that already owns the live head. FULL returns a pending or running review of that head or starts a new one. |
RunNowResponse#
What a run-now request produced: a review of the live head, created by this request or found already owning the head.
| Field | Type | Required | Description |
|---|---|---|---|
automatic_reviews_paused | boolean | yes | True when automatic reviews are stopped on this pull request. The review ran anyway; the flag is why the page can say so. |
existing | boolean | yes | True when this head already carried a review and that one is returned. Clicking twice does not run twice. |
review_id | string (uuid) | yes | The review that owns the live head, new or existing. |
run_number | integer (int64) | yes | The review's one-based ordinal within its pull request, which completes the run's console address. |
RunProgress#
Where an unfinished review's runs stand.
| Field | Type | Required | Description |
|---|---|---|---|
attempts | integer (int32) | yes | Attempts begun by the run in state, counting worker claims. |
due_at | string (date-time) or null | no | When the run in state is due: in the past for QUEUED, the next attempt for RETRY_SCHEDULED and the next check for WAITING. Null for RUNNING. |
last_progress_at | string (date-time) or null | no | When any of the review's runs last recorded a completed step. Null before the first. |
state | RunProgressState | yes | The most telling state among the review's unfinished runs: a scheduled retry, then a running worker, then a queued run, then a wait. |
RunProgressState#
What an unfinished review's runs are doing now.
| Value | Description |
|---|---|
WAITING | A run waits for a scheduled step, such as a push's quiet period, a resource another run holds, or its assessments, and is checked again at due_at. |
QUEUED | A run is due and no worker has claimed it yet. It has been due since due_at. |
RUNNING | A worker is running one of the review's runs. |
RETRY_SCHEDULED | An attempt of a run ended without finishing, and the run starts again at due_at. |
ScanRequestBody#
One request to scan a ref or an exact commit of the repository.
| Field | Type | Required | Description |
|---|---|---|---|
budget_credits | integer (int64) | yes | The credits the whole scan may spend, at most the organization's on-demand ceiling. |
commit_sha | string or null | no | An exact commit. Name it or ref. |
ref | string or null | no | A ref, resolved once when the request arrives. Name it or commit_sha. |
request_id | string (uuid) | yes | The caller's identity for this request. Sending it again returns the first resolution instead of scanning again. |
ScanResponse#
What a scan request resolved to.
| Field | Type | Required | Description |
|---|---|---|---|
outcome | string | yes | CREATED, EXISTING when this request id was already resolved, or REPOSITORY_UNAVAILABLE when GitHub could not resolve it. |
resolution_id | string (uuid) | yes | The request's one resolution receipt. |
review_id | string (uuid) or null | no | The scan review, readable through the review routes. Absent when GitHub could not resolve the request. |
SpendAccountKind#
Type: DEPLOYMENT, TENANT_CREDENTIAL, UNATTRIBUTED
SpendExportRow#
UTC daily debit totals using only the account and transport recorded at charge time, each split by what paid for it as Billing's Usage splits it.
| Field | Type | Required | Description |
|---|---|---|---|
account | string or null | no | Recorded attribution, not a current credential label or inferred account. |
account_kind | SpendAccountKind | yes | The account kind recorded at charge time, UNATTRIBUTED when the debit records none. |
dataset_version | integer (uint16) | yes | The row contract version, always 1. |
day | string (date-time) | yes | UTC midnight. The requested window can cover only part of this day. |
debits | integer (int64) | yes | The number of debits summed into this row. |
free_review_microcredits | integer (int64) | no | The part the free review month paid: this organization's free-review:{debit} grants for the row's debits. |
microcredits | integer (int64) | yes | Exact integer charge units; one credit contains one million microcredits. |
organization_id | string (uuid) | yes | The organization charged. |
organization_microcredits | integer (int64) | no | The part the organization's shared credit balance paid. |
own_key_microcredits | integer (int64) | no | The part run on this organization's own provider key: a tariff equivalent its provider bills, not credit spend. The four funding columns add up to microcredits. |
plan_microcredits | integer (int64) | no | The part of microcredits the workspace allowance or the author's seat paid. |
transport | string or null | no | The model transport recorded at charge time, null when the debit records none. |
StartSession#
| Field | Type | Required | Description |
|---|---|---|---|
connection_id | string (uuid) | yes | The vendor connection to start the session with. |
prompt_digest | string | yes | The prompt_digest of the prompt the person confirmed. |
StopResponse#
What stopping a review recorded.
| Field | Type | Required | Description |
|---|---|---|---|
review_id | string (uuid) | yes | Identifier of the stopped review. |
status | string | yes | Always STOPPED: the review's status once the stop is committed. |
stopped_at | string (date-time) | yes | Time when the review was stopped. |
stopped_by | ActorView | yes | Person who stopped the review. |
StoredCheckOutcome#
What the test did: FAILED as at the reproduction or otherwise, DID_NOT_FAIL when it exited cleanly, which shows only that this test did not fail under the conditions it exercised, or UNAVAILABLE when it could not answer.
Type: FAILED, DID_NOT_FAIL, UNAVAILABLE
StoredCheckResult#
The newest result of a stored check: its newest settled rerun at a later pull request head, or the reproduction's own head run when it has not run again.
| Field | Type | Required | Description |
|---|---|---|---|
commit_sha | string or null | no | The commit the check ran at, or would have run at when a rerun could not start. |
reason | string or null | no | Why a rerun did not pass, such as STILL_FAILS or SERVICE_NOT_STARTED. Absent for a pass and for the reproduction. |
result | StoredCheckOutcome | yes | |
source | StoredCheckResultSource | yes | RERUN or REPRODUCTION. |
StoredCheckResultSource#
Type: REPRODUCTION, RERUN
SubjectAuthorization#
One assessment's authorization of one subject, by identity. The display name is not the answer on its own: an environment's external key is unique within its organization and a display name is mutable metadata, so two environments of one review can carry the same one. Collapsing to it would leave a reader unable to tell which assessment authorized the subject and which one gapped, which is the confusion this field exists to remove.
| Field | Type | Required | Description |
|---|---|---|---|
assessment_id | string (uuid) | yes | The assessment this authorization belongs to, as AssessmentView.id names it. A reader joins on this, never on the display name. |
environment_display_name | string | yes | What a reader recognizes the environment by. Display metadata, and tenant free text: a consumer contains it before rendering. |
environment_external_key | string | yes | The environment's stable machine key, unique within the organization. |
environment_id | string (uuid) | yes | The environment the authorizing assessment belongs to. |
SubjectView#
| Field | Type | Required | Description |
|---|---|---|---|
artifact_digest | string or null | no | An immutable OCI digest, never a mutable tag. |
commit_sha | string or null | no | The pinned commit of a GIT_REVISION subject, or the base commit a GIT_PATCH subject applies to. Absent for other kinds. |
deployment_external_id | string or null | no | The GitHub deployment identifier a GITHUB_WORKFLOW_RUN subject ran for. Absent when the run was not for a deployment. |
file_scope | FileScope or null | no | Whole-file selection at the pinned revision; absent for comparisons. |
id | string (uuid) | yes | The subject's stable identifier. It holds across a poll refresh even when a concurrently populated subject shifts this response's (kind, id) order: a client keying its own local UI state (an open disclosure, a focused control) by array index would otherwise lose that state to a reorder that changed nothing it owns. |
kind | string | yes | GIT_REVISION, GIT_PATCH, GITHUB_WORKFLOW_RUN, ARTIFACT or DEPLOYMENT. |
patch_digest | string or null | no | The SHA-256 of a GIT_PATCH subject's canonical patch. Absent for other kinds. |
release_authorizations | array of SubjectAuthorization | yes | The assessments whose own verified release set authorized this subject. A review with several environments accumulates one subject list, but authorization is per assessment: an artifact one environment's read authenticated is not evidence for a neighbour whose own read gapped or refused. Naming the assessments keeps the union from reading as a shared fact. Empty for a subject no release-set read produced (the reviewed revision, the workflow run, a deployment), because those are the review's own coordinates rather than one environment's authenticated evidence, not because every environment refused them. |
repository_full_name | string or null | no | Absent only when the subject's repository record itself is gone. |
repository_id | string (uuid) or null | no | The immutable repository identity of this subject, including companions. |
role | string | yes | PRIMARY for the revision under review; COMPANION for context read from another authenticated repository. |
url | string or null | no | The subject on GitHub: the commit for a revision, the run for a workflow run. Absent for kinds GitHub does not address (GIT_PATCH, ARTIFACT, DEPLOYMENT) or when the subject's repository is unknown. |
workflow_attempt | integer (int32) or null | no | The attempt number of a GITHUB_WORKFLOW_RUN subject. Absent for other kinds. |
workflow_run_id | integer (int64) or null | no | The GitHub Actions run of a GITHUB_WORKFLOW_RUN subject. Absent for other kinds. |
SubmittedReview#
One review Proofline submitted on the pull request.
| Field | Type | Required | Description |
|---|---|---|---|
commit_sha | string or null | no | The commit the review was submitted for. |
url | string | yes |
SummaryRoute#
Type: DETERMINISTIC_ONLY, SHORT, FULL
ThreadObservationFreshness#
Type: FRESH, STALE
ThreadObservationView#
A read of GitHub's thread state. observed_at is when Proofline read it.
| Field | Type | Required | Description |
|---|---|---|---|
freshness | ThreadObservationFreshness | yes | STALE when the pull request is open and this observation is more than 24 hours old, otherwise FRESH. |
github_comment_url | string or null | no | The finding's root comment on GitHub. Absent when the repository is unknown. |
observed_at | string (date-time) | yes | When Proofline read the thread state from GitHub. |
provider_state | ThreadProviderState or null | no | Absent only when the provider read failed before GitHub returned state. |
reply_evidence | ThreadReplyEvidence | yes | RECORDED when a human reply in the thread was recorded, NONE_CONFIRMED when the complete thread held none, and INCOMPLETE when the thread could not be read in full. |
resolver_github_user_id | integer (int64) or null | no | The stable GitHub identity of whoever resolved the thread. Absent when GitHub named no resolver. |
resolver_login | string or null | no | The login of whoever resolved the thread, as GitHub reported it. Provider text, and absent when GitHub named no resolver. |
ThreadProviderState#
Type: OPEN, RESOLVED
ThreadReplyEvidence#
Type: RECORDED, NONE_CONFIRMED, INCOMPLETE
UnresolvedReason#
World's reason an executed check did not settle. A gate weighs the three alike, and each asks the reader for a different response.
| Value | Description |
|---|---|
NEEDS_EVIDENCE | The evidence World held neither established nor refuted the property. |
UNSUPPORTED | The case is outside what the check can decide. More evidence does not change the answer. |
REGENERATE_SCENARIO | The scenario the check ran against had to be declared again before its answer meant anything. A new review declares it again. |
UntrustedText#
Text that came out of the reviewer model, or out of a repository the model read. It is data, never markup, never a URL, never an instruction. The wrapper exists so the untrustedness cannot be lost on the way to a renderer: there is no field on a turn that carries this text under a name a client could mistake for something safe, and unwrapping it is a deliberate act in the client's own code.
| Field | Type | Required | Description |
|---|---|---|---|
untrusted_text | string | yes | The text itself. Render it as plain text only. |
UploadedReport#
| Field | Type | Required | Description |
|---|---|---|---|
content | string | yes | The report text, exactly as the coverage tool wrote it. |
name | string | yes | A relative name for the report, such as web/lcov.info, unique in the upload. |
WalkthroughFileView#
| Field | Type | Required | Description |
|---|---|---|---|
additions | integer (int64) | yes | Lines added. |
change | string | yes | GitHub's change status, upper case, such as ADDED or RENAMED. |
deletions | integer (int64) | yes | Lines deleted. |
depth | string or null | no | The route plan's depth tier. Absent for a file the review did not evaluate. |
generated | boolean | yes | Whether line is model-authored. |
line | string | yes | A model sentence, or the deterministic line when there is none. |
path | string | yes | The file's path at the head commit. |
previous_path | string or null | no | The file's path before a rename. Absent otherwise. |
skip_class | string or null | no | Why the review did not evaluate the file, such as LOCKFILE or REPOSITORY_FILTER. |
WalkthroughGroupView#
| Field | Type | Required | Description |
|---|---|---|---|
description | string or null | no | What the group changes. Absent when the group has no description. |
files | array of WalkthroughFileView | yes | The group's files. |
kind | string | yes | FEATURE, FIX, REFACTOR, CONFIGURATION, INFRASTRUCTURE, DATA, DEPENDENCIES, TESTS or DOCS. |
title | string | yes | The group's title. |
WalkthroughView#
One review's walkthrough of its pinned head. Titles and lines are model text over untrusted repository content: render them as text.
| Field | Type | Required | Description |
|---|---|---|---|
groups | array of WalkthroughGroupView | yes | Groups in reading order. |
head_sha | string | yes | The head commit SHA the walkthrough describes. |