Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
252 changes: 252 additions & 0 deletions openapi.public.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,65 @@
],
"type": "object"
},
"ChangeSummary": {
"description": "What a review recorded about its change.",
"properties": {
"base_sha": {
"description": "The compared base commit. Null when the review pinned none.",
"type": [
"string",
"null"
]
},
"files": {
"description": "The changed files the review read, by path, with the depth it read\n them at. Empty when the review recorded no change digest. Files the\n review's filters kept from review are listed apart, with their reason.",
"items": {
"$ref": "#/components/schemas/FileFact"
},
"type": "array"
},
"head_sha": {
"description": "The reviewed head commit.",
"type": "string"
},
"prose": {
"anyOf": [
{
"$ref": "#/components/schemas/Prose"
},
{
"type": "null"
}
],
"description": "Model-written prose. Present only when `prose_outcome` is `PUBLISHED`.\n It is untrusted text: render it inert."
},
"prose_outcome": {
"allOf": [
{
"$ref": "#/components/schemas/ProseOutcome"
}
],
"description": "The recorded prose-generation outcome, before response-time withholding."
},
"route": {
"anyOf": [
{
"$ref": "#/components/schemas/SummaryRoute"
},
{
"type": "null"
}
],
"description": "The route the summary applied. Null when the review recorded no change\n digest, so no route was asked."
}
},
"required": [
"head_sha",
"files",
"prose_outcome"
],
"type": "object"
},
"CheckLifecycle": {
"description": "World's lifecycle disclosure for the evaluator version that answered, as\n the receipt recorded it. A deployment gate counts only `GATING` results\n (`DeterministicCoverage::gate_effective_status`), and only when it\n evaluates a deployment; the lifecycle alone permits or blocks nothing.",
"oneOf": [
Expand Down Expand Up @@ -1757,6 +1816,17 @@
],
"description": "The change-level diagram: the changed call path from the pinned code\n index and the relations World declares. Absent when the review\n recorded none."
},
"change_summary": {
"anyOf": [
{
"$ref": "#/components/schemas/ChangeSummary"
},
{
"type": "null"
}
],
"description": "What the change does and which files the review read at which depth\n (§55). Null until the review's publication records it, and for a\n review that is not of a pull request. Generated text has current\n credentials and recorded protected values withheld; missing or expired\n provenance withholds the generated text whole."
},
"check_run_url": {
"description": "The GitHub check run Proofline published for this review. Null when\n none was published.",
"type": [
Expand Down Expand Up @@ -2206,6 +2276,17 @@
"string",
"null"
]
},
"terraform": {
"anyOf": [
{
"$ref": "#/components/schemas/TerraformRootsView"
},
{
"type": "null"
}
],
"description": "The Terraform addresses the reach also started from, or why it took\n none. Absent when the assessment read reach only from the deployed\n revision."
}
},
"required": [
Expand Down Expand Up @@ -2389,6 +2470,51 @@
],
"type": "string"
},
"FileFact": {
"properties": {
"additions": {
"description": "Lines added in this file's recorded diff.",
"format": "int64",
"type": "integer"
},
"deletions": {
"description": "Lines deleted in this file's recorded diff.",
"format": "int64",
"type": "integer"
},
"depth": {
"allOf": [
{
"$ref": "#/components/schemas/ReviewDepth"
}
],
"description": "The review depth recorded for this file."
},
"path": {
"description": "The repository-relative path of the changed file.",
"type": "string"
},
"previous_path": {
"description": "The path before a rename.",
"type": [
"string",
"null"
]
},
"status": {
"description": "GitHub's file status: `added`, `modified`, `removed`, `renamed` and so on.",
"type": "string"
}
},
"required": [
"path",
"status",
"additions",
"deletions",
"depth"
],
"type": "object"
},
"FileProjection": {
"properties": {
"depth": {
Expand Down Expand Up @@ -3954,6 +4080,75 @@
"title": "Problem",
"type": "object"
},
"Prose": {
"properties": {
"headline": {
"description": "At most 120 characters.",
"type": "string"
},
"notable_paths": {
"description": "Paths in the pinned diff the prose calls out.",
"items": {
"type": "string"
},
"type": "array"
},
"paragraphs": {
"description": "At most three of at most 400 characters; one on the `SHORT` route.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"headline",
"paragraphs",
"notable_paths"
],
"type": "object"
},
"ProseOutcome": {
"description": "Why the summary carries prose or does not.",
"oneOf": [
{
"enum": [
"PUBLISHED"
],
"type": "string"
},
{
"const": "NO_CHANGE_DIGEST",
"description": "The review recorded no change digest to summarize.",
"type": "string"
},
{
"const": "NOT_REQUESTED",
"description": "The applied route was `DETERMINISTIC_ONLY`.",
"type": "string"
},
{
"const": "MODEL_UNAVAILABLE",
"description": "No fast-tier model was bound, priced or funded, or it did not answer.",
"type": "string"
},
{
"const": "MALFORMED",
"description": "The answer did not fit the tool's schema or its limits.",
"type": "string"
},
{
"const": "REJECTED",
"description": "The prose used a word a summary never uses (\"safe\", \"no risk\",\n \"approved\") or named a path outside the diff.",
"type": "string"
},
{
"const": "UNGROUNDED",
"description": "Jev answered that a statement does not follow from the diff slices.",
"type": "string"
}
]
},
"PullRequestMergeGate": {
"properties": {
"assessment_count": {
Expand Down Expand Up @@ -4435,6 +4630,13 @@
],
"type": "object"
},
"ReviewDepth": {
"description": "The depth the applied route plan read a file at.",
"enum": [
"STANDARD"
],
"type": "string"
},
"ReviewDiffStats": {
"properties": {
"additions": {
Expand Down Expand Up @@ -5826,6 +6028,56 @@
],
"type": "object"
},
"SummaryRoute": {
"enum": [
"DETERMINISTIC_ONLY",
"SHORT",
"FULL"
],
"type": "string"
},
"TerraformPlanView": {
"enum": [
"TAKEN",
"NOT_DECLARED",
"NOT_PINNED",
"HEAD_DIFFERS",
"ADDRESSES_UNREPORTED"
],
"type": "string"
},
"TerraformRootsView": {
"description": "The Terraform roots of one declared reach read.",
"properties": {
"addresses": {
"description": "The changed resource instance addresses taken as roots.",
"items": {
"type": "string"
},
"type": "array"
},
"omitted": {
"description": "Changed addresses left out at World's limit of 100 roots per read.",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"plan": {
"allOf": [
{
"$ref": "#/components/schemas/TerraformPlanView"
}
],
"description": "`TAKEN` when the plan pinned for the reviewed commit named the roots,\n `NOT_DECLARED` when the environment captures no Terraform plan for this\n review, `NOT_PINNED` when it declares one and none was pinned,\n `HEAD_DIFFERS` when the pinned plan is for another commit, and\n `ADDRESSES_UNREPORTED` when the pinned plan records no changed\n addresses because it was pinned before World reported them."
}
},
"required": [
"plan",
"addresses",
"omitted"
],
"type": "object"
},
"ThreadObservationFreshness": {
"enum": [
"FRESH",
Expand Down
16 changes: 16 additions & 0 deletions proofline/_generated/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from .change_diagram_kind_view import ChangeDiagramKindView
from .change_diagram_outcome_type_0 import ChangeDiagramOutcomeType0
from .change_diagram_view import ChangeDiagramView
from .change_summary import ChangeSummary
from .code_assessment_status_type_0 import CodeAssessmentStatusType0
from .comment_address_evaluation_view import CommentAddressEvaluationView
from .comment_address_outcome import CommentAddressOutcome
Expand Down Expand Up @@ -52,6 +53,7 @@
from .export_review_status import ExportReviewStatus
from .export_validation import ExportValidation
from .export_validation_source import ExportValidationSource
from .file_fact import FileFact
from .file_projection import FileProjection
from .file_review_request import FileReviewRequest
from .file_review_response import FileReviewResponse
Expand Down Expand Up @@ -107,6 +109,8 @@
from .permission_view import PermissionView
from .plan_projection import PlanProjection
from .problem import Problem
from .prose import Prose
from .prose_outcome_type_0 import ProseOutcomeType0
from .pull_request_merge_gate import PullRequestMergeGate
from .reach_gap_view import ReachGapView
from .reach_step_view import ReachStepView
Expand All @@ -119,6 +123,7 @@
from .repository_names import RepositoryNames
from .rerun_response import RerunResponse
from .review_actions import ReviewActions
from .review_depth import ReviewDepth
from .review_diff_stats import ReviewDiffStats
from .review_filters import ReviewFilters
from .review_open_items import ReviewOpenItems
Expand Down Expand Up @@ -157,6 +162,9 @@
from .stop_response import StopResponse
from .subject_authorization import SubjectAuthorization
from .subject_view import SubjectView
from .summary_route import SummaryRoute
from .terraform_plan_view import TerraformPlanView
from .terraform_roots_view import TerraformRootsView
from .thread_observation_freshness import ThreadObservationFreshness
from .thread_observation_view import ThreadObservationView
from .thread_provider_state import ThreadProviderState
Expand All @@ -182,6 +190,7 @@
"ChangeDiagramKindView",
"ChangeDiagramOutcomeType0",
"ChangeDiagramView",
"ChangeSummary",
"CodeAssessmentStatusType0",
"CommentAddressEvaluationView",
"CommentAddressOutcome",
Expand Down Expand Up @@ -216,6 +225,7 @@
"ExportReviewStatus",
"ExportValidation",
"ExportValidationSource",
"FileFact",
"FileProjection",
"FileReviewRequest",
"FileReviewResponse",
Expand Down Expand Up @@ -271,6 +281,8 @@
"PermissionView",
"PlanProjection",
"Problem",
"Prose",
"ProseOutcomeType0",
"PullRequestMergeGate",
"ReachedEntityView",
"ReachGapView",
Expand All @@ -283,6 +295,7 @@
"RepositoryNames",
"RerunResponse",
"ReviewActions",
"ReviewDepth",
"ReviewDiffStats",
"ReviewedTreeCitationView",
"ReviewFilters",
Expand Down Expand Up @@ -321,6 +334,9 @@
"StopResponse",
"SubjectAuthorization",
"SubjectView",
"SummaryRoute",
"TerraformPlanView",
"TerraformRootsView",
"ThreadObservationFreshness",
"ThreadObservationView",
"ThreadProviderState",
Expand Down
Loading
Loading