Repository navigation
feat: carry the merge-risk checklist into the run's files - #181
Draft
Svilen-Stefanov wants to merge 10 commits into
Draft
Svilen-Stefanov wants to merge 10 commits into
Svilen-Stefanov wants to merge 10 commits into
Conversation
Contributor
CodeBoarding reviewStatus: 1 changed component See the full change in CodeBoarding. graph LR
n_Action_Workflow_and_Analysis_Execution["Action Workflow and Analysis Execution"]
n_Remote_Review_and_Problem_Ledger["Remote Review and Problem Ledger"]
classDef added fill:#1f883d,stroke:#0b5d23,color:#ffffff;
classDef modified fill:#bf8700,stroke:#7d4e00,color:#ffffff;
classDef deleted fill:#cf222e,stroke:#82071e,color:#ffffff,stroke-dasharray:5 3;
class n_Remote_Review_and_Problem_Ledger modified;
|
The merge-risk request now sends the pull request's title beside its files, which the diff checklist reads. closed/merge_risk.json moves to schema 2: the service's status, the checklist's answers, reasons that carry each yes's question and, when the service gave one, its sentence and line, the sensitive questions, and why a step did not run. The comment line moves to v 2 with what the dashboard's level needs: whether the checklist ran, the sensitive questions, size and the reasons' codes. A run with source off, or whose checklist did not run, logs one notice and stores the answer, so the web platform shows the level as not assessed rather than as clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fallback codes The deciding model reads what the author says the pull request does, so the merge-risk request now carries the description beside the title. With source off it stays on the runner with the patches, since a description can quote code. closed/merge_risk.json keeps the service's codes for a step that fell back: unchecked, unhinted, undecided, unreviewed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A run that brings its own model key now sends the same provider headers on the merge-risk request as on the guide's, so the service decides and reviews merge risk on that model and skips the classifier only CodeBoarding's key can reach: the run's code goes to its own provider and nowhere else. Headers that cannot be built fail merge risk rather than fall back to CodeBoarding's models. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The service's architecture warnings moved to schema 2 (questions, cited lines, related warnings). The envelope the Action writes when the request cannot complete says the same version, so a reader never sees two schemas for one feature. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Svilen-Stefanov
force-pushed
the
feat/merge-risk-checklist
branch
from
November 30, 2026 14:55
9e13103 to
ae67a30
Compare
…once The compact line drops patches, which the webview no longer reads, and indexes the facts the service always sends. A status other than ok or partial, or reasons or sensitive that are not lists, now fail merge risk instead of reading as an empty answer. Reasons are stored verbatim, so an engine id and relatedTo reach the artifact. main builds the bearer and the run's provider headers once and hands them to merge risk, the guide and architecture; headers that cannot be built fail all three, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README and action.yml now say that with closed_features_source false merge risk leaves out the pull request's description as well as the patches. The architecture envelope fixture is schema 2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
_unread no longer counts a merge with stored warnings as read: every ledger carries warningsRead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tice Facts without srcLines, sourceFiles or patches, a reason that is not an object with a level and a code, and a sensitive list with a non-string are now refused by name rather than failing on a bare KeyError or being filtered quietly. With source on, an unchecked no_patches reads as the diff being too large to send; other codes pass through. A partial patch set is GitHub's doing alone, since an oversized diff drops every patch. The fixture's checklist reason carries id and shown, and asks about billing, one of the service's sensitive questions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…thout 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>
Svilen-Stefanov
force-pushed
the
feat/merge-risk-checklist
branch
from
November 30, 2026 20:18
f8e4dac to
fa81bd8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goes with licensing https://app.codeboarding.org/CodeBoarding/licensing-aws/pull/80, which answers merge risk and architecture from one warnings engine, and webview https://app.codeboarding.org/CodeBoarding/CodeBoarding-webview/pull/340, which reads what this writes. Now on main; it also carries the schema-2 change from the closed #182.
What
GET /pulls/{n}that already checks the head), which the deciding model reads. Withclosed_features_source: falseneither the patches nor the description leave the runner.closed/merge_risk.jsonis schema 2: the service'sstatus, thechecklistanswers (or null), reasons that carry each yes's question and, when explained, its sentence and line,sensitiveas the list of sensitive questions, and the service's codes when a step fell back (unchecked,unhinted,undecided,unreviewed).v: 2: whether the checklist ran (checked), the sensitive questions, size and the reasons' codes. Sentences stay in the artifact.statusmust be ok or partial,reasonsandsensitivelists,checklistan object or null. Reasons are stored verbatim, so each one'sidandrelatedToreach the artifact.mainand shared by merge risk, the guide and architecture, instead of twice on two threads. Headers that cannot be built fail all three.warningsRead.action.ymldescribe the new request.Nothing visible changes in the Action itself.
Before and after on 11 real pull requests
The "after" in licensing #80's comparison (https://app.codeboarding.org/CodeBoarding/licensing-aws/pull/80) went through this branch's own code:
run_architectureandrun_merge_riskagainst the dev deploy, with the request each run would have sent, for core #700, #618, webview #328, #339, #334, #330, licensing-aws #69, #66, Action #179, #177 and graph-viewer #105. The table and screenshots are there. Reasons are stored verbatim, so each one'sid,relatedToandshownreachclosed/merge_risk.json; the comment line carries level, code and params only.Before and after on the labelled 28
What
closed/merge_risk.jsonholds for three of the pull requests in licensing #80's examples, which has the full before and after and why:large. After:sensitive_largeand astored_datayes with its sentence ("the reader rejects documents without that version, so older baselines ... cannot be read") and the line it cites,diagram_analysis/analysis_json.py:75.contractyes with its sentence andclosed_functions/review_guide/assembly.py:754.contractyes on the library's store API, a false raise that docs: use gemini-3.7-flash in the model-selection example #80 names as the next thing to tighten.Ship order
Licensing #80 deployed first, then this release with webview #340. No compatibility: an older line or file reads as "no merge risk recorded".
Second review
srcLines,sourceFilesorpatches, a reason is not an object withlevelandcode, orsensitiveholds a non-string.no_patches), and "some patches left out" now names GitHub only.warningsReadledger removal is its own commit.Tests
pytest tests: 369 passed, 9 skipped. Black 25.9.0 passes.🤖 Generated with Claude Code