HEL-919 rework: old ledger verbatim in copy (no seal rename) + scoped budget keys; running-expiry drill evidence

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
施工员2号
2026-11-04 11:56:00 +08:00
co-authored by multica-agent
parent 9c3789af06
commit 99c5de1d60
12 changed files with 185 additions and 101 deletions
+15 -4
View File
@@ -1,5 +1,8 @@
............ [100%]
12 passed in 0.41s
12 passed in 0.45s
---- budget-affected suites ----
.......................................................... [100%]
58 passed in 3.24s
---- ctl drill ----
PASS syntax instance_ctl.sh
PASS package file README.md
@@ -31,10 +34,18 @@ PASS own pid stopped
PASS stop refuses non-own live pid
PASS foreign pid untouched
PASS close ok (no running api)
{"ok": true, "sealed": 1, "prior": 1}
PASS close sealed THIS instance db (prior seal frozen intact)
{"ok": true, "old_sealed": 1, "new_scope_sealed": 1}
PASS close sealed NEW scope only; old ledger verbatim
PASS window.json records closed_at
PASS close idempotent
PASS start refused after close (window-active removed)
PASS running instance alive before deadline
PASS watch closed expired running instance
PASS expired running instance stopped (no further egress possible)
PASS watch removed pid file
PASS watch removed window-active
{"ok": true}
PASS expiry sealed NEW scope only; old keys verbatim (no rename)
PASS restart after expiry refused (deadline persisted)
----
PASS=34 FAIL=0
PASS=41 FAIL=0