fischer-agentkit/tests/unit/calendar
chiguyong c9ce15fa4b fix(code-review): 修复走查发现的 13 High + Medium 安全/可靠性问题
代码修复(8 High + 9 Medium):
- portal.py — C1 IDOR 文档 / C2 类型修复 / C3 WS 连接上限 16 / C4 ws_user_id 早初始化 / M silent swallow 日志化
- auth/middleware.py — C5 WS sid 补齐
- calendar_tool.py — C6 偏移量 ±43200 双向校验 + reminder_channels 类型/白名单校验
- sqlite_conversation_store.py — C7 DELETE 事务回滚
- chat.ts (Pinia) — C8 deleteConversation 清理 pending 缓存
- app.py — M except: pass → logger.debug(exc_info=True)
- Scene6Error.vue — M onUnmounted 清理 setTimeout
- DocumentsTab.vue — M Invalid Date 守卫
- ChatSidebar/RightPanel/TopNav.vue — M aria-label 无障碍标签
- SystemMonitorPanel.vue — M v-else 兜底 + active 边框色 + tablist 键盘导航
- CalendarDrawer.vue — M overflow-y: auto
- CalendarGrid.vue — M ResizeObserver 反馈循环防护
- SkillsTab.vue — M onMounted 始终 fetchSkills

文档修复(5 High + 6 Medium):
- portal-platform-security-reliability-fixes.md — D2 测试路径 / D3 Root Cause+Impact 章节 / D4 severity: mixed / 标题中文化 / 12 处绝对路径转相对 / P2 #12 数字口径
- AGENTS.md — D5 路由表 22→28 / 专家模板 5→15 / LiteLLM U15 迁移 / 配置查找 fallback
- README.md — 8 处端口 8000→8001

新增测试:
- tests/unit/calendar/test_calendar_tool.py — ponytail 自检断言

验证:
- ruff check (5 文件) — All checks passed
- vue-tsc --noEmit — exit 0
- git stash baseline 验证 — portal 17 个 401 失败为预存在问题

已知限制(预存在):
- 17 个 portal 测试 401 失败 — 需另起 ce-debug 调查
- README.md 7 处 CostAwareRouter 引用过时 — 文档同步另起任务
2026-06-28 15:06:41 +08:00
..
__init__.py feat(calendar): U1 backend data model, storage & RRULE expansion 2026-06-23 21:30:39 +08:00
test_calendar_tool.py fix(code-review): 修复走查发现的 13 High + Medium 安全/可靠性问题 2026-06-28 15:06:41 +08:00
test_db.py feat(calendar): U1 backend data model, storage & RRULE expansion 2026-06-23 21:30:39 +08:00
test_extraction.py feat(calendar): U4 post-processing extractor with keyword gating 2026-06-23 21:56:20 +08:00
test_ics_provider.py feat(calendar): U8 iCal/ICS import and export 2026-06-23 22:20:07 +08:00
test_integration_flows.py test(calendar): 7 integration flow tests (lifecycle, recurrence, tags, types, invitations, authz, ICS) 2026-06-24 12:04:42 +08:00
test_recurrence.py feat(calendar): U1 backend data model, storage & RRULE expansion 2026-06-23 21:30:39 +08:00
test_reminders.py feat(calendar): U5 reminder subsystem with scheduler and multi-channel dispatch 2026-06-23 22:19:57 +08:00
test_routes.py feat(calendar): U2 backend service & REST API 2026-06-23 21:43:39 +08:00
test_scheduler.py fix(calendar): code review fixes - 23 issues (2 critical, 15 major, 6 minor) 2026-06-24 11:29:23 +08:00
test_service.py feat(calendar): U2 backend service & REST API 2026-06-23 21:43:39 +08:00
test_sync_caldav.py feat(calendar): U6 CalDAV sync provider and SyncManager 2026-06-23 22:52:29 +08:00
test_sync_manager.py feat(calendar): U6 CalDAV sync provider and SyncManager 2026-06-23 22:52:29 +08:00
test_sync_outlook.py feat(calendar): U7 Outlook sync via Microsoft Graph API 2026-06-23 23:49:24 +08:00