Skip to content

feat(mirror): 镜像 zip 瘦身排除清单 —— 三方同源,审计器同 SHA 读取 - #14

Merged
acosmi-fushihua merged 3 commits into
mainfrom
fix/mirror-slim-manifest-20260816
Aug 17, 2026
Merged

acosmi-fushihua merged 3 commits into
mainfrom
fix/mirror-slim-manifest-20260816

Conversation

@acosmi-fushihua

@acosmi-fushihua acosmi-fushihua commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • CN 镜像 zip 瘦身:40 个浏览器视觉回归 PNG 快照(6.76MB,客户端运行时零消费)不再进镜像 zip,包体约 15.1MB → 约 8.3MB。对尚未拿到 180s 外墙修复的老版本客户端(30s 墙)是不需要发版的立即缓解。
  • 排除清单 = 本仓 .crabcode-plugin/mirror-distribution.json,只写一份:发布器(acosmi/crabcode-source sync-plugins-to-mirror.yml)与本仓审计器都从同一个被审 SHA 的 checkout 读它推导文件集 —— 上一轮三个镜像缺陷全是「审计器加严、发布器没跟」的契约单边升级,清单同源让分叉在构造上不可能。
  • 安全栅(两侧同款):排除前缀必须含 /tests/,清单构造上裁不掉运行时内容。
  • 详细机制、上线顺序安全性论证与六箭头验证矩阵(含负向对照)见 docs/audit/2026-08-16-镜像瘦身清单与摘要校验闭环-处置实况.md;附 Windows 本机 12 条安全套件红的根因定案(最大族 = 工具显式 POSIX-only fail-closed,不改测试)。

⚠️ 跨仓联动(发布器半边 = acosmi/crabcode-source PR #73,因该仓 main 当日也上了 ruleset 锁,未能先行直推)

跑 sync 之前,本 PR 与 crabcode-source #73 必须都已合并(两 PR 合并顺序任意):

  • 只合本 PR 就 sync = 「新审计器 × 旧发布器」,审计必红(fail-closed,镜像照常服务但告警)
  • 只合 #73 就 sync = 清单不存在不裁剪,绿(旧行为)

与 PR #12 顺序无关。

⚠️ 全部合并后必须(发版最后一步,永远)

gh workflow run sync-plugins-to-mirror.yml -R acosmi/crabcode-source

schedule 已于 07-27 因额度移除、dispatch token 因公仓→私仓提权红线故意不配;不跑则镜像 latest 停在旧 SHA。sync 后可 gh workflow run notify-mirror.yml -R acosmi/CrabCode-Plugin 立即复核。

按本仓政策,合并由管理员执行;本 PR 仅交付分支。

🤖 Generated with Claude Code

Acosmi Automation and others added 3 commits August 16, 2026 07:45
40 个浏览器视觉回归 PNG 快照(6.76MB,客户端运行时零消费)不再进 CN 镜像 zip,
包体约 15.1MB → 约 8.3MB,对未修 30s 外墙的老版本客户端是立即生效的缓解。

- .crabcode-plugin/mirror-distribution.json: excludePrefixes 唯一真源
- notify-mirror.yml: 从被审 SHA 的 checkout 读同一份清单过滤期望集;
  安全栅(前缀必须含 /tests/)与发布器同款,清单构造上裁不掉运行时内容
- 发布器半边落在 acosmi/crabcode-source sync-plugins-to-mirror.yml(先行合入,
  清单不存在 = 不裁剪,故本 PR 与 sync 的任意先后顺序都安全)

为什么是清单而不是两份排除表:上一轮三缺陷全是「审计器加严、发布器没跟」的
契约单边升级同形三连;排除表写两份 = 给下一次单边升级留门。本地验证矩阵六箭头
全过,含负向对照(旧审计器 × 裁剪包必须红,证明审计器改动承重)。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…sed,不加守卫不改测试

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@acosmi-fushihua
acosmi-fushihua merged commit 9c3de7b into main Aug 17, 2026
8 checks passed
@acosmi-fushihua
acosmi-fushihua deleted the fix/mirror-slim-manifest-20260816 branch August 17, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant