Quiet first week on a new server: background 100 an hour, no collections or evidence reads
release-gate / verify (push) Successful in 9m41s
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 3m45s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 3m13s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 08:22:13 +00:00
co-authored by Claude Opus 5.5
parent 0beee1d8a2
commit e9f2d267f6
5 changed files with 35 additions and 4 deletions
@@ -45,4 +45,17 @@ class SafetyLimitsTest {
// The rest begins exactly ten minutes after the last press (plus the same small margin as a programme's end).
assertEquals(GUIDE_PICTURE_REST_MS + 50, programmeEndDelayMs(1_000L + GUIDE_PICTURE_REST_MS, 1_000L))
}
@Test fun aNewServerGetsAQuietFirstWeek() {
val root = kotlin.io.path.createTempDirectory("quiet").toFile()
val w = ServerWorkspace("http://example.test", root, root, "alias", original = false)
assertTrue(w.quietStart(now)) // first use starts the clock
assertTrue(w.quietStart(now + 6 * 24 * 60 * 60_000L))
assertFalse(w.quietStart(now + QUIET_START_MS))
// The budget in force is what the limiter keeps to.
BackgroundPacing.budget = QUIET_START_BUDGET
var made = 0
while (background()) made++
assertEquals(100, made)
}
}