Calibração por temperatura, limiares de abstenção e congelamento (tarefas 60–62)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Marcos Lohmann
2026-10-07 18:24:10 -03:00
parent 48159adf56
commit 45f303c2f7
5 changed files with 217 additions and 2 deletions

View File

@@ -98,8 +98,12 @@ def main():
ap.add_argument("--state-budget", type=int, default=int(os.environ.get("DMB_STATE_BUDGET", "512")))
args = ap.parse_args()
if args.split == "test" and not FROZEN.is_file():
raise SystemExit("partição de teste bloqueada: configuração ainda não congelada (tarefa 62)")
if args.split == "test":
if not FROZEN.is_file():
raise SystemExit("partição de teste bloqueada: configuração ainda não congelada (tarefa 62)")
from tools.freeze import current_hashes
if current_hashes() != json.loads(FROZEN.read_text())["files"]:
raise SystemExit("partição de teste bloqueada: arquivos mudaram depois do congelamento")
enforce_offline()
from dmb.offline import self_test