seidroid[bot] is Sei's AI reviewer for GitHub. This repository is the next generation of
its review: the same review contract, run in pi on the caller's GitHub
runner, with no session server, sandbox or teardown. One ref of this repository pins the
whole review.
It is in development, and runs beside the current review in
sei-protocol/uci without changing it.
A pull request gets one review on its own, when it opens ready for review, turns ready or
reopens. After that, including after a change request, a team member or an allowed bot asks
for each review by commenting @seidroid review, unless the caller sets
re-review-on-push: true, which reviews every push.
| Path | What it is |
|---|---|
src/verdict.ts |
The review contract: the submit_review schema, and how a submission becomes the recorded decision, check conclusion, placeable findings and thread plan. |
src/accepted.ts |
The base branch's accepted pre-existing conditions, read from its guidelines. |
test/ |
Tests, ported from the current review driver's. |
chart/ |
The Helm chart for the service, published to oci://ghcr.io/sei-protocol/charts with the image. |
Before the review, each model in scout-models reads the diff on its own as a cross-check. A
scout reads at thinking unless its entry ends in a level, as in
google-vertex/gemini-4-neon:medium. Only a last : part that is a pi thinking level counts as
one, since model ids such as Bedrock's ...-v1:0 hold : too, and a last part of letters that is
no level fails the job. Each scout may read for scout-timeout-minutes, 10 by default and never
more than the review may take; one still reading then is stopped, and the review goes on with the
others, saying that cross-check was cut off for time. Each scout's run.json records its
thinking level and, when it was cut off, that it timed out.
The review and replies get a shell where each command the model runs is sandboxed in the
reviewed tree without the network. A caller's prepare runs first in that tree
with the network, to fetch what building it needs, such as go mod download. A review also runs
warm, if set, after prepare and offline in the review's sandbox, to build the tree while the
scouts read: cargo test --workspace --no-run --offline for a Rust workspace, or
go test -run '^$' ./... for Go. Warm stops when the scouts' time is up. The review waits for
both before it starts, and neither failing changes its verdict; shell.json in the run records
says how each went.
With approve-on-success, a clean review approves when the pull request's author is on the
team, for the reviews a push, opening or turning ready starts, or when a team member asked for
the review by commenting @seidroid review. A review an allowed bot asks for, or one of an
allowed bot's pull request that no team member asked for, posts as a comment. Callers that also
set require-verified-commits: true get an approval only when every commit on the pull request
since the App's last approval there carries a signature GitHub verified, committed by a team
member. Callers that do not send it, such as v0.3.4, approve as if it were off.
Node 24 runs the TypeScript directly, so there is no build step.
npm ci
npm run typecheck
npm test