Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat(review): per-PR spend cap and token-budget guardrail

Aperta
#42 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
java

Direzione di ricerca

Start by locating the review flow that sends diff content to the model, then trace how retries and review passes are counted; the issue does not name specific files or tests. Identify where per-PR and per-review usage can be measured, and how the dashboard receives spend data. Done means configurable caps stop review work at the limit, post a truncation message, and show the cap and actual spend.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement java
Problem Statement

There is no guardrail on per-PR spend. A very large diff or a retry storm against an expensive model can run up unexpected cost, which matters most for the self-hosted, bring-your-own-key audience.

Proposed Solution

Add a configurable per-PR (and per-review) spend/token cap. When a review would exceed the cap, stop early and post a clear message (e.g. "review truncated: per-PR budget reached") rather than continuing. Surface the cap and actual spend in the dashboard.

Alternatives Considered
  • Rely on max-diff-lines only — bounds input size but not total spend across retries/passes.
Priority

Important

Code of Conduct
  • I have searched for existing issues and this is not a duplicate.
Lingua principale
Java
Stelle
35
Fork
7
Merge medio
9h 23m
PR unite (30g)
154

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di devops-thiago/ThrillhouseBot

Tutte le issue di devops-thiago/ThrillhouseBot

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.