Repository navigation
Gallery 1.1.9
v1.1.9(2026-11-05)
本版更新为 1.1.8 → 1.1.9 的增量。
1.1.9 新增自主角色聚类发现与复核流水线,升级 CCIP 特征缓存、视频淡入帧回退与非核心去重算法;引入先绑端口再后台初始化的启动门(BootGate),全面落实 jemalloc 与 SQLite 内存减负;加固创作者订阅(Pawchive)限流熔断、断点续传版本校验与 JDownloader 网盘桥接;完善标签事务一致性、回收站快照校验与归档计划清理,并全面打磨界面布局与并发请求隔离。
主要变化
- 角色聚类发现与 CCIP 识别优化:
- 新增角色聚类发现、复核与阈值校准接口(
POST /api/characters/clusters/discover、/verify、/calibrate-threshold):结合 64 位 dHash 差分变体折叠、CCIP 特征提取与 Complete-Linkage 聚类,按0.7174默认入库阈值(0.5739待复核阈值,0.04边际差距)识别已知角色或聚合高内聚未知角色簇;verified=0暂存参考图隔离在自动清理之外,经复核(cluster_verified)并满足防投毒门禁后晋升为正式参考图。 - 新增 1024 条媒体特征向量 LRU 缓存;视频角色识别复用磁盘抽帧缓存并支持
0.1s → 1.0s纯黑/纯白淡入帧自动回退;参考图导入预处理采用定点双线性插值与无拷贝 RGB 平面解包;稳定核心保留全部已验证受保护参考图,并对全部保留参考图执行≥0.95近重复修剪;角色参考图候选排除视频文件。
- 新增角色聚类发现、复核与阈值校准接口(
- 启动门(BootGate)与运行时性能/内存优化:
- 服务启动立即监听
8899端口,后台初始化期间/api/health返回200({"status":"initializing","initializing":true,"phase":...}),其余路由返回503;前端 API 层自动短退避重试,维护页平稳展示初始化阶段状态;孤儿暂存文件清扫移出启动关键路径,交由后台线程异步完成。 - Linux 生产二进制启用
jemalloc分配器(后台线程自动回收脏页dirty_decay_ms:3000,muzzy_decay_ms:3000);fnOS 默认内存参数收敛(DB_POOL_SIZE=6、SQLITE_MMAP_SIZE=32MiB、SQLITE_CACHE_SIZE=-16000);新增 SQLite 覆盖索引、缩略图磁盘缓存直接命中与 HTTP 响应 Gzip 压缩。
- 服务启动立即监听
- 订阅下载(Pawchive)与网盘桥接加固:
- 新增源站 429 与连续 403 全局冷却熔断器、合规浏览器 User-Agent、404 非破坏性详情记录(保留已知清单与外链)及跳过
preview_only占位附件,消除详情队列死循环饥饿;发现页写入改用IMMEDIATE事务。 - 仅在发起经校验的
Range请求后接受206 Partial Content,拒绝弱/畸形 ETag 续传验证器;认领租约围栏保护活跃下载免受并发回收覆盖;限流中断时不误标完成;证据审计接口/api/pawchive/audit-evidence兼容整型post_id与可空列,下载/发布失败事件补齐subscription_id。 - 修复 JDownloader 桥接重启后任务卡死、版本失锁重冻结与回执校验问题;支持直投外链到网盘任务队列;作品组改名与画师移动同步更新账本路径。
- 新增源站 429 与连续 403 全局冷却熔断器、合规浏览器 User-Agent、404 非破坏性详情记录(保留已知清单与外链)及跳过
- 标签事务、回收站校验与归档计划清理:
- 标签写入在
BEGIN IMMEDIATE事务内校验条目归属与缺失状态,按完整同哈希组原子替换标签并向上传播数据库错误。 - 回收站恢复前严格校验标签与单角色参考图关系快照完整性,损坏快照拒绝移动文件并保留原记录;非系统回收站支持图片、压缩包封面与视频缩略图预览,列表视图增加微缩略图并修复竖排错位。
- 归档计划处于或转为
needs_tags/aligned/stale时自动清空非回滚失败的历史execution_log,消除已清空标签目录阻塞/api/health健康状态与错误画师列表的问题。 - 修正媒体服务
If-Modified-Since/If-Range秒级边界与Range字节区间语法校验。
- 标签写入在
- 界面体验与并发请求隔离:
- 优化顶栏工具簇、紧凑侧边栏筛选栈、居中底部编辑栏、维护页 3×3 健康状态矩阵与多列维护表单;强化侧边栏滑入、画师下拉、弹窗缩放与卡片触觉微动效,统一深色模式语义徽标与视频占位对比度。
- 侧边栏新增标签过滤框与空目录反馈,优化重复文件夹分组层级;灯箱支持显示规格参数与点击标签跳转筛选;顶栏与维护页统一回到顶部按钮;下载作品日历默认展开并持久化折叠状态;全面隔离下载列表、下载设置、网盘设置、标签选择器与媒体深度回填的并发请求竞态。
安装包
- 文件:
gallery_1.1.9_x86_64.fpk - SHA-256:
31FDF7375EE9AD39857DF2E67B65960853F26A1776A002910FE424DA9454D874 - 格式:官方 fnpack 生成的 gzip tar FPK,目标架构
x86_64,服务端口8899
v1.1.9 (2026-11-05)
This release covers the 1.1.8 → 1.1.9 delta.
v1.1.9 introduces autonomous character cluster discovery and verification, upgrades CCIP embedding caching, video fade-in frame fallback, and non-core duplicate pruning, adds the BootGate early port-binding startup lifecycle, and applies jemalloc and SQLite memory reductions. It also hardens Pawchive rate-limit circuit breaking, range-resume validator verification, and JDownloader netdisk bridging, tightens tag transaction consistency, recycle-bin snapshot validation, and archive plan log cleanup, and refines the Studio Folio UI layout and request-race isolation.
Key Changes
- Character Cluster Discovery & CCIP Recognition Optimization:
- Adds character cluster discovery, verification, and threshold calibration endpoints (
POST /api/characters/clusters/discover,/verify,/calibrate-threshold): combines 64-bit dHash variant folding, CCIP feature extraction, and Complete-Linkage clustering to match known characters at the0.7174default threshold (0.5739review floor,0.04margin) or group cohesive unknown character clusters;verified=0staging references stay isolated from automatic cleanup and promote to active references after verification (cluster_verified) and anti-poisoning checks. - Adds a 1024-entry LRU media embedding cache; reuses the disk video-frame cache for video character recognition with
0.1s → 1.0sfade-in fallback on near-uniform black/white frames; accelerates reference preprocessing with fixed-point bilinear interpolation and zero-copy RGB plane unpacking; retains all verified protected references in the stable core and prunes≥0.95near-duplicates against all kept references; excludes video files from character reference candidates.
- Adds character cluster discovery, verification, and threshold calibration endpoints (
- BootGate Startup & Runtime Performance/Memory Optimization:
- Binds port
8899immediately on launch and answers/api/healthwith200({"status":"initializing","initializing":true,"phase":...}) while other routes answer503during background initialization; the frontend API layer retries with short backoff, the maintenance view displays initialization phase status cleanly, and orphaned staging cleanup runs asynchronously off the critical startup path. - Enables
jemallocin the Linux production binary (with background dirty/muzzy page decaydirty_decay_ms:3000,muzzy_decay_ms:3000); tunes fnOS memory defaults (DB_POOL_SIZE=6,SQLITE_MMAP_SIZE=32MiB,SQLITE_CACHE_SIZE=-16000); adds covering SQLite indexes, direct thumbnail disk-cache hits, and HTTP Gzip compression.
- Binds port
- Pawchive Subscriptions & Netdisk Bridge Hardening:
- Adds a global 429 and consecutive-403 cooldown circuit breaker, compliant browser User-Agent, non-destructive 404 detail recording (preserving known manifests and external links), and
preview_onlyplaceholder filtering to eliminate detail-queue starvation; switches discovery page writes toIMMEDIATEtransactions. - Accepts
206 Partial Contentonly after a validatedRangerequest and rejects weak/malformed ETag resume validators; fences active download claims against concurrent reclamation; avoids marking rate-limited interrupted posts as completed; supports integerpost_idand nullable columns in/api/pawchive/audit-evidence, and attachessubscription_idto download/publish failure events. - Fixes JDownloader bridge task stalls across restarts, version-lock refreezing, and receipt validation; supports direct external link submission to the netdisk queue; updates group ledger paths across group renames and artist folder moves.
- Adds a global 429 and consecutive-403 cooldown circuit breaker, compliant browser User-Agent, non-destructive 404 detail recording (preserving known manifests and external links), and
- Tag Transactions, Recycle Validation & Archive Plan Cleanup:
- Validates item ownership and missing state inside
BEGIN IMMEDIATEwrite transactions, atomically replacing tags across full content-hash groups and propagating database errors. - Validates tag and single-character reference relationship snapshots before moving restored files in the recycle bin, keeping files and records intact on malformed snapshots; supports image, archive cover, and video thumbnail previews in internal app trash and adds compact thumbnails to the recycle list view.
- Automatically clears obsolete non-rollback failure
execution_logentries when folder rename plans are in or transition toneeds_tags,aligned, orstale, preventing untagged folders from leaving/api/healthdegraded or wedging/api/folder-renames/error-artists. - Fixes
If-Modified-Since/If-Rangesecond-boundary comparisons andRangebyte-interval grammar validation.
- Validates item ownership and missing state inside
- Studio Folio UI & Concurrent Request Isolation:
- Refines the header utility cluster, compact sidebar filter stack, centered edit-bar dock, 3×3 maintenance health matrix, and multi-column maintenance forms; polishes sidebar slide-in, artist combobox, modal scale, and card micro-interactions alongside dark-mode semantic badge and video placeholder contrast.
- Adds a sidebar tag filter input and empty-folder feedback, refines duplicate-folder hierarchy, displays media specs and clickable tag filters in the lightbox, unifies scroll-to-top buttons, expands download calendars by default with persistent collapse state, and isolates overlapping requests across download lists, download settings, netdisk settings, tag pickers, and media depth refills.
Package
- File:
gallery_1.1.9_x86_64.fpk - SHA-256:
31FDF7375EE9AD39857DF2E67B65960853F26A1776A002910FE424DA9454D874 - Format: gzip tar FPK generated by the official fnpack tool, architecture
x86_64, service port8899