feat: 文件系统数据源与 V3 迁移工具(NAS 迁入基座 Part A)
- source.type 选数据源;文件源只开 /health 与 POST /images/search,双密钥 JWT 强制 exp/sub/eps2 - 两段式扫描:根标记、扫描不完整不删、连续两轮缺失才删、坏图按 path+mtime+size 重试、同一描述符读取 - 索引一次预分配、提交前持锁预留整组位置、满则保留旧组;精排只取前 ransac_top_k 的 ORB 并复核版本 - 结果先按路径聚合再截 TopN,内联 180px 缩略图(源文件变化标 stale) - 视频关键帧 (path, frame_ms) 存储与抽帧(默认关闭) - tools/migrate_v3.py:backup 快照、结构校验、分层抽样比对、路径门禁、离线导入 openspec: migrate-nas-image-search-to-base(tasks 1.1–1.7、3b.1) 实现:codex(gpt-6.2-sol);门禁:Claude 亲跑 107 绿、7 处安全关键变异全被咬住
Showing
11 changed files
with
589 additions
and
55 deletions
filesystem_files.py
0 → 100644
filesystem_sync.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_filesystem_source.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_migrate_v3.py
0 → 100644
This diff is collapsed.
Click to expand it.
tools/migrate_v3.py
0 → 100644
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment