Accusys
667e279768
release: v1.3.5 - merge Phase 1 (health/queue API + timeout_at self-heal) onto v1.3.4 base
...
- Add /api/v1/health/queue queue-health endpoint (public, like /health/detailed)
- Add timeout_at column + index (migration 20261012_add_command_timeout.sql)
- consume() stamps timeout_at; pipeline_worker self-heals timed-out commands every 5m
- Bump version 1.3.4 -> 1.3.5
2026-10-13 00:12:05 +08:00
Accusys
b47f473db6
fix: 添加 file_size 和 modified_time 到 videos 表和 API
...
问题:
- /library 页面已注册文件卡片不显示 size 和 mdate
- 数据库 videos 表缺少 file_size 和 modified_time 列
- API 查询未返回这些字段
修复:
- 添加数据库迁移 (migrations/20261012_add_file_size_columns.sql)
- 修改 register_single_file() 获取并保存 file_size 和 modified_time
- 修改 list_files() API 查询包含新字段
- 创建脚本更新历史数据 (scripts/update_file_metadata.py)
影响:
- 新注册文件自动填充 size 和 mtime
- API 正确返回 file_size 和 modified_time
- 历史数据已批量更新 (188 个文件)
测试:
- API 测试通过
- 数据库验证通过
- 文件大小匹配验证通过
2026-10-12 17:07:48 +08:00
Accusys
63fbbe1225
release: v1.3.1 - Pipeline Queue Integration, OCR Fix, Worker Compatibility
...
Major Changes:
- Pipeline Queue integration completed (internal.file + pipeline.commands)
- Fixed old job_worker database compatibility with new command_queue table
- Compiled Swift OCR binary (was missing, causing empty OCR results)
- Added deep scan functionality through re-scan API
Fixes:
- Changed CommandJob.id from i32 to i64 for database compatibility
- Added UUID generation in create_command (message_id field)
- Fixed claim_pending_commands to query queue_name = 'internal.file'
- Fixed field mappings: command_id → message_id, job_type → command_type
- Added support for 'processing' status in CommandJobStatus
Queue System:
- internal.file queue: for register/unregister/re-scan commands (job_worker)
- pipeline.commands queue: for vectorize/store_asrx/etc commands (pipeline_worker)
Documentation:
- Added comprehensive queue system documentation
- Created M4 workspace status reports
- Updated AGENTS.md with queue system details
2026-10-12 10:00:51 +08:00
Accusys
86c776ce41
feat: 更新 FaceFilterSettings 为三段式统一结构
...
数据模型更新:
- 新增 UiFilterRules 结构(UI 过滤规则)
- 新增 ProcessingThresholds 结构(处理阈值)
- 新增 TraceSettings 结构(Trace 配置)
- FaceFilterSettings 整合三个子结构
- min_confidence 范围从 0-100 改为 0.0-1.0
- min_size 重命名为 min_bbox_size
- 新增字段: max_confidence, max_bbox_size, source, backend_status
向后兼容性:
- 新增 from_legacy() 方法自动转换旧格式
- defaults() 方法自动转换 0-100 到 0.0-1.0
测试:
- 更新 test_face_filter_roundtrip
- 更新 test_face_filter_defaults_match_detection_defaults
- 新增 test_face_filter_new_method
- 新增 test_face_filter_from_legacy
- 所有测试通过 ✅
文件修改:
- src/core/file_profile.rs: 数据结构定义(+150 行)
- src/core/processor/vlm_summary.rs: 字段访问更新
- src/api/identities.rs: 字段访问更新
- src/api/profile.rs: 字段访问更新(3 处)
- migrations/20261009_face_filter_v2.sql: 数据库迁移脚本
状态: P0 第 1 个文件完成
2026-10-09 14:42:26 +08:00
Accusys
ae64ec9e09
feat(migration): add monitor_jobs.face_settings column
...
**問題**:
- Worker 啟動失敗
- monitor_jobs 缺少 face_settings 欄位
**修復**:
- 新增 migration 040
- 新增 schema patch
**對應**:
- MonitorJob struct 有此欄位
- Worker 需要此欄位初始化
**M4 說明**:
- jobs 9 欄版是空表,無影響
- monitor_jobs 才是程式碼使用的表
- 真正問題是 face_settings 缺失
2026-10-05 00:47:28 +08:00
Accusys
508ddb1488
fix(migration): 026 - correct videos foreign key reference
...
- Change REFERENCES videos(uuid) → videos(file_uuid)
- Expected: unblock 13 cascading migrations (027-039)
- Target: 28+/41 migration success rate
2026-10-05 00:22:08 +08:00
Accusys
94dd483bc6
fix(migration): correct final chunks reference in 025
...
- 025: chunks → chunk (final reference)
All migrations now fully corrected
2026-10-04 23:00:49 +08:00
Accusys
3ab24e08f1
fix(migration): final cleanup - all chunks→chunk references corrected
...
- 009: UPDATE chunks → chunk
- 010: ALTER TABLE chunks → chunk
- 031: BEFORE INSERT ON chunks → chunk
All migrations now fully corrected
2026-10-04 22:59:34 +08:00
Accusys
cf75e0c4c0
fix(migration): correct remaining chunks references to chunk
...
- 025: chunks → chunk
- 033: chunks → chunk
All migrations now use correct table name 'chunk' (singular)
2026-10-04 22:59:04 +08:00
Accusys
4f7162be4f
fix(migration): correct table names and skip obsolete migrations
...
**修正**:
- 008: ALTER TABLE chunks → chunk, 跳過已存在的表
- 010: ALTER TABLE chunks → chunk
- 011-016: 跳過 talents 相關 migration(identities 已存在)
**原因**:
- Hardcoded DDL 已創建 identities, identity_bindings, characters, castings
- Migration 使用 chunks(複數),代碼使用 chunk(單數)
- 避免表名衝突和重複創建
**目標**: 讓 41/41 migration 成功執行
2026-10-04 22:57:49 +08:00
Accusys
bca83c2f26
fix(migration): rename 3002 to 002 for correct execution order
...
**問題** (M4 報告):
- 36/41 migration 失敗
- 3002 排在最後,基礎表未建立
- 導致 relation/column does not exist
**修復**:
- 重命名 3002_public_schema_pipeline_tables.sql → 002
- 確保基礎表在第 2 位建立
**預期**:
- 41/41 migration 成功
- videos.face_settings 欄位存在
**清理**:
- 移除錯誤提交的備份檔
Ref: docs_v1.0/M4_workspace/2026-10-04_B-4_Sorting_Fix.md
2026-10-04 22:41:10 +08:00
Accusys
b83bb04496
fix(migration): deep fix for B-4 multi-statement and path issues
...
**問題** (M4 報告):
- 1. 多陳述句無法執行 (sqlx::query 限制)
- 2. 相對路徑 migrations/ (依賴 CWD)
- 3. Worker 路徑缺失
- 4. 欄位缺失 (face_settings, asr_status, completed_at)
**修復**:
- 使用 sqlx::raw_sql() 支持多陳述句
- 路徑改用 current_exe() 推導
- Worker 啟動時也執行 migration
- 新增 migration 039 補充缺失欄位
**文件**:
- src/core/db/postgres_db.rs: 修復 migration runner
- src/main.rs: 添加 worker migration
- migrations/039_add_missing_video_columns.sql: 新增缺失欄位
**測試**: 待 M5Max128 驗證
Ref: docs_v1.0/M4_workspace/2026-10-04_B-4_Deep_Fix_Plan.md
2026-10-04 22:13:15 +08:00
Accusys
357e585399
fix: Face processor now saves status and total_faces to face.json
2026-09-26 23:06:11 +08:00
Accusys
474a5bee99
refactor: remove YOLO processor and dependencies
...
- Delete YOLO processor implementation (src/core/processor/yolo.rs)
- Remove YOLO from processing pipeline and worker
- Clean up YOLO-related code across multiple modules
- Add migration 033_remove_yolo.sql
YOLO functionality removed as part of architecture simplification
2026-09-17 16:56:25 +08:00
Accusys
39a2cbc65b
fix: face group name read consistency, sync_file_status fix, cleanup ghost records, identity_agent replaced with face_dedup
...
- get_face_groups_handler: COALESCE(tp.name, tn.label) for name consistency
- sync_file_status: compare JSON vs pre_chunks (not chunk table)
- face consistency: compare frames.len() not total_faces
- cleanup 2 ghost records with NULL file_name/file_path
- replace identity_agent with face_dedup in pipeline stages
- remove identity_agent_api.rs and all references
- update required_processors to match actual processors
- update AGENTS.md with team responsibilities
- add Studio pipeline changes documentation
2026-07-27 02:15:51 +08:00
Accusys
3eabd45882
fix: ASRX duplication, TKG edges, trace ingest, and add pipeline progress publishing
...
- ASRX handler no longer stores duplicate 'asr' pre_chunks
- Pre_chunks storage made idempotent (delete-before-insert)
- Rule 1 + trace_ingest changed to query 'asrx' not 'asr'
- Trace chunks removed (dynamic from TKG/Qdrant)
- TKG scroll_face_points fixed: trace_id >= 1 (not == 1)
- TKG AsrxSegmentEntry: start/end -> start_time/end_time (match ASRX JSON)
- Unregister error handling: log instead of silent discard
- Add publish_pipeline_progress calls at each pipeline stage
(processors, rule1, face_trace, identity_agent, TKG, rule2, completion)
2026-07-02 10:43:46 +08:00
Accusys
7e548f8b08
release: v1.3.0 - TKG node type renaming
...
Changes:
- Rust: face_trace → face_track (45 occurrences in 8 files)
- Rust: gaze_trace → gaze_track, lip_trace → lip_track
- Python: tkg_builder.py unified + pipeline_checklist.py fixed
- Swift: swift_hand.swift hand state detection (empty vs holding)
Node type changes:
face_trace → face_track
person_trace → body_track
gaze_trace → gaze_track
lip_trace → lip_track
hand_trace → hand_track
speaker → speaker_segment
object → detected_object
text_trace → text_region
Migration:
PUBLIC schema: 12970 + 892 + 305 rows updated
2026-06-22 07:18:21 +08:00
Accusys
e1572907ae
feat: ASRX hybrid pipeline, identity history, worker fixes, checkpoint system
2026-06-02 07:13:23 +08:00
Accusys
0d58a738a1
feat: add processor state machine and alert mechanism
...
- Add ProcessorJobStatus enum (8 states: Idle/Waiting/Ready/Pending/Running/Completed/Failed/Skipped)
- Add processor_alerts table (migrations/034)
- Add emit_processor_alert() to redis_client.rs
- Add ConditionResult enum + check_dependencies() to job_worker.rs
2026-05-30 10:03:49 +08:00
M5Max128
701e71463d
feat: identity PATCH update, alias system, name UNIQUE removal
...
- Add PATCH /api/v1/identity/:identity_uuid endpoint
- Migration 030: remove name UNIQUE, add tmdb_id index
- TMDb upsert: ON CONFLICT (name) -> ON CONFLICT (tmdb_id)
- get_or_create_identity: pre-check by name
- upload_identity: ON CONFLICT (name) -> ON CONFLICT (uuid)
- Search: include aliases in identity text search
- Add scripts/llm_metadata_enhancer.py
- Add DESIGN/IdentityUpdateAndAliasSystem.md
2026-05-22 08:35:32 +08:00
Warren
65a1f77e65
feat: trace quality agent selection report, identity clustering runner_v2 DB write, age/gender CoreML selection, updated experiment config UUID
2026-05-06 14:41:48 +08:00
Warren
b54c2def30
feat: add migrations, test scripts, and utility tools
...
- Add database migrations (006-028) for face recognition, identity, file_uuid
- Add test scripts for ASR, face, search, processing
- Add portal frontend (Tauri)
- Add config, benchmark, and monitoring utilities
- Add model checkpoints and pretrained model references
2026-04-30 15:11:53 +08:00
Warren
c15f7cd4af
feat: implement Phase 5 Resource Registry & Heartbeat
2026-04-25 23:12:15 +08:00
Warren
e84982e7d9
feat: Phase 3 API (Identity, Files, Candidates) and pre_chunks migration
2026-04-25 22:19:12 +08:00
Warren
82955504f3
feat: 新增 Job Worker 系統與 API 文檔全面更新
2026-03-26 16:16:34 +08:00
accusys
383201cacd
feat: Initial v0.9 release with API Key authentication
...
## v0.9.20260325_144654
### Features
- API Key Authentication System
- Job Worker System
- V2 Backup Versioning
### Bug Fixes
- get_processor_results_by_job column mapping
Co-authored-by: OpenCode
2026-03-25 14:53:41 +08:00