Skip to content

Write architecture's fallback envelope as schema 2 - #182

Closed
Svilen-Stefanov wants to merge 10 commits into
feat/merge-risk-checklistfrom
feat/architecture-schema-2
Closed

Svilen-Stefanov wants to merge 10 commits into
feat/merge-risk-checklistfrom
feat/architecture-schema-2

Conversation

@Svilen-Stefanov

Copy link
Copy Markdown
Contributor

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

Svilen-Stefanov and others added 10 commits November 26, 2026 22:27
…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>
@codeboarding-review

codeboarding-review Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

CodeBoarding review

Status: 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;
Loading

download artifacts · run 46440782533

@Svilen-Stefanov

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant