Skip to content

Commit a87dcd2

Browse files
authored
Merge pull request #6 from prooflinedev/claude/change-summary-contract
Sync the generated client with the review change summary
2 parents 778d2f1 + b9a5f64 commit a87dcd2

10 files changed

Lines changed: 838 additions & 0 deletions

File tree

‎openapi.public.json‎

Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,65 @@
704704
],
705705
"type": "object"
706706
},
707+
"ChangeSummary": {
708+
"description": "What a review recorded about its change.",
709+
"properties": {
710+
"base_sha": {
711+
"description": "The compared base commit. Null when the review pinned none.",
712+
"type": [
713+
"string",
714+
"null"
715+
]
716+
},
717+
"files": {
718+
"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.",
719+
"items": {
720+
"$ref": "#/components/schemas/FileFact"
721+
},
722+
"type": "array"
723+
},
724+
"head_sha": {
725+
"description": "The reviewed head commit.",
726+
"type": "string"
727+
},
728+
"prose": {
729+
"anyOf": [
730+
{
731+
"$ref": "#/components/schemas/Prose"
732+
},
733+
{
734+
"type": "null"
735+
}
736+
],
737+
"description": "Model-written prose. Present only when `prose_outcome` is `PUBLISHED`.\n It is untrusted text: render it inert."
738+
},
739+
"prose_outcome": {
740+
"allOf": [
741+
{
742+
"$ref": "#/components/schemas/ProseOutcome"
743+
}
744+
],
745+
"description": "The recorded prose-generation outcome, before response-time withholding."
746+
},
747+
"route": {
748+
"anyOf": [
749+
{
750+
"$ref": "#/components/schemas/SummaryRoute"
751+
},
752+
{
753+
"type": "null"
754+
}
755+
],
756+
"description": "The route the summary applied. Null when the review recorded no change\n digest, so no route was asked."
757+
}
758+
},
759+
"required": [
760+
"head_sha",
761+
"files",
762+
"prose_outcome"
763+
],
764+
"type": "object"
765+
},
707766
"CheckLifecycle": {
708767
"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.",
709768
"oneOf": [
@@ -1757,6 +1816,17 @@
17571816
],
17581817
"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."
17591818
},
1819+
"change_summary": {
1820+
"anyOf": [
1821+
{
1822+
"$ref": "#/components/schemas/ChangeSummary"
1823+
},
1824+
{
1825+
"type": "null"
1826+
}
1827+
],
1828+
"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."
1829+
},
17601830
"check_run_url": {
17611831
"description": "The GitHub check run Proofline published for this review. Null when\n none was published.",
17621832
"type": [
@@ -2400,6 +2470,51 @@
24002470
],
24012471
"type": "string"
24022472
},
2473+
"FileFact": {
2474+
"properties": {
2475+
"additions": {
2476+
"description": "Lines added in this file's recorded diff.",
2477+
"format": "int64",
2478+
"type": "integer"
2479+
},
2480+
"deletions": {
2481+
"description": "Lines deleted in this file's recorded diff.",
2482+
"format": "int64",
2483+
"type": "integer"
2484+
},
2485+
"depth": {
2486+
"allOf": [
2487+
{
2488+
"$ref": "#/components/schemas/ReviewDepth"
2489+
}
2490+
],
2491+
"description": "The review depth recorded for this file."
2492+
},
2493+
"path": {
2494+
"description": "The repository-relative path of the changed file.",
2495+
"type": "string"
2496+
},
2497+
"previous_path": {
2498+
"description": "The path before a rename.",
2499+
"type": [
2500+
"string",
2501+
"null"
2502+
]
2503+
},
2504+
"status": {
2505+
"description": "GitHub's file status: `added`, `modified`, `removed`, `renamed` and so on.",
2506+
"type": "string"
2507+
}
2508+
},
2509+
"required": [
2510+
"path",
2511+
"status",
2512+
"additions",
2513+
"deletions",
2514+
"depth"
2515+
],
2516+
"type": "object"
2517+
},
24032518
"FileProjection": {
24042519
"properties": {
24052520
"depth": {
@@ -3965,6 +4080,75 @@
39654080
"title": "Problem",
39664081
"type": "object"
39674082
},
4083+
"Prose": {
4084+
"properties": {
4085+
"headline": {
4086+
"description": "At most 120 characters.",
4087+
"type": "string"
4088+
},
4089+
"notable_paths": {
4090+
"description": "Paths in the pinned diff the prose calls out.",
4091+
"items": {
4092+
"type": "string"
4093+
},
4094+
"type": "array"
4095+
},
4096+
"paragraphs": {
4097+
"description": "At most three of at most 400 characters; one on the `SHORT` route.",
4098+
"items": {
4099+
"type": "string"
4100+
},
4101+
"type": "array"
4102+
}
4103+
},
4104+
"required": [
4105+
"headline",
4106+
"paragraphs",
4107+
"notable_paths"
4108+
],
4109+
"type": "object"
4110+
},
4111+
"ProseOutcome": {
4112+
"description": "Why the summary carries prose or does not.",
4113+
"oneOf": [
4114+
{
4115+
"enum": [
4116+
"PUBLISHED"
4117+
],
4118+
"type": "string"
4119+
},
4120+
{
4121+
"const": "NO_CHANGE_DIGEST",
4122+
"description": "The review recorded no change digest to summarize.",
4123+
"type": "string"
4124+
},
4125+
{
4126+
"const": "NOT_REQUESTED",
4127+
"description": "The applied route was `DETERMINISTIC_ONLY`.",
4128+
"type": "string"
4129+
},
4130+
{
4131+
"const": "MODEL_UNAVAILABLE",
4132+
"description": "No fast-tier model was bound, priced or funded, or it did not answer.",
4133+
"type": "string"
4134+
},
4135+
{
4136+
"const": "MALFORMED",
4137+
"description": "The answer did not fit the tool's schema or its limits.",
4138+
"type": "string"
4139+
},
4140+
{
4141+
"const": "REJECTED",
4142+
"description": "The prose used a word a summary never uses (\"safe\", \"no risk\",\n \"approved\") or named a path outside the diff.",
4143+
"type": "string"
4144+
},
4145+
{
4146+
"const": "UNGROUNDED",
4147+
"description": "Jev answered that a statement does not follow from the diff slices.",
4148+
"type": "string"
4149+
}
4150+
]
4151+
},
39684152
"PullRequestMergeGate": {
39694153
"properties": {
39704154
"assessment_count": {
@@ -4446,6 +4630,13 @@
44464630
],
44474631
"type": "object"
44484632
},
4633+
"ReviewDepth": {
4634+
"description": "The depth the applied route plan read a file at.",
4635+
"enum": [
4636+
"STANDARD"
4637+
],
4638+
"type": "string"
4639+
},
44494640
"ReviewDiffStats": {
44504641
"properties": {
44514642
"additions": {
@@ -5837,6 +6028,14 @@
58376028
],
58386029
"type": "object"
58396030
},
6031+
"SummaryRoute": {
6032+
"enum": [
6033+
"DETERMINISTIC_ONLY",
6034+
"SHORT",
6035+
"FULL"
6036+
],
6037+
"type": "string"
6038+
},
58406039
"TerraformPlanView": {
58416040
"enum": [
58426041
"TAKEN",

‎proofline/_generated/models/__init__.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from .change_diagram_kind_view import ChangeDiagramKindView
1919
from .change_diagram_outcome_type_0 import ChangeDiagramOutcomeType0
2020
from .change_diagram_view import ChangeDiagramView
21+
from .change_summary import ChangeSummary
2122
from .code_assessment_status_type_0 import CodeAssessmentStatusType0
2223
from .comment_address_evaluation_view import CommentAddressEvaluationView
2324
from .comment_address_outcome import CommentAddressOutcome
@@ -52,6 +53,7 @@
5253
from .export_review_status import ExportReviewStatus
5354
from .export_validation import ExportValidation
5455
from .export_validation_source import ExportValidationSource
56+
from .file_fact import FileFact
5557
from .file_projection import FileProjection
5658
from .file_review_request import FileReviewRequest
5759
from .file_review_response import FileReviewResponse
@@ -107,6 +109,8 @@
107109
from .permission_view import PermissionView
108110
from .plan_projection import PlanProjection
109111
from .problem import Problem
112+
from .prose import Prose
113+
from .prose_outcome_type_0 import ProseOutcomeType0
110114
from .pull_request_merge_gate import PullRequestMergeGate
111115
from .reach_gap_view import ReachGapView
112116
from .reach_step_view import ReachStepView
@@ -119,6 +123,7 @@
119123
from .repository_names import RepositoryNames
120124
from .rerun_response import RerunResponse
121125
from .review_actions import ReviewActions
126+
from .review_depth import ReviewDepth
122127
from .review_diff_stats import ReviewDiffStats
123128
from .review_filters import ReviewFilters
124129
from .review_open_items import ReviewOpenItems
@@ -157,6 +162,7 @@
157162
from .stop_response import StopResponse
158163
from .subject_authorization import SubjectAuthorization
159164
from .subject_view import SubjectView
165+
from .summary_route import SummaryRoute
160166
from .terraform_plan_view import TerraformPlanView
161167
from .terraform_roots_view import TerraformRootsView
162168
from .thread_observation_freshness import ThreadObservationFreshness
@@ -184,6 +190,7 @@
184190
"ChangeDiagramKindView",
185191
"ChangeDiagramOutcomeType0",
186192
"ChangeDiagramView",
193+
"ChangeSummary",
187194
"CodeAssessmentStatusType0",
188195
"CommentAddressEvaluationView",
189196
"CommentAddressOutcome",
@@ -218,6 +225,7 @@
218225
"ExportReviewStatus",
219226
"ExportValidation",
220227
"ExportValidationSource",
228+
"FileFact",
221229
"FileProjection",
222230
"FileReviewRequest",
223231
"FileReviewResponse",
@@ -273,6 +281,8 @@
273281
"PermissionView",
274282
"PlanProjection",
275283
"Problem",
284+
"Prose",
285+
"ProseOutcomeType0",
276286
"PullRequestMergeGate",
277287
"ReachedEntityView",
278288
"ReachGapView",
@@ -285,6 +295,7 @@
285295
"RepositoryNames",
286296
"RerunResponse",
287297
"ReviewActions",
298+
"ReviewDepth",
288299
"ReviewDiffStats",
289300
"ReviewedTreeCitationView",
290301
"ReviewFilters",
@@ -323,6 +334,7 @@
323334
"StopResponse",
324335
"SubjectAuthorization",
325336
"SubjectView",
337+
"SummaryRoute",
326338
"TerraformPlanView",
327339
"TerraformRootsView",
328340
"ThreadObservationFreshness",

0 commit comments

Comments
 (0)