Skip to content

Commit fa81bd8

Browse files
Say the checklist asks eight questions and what merge risk returns without a model
README drops calls to other services from the checklist and says that an unsupported provider leaves merge risk with size and tests only. Rewraps the README and action.yml paragraphs evenly, renames two short test variables, and the review comment test reads a v2 merge-risk line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 4342542 commit fa81bd8

4 files changed

Lines changed: 19 additions & 18 deletions

File tree

‎README.md‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -194,18 +194,18 @@ never carries `source.json`, and it is left out when no guide request goes out.
194194

195195
A third request, `POST /v1/merge-risk`, goes to the same base URL at the same time and sends
196196
no analysis: only the pull request's title, description and changed files with their patches, as
197-
GitHub lists them. The service counts size and tests itself, asks a fixed nine-question checklist
197+
GitHub lists them. The service counts size and tests itself, asks a fixed eight-question checklist
198198
about the diff (sign-in and access, billing, stored data, releases, dependency and platform versions,
199-
public interfaces, calls to other services), has a model decide each answer and a second pass drop
200-
the false alarms, with a sentence and the changed line behind each risk it keeps. With your own
201-
provider key it sends the same provider headers as the guide: your model makes the decision and the
202-
review, and the checklist's classifier, which only CodeBoarding's key can reach, is skipped. With
199+
public interfaces), has a model decide each answer and a second pass drop the false alarms, with a
200+
sentence and the changed line behind each risk it keeps. With your own provider key it sends the
201+
same provider headers as the guide: your model makes the decision and the review, and the
202+
checklist's classifier, which only CodeBoarding's key can reach, is skipped. With
203203
`closed_features_source: false` it sends neither patches nor the description, only each file's
204-
path, additions and deletions; a diff too large to send with its patches goes the same way. Without patches the
205-
checklist cannot run: the answer comes back `partial` with size and tests only, the run logs a
206-
notice, and the web platform shows the level as not assessed rather than reading the silence as
207-
clean. This input does not keep code from the review guide, whose request carries the changed files
208-
at both commits.
204+
path, additions and deletions; a diff too large to send with its patches goes the same way.
205+
Without patches the checklist cannot run: the answer comes back `partial` with size and tests only,
206+
the run logs a notice, and the web platform shows the level as not assessed rather than reading the
207+
silence as clean. This input does not keep code from the review guide, whose request carries the
208+
changed files at both commits.
209209
The answer is saved as `closed/merge_risk.json` with the head it describes, and summed up in one
210210
hidden line of the review comment, `<!-- codeboarding:merge_risk {json} -->`, which the web
211211
platform's dashboard reads. When the request fails, or the pull request moved on to a newer head
@@ -218,7 +218,8 @@ Symlinks are not read. Individual files are capped at 300 KB and source at 16 MB
218218
source exceeds the 4.3 MB compressed request limit, it is omitted with a reason; architecture
219219
still runs with the required inputs. `closed_features_source: false` also omits source, and
220220
merge risk then sends its file list without patches and leaves out the pull request's description.
221-
An unsupported provider skips the guide, but architecture can still return measured findings.
221+
An unsupported provider skips the guide, but architecture can still return measured findings, and
222+
merge risk returns size and tests only (`unchecked: no_model`).
222223

223224
### Providers
224225

‎action.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ inputs:
147147
description: >-
148148
Experimental. Service base URL for POST /v1/review-guide, POST /v1/architecture and
149149
POST /v1/merge-risk. Defaults to production. The first two receive this run's analysis and
150-
the third its title, description and changed files, independently; results are stored as review_guide.json,
151-
closed/architecture.json and closed/merge_risk.json, and the guide's request as sent as
152-
closed/bundle.json.xz. Merge risk is also summed up in a hidden line of the review comment.
153-
Set to an empty string to disable all three.
150+
the third its title, description and changed files, independently; results are stored as
151+
review_guide.json, closed/architecture.json and closed/merge_risk.json, and the guide's
152+
request as sent as closed/bundle.json.xz. Merge risk is also summed up in a hidden line of
153+
the review comment. Set to an empty string to disable all three.
154154
Sync's opt-in problem_history calls POST /v1/briefing on the same URL.
155155
required: false
156156
default: 'https://jxivqwx4or6oip3krgdmdaiunm0iaybf.lambda-url.us-east-1.on.aws/'

‎tests/test_problem_history.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,8 @@ def test_unread_merges_are_asked_again_newest_first_at_most_10(self):
768768
new = [{"number": 30, "mergedAt": "2026-11-06T00:00:00Z"}]
769769
gh = FakeGitHub()
770770
asked = self.asked(new, {30: "h30"}, stored, gh)
771-
self.assertEqual([n for n, _ in asked], [30, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10])
772-
self.assertEqual([h for _, h in asked][:3], ["h30", "head19", "head18"])
771+
self.assertEqual([number for number, _ in asked], [30, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10])
772+
self.assertEqual([head for _, head in asked][:3], ["h30", "head19", "head18"])
773773
# The ten head commits come from one query.
774774
self.assertEqual(len(gh.calls("pullRequest(number:")), 1)
775775

‎tests/test_review_comment.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_a_changed_analysed_file_gets_no_verdict_even_at_zero_components(self) -
8383

8484
def test_merge_risk_rides_on_its_own_hidden_line_before_the_last(self) -> None:
8585
with tempfile.TemporaryDirectory() as tmp:
86-
line = '<!-- codeboarding:merge_risk {"v":1} -->'
86+
line = '<!-- codeboarding:merge_risk {"v":2} -->'
8787
lines = _build(Path(tmp), MERGE_RISK_LINE=line).rstrip("\n").splitlines()
8888
self.assertEqual(lines[-2], line)
8989
self.assertTrue(lines[-1].startswith("<!-- codeboarding: platform_url="))

0 commit comments

Comments
 (0)