fischer-agentkit/src/agentkit
chiguyong 53faa60472 fix(review): ce-code-review P1+P2 修复 — 安全/可靠性/性能
P1 安全与可靠性(4 项):
- wecom: verify_signature 增加时间戳新鲜度校验(5 分钟窗口防重放)
- cache: should_cache 在 per_user_namespace 开启时拒绝 user_id=None
  匿名请求,避免跨用户缓存泄漏(安全要求 a/e)
- channels: webhook receive_message 异常兜底,防止 500 触发平台重试风暴
- app: shutdown 调用 close_all_adapters + await _pending_webhook_tasks,
  防止 httpx 连接泄漏和丢失 IM 回复

P2 效率与可维护性(5 项):
- feishu: _TOKEN_CACHE_TTL 300 → 6900(2h 减 5min 余量,避免 24x 过频刷新)
- channels: _pending_webhook_tasks 有界化(2x 并发上限时 429 拒绝)
- gateway: quota 检查每 period 单次 get_usage,复用 summary 检查 token+cost
- cache_key: generate_cache_key 合并为单次 SHA-256(消除 8-10 次冗余哈希)
- config: ProviderConfig.get_api_key 移除未用的 secrets_store 参数

P3 去重(1 项):
- channels: _process_inbound_message DIRECT_CHAT 路径提取 _direct_chat 辅助函数

测试:
- test_wecom: 时间戳改用 int(time.time()),新增 test_expired_timestamp_rejected
- test_cache: should_cache 测试覆盖匿名拒绝 + namespace_off 兼容
- test_config_migration: get_api_key 测试适配新签名
- channels/config_migration/quota_enforcement 测试全部通过
2026-06-26 01:40:31 +08:00
..
bitable feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
bus fix: resolve code review issues from deferred improvements 2026-06-11 13:49:02 +08:00
calendar fix(calendar): code review fixes - 23 issues (2 critical, 15 major, 6 minor) 2026-06-24 11:29:23 +08:00
channels fix(review): ce-code-review P1+P2 修复 — 安全/可靠性/性能 2026-06-26 01:40:31 +08:00
chat refactor: simplify code across U1-U7 (bug fix + efficiency + reuse + quality) 2026-06-24 22:35:52 +08:00
cli feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
client feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
core feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
documents feat(documents): add document processing capability (U1-U9) 2026-06-23 15:05:01 +08:00
evaluation feat(evaluation): U9 Ragas evaluation pipeline for RAG quality assessment 2026-06-06 22:49:27 +08:00
evolution feat(skills): SkillHarness 前置条件 + 风险守卫学习增强 2026-06-24 18:56:51 +08:00
experts feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
llm fix(review): ce-code-review P1+P2 修复 — 安全/可靠性/性能 2026-06-26 01:40:31 +08:00
marketplace fix(review): comprehensive P0-P2 code review fixes 2026-06-12 22:18:25 +08:00
mcp refactor: ce-simplify-code 审查修复 — 去重 + 效率 + 死代码清理 2026-06-25 23:54:14 +08:00
memory feat(skills): SkillHarness 前置条件 + 风险守卫学习增强 2026-06-24 18:56:51 +08:00
orchestrator feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
org feat(marketplace): add Phase B/C - CostAwareRouter, OrganizationContext, AlignmentGuard, Soul Evolution, Auction, Server Integration 2026-06-10 19:09:02 +08:00
prompts fix(review): address all 14 P2 advisory findings 2026-06-06 18:20:46 +08:00
quality fix(review): apply code review fixes from ce-code-review 2026-06-16 00:24:14 +08:00
rag_platform feat(rag_platform): U8 — TaskIQ async task integration 2026-06-25 12:58:51 +08:00
router fix(router): keyword match tiebreaker should preserve list order, not alphabetical 2026-06-24 10:11:42 +08:00
server fix(review): ce-code-review P1+P2 修复 — 安全/可靠性/性能 2026-06-26 01:40:31 +08:00
session fix(review): comprehensive P0-P2 code review fixes 2026-06-12 22:18:25 +08:00
skills feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
telemetry fix: resolve code review issues from deferred improvements 2026-06-11 13:49:02 +08:00
tools feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
utils fix(security,reliability): resolve all P2 findings from code review 2026-06-10 15:05:40 +08:00
__init__.py feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
__main__.py feat(cli): AgentKit CLI with serve/version/health/task/skill/init/usage 2026-06-06 12:45:51 +08:00