Use Cases / pr-risk
Jev PR risk yargıcı
Yoğun repolar derin insan incelemesinden önce PR başlığı + diff özeti üzerinde hızlı risk sinyali ister. Sohbet LLM’leri yavaş ve eşiğe zor; regex auth ve secret sızıntılarını kaçırır.
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 başlığı, özet ve dokunulan yolları state olarak geçin. Botunuzun uygulayabileceği Choice kararı (allow / review / block), risk Score ve needs_security_review Noul alın. Örnek: /admin’de JWT kaldırma → block + yüksek risk.
How to define the decision
state başlık, kısa diff özeti ve dokunulan yolları içermelidir. Karar için Choice, risk için Score, needs_security_review için Noul. Karar etiketlerini botunuzun anladığıyla hizalayın.
When to use Jev
- PR özetlerinde CI veya bot ilk geçiş
- Security review kuyruğu önceliklendirme
- Yüksek blast-radius yol tespiti (auth, billing, admin)
When not to use Jev
- Hassas değişikliklerde insan security review’un yerine geçmek
- Diff’in tam statik analizi veya SAST
- Kod düzeltmesini üretmek
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 veya yüksek risk → security review isteyin veya merge’i tutun. Düşük güvenli allow → review sayın. Model skorları asla sert CODEOWNERS veya branch protection’ı geçersiz kılmaz.
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 verdiğiniz özetleri okur — diff tarayıcılarının yerine geçmez.
- API başarısızlığında fail closed (block veya insan incelemesi).
- IAM ve branch protection’ı sert kontroller olarak tutun.
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
- Önce hangi aracı açmalıyım?
- Tools altında PR Risk Judge’ı açın, örneği çalıştırın, aynı soruları /api/v1/decide ile CI’nize bağlayın.
- Merge’leri otomatik onaylayabilir mi?
- Yalnızca risk iştahınız izin veriyorsa — ve auth/billing yollarında asla yalnız başına. Düşük güvende sessiz allow yerine “block veya yükselt” tercih edin.
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.