Skip to content

armgit / ARTEX

Public Imported from GitHub
0

ARTEX - AI autonomous penetration testing system (English translation; upstream: Autumn-27/ARTEX, AGPL-3.0)

Say that a revived task keeps the spend already recorded.

protonmatter074962a351c5
diff --git a/server/engine_timeout.go b/server/engine_timeout.go
index 37f5469..e2ae384 100644
--- a/server/engine_timeout.go
+++ b/server/engine_timeout.go
@@ -93,7 +93,8 @@ func (e *Engine) resetTimeoutRevival(taskID string) {
}
// resetSettledRun clears the settle state of a finished run (settling and the
-// budget ledger) so a revived task can plan and claim again with a fresh budget.
+// budget ledger) so a revived task can plan and claim again. The next ledger
+// is seeded from llm_usage, so the spend already recorded still counts.
// It also clears the persisted end_reason of the previous run (ApplyTaskAdmission
// already did in the same UPDATE as the revive; this is idempotent and never
// touches a task that is terminal again).