Peach: Local-first video metadata scraper and media manager.
docs: record the macOS environment and the two-machine path contract
Peach local maintenancecfe94c3cb2f4
diff --git a/.claude/skills/peach-cross-platform/SKILL.md b/.claude/skills/peach-cross-platform/SKILL.mdnew file mode 100644index 000000000..25fd7487e--- /dev/null+++ b/.claude/skills/peach-cross-platform/SKILL.md@@ -0,0 +1,81 @@+---+name: peach-cross-platform+description: 在 macOS 上开工、改动路径解析或挂载判定、遇到 git status 与 git diff 结果不一致,或要把改动交回 Windows 那台时使用。+---++# 跨 Windows / macOS 双机开发++最后复核:2026-08-19+证据来源:`src/peach/platform.py`、`README.md`「边界」、2026-08-19 的 macOS 迁移实测。++## 何时使用++- 当前工作目录在 macOS 上(`~/Desktop/lmd.gg/peach/peach-app`)。+- 改动涉及 `asset.path` 解析、`allowed_media_roots`、挂载可达性或磁盘闸门。+- `git status` 显示大量文件被修改,但 `git diff` 是空的。+- 改动要交回 Windows 那台继续。++## 路径口径++账本里的 `asset.path` **一律是 Windows 形态**:`R:\Media\...`(本地硬盘)、+`B:\...`(115)、`A:\...`(PikPak)。++不要为了 macOS 把账本改写成 POSIX 路径。翻译只发生在读取期,收敛在+`src/peach/platform.py` 一处;写回账本的索引脚本仍只在 Windows 上跑,路径口径+因此保持单一。**禁止从 macOS 写 `asset.path`**。++| 盘符 | Windows | macOS 默认 |+| --- | --- | --- |+| `R:` 本地硬盘 | `R:\` | `/Volumes/RESOURCES` |+| `B:` 115 | `B:\` | `~/Desktop/IMSL/115` |+| `A:` PikPak | `A:\` | `~/Desktop/IMSL/Pikpak` |++用 `PEACH_DRIVE_MAP=R=/mnt/res,B=/mnt/115` 覆盖;数据目录用 `PEACH_DATA_ROOT`。+CloudDrive 在 Windows 是盘符、在 macOS 是 macFUSE 挂载点,这层不是可选优化。++## 三条只在 Windows 成立的假设++- **授权根比较不能只看字面**。账本写 `R:\Media`,macOS 侧授权根是+ `/Volumes/RESOURCES/media`;pathlib 区分大小写而 exFAT/NTFS 不区分,字面比较会把+ 全部本地资产判成越权。`within_root` 在字面不匹配时用 inode 比较兜底,交给文件系统+ 判定。+- **挂载点「在不在」的判据是能否列出第一个条目**,不是 `is_dir()`。CloudDrive 掉线后+ 挂载点目录仍然存在,读一个条目才会报 `Device not configured`。见 `root_online`。+- **磁盘闸门看系统盘**:Windows `C:`、macOS `/`,用 `system_volume()`。CloudDrive 的+ 下载块缓存在两个平台都落在系统盘;写死 `C:/` 会让 macOS 侧直接抛 `FileNotFoundError`。++另外 `PidFileLock._running` 要吞掉 `OverflowError`:Windows 写下的 PID 可能超出 POSIX+的 `pid_t`,`os.kill` 会崩掉整轮任务,而超界的 PID 一定不是本机活进程。++## 脱盘模式++脱盘是**来源级**的,不是全局开关。外置盘拔掉只影响 `local` 的约 2.5k 条资产,+115/PikPak 的约 78k 条云端资产照常可播;CloudDrive 掉线时反过来也一样。++判据只有 `GET /api/sources` 一份。媒体层把整盘不可达从 `MediaUnavailable` 里分出+`MediaOffline`,HTTP 回 503 加 `X-Peach-Offline: 1`,和「单个文件缺失」的 404 分开。+前端据此置灰脱盘来源的筛选(数量仍然显示:脱的是盘不是账本),详情页换成脱盘面板+而不是挂一个必然失败的播放器。++## 运行环境++macOS 的 FFmpeg 走 PATH(`brew install ffmpeg`)。`peach-data/tools/ffmpeg` 里是+Windows 的 `.exe`/`.dll`,`FFmpegResolver` 按平台找不带后缀的 `ffmpeg`,会自动跳过它+——这套目录可以两台机器共用,不需要分叉。++测试入口:Windows `scripts/test.ps1`,macOS/Linux `scripts/test.sh`。两者契约相同。+**两边都必须绿**;只在一台上通过的改动不算完成。Windows 托盘专属的 DPI 声明和单实例+锁在非 Windows 上按 `skipUnless` 跳过,不要改成在 macOS 上伪造通过。++## Git 陷阱++- **换行**由 `.gitattributes` 的 `* text=auto eol=lf` 固定,不要依赖各自的+ `core.autocrlf`。2026-08 之前 Windows 侧把 105 个已跟踪文件整体改写成 CRLF,+ `git status` 长期显示 117 个文件被修改、16213 行增删,而真正有实质改动的只有 1 个+ ——未提交的工作被假 diff 完全埋掉。+- **从 exFAT 复制过来的文件权限是 `rwx------`**(exFAT 没有 POSIX 权限位,macOS 挂载时+ 统一合成)。这会让 git 的 stat 缓存长期对不上:`git status` 显示上百个文件被修改,+ `git diff` 却是空的,`git hash-object` 和 HEAD 逐字节相同。+ `git update-index --refresh` **只会报 `needs update`,修不好**;用 `git add` 重写+ stat 缓存才行。+- 判断真实差异一律看 `git diff HEAD --name-only`,**不要看 `git status`**。diff --git a/AGENTS.md b/AGENTS.mdindex 94992f1ad..c52651631 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -49,12 +49,14 @@| 改完界面、API、契约或文案后声明影响面 | `.claude/skills/peach-surfaces/SKILL.md` || 长跑批处理、刮削、限流、磁盘与流量预算 | `.claude/skills/peach-batch-jobs/SKILL.md` || 模仿、参考或对齐外部产品的界面与行为 | `.claude/skills/peach-reference-evidence/SKILL.md` |+| 在 macOS 上开工、改路径解析或挂载判定、git status 与 diff 不一致 | `.claude/skills/peach-cross-platform/SKILL.md` || 新增或删除规则、文档、技能 | `.claude/skills/peach-context-rules/SKILL.md` |## 工作规则-- `R:\peach-app` is code and documentation. `R:\peach-data`, `R:\media`, `A:\` and `B:\` are runtime data or mounted media and must never be copied into Git.-- `R:\peach-data\database\ledger.db` is the truth store. Tests use temporary databases only. A real migration requires a SQLite backup and before/after count checks; follow `peach-ledger-write` before any real write.+- `peach-app` is code and documentation. `peach-data`, the local media root, and the two CloudDrive mounts are runtime data or mounted media and must never be copied into Git. Windows: `R:\peach-app`, `R:\peach-data`, `R:\media`, `A:\`, `B:\`. macOS: `~/Desktop/lmd.gg/peach/peach-app`, `~/Desktop/lmd.gg/peach/peach-data`, `/Volumes/RESOURCES/media`, `~/Desktop/IMSL/Pikpak`, `~/Desktop/IMSL/115`.+- Ledger paths are always written in the Windows shape (`R:\Media\...`, `A:\...`, `B:\...`). `src/peach/platform.py` translates them to local mounts at read time; never rewrite the ledger to a POSIX shape, and never write `asset.path` from macOS.+- `peach-data/database/ledger.db` is the truth store. Tests use temporary databases only. A real migration requires a SQLite backup and before/after count checks; follow `peach-ledger-write` before any real write.- The project is an early personal project: aggressively remove obsolete code and compatibility layers when the replacement is tested. Do not preserve dead interfaces merely for history; Git is the archive.- Preserve real media, ledger rows, behavior history, credentials, network/firewall state, and unrelated long-running jobs.- Inspect `git status` and the active listeners/processes before work. Never claim candidate code is production until the service has actually been switched and checked.@@ -65,9 +67,9 @@- Before adding or restoring an implementation, check `docs/REUSE.md`, the current tree and Git history. A missing legacy filename does not prove the capability is missing. Update the reuse register when the decision changes.- When the user says to imitate, reference or align with another product, obtain current reproducible evidence first and register it per `peach-reference-evidence`. If evidence is unavailable, write `未取得`; do not ship a guessed approximation as a faithful reproduction.- Never require the user to relay implementation details between agents. Put current facts in `docs/STATUS.md`, durable rules in `docs/HANDOFF.md`/`docs/REUSE.md`, procedures in a skill, and architecture decisions in an ADR.-- During concurrent code work, `R:\peach-app` is integration-only. Each agent works in an isolated Git worktree; a worker commits its branch and reports it ready, but never merges itself. Details in `peach-worktree`.+- During concurrent code work, the main `peach-app` checkout is integration-only. Each agent works in an isolated Git worktree; a worker commits its branch and reports it ready, but never merges itself. Details in `peach-worktree`.- Never use `git add .`, `git add -A`, a directory path, or a glob in an agent checkout. Stage only the exact files owned by the task, then inspect `git diff --cached --name-status`. Implementation and its tests must be committed atomically.-- Run the verification commands in `README.md` before committing relevant changes.+- Run the verification commands in `README.md` before committing relevant changes: `scripts/test.ps1` on Windows, `scripts/test.sh` on macOS. Both entry points must stay green; a change that only passes on one platform is not done.- Reuse existing usage surfaces and protocols. T3 Code/CodexBar cover historical token and API-equivalent cost views; official provider quota endpoints cover live remaining windows. Do not build another session-log cost scanner or depend on T3 Code's private localhost API.## 防止重复错误的硬门槛diff --git a/README.md b/README.mdindex 6a09dfffa..42fdd66a1 100644--- a/README.md+++ b/README.md@@ -8,15 +8,41 @@ Peach(蜜桃)是一个单用户、本地优先的个人媒体系统:统一## 边界-- 项目代码:`R:\peach-app`-- 真实数据:`R:\peach-data`-- 本地媒体:`R:\media`-- 网盘挂载:`A:\`、`B:\`-- 真相数据库:`R:\peach-data\database\ledger.db`+Peach 在 Windows 和 macOS 两台机器上各有一份可独立运行的环境,账本里的路径始终使用+Windows 口径,本机挂载点由 `src/peach/platform.py` 在读取时翻译。++| 角色 | Windows | macOS |+|---|---|---|+| 项目代码 | `R:\peach-app` | `~/Desktop/lmd.gg/peach/peach-app` |+| 运行数据 | `R:\peach-data` | `~/Desktop/lmd.gg/peach/peach-data` |+| 并行 worktree | `R:\peach-worktrees` | `~/Desktop/lmd.gg/peach/peach-worktrees` |+| 本地媒体 | `R:\media` | `/Volumes/RESOURCES/media` |+| 115(账本写 `B:\`) | `B:\` | `~/Desktop/IMSL/115` |+| PikPak(账本写 `A:\`) | `A:\` | `~/Desktop/IMSL/Pikpak` |++- 真相数据库:`peach-data/database/ledger.db`- Stash:过渡期可替换 adapter,不是真相源+盘符映射的默认值按平台给,可用 `PEACH_DRIVE_MAP=R=/Volumes/RESOURCES,B=/mnt/115` 覆盖;+数据目录用 `PEACH_DATA_ROOT` 覆盖。CloudDrive 在两个平台的挂载方式完全不同——Windows+是盘符,macOS 是 macFUSE 挂载点——所以这层映射是必需的,不是可选优化。++写回账本的索引脚本仍然只在 Windows 上运行,账本因此保持单一路径口径;macOS 侧只读不写+`asset.path`。+项目仓库不保存媒体、数据库、凭据、快照、封面或运行日志。+### 脱盘模式++脱盘是**来源级**的,不是全局开关:外置盘拔掉只影响 `local` 的 2.5k 条资产,115/PikPak+的 78k 条云端资产照常可播;CloudDrive 掉线时反过来也一样。++`GET /api/sources` 无副作用地报告每个来源的可达性,判据是「能否列出挂载点的第一个条目」——+目录存在还不够,CloudDrive 掉线后挂载点目录仍在,读一个条目才会报 `Device not configured`。+前端据此把脱盘来源的筛选置灰(数量仍然显示:脱的是盘不是账本),详情页换成「脱盘模式」+面板而不是挂一个必然失败的播放器。媒体层对应抛 `MediaOffline`,HTTP 侧回 503 加+`X-Peach-Offline: 1`,和「单个文件缺失」的 404 分开。+`R:\peach-data` 使用固定分层:`database` 保存真相库,`generated` 保存可再生成的视觉资产,`sources` 保存原始分析输入,`state` 保存人工维护状态,`secrets` 保存本机凭据材料,`logs` 保存运行记录,`archive` 保存历史备份,`inbox` 是临时下载落地区,`tools` 保存不进入 Git 的本机运行时工具。详情播放器固定使用本地自托管 Video.js 8.23.9:本地 MP4/WebM/Ogg 走标准 HTTP Range;115/PikPak 的已知时长原生 MP4 通过 `stream-plan` 改走 6 秒 HLS 临时片段,跳转时只生成目标时间附近的片段。两者都显示账本中的稳定总时长、±10 秒控制和播放统计;AVI 等不兼容容器首次播放时由 Peach 管理的 FFmpeg 生成 `generated/transcodes` 下的 H.264/AAC MP4 缓存。缓存可删除重建,原媒体永不改写。@@ -37,6 +63,8 @@ peach-app/## 开发+Windows:+```powershellcd R:\peach-app& py -3.14 -m venv .venv@@ -46,14 +74,28 @@ cd R:\peach-app& .\.venv\Scripts\peach.exe serve --port 8900```-主目录和独立 worktree 统一只使用同一个测试入口:+macOS:-```powershell-& .\scripts\test.ps1+```bash+cd ~/Desktop/lmd.gg/peach/peach-app+python3.14 -m venv .venv+./.venv/bin/python -m pip install -e .+./scripts/test.sh+./.venv/bin/peach migrate status+./.venv/bin/peach serve --port 8900```-脚本会从 Git common directory 定位 `R:\peach-app\.venv`,强制加载当前 worktree 的-`src` 并核对 `peach.__file__`,因此 worktree 不需要也不应复制 `.venv`。仓库不使用 pytest。+macOS 侧的 FFmpeg 走 PATH(`brew install ffmpeg`):`peach-data/tools/ffmpeg` 里是+Windows 的 `.exe` 和 `.dll`,`FFmpegResolver` 按平台找不带后缀的 `ffmpeg` 因而自动跳过它。++主目录和独立 worktree 统一只使用同一个测试入口——Windows 是 `scripts/test.ps1`,+macOS/Linux 是 `scripts/test.sh`,两者契约相同:从 Git common directory 定位主目录的+`.venv`,强制加载当前 worktree 的 `src` 并核对 `peach.__file__`,因此 worktree 不需要+也不应复制 `.venv`。仓库不使用 pytest。++跨两台机器开发时换行口径由 `.gitattributes` 的 `* text=auto eol=lf` 固定。不要依赖各自的+`core.autocrlf`:2026-08 之前 Windows 侧把 105 个文件整体改写成 CRLF,`git status` 长期显示+117 个文件被修改、16000 行增删,而真正有实质改动的只有 1 个。`serve` 默认只监听 `127.0.0.1:8900`。公网、反代、HTTPS 和认证属于后续部署阶段,不在开发命令中隐式开启。@@ -138,6 +180,7 @@ Per-Monitor V2 DPI,单击打开 `https://peach.local/`;右键可查看状态| URL | 用途 ||---|---|| `/healthz` | 无副作用健康状态 |+| `/api/sources` | 各来源挂载可达性,脱盘模式的唯一判据 || `/api/stream-plan?id={asset_id}` | 为远端原生 MP4 选择 HLS 或标准 Range || `/favicon.svg` | Peach 图标 || `/stream?id={asset_id}` | 原片或兼容转码的 Range 流 |@@ -149,7 +192,7 @@ Per-Monitor V2 DPI,单击打开 `https://peach.local/`;右键可查看状态| `/entity-image?kind={kind}&id={entity_id}` | 规范实体头像/Logo |只读 API:`GET /api/items`、`/api/item`、`/api/entity`、`/api/index`、`/api/stats`、-`/api/tops`、`/api/ads`、`/api/related`、`/api/facets`、`/api/providers`、+`/api/tops`、`/api/ads`、`/api/related`、`/api/facets`、`/api/providers`、`/api/sources`、`/api/providers/opencode-go/models`、`/api/search-history`。写入 API:`POST /api/activity`、`/api/play`、`/api/feedback`、`/api/watch-later`、diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex 846353ef5..e1f1be302 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -8,13 +8,14 @@ Peach 是逻辑前后端分离、部署仍为一个进程的 FastAPI 模块化1. **Ledger**:资产、行为、来源和知识的唯一真相源。SQLite 适合当前单用户规模。2. **API / 应用层**:FastAPI 承载页面、JSON、媒体响应和写入边界。-3. **Media Engine**:FastAPI 只持有一个 `MediaEngine`。本地文件是原生后端;Stash 是公开协议适配器,再按扫描、元数据、预览、流媒体逐项替换。挂载网盘的已知时长原生 MP4 由 `stream-plan` 选择按时间生成的 HLS 片段,其他情况回退标准 Range。-4. **Web**:当前是无构建步骤的单页,保持移动端优先;不做 React 重写。-5. **AI Provider**:`InferenceProvider` 与 `AgentProvider` 分离。AI 只产出带来源和置信度的候选。-6. **Profile**:默认单用户,数据模型预留 user/profile,不引入完整账号体系。-7. **追更来源**:RSS/Atom 等成熟协议先归一化为只读候选;原始证据、复核和 ledger 写入分层。-8. **任务系统**:Peach 自己定义来源成本、磁盘闸门、进程归属、进度和来源证据;HTTP、调度、媒体探测、图片与协议解析使用成熟组件。-9. **HTTP / 搜索**:网络适配器共用长生命周期 HTTPX transport;作品全文搜索使用 SQLite FTS5 trigram,短查询保留 LIKE 回退。+3. **平台层**:`peach.platform` 是账本路径与本机挂载点之间唯一的翻译层。账本只用 Windows 盘符记录路径,读取时按 `PEACH_DRIVE_MAP` 翻译到本机挂载点;没有挂载点的盘符落到不可达根,对应来源整体按脱盘处理。CloudDrive 在 Windows 是盘符、在 macOS 是 macFUSE 挂载点,差异全部收敛在这里。+4. **Media Engine**:FastAPI 只持有一个 `MediaEngine`。本地文件是原生后端;Stash 是公开协议适配器,再按扫描、元数据、预览、流媒体逐项替换。挂载网盘的已知时长原生 MP4 由 `stream-plan` 选择按时间生成的 HLS 片段,其他情况回退标准 Range。+5. **Web**:当前是无构建步骤的单页,保持移动端优先;不做 React 重写。+6. **AI Provider**:`InferenceProvider` 与 `AgentProvider` 分离。AI 只产出带来源和置信度的候选。+7. **Profile**:默认单用户,数据模型预留 user/profile,不引入完整账号体系。+8. **追更来源**:RSS/Atom 等成熟协议先归一化为只读候选;原始证据、复核和 ledger 写入分层。+9. **任务系统**:Peach 自己定义来源成本、磁盘闸门、进程归属、进度和来源证据;HTTP、调度、媒体探测、图片与协议解析使用成熟组件。+10. **HTTP / 搜索**:网络适配器共用长生命周期 HTTPX transport;作品全文搜索使用 SQLite FTS5 trigram,短查询保留 LIKE 回退。## 数据流@@ -37,7 +38,8 @@ AI/外部元数据 -> 经复核的候选 -> ledger## 运行数据目录-`R:\peach-data` 与代码仓库刻意分离:+`peach-data` 与代码仓库刻意分离(Windows `R:\peach-data`,macOS+`~/Desktop/lmd.gg/peach/peach-data`,由 `PEACH_DATA_ROOT` 覆盖):- `database/`:SQLite 真相库- `generated/`:快照、海报、头像和厂牌 Logodiff --git a/docs/STATUS.md b/docs/STATUS.mdindex 842504068..3c9813472 100644--- a/docs/STATUS.md+++ b/docs/STATUS.md@@ -11,6 +11,7 @@- Python:3.14.7;FFmpeg/ffprobe 由 `R:\peach-data\tools\ffmpeg` 管理,不再依赖 Stash 私有目录。- 真实 ledger:`R:\peach-data\database\ledger.db`,迁移 `0000`–`0015` 已应用,零待处理。复核表迁移前备份:`R:\peach-data\database\ledger.pre-0015-20260817-173639.db`;黄金视频删除前备份:`R:\peach-data\database\ledger.pre-golden-delete-20260817-124921.db`;创作者清理前备份:`R:\peach-data\database\ledger.pre-0014-20260817-134153.db`;时长纠正前备份:`R:\peach-data\database\ledger.pre-duration-fix-20260818-103252.db`;完整性 `ok`。- PID 只是观测值,不是配置;每次停止或重启前必须重新核对命令行、父子关系和端口归属。+- macOS 开发机(2026-08-19 起):代码 `~/Desktop/lmd.gg/peach/peach-app`、数据 `~/Desktop/lmd.gg/peach/peach-data`、worktree `~/Desktop/lmd.gg/peach/peach-worktrees`。Python 3.14.7 + 独立 venv;FFmpeg 走 PATH。生产托盘仍然只在 Windows,macOS 侧是开发环境,不承担对外服务。## 已核验代码与部署能力@@ -26,6 +27,8 @@- 版本唯一来源为 `src/peach/__init__.py::__version__`。本批把实体作品、艺人/标签索引和广告卡片改为有界增量构建,去除代表图 N+1 查询与后续翻页重复总数统计;详情播放器复用本地 Video.js 8.23.9,并按 pre-1.0 SemVer 升至 `0.5.6`。没有 Git remote 时只报告本地开发版,不伪造更新能力。- 本地 CA HTTPS 已部署。CA 包含 critical `CA:TRUE` 和签名用途并通过 OpenSSL 链验证。macOS/iOS 只安装 `peach-local-ca.crt`;不得传播任何私钥。- 项目代码、运行数据、本地媒体已分离为 `R:\peach-app`、`R:\peach-data`、`R:\media`。旧空 Inbox 和 `Resources/Tools` 兼容表面已移除。+- 项目已可在 macOS 上独立运行并全量通过测试。账本路径的盘符翻译收敛在 `src/peach/platform.py`;`R:` → `/Volumes/RESOURCES`、`B:`(115)→ `~/Desktop/IMSL/115`、`A:`(PikPak)→ `~/Desktop/IMSL/Pikpak`,可用 `PEACH_DRIVE_MAP` 覆盖。实测本地与 115 的真实资产均返回 `206`,缩略图 `200`;PikPak 挂载当时掉线,按脱盘正确返回 `503` + `X-Peach-Offline`。账本本身未改写。+- 脱盘模式按来源逐个判定:`GET /api/sources` 报告可达性,前端置灰脱盘来源的筛选并在详情页显示「脱盘模式」面板。外置盘不在时 115/PikPak 的 78k 条云端资产仍然可用。## 界面与交互现状@@ -127,6 +130,9 @@- 2026-08-17 批代码改动(merge_entity 回归主线、sheets 色彩元数据重试、media 大小写不敏感匹配)模块级 `unittest` 全部通过:`test_entity_merge` 4 项、`test_scripts` 16 项、`test_media` 9 项等。注意:实测在工具管道里直跑 `python -m unittest discover` 全量会挂起或整会话输出消失(test_jobs 模块极快退出时竞态最明显),模块级独立运行全部通过;唯一可信入口仍是 `& .\scripts\test.ps1`。- 2026-08-19 发现「测试通过」曾有一段并不成立:`test_rm_web.py` 与 `test_web_ui.py` 各有一处 `if __name__ == "__main__": unittest.main()` 被插在类中间,其后缩进 4 格的 16 条测试被解析成 if 块语句,从写下起就没被收集过——不报错、不告警,其中包括复核页三类候选的全部数据层断言。修正后全量由 355 升到 371 且全绿。`tests/test_test_collection.py` 用 AST 禁止这种形状,避免再出现「绿灯但没覆盖」。+- 2026-08-19 macOS 侧基线:`./scripts/test.sh` 全量 394 项通过、3 项跳过(2 项是 Windows 托盘专属的 DPI 声明与单实例锁,1 项为原有跳过)。Windows 侧同一批改动尚未复跑 `scripts/test.ps1`,**这是本批唯一未闭合的验证缺口**。+- 两台机器的 worktree 各自独立:macOS 侧已按 27 个 `agent/*` 分支重建,Windows 路径的失效注册已 `git worktree prune` 清掉。分支本身在 `.git` 里,worktree 目录随时可重建,不需要跨机器复制。+## 下一批工作1. 创作者板的机械识别已做完:`creator-tags-review.csv` 里 42 条 pending 全部产出 candidate(34 candidate、8 skip,见 `creator-tags-candidate-20260817.csv`),没有未覆盖的板。剩下的是用户在 `/review` 页面逐条复核,点「通过」才写 `asset_tag/asset_entity`。注意天花板:全库 7,622 条无标签视频里创作者板最多覆盖约 2,800 条,其余既无创作者也无有效番号(384 个 FC2 + 约 330 个 `WX` 业余码,三源实测零命中)。