Commit Graph

28 Commits

Author SHA1 Message Date
Accusys 193af91cd7 docs: switch production 3002 management to launchd (release binary)
- com.momentry.server + com.momentry.worker manage target/release/momentry
- mark run-server-3002.sh as dev/emergency only (conflicts with launchd)
- AGENTS.md: update startup/log tables, add launchd worker bootstrap note
2026-10-02 12:47:55 +08:00
Accusys 7c6e3af3c1 docs: update AGENTS.md with V3 processor configuration
新增:
- Processor Configuration (V3) 章節
- Swift First (Apple Vision + ANE) 政策說明
- 當前配置狀態
- 性能基準表

移除:
- ❌ MOMENTRY_USE_RUST_PROCESSORS (已廢棄)
- ❌ 舊的 Rust Processors 配置說明

更新內容:
- 配置驅動的 processor 選擇
- Swift First 政策 (Apple Vision + ANE)
- Rust Second 政策
- Python Backup 政策

性能基準:
- FACE_TRACE: Rust 20x 更快
- CUT: Rust 3x 更快
- POSE: Swift ANE 加速
- FACE: Swift ANE 加速

配置狀態:
- Swift First: 4 個
- Rust First: 3 個
- Python Only: 2 個

相關文檔連結:
- Processor_Priority_Policy.md
- Processor_Commands_Reference.md
- 測試報告
2026-09-28 15:20:37 +08:00
Accusys be2c28b7f3 docs: add Tools Architecture section to AGENTS.md
新增內容:
- Tools 目錄結構 (tools/cli/, tools/script/)
- Rust CLI 工具列表及說明
- Swift CLI 工具列表及說明
- Python Scripts 分類說明
- 環境變數更新
- Worker 整合機制
- Legacy 位置標記 (待清理)

更新:
- MOMENTRY_SCRIPTS_DIR 預設路徑
- MOMENTRY_CLI_DIR 預設路徑

目的:
- 統一工具架構規範
- 明確遷移狀態
- 方便開發者遵循
2026-09-28 00:55:56 +08:00
Accusys 8ab6802bff feat: add MOMENTRY_CLI_DIR configuration
添加 CLI 工具路徑配置:
- admin_config.rs: 新增 cli_dir 字段和 get_cli_dir() 函數
- config.rs: 新增 CLI_DIR 常量
- 默認路徑: /Users/accusys/momentry_core_0.1/tools/cli

環境變數:
- MOMENTRY_SCRIPTS_DIR: Python 腳本路徑
- MOMENTRY_CLI_DIR: Swift/Rust CLI 工具路徑

文檔更新:
- tools/README.md: 環境變數配置說明
- AGENTS.md: 環境變數列表更新
2026-09-27 12:13:27 +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 ebee351523 refactor: enable Rust processors and remove appearance_processor.py
- Set MOMENTRY_USE_RUST_PROCESSORS=true in .env
- Remove scripts/appearance_processor.py (Rust binary replaces it)
- Update AGENTS.md with Rust Processors configuration
- Rust binaries available: rust_face_cluster, rust_appearance, rust_pose
- All Rust processors A/B tested and verified against Python versions
2026-09-20 20:12:43 +08:00
Accusys d8e4033741 docs: update LLM config to gemma-4-12b-it (chat/summary server on port 8080) 2026-08-27 17:26:02 +08:00
Accusys 9f12e835b8 feat: add TraceArtifacts phase + VLM waits for all key_frame.jpg
- Add TraceArtifacts phase to TkgPhase enum (phase 18)
- Report progress as key_frame.jpg/key_face.jpg are created
- VLM trigger now polls until ALL key_frame.jpg files exist
  (was: started after TKG build, before artifacts were ready)
- Add iron rule to AGENTS.md: ask before removing data

Tested: Gamma 8 (27 traces) → 27/27 VLM summaries completed
2026-08-24 19:13:11 +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 97180aa7cd fix: add environment variable exports to startup scripts
- Added MOMENTRY_OUTPUT_DIR, DATABASE_SCHEMA, MOMENTRY_REDIS_PREFIX exports
- Created run-worker-3002.sh for standalone worker
- Created config/ directory with environment-specific files
- Updated AGENTS.md with critical variables section and release checklist

