Pruefzaehler + Pruefkontingent (Decision-Update Phase-2 vorgezogen)
Eigener Pruef-Zaehler, getrennt von der Credit-Wallet (Paragraph 4.2/4.3): - review_checks Ledger (eine Zeile je Pruefung, source free|credit, charged_credits), aggregiert pro Account/Monat statt pro PM - ReviewCheckService: Tageslimit (harte Bremse, nicht freikaufbar) -> Monats-Freikontingent (tier-gestaffelt 4/12/30/60/120) -> Overflow zieht 1 Credit/Pruefung aus der Wallet - ReviewLimitException fuer das erreichte Tageslimit Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
b63cd26326
commit
3e8844245d
8 changed files with 387 additions and 0 deletions
19
app/Exceptions/ReviewLimitException.php
Normal file
19
app/Exceptions/ReviewLimitException.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
/**
|
||||
* Wird geworfen, wenn das Prüf-Tageslimit (Burst-Schutz) erreicht ist. Anders
|
||||
* als ein leeres Monats-Freikontingent ist das eine harte Bremse: sie lässt
|
||||
* sich nicht per Credit überbrücken, sondern erst am Folgetag wieder lösen.
|
||||
*/
|
||||
class ReviewLimitException extends RuntimeException
|
||||
{
|
||||
public function __construct(
|
||||
public readonly int $dailyLimit,
|
||||
) {
|
||||
parent::__construct("Prüf-Tageslimit erreicht ({$dailyLimit}/Tag).");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue