Summary: - Fix pg-boss queue conflict (duplicate key violation on queue_pkey) - Add global error listener to prevent process crash - Reduce connection pool from 10 to 4 - Add graceful shutdown handling (SIGTERM/SIGINT) - Fix researchWorker recursive call bug in catch block - Make screeningWorker idempotent using upsert Security Standards (v1.1): - Prohibit recursive retry in Worker catch blocks - Prohibit payload bloat (only store fileKey/ID in job.data) - Require Worker idempotency (upsert + unique constraint) - Recommend task-specific expireInSeconds settings - Document graceful shutdown pattern New Features: - PKB signed URL endpoint for document preview/download - pg_bigm installation guide for Docker - Dockerfile.postgres-with-extensions for pgvector + pg_bigm Documentation: - Update Postgres-Only async task processing guide (v1.1) - Add troubleshooting SQL queries - Update safety checklist Tested: Local verification passed
64 lines
820 B
Plaintext
64 lines
820 B
Plaintext
feat(iit): Initialize IIT Manager Agent MVP - Day 1 foundation complete
|
|
|
|
Summary:
|
|
- Launch IIT Manager Agent (AI-driven IIT research assistant)
|
|
- Complete Day 1/14: Database schema, module structure, WeChat integration
|
|
|
|
Database Layer:
|
|
- Add iit_schema with 5 tables
|
|
- Include V1.1 fields: cachedRules, lastSyncAt, miniProgramOpenId
|
|
- All CRUD tests passed
|
|
|
|
Module Structure:
|
|
- Create backend/src/modules/iit-manager/
|
|
- 223 lines TypeScript types
|
|
- Health check endpoint working
|
|
|
|
WeChat Integration:
|
|
- App registered: CorpID ww6ab493470ab4f377
|
|
- Access Token verified successfully
|
|
|
|
Documentation:
|
|
- Update system status doc v2.3 -> v2.4
|
|
- Complete IIT doc structure
|
|
- Technical plan V1.1 (2170 lines)
|
|
- MVP task list (615 lines)
|
|
|
|
Status: Day 1 complete (11/11 tasks), ready for Day 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|