Use Cases / pr-risk
Jev PR リスク判定
忙しいリポジトリは深い人レビュー前に PR タイトル + diff 要約の高速リスク信号が必要。チャット LLM は遅く閾値化しにくく、正規表現は認証やシークレット漏れを逃す。
Try a related template free on this host — 5 anonymous real-API runs with no signup — then ship the same schema with a prepaid jv_live_ key. See is Jev free? and playground.
Why Jev
PR タイトル、要約、変更パスを state にする。Choice 評決(allow / review / block)、リスク Score、needs_security_review Noul をボットが強制できる。例:/admin で JWT 削除 → block + 高リスク。
How to define the decision
state にタイトル、短い diff 要約、変更パスを含める。評決に Choice、リスクに Score、needs_security_review に Noul。評決ラベルをボットの理解と揃える。
When to use Jev
- CI やボットによる PR 要約の一次通過
- セキュリティレビューキューの優先順位付け
- 高爆風半径パス検出(auth、billing、admin)
When not to use Jev
- 機微な変更での人セキュリティレビューの代替
- diff の完全静的解析や SAST
- コード修正の生成
Sample input and output
From the live tool template. Run it in the playground for a real API response — sample labels below are illustrative until you click Run.
Input
title: Relax auth on /admin for staging tests summary: Removes JWT check on /admin/*; adds console.log of session cookies. files: app/api/admin/route.ts, middleware.ts
Sample display fields
- verdict: block · 88%
- risk: 0.86 · high
- needs_security_review: yes · 92%
block または高リスク → セキュリティレビュー要求またはマージ保留。低信頼 allow → review 扱い。モデルスコアはハード CODEOWNERS やブランチ保護を上書きしない。
Failure modes and human fallback
- Upstream or network errors: retry with backoff; do not invent a decision.
- Low confidence: route to a human queue or safer default — never auto-act on money/destructive tools.
- Schema drift: keep a golden fixture set in CI so label changes fail the build before production.
- Jev は提供した要約を読む —— diff スキャナの代替ではない。
- API 失敗時は fail closed(block または人レビュー)。
- IAM とブランチ保護をハード制御として残す。
API example
Same prepaid jv_live_ balance as tools. Output tokens are free on this host's metering model.
curl https://jevtypesafe.org/api/v1/decide \
-H "Authorization: Bearer jv_live_YOUR_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{"state":"PR risk judge\nTitle: Relax auth on /admin for staging tests\nFiles: app/api/admin/route.ts, middleware.ts\nSummary:\nRemoves JWT check on /admin/*; adds console.log of session cookies.","questions":{"verdict":{"type":"choice","instructions":"Merge recommendation for a careful production team?","criteria":{"approve":"low risk, fine to merge with normal review","caution":"merge only with extra eyes / staging proof","block":"do not merge until security/auth issues are fixed"}},"risk":{"type":"score","instructions":"Overall production risk from 0 (safe) to 1 (severe).","criteria":["cosmetic","limited","material","severe"]},"needs_security_review":{"type":"noul","instructions":"Should security review this before merge?"}}}'FAQ
- 最初にどのツールを開くべき?
- Tools の PR Risk Judge を開きサンプルを実行し、同じ質問を /api/v1/decide 経由で CI に配線します。
- マージを自動承認できますか?
- リスク許容が許す場合のみ —— かつ auth/billing パスでは単独にしない。低信頼では黙った allow より「block またはエスカレーション」を優先。
Related use cases
Ready to build?
Free anonymous tool runs, then prepaid packs and a jv_live_ key — independent host, not affiliated with TypeSafe AI.