fischer-agentkit/docs/plans
chiguyong bbbf9cd40a feat(bitable): add bitable companion service with full P0-P2 fixes
Bitable is a multi-dimensional table companion service that runs alongside
the main AgentKit server. It provides structured data storage with formula
fields, views, and ingestion pipelines.

Major components:
- Domain models (Pydantic v2): Table, Field, Record, View, RecalcTask
- SQLAlchemy 2 async ORM with independent bitable PostgreSQL schema
- Formula engine: AST parser, DAG, Kahn topological sort, safe eval
- RecalcWorker: atomic task claiming (FOR UPDATE SKIP LOCKED), topo-order
  processing, stale-threshold reaper for crash recovery
- REST API (/api/v1/bitable): tables, fields, records, views, files
- BitableTool: agent-facing tool with batch chunking (500/batch)
- CLI: agentkit bitable subcommands (create, list, import-excel, etc.)
- Frontend: Vue 3 + vxe-table grid with field management, views, filters
- Ingestion: Excel (openpyxl), database reflection, API collector

Security fixes (ce-code-review P0 + ce-debug P1):
- SQL injection prevention (field_id validation, parameterized queries)
- IDOR protection (_check_table_ownership on all table-level endpoints)
- SSRF prevention (URL scheme + private IP validation in parse_excel_url)
- OOM prevention (streaming file upload, batch delete, batch insert)
- Atomic recalc task claiming (FOR UPDATE SKIP LOCKED)
- Formula engine cache invalidation on field changes
- Composite cursor pagination for non-id sort orders
- Batch upsert (eliminates N+1 queries)
- Sync I/O offloaded to thread pool in async contexts
- Internal token auth (X-Internal-Token, hmac.compare_digest)
- PK unique index enforcement

