Repository navigation
docs(audit): 插件库 MCP 健康度三轮复核审计落档 - #27
acosmi-fushihua wants to merge 2 commits into
Conversation
三轮结论统一落档: - 第一轮:全仓门禁全绿;mediaops 0.4.5 / html-video 0.1.3 安装形态冷启动与握手正常。 发现 F1(P1) Bun 运行时自动安装在工具调用时拉取未锁定依赖(mediaops doctor 因此误报 完整 QA 就绪);F2(P1) html-video 在仅有系统 PATH ffmpeg 时渲染必败(裸名被上游 path.resolve 到插件根);F3 stdout 污染、F4 安装形态端到端门禁缺口、F6 校验器误判 --no-install、F7 发行物复现依赖 Bun 1.3.11。 - 第二轮:确认 crablaw-cn / cn-legal-study / crabcopyright-cn / media-publisher 均不提供 MCP; mediaops 治理链路(身份冒充、第二真人门、无审批打包、SSRF)实测符合设计;新增 F5 工具 无 annotations、F8 出站不支持代理;crablaw-cn 运行时在 Python 3.13 与 3.9 下 57/57 通过(F9 CI 缺 3.9 腿)。 - 第三轮:mediaops 08-22 关闭原因、09-12 恢复依据与当前各能力层开启条件。 本提交只新增审计文档与机器证据,不改源码、发行物与校验器。 本机验证(Bun 1.3.11):typecheck、lint:brand、validate(31 条既有 warning,与基线持平)通过; bun test ./tests/ 309 pass / 8 skip / 0 fail。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XKtuCJzPvzVmtLmyw6tWHZ
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 06a24b2c94
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| | 编号 | 级别 | 对象 | 问题 | 状态 | | ||
| | --- | --- | --- | --- | --- | | ||
| | F1 | P1 | mediaops、html-video | Bun 运行时自动安装:工具调用时从 npm 拉取**未锁定**版本依赖,绕过 lockfile/SBOM;mediaops `doctor` 因此误报完整 QA 就绪 | 待修 | | ||
| | F2 | P1 | html-video | ffmpeg 来自系统 PATH 时 `renderFrames` / `previewFrame` 必然失败,而 `doctor` 报 ffmpeg 正常 | 待修 | |
There was a problem hiding this comment.
Qualify the previewFrame failure as render-only
previewFrame does not necessarily fail in this environment: when its optional render argument is false, src/tools/previewFrame.ts only writes the wrapped HTML and never resolves or invokes ffmpeg. Only the render:true MP4 branch shares the faulty HYPERFRAMES_FFMPEG_PATH path. Calling the entire tool “必然失败” overstates this P1's user-visible scope; identify it as the rendered-preview mode instead.
Useful? React with 👍 / 👎.
| | P3 | F7:media-ops 声明 `packageManager: bun@1.3.11`;stale 报错提示期望版本 | 非 1.3.11 环境下报错文本给出版本提示 | | ||
| | P3 | F8:README 写明强制代理网络下联网工具不可用;或评估“经代理但保留目标 IP 校验”的方案 | 文档或实现二选一落地 | | ||
| | P3 | F9:CI 增加 crablaw-cn 的 Python 3.9 腿 | 手动派发的 CI 中可见 3.9 结果 | | ||
| | P3 | F10:README 增加“安装后启用完整 QA”章节 | 给出插件安装目录内的锁定安装步骤及 `doctor` 验证方法 | |
There was a problem hiding this comment.
Narrow the claim that installed QA setup is undocumented
The proposed F10 remediation duplicates documentation already present in plugins/crabcode-media-ops/README.md:187-211: that section lists the pinned runtime versions, runs bun install --frozen-lockfile and the pinned Chromium installation, and explicitly tells users to run qa:installed from the real plugin installation directory. If the actual gap is discovering that directory or making these development-oriented commands clearer for marketplace users, state that narrower gap; otherwise this audit records a non-existent open finding.
Useful? React with 👍 / 👎.
三轮 MCP 健康度审计以
main@d481292(PR #26 合入后)为基线,记录两个已发布 MCP 的安装形态握手、依赖与渲染问题,以及媒体运营和法律插件的补测。这个 PR 新增审计报告和机器可读证据,交付范围为审计文档。主要结论:安装形态握手正常;F1 是工具调用触发 Bun 自动安装未锁定依赖,F2 是系统 PATH 的裸名 ffmpeg 导致本地 MP4 渲染失败。渲染 stdout、安装形态门禁、工具 annotations、启动参数校验器、版本提示、代理、Python 下限 CI 和消息桥 lockfile 等发现按报告保留。
本次审查修订:
renderFrames失败;源码确认本地previewFrame(render:true)共用同一路径;默认render:false仅生成 HTML,不解析或调用 ffmpeg。报告没有把源码推断记成已经执行的预览渲染探针。bun install --frozen-lockfile、Chromium 安装和在真实安装根运行qa:installed的说明。报告增加原文链接,JSON 将 F10 标为withdrawn,整改表移除重复的新增文档建议。本次修订验证:报告与 JSON 的完整差异经核对;JSON 解析通过;两个文件的
git diff --check通过。机器证据仅调整 F2 标题及 F10 标题/状态;环境、原始命令结果、MCP 探针数据和未验证项目均保持原值。原审计的 309 pass / 8 skip / 0 fail 和其它测试计数继续对应 2026-10-06 的原始记录。运行时代码修复和报告中仍开放问题的实际验收由后续变更处理。该 PR 保持就绪,交由仓库管理员审阅和合并。