This fixes Python subprocess environment variable inheritance issue
where store_traced_faces.py was using wrong output directory.
2026-06-21 21:21:32 +08:00
Accusys e1572907ae feat: ASRX hybrid pipeline, identity history, worker fixes, checkpoint system 2026-06-02 07:13:23 +08:00
M5Max128 a008bb865b feat: add Gitea to startup script, update AGENTS.md token
- Add Gitea (port 3000) as step 10 in startup script
- Update AGENTS.md Gitea token record
2026-05-23 02:37:19 +08:00
M5Max128 3ccdf403b6 feat: add Ollama to verified sources (Gitea repo + manifest + build from source) 2026-05-22 17:20:14 +08:00
M5Max128 e1dbd27333 docs: add Gitea sync info + access token to AGENTS.md 2026-05-21 17:27:33 +08:00
Accusys 8ede4be159 chore: organize logs into logs/ directory with startup scripts
- Moved momentry_3002.log, momentry_3003.log to logs/
- Moved 34 nohup_worker_*.log files to logs/
- Created run-server-3002.sh, run-server-3003.sh for easy startup
- Updated AGENTS.md with log paths and startup scripts
- logs/ already excluded by *.log in .gitignore
2026-05-20 09:31:48 +08:00
Accusys 088aefdac7 fix: pipeline timeline log, chunk lookup, face processor no fallback, Qdrant UUID script, delete safety rules 2026-05-18 00:36:14 +08:00
Accusys b98578da15 docs: add cross-contamination prevention section to AGENTS.md 2026-05-15 12:26:28 +08:00
Accusys 1319eecc71 docs: add UUID naming rule to AGENTS.md + DOCS_STANDARD.md — never bare uuid, always file_uuid/identity_uuid 2026-05-14 17:40:18 +08:00
Accusys 261d134fee Add document compliance checklist section to AGENTS.md
P0 (7 mandatory) + P1 (3 suggested) checklist for REFERENCE/*.md files,
with M4_workspace/ exception. AI agents must self-check before creating docs.
2026-05-14 14:27:12 +08:00
Accusys 2cf962bc70 docs: update DELIVERY_PROCEDURE to v1.1 — add self-verify, version strategy, rollback, deploy details 2026-05-13 20:54:58 +08:00
Accusys 3dc09cf802 docs: add M4 notification protocol to AGENTS.md 2026-05-13 20:04:44 +08:00
Warren 74b6182eba feat: media API (video/bbox/thumbnail), UUID unification, dot matrix text, portal fixes, API dictionary V1.3 2026-05-06 13:34:49 +08:00
Warren e75c4d6f07 cleanup: remove dead code and duplicate docs
- Remove session-ses_2f27.md (161KB raw session log)
- Remove 49 ROOT_* duplicate files across REFERENCE/
- Remove 14 duplicate files between REFERENCE/ root and history/
- Remove asr_legacy.rs (dead code, replaced by asr.rs)
- Remove src/core/worker/ (duplicate JobWorker)
- Remove src/core/layers/ (empty directory)
- Remove 4 .bak files in src/
- Remove 7 dead private methods in worker/processor.rs
- Remove backup directory from git tracking
2026-05-04 01:31:21 +08:00
Warren f4697396e4 chore: update dependencies and AGENTS.md
- Add mac_address crate for MAC address detection
- Add tempfile dev dependency for testing
- Update AGENTS.md with latest development guidelines
2026-04-30 15:07:31 +08:00
Warren 59809dae1f chore: backup before migration to new repo 2026-04-23 16:46:02 +08:00
accusys 732ef9296b feat: add momentry_playground binary for development
- Add separate momentry_playground binary with distinct configuration
- Production (momentry): Port 3002, Redis prefix 'momentry:'
- Development (momentry_playground): Port 3003, Redis prefix 'momentry_dev:'
- Add SERVER_PORT and REDIS_KEY_PREFIX config via environment variables
- Replace all hardcoded Redis key prefixes with configurable values
- Create .env.development for playground environment settings
- Update .env with production defaults
- Add dotenv dependency for environment file loading

Configuration isolation allows running both binaries simultaneously
without port conflicts or Redis key collisions.
2026-03-25 14:53:41 +08:00
accusys 75edf0aa71 Initial commit: Momentry Core v0.1
- Rust-based digital asset management system
- Video analysis: ASR, OCR, YOLO, Face, Pose
- RAG capabilities with Qdrant vector database
- Multi-database support: PostgreSQL, Redis, MongoDB
- Monitoring system with launchd plists
- n8n workflow automation integration
2026-03-25 14:53:41 +08:00