Test coverage: 88 unit tests (95 skipped without Docker)
2026-06-25 01:09:59 +08:00
..
2026-06-05-001-feat-agentkit-tdd-validation-plan.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-002-design-agentkit-v2-architecture.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-003-feat-agentkit-v2-phase1-plan.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-004-geo-migration-mode-a.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-005-refactor-agentkit-framework-hardening.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-006-refactor-agentkit-v2-phase2-plan.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-007-feat-agentkit-cli-deployment-plan.md feat(cli): AgentKit CLI with serve/version/health/task/skill/init/usage 2026-06-06 12:45:51 +08:00
2026-06-06-008-feat-agentkit-phase3-upgrade-plan.md docs: mark Phase 3 upgrade plan as completed 2026-06-06 17:18:07 +08:00
2026-06-06-009-feat-agentkit-rag-optimization-plan.md feat(memory): RAG pipeline optimization — 5 Implementation Units 2026-06-06 19:27:09 +08:00
2026-06-06-010-feat-agentkit-phase4-production-plan.md feat(agentkit): Phase 4 enterprise production upgrade — 12 Implementation Units 2026-06-06 21:51:04 +08:00
2026-06-06-011-feat-agentkit-phase5-intelligence-plan.md docs: mark Phase 5 plan as completed 2026-06-06 22:53:14 +08:00
2026-06-07-012-feat-agentkit-phase6-toolkit-plan.md docs: mark Phase 6 plan as completed 2026-06-07 17:27:01 +08:00
2026-06-07-013-feat-agentkit-phase7-headroom-plan.md docs: mark Phase 7 Headroom integration plan as completed 2026-06-07 18:21:27 +08:00
2026-06-07-014-fix-agentkit-p0-review-fixes-plan.md fix(agentkit): resolve all P0/P1/P2/P3 issues from code review 2026-06-07 22:05:18 +08:00
2026-06-07-015-feat-agentkit-phase8-chat-adaptive-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-08-016-feat-agentkit-layered-memory-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-09-017-feat-agentkit-multi-agent-marketplace-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-10-018-fix-agentkit-p2-hardening-plan.md fix(security,reliability): resolve all P2 findings from code review 2026-06-10 15:05:40 +08:00
2026-06-10-019-feat-agentkit-deferred-improvements-plan.md fix: resolve code review issues from deferred improvements 2026-06-11 13:49:02 +08:00
2026-06-12-020-feat-pipeline-adversarial-loop-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-12-021-feat-chat-response-speed-optimization-plan.md feat: optimize chat response speed for sub-1s first token latency 2026-06-12 13:15:06 +08:00
2026-06-12-022-feat-agentkit-phase9-integrated-next-stage-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-12-023-feat-frontend-productization-plan.md feat: frontend productization with code review fixes 2026-06-13 01:29:58 +08:00
2026-06-13-001-feat-gui-productization-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-13-001-refactor-gui-redesign-plan.md docs: mark GUI redesign plan as completed 2026-06-13 03:01:31 +08:00
2026-06-13-003-feat-platform-experience-upgrade-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-13-004-feat-tauri-desktop-client-plan.md feat(client): add Tauri 2.x desktop client with sidecar process management 2026-06-14 10:06:12 +08:00
2026-06-14-001-feat-expert-team-mode-plan.md feat: Expert Team Mode — plan-execute collaboration with conversation UI 2026-06-14 22:20:14 +08:00
2026-06-14-001-feat-p0-production-hardening-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-14-002-u1-llm-cache-architecture.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-14-003-u2-llm-cache-integration.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-14-004-u3-semantic-router.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-15-001-feat-autonomous-task-execution-plan.md feat: autonomous task execution - connect PlanExecEngine + TeamOrchestrator 2026-06-15 12:41:32 +08:00
2026-06-15-002-feat-e2e-capability-improvement-plan.md refactor: eliminate routing layer, align with industry best practices 2026-06-17 10:44:40 +08:00
2026-06-15-003-feat-router-intelligence-optimization-plan.md refactor: eliminate routing layer, align with industry best practices 2026-06-17 10:44:40 +08:00
2026-06-15-004-feat-semantic-router-and-benchmark-upgrade-plan.md refactor: eliminate routing layer, align with industry best practices 2026-06-17 10:44:40 +08:00
2026-06-16-005-backtest-report.md refactor(router): replace CostAwareRouter with SimpleRouter and prompt-based tool calling 2026-06-16 03:31:05 +08:00
2026-06-16-005-code-review-fixes.md refactor(router): replace CostAwareRouter with SimpleRouter and prompt-based tool calling 2026-06-16 03:31:05 +08:00
2026-06-16-005-reasoning-verification.md refactor(router): replace CostAwareRouter with SimpleRouter and prompt-based tool calling 2026-06-16 03:31:05 +08:00
2026-06-16-005-refactor-routing-architecture-plan.md refactor(router): replace CostAwareRouter with SimpleRouter and prompt-based tool calling 2026-06-16 03:31:05 +08:00
2026-06-16-006-refactor-architecture-optimization-evolution-plan.md refactor: eliminate routing layer, align with industry best practices 2026-06-17 10:44:40 +08:00
2026-06-17-001-feat-board-meeting-mode-plan.md feat: 私董会讨论模式 + 回测集成 + WS持久化修复 2026-06-17 23:52:53 +08:00
2026-06-17-001-fix-benchmark-failures-root-cause-plan.md fix: resolve benchmark failures from root cause (LLM timeout, WebSocket, latency stats) 2026-06-17 13:32:54 +08:00
2026-06-17-002-fix-ws-task-persistence-plan.md feat: 私董会讨论模式 + 回测集成 + WS持久化修复 2026-06-17 23:52:53 +08:00
2026-06-17-003-feat-team-pipeline-integration-plan.md docs: U3+U10 更新 AGENTS.md 流水线模式文档 + 计划状态改为 completed 2026-06-18 03:04:47 +08:00
2026-06-19-001-feat-chat-area-vi-redesign-plan.md feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
2026-06-19-002-enterprise-client-server-architecture-plan.md feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
2026-06-19-003-feat-enterprise-client-server-evolution-plan.md feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
2026-06-20-001-fix-regression-issues-routing-optimization-plan.md fix(routing): U1-U6 路由优化 + 修复方案 + 代码审查修复 2026-06-20 19:31:49 +08:00
2026-06-20-002-feat-centralized-auth-token-persistence-plan.md plan: 计划审查修订 + AuthProvider 抽象层设计 2026-06-21 00:21:52 +08:00
2026-06-21-001-feat-admin-console-plan.md docs: mark admin console plan as completed 2026-06-21 20:02:27 +08:00
2026-06-21-001-fix-p0-security-and-quality-optimization-plan.md fix(auth,chat): P0 security fixes + stop-generation button + doc sync 2026-06-21 11:36:58 +08:00
2026-06-23-002-feat-document-processing-plan.md feat(documents): add document processing capability (U1-U9) 2026-06-23 15:05:01 +08:00
2026-06-23-003-feat-calendar-schedule-plan.md docs(calendar): add implementation history with code review summary 2026-06-24 11:36:10 +08:00
2026-06-23-document-processing-test-plan.md feat(documents): add document processing capability (U1-U9) 2026-06-23 15:05:01 +08:00
2026-06-24-001-feat-agent-debate-collaboration-plan.md feat(experts): add debate phase executor to TeamOrchestrator (U2) 2026-06-24 10:54:51 +08:00
2026-06-24-001-feat-bitable-companion-service-plan.md feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
2026-06-24-001-test-calendar-e2e-plan.md test(calendar): wire calendar router into app.py + test plan 2026-06-24 11:51:31 +08:00
2026-06-24-002-feat-skill-harness-activation-preconditions-plan.md feat(skills): SkillHarness 激活前置条件 + 风险守卫学习 2026-06-24 13:56:37 +08:00
2026-06-24-003-feat-expert-team-pm-collaboration-plan.md fix(experts): PM 协同代码审查全量修复 2026-06-24 18:56:27 +08:00
2026-06-24-004-feat-long-horizon-reliability-optimization-plan.md feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
2026-06-24-005-feat-portal-platform-evolution-plan.md feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00