redline: a hold record names the repository and the model, and the host can be held to one repository #275
All Vouch review confidence checks passed
Residual risk 0.49 = Change Risk (0.77) × (1 − Review Confidence (0.37)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.77 · 592 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 70% · Reviewer familiarity: 10%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.382
Shallow Review Depth
shallow_review_depth
0.344
Wip Merged
wip_merged
0.150
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #275"
general
weight: 0.35
askalf
A record of an approving local review, which the hold takes as the leave to read a head, now names
the repository the review read the commit as and the model it was read on, and the hold takes one
only for the pull request's own repository and a model its host pins now. A host that runs the
review for someone else can hold
local.mjs reviewto one repository withREDLINE_LOCAL_REPO.WHY
The record (#266) was a commit's sha and a verdict. Any approving review on the host put one,
whatever repository its pack named and whatever model it was read on, and the hold took it for any
pull request whose head is that sha. Where the review runs for a job on the runner host, the pack is
the job's own work, and the job can name any repository in it. A record still buys only a read of
that head, under the full round cap, never an approval; binding it keeps that read to the
repository and the reviewer it was meant for.
WHAT CHANGES
review.mjs:localReadRecord(headSha, at, repo, model)writes version 2,{ version: 2, head_sha, repo, model, verdict: 'APPROVE', at }.approvedLocally(dir, headSha,takes a record only when, besides what it checked before, itslog, io, bind)
repoisbind.repocompared without case and itsmodelis one ofbind.models; a version-1 record,another repository, no repository to compare with, a model not among the pins or no pins is no
record, and the log names which without the record's content. The hold passes the run's own
repository and the host's routine and deep models (not the pin-only or fallback model).
local.mjs:recordLocalApprove(dir, { head, repo, model }, at, io)refuses a record without anowner/name repository or a model.
reviewwrites the pack's repository and the model the reviewwas read on. With
REDLINE_LOCAL_REPOset,reviewrefuses a malformed value before anything isread, and
reviewLocalrefuses a pack of any other repository (compared without case), or onethat names none, before a model is called; each is exit 2 with nothing on record.
the tree the review read), and that a review by hand over ssh, with
REDLINE_LOCAL_REPOunset, isthe host's own and trusted as such. CHANGELOG.
UNTRUSTED INPUT AND WHERE IT GOES
change.jsonrepo, from whoever packed it: compared withREDLINE_LOCAL_REPOwhen set,and written into the record as a string; the hold compares it with the run's own repository and
never uses it as a path or a command.
a link, at most 4096 bytes, JSON); its
repoandmodelare compared as strings, and the lognames the run's own repository, never the record's.
REDLINE_LOCAL_REPO, from the host's environment: checked as owner/name.NOT IN THIS CHANGE
The host side: the runner host's review door setting
REDLINE_LOCAL_REPOto each row's repository,and the record directory with the hold's setting. No host sets
REDLINE_LOCAL_READSyet, so thereare no version-1 records to replace.
TESTS
matched without case, any pin); the version before, a version written as text, another repository,
no repository, a model not pinned and no model are each no record, with the log line; with no
repository to match or no pins nothing is taken. Through
runReview: a record of anotherrepository, of an unpinned model or of the version before leaves the head held with no model call
and the log line; one read on the deep pin lifts the hold, and one read on the fallback or the
pin-only model does not. The record's JSON shape.
recordLocalApprovewrites the repository and model and refuses each of a missingrepository or model, a repository that is no owner/name and a path in its place; the review in CI
takes the written record only for its repository and pins. The review command on the host: with
REDLINE_LOCAL_REPOnaming another repository, exit 2 with no review and nothing on record; namingthe pack's own in other case, the review runs and the record names
askalf/rand the model; apack that names no repository is refused, exit 2 and nothing on record; a malformed value ends it
before anything is read.
the host's repository check, what a record is written with), each failing review.test.mjs or
local.test.mjs.