Release alpha 0.6.8 autochess legacy state fix
check / local-gate (push) Failing after 1m33s

This commit is contained in:
JWeBot Contributors
2026-10-15 18:18:00 +08:00
parent 3dea42b268
commit 5125b827c0
17 changed files with 95 additions and 21 deletions
+4 -4
View File
@@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"
[project]
name = "jwebot-kernel"
version = "0.6.7a0+1015"
version = "0.6.8a0+1015"
description = "Stable routing and extension authority for JWeBot"
requires-python = ">=3.9"
dependencies = [
"jwebot-config==0.6.7a0+1015",
"jwebot-sdk==0.6.7a0+1015",
"jwebot-official-extensions==0.6.7a0+1015",
"jwebot-config==0.6.8a0+1015",
"jwebot-sdk==0.6.8a0+1015",
"jwebot-official-extensions==0.6.8a0+1015",
"tomli>=2; python_version < '3.11'",
]
@@ -107,4 +107,4 @@ __all__ = [
"verify_installed_release_signature",
]
__version__ = "0.6.7a0+1015"
__version__ = "0.6.8a0+1015"
@@ -3837,6 +3837,29 @@ class Ledger:
self._validate_autochess_state(new_state)
run_id = str(new_state["run_id"])
season_number = int(new_state["season_number"])
if (
stored is not None
and str(stored["run_id"]) != run_id
and str(stored["state"]) in {"registration", "active"}
):
archived_state = dict(state or {})
archived_state["status"] = "cancelled"
archived_state["phase"] = "cancelled"
self.connection.execute(
"""
UPDATE autochess_runs
SET state = 'cancelled',
state_json = ?,
updated_at = ?
WHERE group_fingerprint = ? AND run_id = ?
""",
(
canonical_json(archived_state),
timestamp,
group,
str(stored["run_id"]),
),
)
existing = self.connection.execute(
"""
SELECT created_at FROM autochess_runs