HEL-919: enforce live request deadlines and preserve continuation data on rollback
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
HEL-919 总管接手补齐原遗漏;起点99c5de1d602970a34c5d7b937b187e16b57bda9d
|
||||
全部离线:合成旧档案、替身provider/SDK/进程/时钟;未部署、未读用户库、零真实调用。
|
||||
|
||||
$ python3 -m pytest tests/test_hel919_continuation.py tests/test_hard_gates_hel882.py tests/test_rework_hel885.py tests/test_rework_hel886.py tests/test_rework_hel889.py tests/test_rework_hel894.py tests/test_semantic_recovery_hel882.py tests/test_hel916.py tests/test_store.py -q
|
||||
........................................................................ [ 78%]
|
||||
.................... [100%]
|
||||
92 passed in 3.84s
|
||||
|
||||
其中接续专项单跑25 passed;完整合集92 passed(含该25项),两者不是相加。
|
||||
|
||||
$ bash deploy/hel919-continuation/test_ctl_scripts.sh
|
||||
PASS syntax instance_ctl.sh
|
||||
PASS package file README.md
|
||||
PASS package file manifest.json
|
||||
PASS package file migrate_same_her.py
|
||||
PASS package file window_guard_hel919.py
|
||||
PASS package file models.template.yaml
|
||||
PASS package file semantic.template.yaml
|
||||
PASS package file queue_policy.md
|
||||
PASS package file enablement-plan.md
|
||||
PASS package file cybergril-hel919-expiry.template.service
|
||||
PASS package file test_ctl_scripts.sh
|
||||
PASS compile tools
|
||||
PASS migrate refuses missing db
|
||||
PASS synthetic migrate ok
|
||||
PASS check ok (all budgets 0)
|
||||
PASS check refuses unapproved nonzero budget
|
||||
PASS check passes nonzero with explicit allow
|
||||
PASS invalid subcommand refused (rc=2)
|
||||
PASS invalid subcommand started nothing
|
||||
PASS start refused without window (default closed)
|
||||
PASS refused start left no pid
|
||||
PASS start refused with expired window
|
||||
PASS expired start left no pid
|
||||
PASS failed start (no health) exits 1
|
||||
PASS failed start removed pid file
|
||||
PASS start injected persistent deadline into API
|
||||
PASS watch ready before API was launched
|
||||
PASS failed start disarmed its own watcher
|
||||
PASS stop own verified pid
|
||||
PASS own pid stopped
|
||||
PASS stop refuses non-own live pid
|
||||
PASS foreign pid untouched
|
||||
PASS close ok (no running api)
|
||||
{"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 expiry close
|
||||
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 start refused unverifiable expiry arming
|
||||
PASS unarmed API never launched
|
||||
PASS foreign expiry pid untouched
|
||||
----
|
||||
PASS=47 FAIL=0
|
||||
|
||||
$ python3 -m ruff check src/cybergril/life/model.py src/cybergril/api/app.py src/cybergril/memory/semantic.py deploy/hel919-continuation/migrate_same_her.py deploy/hel919-continuation/window_guard_hel919.py tests/test_hel919_continuation.py
|
||||
All checks passed!
|
||||
|
||||
$ python3 scripts/check_requirements.py --base-ref origin/main --handoff docs/requirements/handoff-HEL-919.json
|
||||
需求结构检查通过:60项;来源和覆盖完整。仍须人工核对授权语义与实际体验。
|
||||
$ python3 scripts/check_requirements.py --base-ref 2e91a3c91e90944991886b21f7167a6913f41efb --handoff docs/requirements/handoff-HEL-919.json
|
||||
需求结构检查通过:60项;来源和覆盖完整。仍须人工核对授权语义与实际体验。
|
||||
|
||||
先前首错:第一次启停替身44 PASS/3 FAIL,close/幂等close/watch的封账自检收到缺期限而非budget_sealed;已恢复封账优先于期限检查的原语义,再跑47 PASS/0 FAIL。未修改全局测试shim或降低断言。原offline-run.txt保留旧交付结果。
|
||||
|
||||
必要反例:TestClient进程仍活、watch未运行,时钟到deadline后新主聊/生活/聊天分类请求被拒,provider.calls及请求数不增加;SDK单条/批量嵌入/提取同样拒绝且不新增计数。缺失/非法deadline拒绝,scope期限持久钉住,重启改期拒绝;在途settle可完成。
|
||||
回退:新增聊天、更新原行记忆、向量改变默认拒绝;force先一致性归档(含已提交WAL),实际恢复读回新聊天/向量;备份故障不删,活实例拒绝。资料路径限定在实例data内。
|
||||
未验证:真实模型自然度、.12实际部署与启用、真实timer、浏览器真机/多日体验;均须另行获批实际启用后核证。
|
||||
Reference in New Issue
Block a user