From fa85ded6d745f5be6eb555027e8b7f752a37e6cd Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 18 Oct 2026 21:19:46 +0000 Subject: [PATCH 1/4] Sync the public contract with the review change summary The control plane's review detail gains an optional change_summary (prooflinedev/proofline#4818). Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01Gg5Zb7QFdt9YdJmdT4STSA --- openapi.public.json | 186 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 186 insertions(+) diff --git a/openapi.public.json b/openapi.public.json index 0d85adb..249526a 100644 --- a/openapi.public.json +++ b/openapi.public.json @@ -704,6 +704,60 @@ ], "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": { + "$ref": "#/components/schemas/ProseOutcome" + }, + "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": [ @@ -1757,6 +1811,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." + }, "check_run_url": { "description": "The GitHub check run Proofline published for this review. Null when\n none was published.", "type": [ @@ -2389,6 +2454,43 @@ ], "type": "string" }, + "FileFact": { + "properties": { + "additions": { + "format": "int64", + "type": "integer" + }, + "deletions": { + "format": "int64", + "type": "integer" + }, + "depth": { + "$ref": "#/components/schemas/ReviewDepth" + }, + "path": { + "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": { @@ -3947,6 +4049,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": { @@ -4428,6 +4599,13 @@ ], "type": "object" }, + "ReviewDepth": { + "description": "The depth the applied route plan read a file at.", + "enum": [ + "STANDARD" + ], + "type": "string" + }, "ReviewDiffStats": { "properties": { "additions": { @@ -5819,6 +5997,14 @@ ], "type": "object" }, + "SummaryRoute": { + "enum": [ + "DETERMINISTIC_ONLY", + "SHORT", + "FULL" + ], + "type": "string" + }, "ThreadObservationFreshness": { "enum": [ "FRESH", From 039864068958c8b6ddb5bce05807b302d930b481 Mon Sep 17 00:00:00 2001 From: Mohsen Azimi <543633+mohsen1@users.noreply.github.com> Date: Sun, 18 Oct 2026 23:40:39 +0200 Subject: [PATCH 2/4] Expose Terraform roots in declared reach responses --- openapi.public.json | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/openapi.public.json b/openapi.public.json index 22e8774..056b137 100644 --- a/openapi.public.json +++ b/openapi.public.json @@ -2206,6 +2206,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": [ @@ -5826,6 +5837,48 @@ ], "type": "object" }, + "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", From 422717c5c84899696f1dfc7416137cbca16421fb Mon Sep 17 00:00:00 2001 From: Mohsen Azimi <543633+mohsen1@users.noreply.github.com> Date: Mon, 19 Oct 2026 01:03:11 +0200 Subject: [PATCH 3/4] Supply default state to the reused review fixture --- tests/http.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/http.rs b/tests/http.rs index 3f3aabb..57d9800 100644 --- a/tests/http.rs +++ b/tests/http.rs @@ -1044,7 +1044,8 @@ async fn departed() -> Origin { .route( &format!("/api/v1/organizations/{ORG}/reviews/{{id}}"), get(review), - ); + ) + .with_state(Fake::default()); let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap(); let address = listener.local_addr().unwrap(); tokio::spawn(async move { axum::serve(listener, app).await.unwrap() }); From adb1626688b245cfd688a1b0828672c6a4000723 Mon Sep 17 00:00:00 2001 From: Mohsen Azimi <543633+mohsen1@users.noreply.github.com> Date: Mon, 19 Oct 2026 01:13:03 +0200 Subject: [PATCH 4/4] Sync genuinely generated summary property descriptions --- openapi.public.json | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/openapi.public.json b/openapi.public.json index 6cb6810..1cef9a9 100644 --- a/openapi.public.json +++ b/openapi.public.json @@ -737,7 +737,12 @@ "description": "Model-written prose. Present only when `prose_outcome` is `PUBLISHED`.\n It is untrusted text: render it inert." }, "prose_outcome": { - "$ref": "#/components/schemas/ProseOutcome" + "allOf": [ + { + "$ref": "#/components/schemas/ProseOutcome" + } + ], + "description": "The recorded prose-generation outcome, before response-time withholding." }, "route": { "anyOf": [ @@ -2468,17 +2473,25 @@ "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": { - "$ref": "#/components/schemas/ReviewDepth" + "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": {