From 2dd217522c78b54fc967ff924241556de6b55dbe Mon Sep 17 00:00:00 2001 From: Neo Date: Mon, 9 Mar 2026 01:24:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=BF=81=E7=A7=BB=E6=A0=A1=E9=AA=8C=E4=B9=8B?= =?UTF-8?q?=E5=89=8D=20P5=E4=BB=BB=E5=8A=A1=E5=A4=84=E7=90=86=E4=B9=8B?= =?UTF-8?q?=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .kiro/specs/05-miniapp-ai-integration/tasks.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.kiro/specs/05-miniapp-ai-integration/tasks.md b/.kiro/specs/05-miniapp-ai-integration/tasks.md index b4864b5..2f61d4a 100644 --- a/.kiro/specs/05-miniapp-ai-integration/tasks.md +++ b/.kiro/specs/05-miniapp-ai-integration/tasks.md @@ -99,19 +99,19 @@ - `_cleanup_excess`:保留最近 500 条,删除最旧的 - _需求: 12.1, 12.2, 12.3, 12.4, 12.5_ - - [~] 4.2 编写属性测试:缓存写入 round-trip + - [-] 4.2 编写属性测试:缓存写入 round-trip - **Property 7: 缓存写入 round-trip** - 使用 test_zqyy_app 数据库,随机 cache_type、target_id、result_json,验证写入后查询一致 - 测试文件:`apps/backend/tests/test_ai_cache.py` - **验证: 需求 4.7, 5.6, 6.6, 7.5, 8.6, 9.5, 10.10** - - [~] 4.3 编写属性测试:缓存查询 site_id 隔离 + - [-] 4.3 编写属性测试:缓存查询 site_id 隔离 - **Property 13: 缓存查询 site_id 隔离** - 使用 test_zqyy_app 数据库,写入 site_id=A 的记录,以 site_id=B 查询应返回空 - 测试文件:`apps/backend/tests/test_ai_cache.py` - **验证: 需求 12.1, 12.5** - - [~] 4.4 编写属性测试:缓存保留上限 + - [-] 4.4 编写属性测试:缓存保留上限 - **Property 14: 缓存保留上限** - 使用 test_zqyy_app 数据库,批量写入 >500 条记录,验证清理后 ≤ 500 - 测试文件:`apps/backend/tests/test_ai_cache.py`