Repository navigation
Write architecture's fallback envelope as schema 2 - #182
Closed
Svilen-Stefanov wants to merge 10 commits into
Closed
Svilen-Stefanov wants to merge 10 commits into
Svilen-Stefanov wants to merge 10 commits into
Conversation
…ment
A third request beside the review guide and architecture, POST
/v1/merge-risk, sends the files changed between the merge base and the
head with their patches. They come from git in the checkout, not the
compare API, which stops at 300 files; the checkout is one commit deep, so
the merge base is fetched by sha with the run's token passed through the
environment. A patch over 300 KB is left out, and the patches go when the
request would be over the service's limit.
The answer is written to closed/merge_risk.json in the review artifact
with the head and base it describes, and summed up in one hidden line of
the review comment, <!-- codeboarding:merge_risk {json} -->, for the web
platform's dashboard. The JSON escapes <, >, - and = so nothing in it can
end the comment or match the status line's reader.
It runs from the start, whatever happens to the analysis inputs or the
guide, and a failure is one notice that writes nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The file list now comes from GitHub's pull request files, page by page, instead of fetching the merge base by sha and parsing `git diff` in the checkout; a run whose head moved on during it sends nothing, since a newer run answers for that head. The bearer is asked for once and shared, so the lock around it goes, and the comment's hidden line is built in remote_features.py and handed to the comment step as an output, so merge_risk_marker.py goes too. The line no longer carries tests and dirs, which nothing reads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ew findings - closed_features_source: false now reaches merge risk: it sends each changed file's path, additions and deletions with patch null, read through the same source_allowed check that collect_source uses. README and the input description say so. - A credentials failure logs its own merge-risk notice beside the guide's; before, merge risk was never submitted and said nothing. - The comment line and the stored JSON are both built before either is written, so an answer the line cannot carry leaves neither behind. - Merge risk compresses at xz preset 1 instead of 9e, and a file list over ten times the compressed limit drops its patches before compressing. The guide's and architecture's requests are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With source off or a diff too large, the request goes without patches and licensing's mention and dependency checks cannot run. The answer now says so (`facts.patches`), the run logs a notice, and the comment line carries `patches` for the web platform. The README says the input does not keep code from the review guide's request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Escaping `-` would turn a negative number into invalid JSON; escaping `>` already keeps `-->` out. The line is now left out, with a notice, when it would take more than 8,000 characters of a comment GitHub caps at 65,536; the artifact still carries the result. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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;
|
Svilen-Stefanov
force-pushed
the
feat/merge-risk-checklist
branch
from
November 30, 2026 14:55
9e13103 to
ae67a30
Compare
Contributor
Author
|
Folded into https://app.codeboarding.org/CodeBoarding/CodeBoarding-action/pull/181, now on main. |
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.
The service's architecture warnings moved to schema 2 on the unified warnings engine (CodeBoarding/licensing-aws#79): each warning carries its questions, cited lines and related warnings. The envelope the Action writes when the architecture request cannot complete now says schema 2 as well, so a reader never sees two schemas for one feature.
Stacked on #181. Release together with licensing #79.
Nothing visible changes: it is the version number in a file the run writes.
🤖 Generated with Claude Code