chore(catalog): 专项复核并更新 sag-wiki 上游快照至 4a708be0eb46 (#458)

这是草稿 #449 的专项复核正式 PR。#449 保持草稿,等后续清理。

上游快照:`b6940ac834b3b1ec651c0b49dc1b0c45d4d74c4a` →
`4a708be05d5367bacf4c5e9930eceb3b46588e38`(安装路径 `cli/skills/sag`)

> ⚠️ **合并时机**:本 PR 合并后,sag-wiki 的 `compliance.reviewedBy` 会从 `mashagua`
变成 `automated:source-license-metadata-v1`,开始命中 desirecore
客户端的子目录稀疏检出问题(desirecore/desirecore#7466 修复,尚未发布):v10.0.214–v10.0.219
安装时会报 `ENOENT …/LICENSE`。在 #7466 发布前合并,sag-wiki 会和
ppt-master、reverse-engineer-anything 一样装不上。建议等 #7466 发布后再合并。

## 修改内容

| 类型 | 模块或功能 | 本次修改 |
| --- | --- | --- |
| 更新 | sag-wiki 固定来源 |
`source.ref`、`provenance.content.ref`、`compliance.reviewedRef` 更新到
`4a708be0eb46` |
| 更新 | 专项复核 | 新增
`acceptedDependencyIdentities["package-lock.json"]`;沿用已审计的
`acceptedClientAttachedNotices` 延续 |
| 新增 | 审核回执 | 首次生成 `upstream-audit.v1.json`(fileCount
6,contentManifestSha256 `288c8150…`) |
| 更新 | 双语说明 | description 中的固定版本更新 |

## 修改前后

| 场景 | 修改前 | 修复后 |
| --- | --- | --- |
| 自动核验 | `依赖清单有变化,无法自动确认新的前置条件` | 按绑定的 blob 核对后通过并生成回执 |
| CI `validate` | `compliance.reviewedRef must match …` | 本地
`--require-complete` 0 error |

核验依据:
- `package.json` 只改了版本号 0.4.6 → 0.4.8,去掉 version
后的身份哈希不变(`2c428caf…`)。`package-lock.json` 只改了两处相同的版本字段(blob `fa5e3db6…`
→ `35b9a982…`),没有新增、删除或重新解析任何依赖。
- 安装范围内只改了 3
个参考文档:`references/ignores.md`、`parameters.md`、`setup.md`,内容是"`--path`
可以重复传入(SAG CLI 0.4.7+)"和"`sag add/remove` 支持单个文件"。SKILL.md 的 frontmatter
没变。
- 根 `LICENSE` 逐字节相同(SHA-256 `735a34d0…`),已审计的客户端附加通知证据继续有效。
- 其余 150 多个变更路径是 SAG Wiki 应用本身、测试和构建文件,都不在安装范围内。

已知问题(本 PR 未改):双语 summary/description 里还留着"准入暂停为仅收录"的旧说法,但 #439
已经把它恢复为可安装,文案和实际状态不一致。建议另开 PR 更新这段文案。

## 影响范围

| 文件 | 行号 | 改动 |
| --- | --- | --- |
| `skills/sag-wiki/entry.json` | 35 | `source.ref` |
| `skills/sag-wiki/catalog-metadata.v1.json` | 14, 19, 36-37, 44, 49-50,
57, 77-79 | 双语 description 中的 pin、时间戳、provenance、compliance |
| `skills/sag-wiki/special-review.v1.json` | 4-5, 27-29 |
复核日期与说明、`acceptedDependencyIdentities` |
| `skills/sag-wiki/upstream-audit.v1.json` | 1-38(新文件) | 新 pin 的自动核验回执 |

## 验证

| 检查项或场景 | 预期结果 | 实际结果 | 证据 |
| --- | --- | --- | --- |
| `audit_update`(本地,真实 fetch 上游两个 pin,基于含 #455 的 main) | 通过并生成回执 |
通过,fileCount 6 | commit `d174b60` |
| `validate_catalog_metadata.py --require-complete` / `validate-i18n.py`
| 0 error | 0 error,105 warning(main 原有) | 本地 |
| `translate.py --check skills/sag-wiki` | 通过 | 通过 | 本地 |
| CI | 全部通过 | 等待中 | 本 PR checks |

只做来源、许可和元数据核验,没有执行上游代码,不等于安全认证或运行验收。请勿自动合并。

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
mashaguaandDevin authored and GitHub committed 2026-12-06 20:20:44 +08:00
1 parent 1e29f20266
commit 4bc36a750a
4 files changed
+55 -14

No files matched your search

+11 -11
View File
@@ -11,12 +11,12 @@
"en-US": {
"name": "SAG Wiki Skill",
"summary": "SAG CLI skill for setup, semantic search, indexed folders, ignore rules and MCP configuration. Install and run the separately licensed @zleap-ai/sag CLI; this entry points at cli/skills/sag only, not the full SAG Wiki app. Admission is paused at listing-only: the current DesireCore installer copies only that path and does not attach the repository-root MIT LICENSE.",
"description": "The repository is a knowledge-base application. This catalog entry is the cli/skills/sag Agent Skill only, pinned at b6940ac834b3b1ec651c0b49dc1b0c45d4d74c4a. Upstream root LICENSE is MIT, but it lives outside the skill path, so a path-scoped install does not receive the license text. There is no existing market field or client behavior that attaches a parent LICENSE to the selected contentDir. Source remains the original upstream git pointer; installable admission is paused. Demo videos and third-party binaries in the app tree are outside the skill path. This is a notice-delivery issue in the Market installed copy, not an unknown license or a lack of permission to reference upstream. Original pointers/collection selection and upstream installation remain unchanged. The client should carry the MIT/Apache notices into selected-path staging rather than Market repackaging upstream without approval."
"description": "The repository is a knowledge-base application. This catalog entry is the cli/skills/sag Agent Skill only, pinned at 4a708be05d5367bacf4c5e9930eceb3b46588e38. Upstream root LICENSE is MIT, but it lives outside the skill path, so a path-scoped install does not receive the license text. There is no existing market field or client behavior that attaches a parent LICENSE to the selected contentDir. Source remains the original upstream git pointer; installable admission is paused. Demo videos and third-party binaries in the app tree are outside the skill path. This is a notice-delivery issue in the Market installed copy, not an unknown license or a lack of permission to reference upstream. Original pointers/collection selection and upstream installation remain unchanged. The client should carry the MIT/Apache notices into selected-path staging rather than Market repackaging upstream without approval."
},
"zh-CN": {
"name": "SAG Wiki 技能",
"summary": "SAG CLI 技能,用于安装配置、语义检索、索引目录、忽略规则和 MCP。需另行安装并运行独立许可的 @zleap-ai/sag CLI;本条目只指向 cli/skills/sag,不含完整 SAG Wiki 应用。准入暂停为仅收录:现行 DesireCore 安装器只复制该路径,不会把仓库根目录的 MIT LICENSE 附进安装产物。",
"description": "该仓库是知识库应用。本目录条目仅收录 cli/skills/sag 这一 Agent Skill,固定版本 b6940ac834b3b1ec651c0b49dc1b0c45d4d74c4a。上游根 LICENSE 为 MIT,但位于技能路径之外,因此按路径安装时不会得到许可文本。现行目录与客户端都不会把父目录 LICENSE 附到所选 contentDir。来源仍为原先的上游 Git 指针;可安装准入暂停。应用树中的演示视频与第三方二进制不在技能路径内。 这是市场安装产物的通知携带问题,不是许可未知或市场无权引用上游;保留原指针/合集点选及上游安装方式。MIT/Apache 通知应由客户端在所选路径暂存时正确附带,不能为此擅自重打包上游。"
"description": "该仓库是知识库应用。本目录条目仅收录 cli/skills/sag 这一 Agent Skill,固定版本 4a708be05d5367bacf4c5e9930eceb3b46588e38。上游根 LICENSE 为 MIT,但位于技能路径之外,因此按路径安装时不会得到许可文本。现行目录与客户端都不会把父目录 LICENSE 附到所选 contentDir。来源仍为原先的上游 Git 指针;可安装准入暂停。应用树中的演示视频与第三方二进制不在技能路径内。 这是市场安装产物的通知携带问题,不是许可未知或市场无权引用上游;保留原指针/合集点选及上游安装方式。MIT/Apache 通知应由客户端在所选路径暂存时正确附带,不能为此擅自重打包上游。"
}
},
"category": "productivity",
@@ -33,28 +33,28 @@
"timestamps": {
"catalogUpdatedAt": {
"state": "known",
"value": "2026-11-25",
"precision": "day"
"value": "2026-12-06T01:08:30Z",
"precision": "second"
},
"releasePublishedAt": {
"state": "unknown"
},
"reviewedAt": {
"state": "known",
"value": "2026-11-24",
"value": "2026-12-06",
"precision": "day"
},
"upstreamObservedAt": {
"state": "known",
"value": "2026-11-24",
"precision": "day"
"value": "2026-12-06T01:08:30Z",
"precision": "second"
}
},
"provenance": {
"content": {
"kind": "git",
"url": "https://github.com/Zleap-AI/SAG-Wiki.git",
"ref": "b6940ac834b3b1ec651c0b49dc1b0c45d4d74c4a",
"ref": "4a708be05d5367bacf4c5e9930eceb3b46588e38",
"path": "cli/skills/sag"
}
},
@@ -74,9 +74,9 @@
},
"compliance": {
"licenseEvidencePath": "LICENSE",
"reviewedRef": "b6940ac834b3b1ec651c0b49dc1b0c45d4d74c4a",
"reviewedAt": "2026-11-24",
"reviewedBy": "mashagua",
"reviewedRef": "4a708be05d5367bacf4c5e9930eceb3b46588e38",
"reviewedAt": "2026-12-06",
"reviewedBy": "automated:source-license-metadata-v1",
"upstreamEndorsed": false
}
},
+1 -1
View File
@@ -32,7 +32,7 @@
"kind": "git",
"repoUrl": "https://github.com/Zleap-AI/SAG-Wiki.git",
"repoBranch": "main",
"ref": "b6940ac834b3b1ec651c0b49dc1b0c45d4d74c4a",
"ref": "4a708be05d5367bacf4c5e9930eceb3b46588e38",
"path": "cli/skills/sag"
}
}
+5 -2
View File
@@ -1,8 +1,8 @@
{
"schemaVersion": 1,
"reviewedBy": "mashagua",
"reviewedAt": "2026-12-04",
"notes": "Verified root notice attachment for sag-wiki pin b6940ac834b3b1ec651c0b49dc1b0c45d4d74c4a (standalone Git subdirectory (cli/skills/sag)). DesireCore v10.0.214 official release includes verified client notice staging (clientCommit 85fba4abf4c60c5704557b2c76568a3da3323967, clientTree 4e38063a01a6d8b9e7b7fc549bbc2716b7d45a81) attaching regular root notice files matching LICENSE/NOTICE/COPYING prefixes: LICENSE (SHA-256 735a34d013f65abea13a18ded72eda3362156cdab391fe3e48649730b3aafa2c). Confirmed zero colliding top-level LICENSE/NOTICE/COPYING files across all 1 install scope(s). allowCarryForwardWhenUnchanged=true applies only when root notice bytes and install scopes remain unchanged.",
"reviewedAt": "2026-12-05",
"notes": "Upstream update review of sag-wiki 4a708be05d5367bacf4c5e9930eceb3b46588e38 against main pin b6940ac834b3b1ec651c0b49dc1b0c45d4d74c4a (install scope cli/skills/sag). Draft PR #449 stopped at 依赖清单有变化 only. Root package.json changed only its version 0.4.6 -> 0.4.8 (version-stripped identity unchanged, 2c428caf...); root package-lock.json changed only the two matching version fields 0.4.6 -> 0.4.8 (git blob fa5e3db62c49fe6d62bb1c8209257a1f3abfd591 -> 35b9a982d44060c81694c19d362f81f134e3d8bb), with no dependency added, removed or re-resolved; acceptedDependencyIdentities binds that blob. Inside the install scope only three reference files changed: references/ignores.md, references/parameters.md and references/setup.md document repeatable --path searches (SAG CLI 0.4.7+) and file-level sag add/remove; SKILL.md frontmatter is unchanged. Root LICENSE is byte-identical (SHA-256 735a34d013f65abea13a18ded72eda3362156cdab391fe3e48649730b3aafa2c), so acceptedClientAttachedNotices continues the audited carry-forward unchanged. The remaining 150+ upstream paths are the SAG Wiki application, tests and build files outside cli/skills/sag. Upstream programs were not executed; not a security certification or runtime acceptance, and does not extend to future pins. Previous review (2026-12-04): Verified root notice attachment for sag-wiki pin b6940ac834b3b1ec651c0b49dc1b0c45d4d74c4a (standalone Git subdirectory (cli/skills/sag)). DesireCore v10.0.214 official release includes verified client notice staging (clientCommit 85fba4abf4c60c5704557b2c76568a3da3323967, clientTree 4e38063a01a6d8b9e7b7fc549bbc2716b7d45a81) attaching regular root notice files matching LICENSE/NOTICE/COPYING prefixes: LICENSE (SHA-256 735a34d013f65abea13a18ded72eda3362156cdab391fe3e48649730b3aafa2c). Confirmed zero colliding top-level LICENSE/NOTICE/COPYING files across all 1 install scope(s). allowCarryForwardWhenUnchanged=true applies only when root notice bytes and install scopes remain unchanged.",
"acceptedClientAttachedNotices": {
"sourceRef": "b6940ac834b3b1ec651c0b49dc1b0c45d4d74c4a",
"clientCommit": "85fba4abf4c60c5704557b2c76568a3da3323967",
@@ -24,5 +24,8 @@
]
}
]
},
"acceptedDependencyIdentities": {
"package-lock.json": "35b9a982d44060c81694c19d362f81f134e3d8bb"
}
}
+38
View File
@@ -0,0 +1,38 @@
{
"schemaVersion": 1,
"reviewer": "automated:source-license-metadata-v1",
"reviewedAt": "2026-12-06T01:08:30Z",
"source": {
"url": "https://github.com/Zleap-AI/SAG-Wiki.git",
"previousRef": "b6940ac834b3b1ec651c0b49dc1b0c45d4d74c4a",
"ref": "4a708be05d5367bacf4c5e9930eceb3b46588e38",
"paths": [
"cli/skills/sag"
]
},
"checks": {
"immutableSnapshots": true,
"installedScopeBoundedFiles": true,
"licenseAndNoticeUnchanged": true,
"structuredPrerequisitesUnchanged": true,
"presentationMetadataUnchanged": true
},
"licenseEvidenceSha256": {
"LICENSE": "735a34d013f65abea13a18ded72eda3362156cdab391fe3e48649730b3aafa2c"
},
"observedVersions": {},
"contentManifestSha256": "288c81501c4c9065803eec73747deea489fd22e4647d22c24cd1ec2435cb11da",
"fileCount": 6,
"limitations": [
"自动来源、许可和结构化元数据核验;不执行上游代码,不代表软件安全认证或真实运行验收。",
"未结构化表达的依赖与行为变化仍在 PR 差异中供复核,不据此扩大授权。",
"依赖清单或结构化简介如有变化,已按专项复核记录中的接受哈希核对,不代表这些字段与旧快照逐字节相同。",
"所选安装目录在源树中仍可能没有完整通知;已按专项复核中绑定的上游 pin、已核验客户端提交和逐项安装回读哈希证明安装副本携带了完整根通知。该接受不是许可例外,不得自动延伸到新 pin,也不能把尚未回读的客户端附加写成已交付。"
],
"specialReview": {
"reviewedBy": "mashagua",
"reviewedAt": "2026-12-05",
"excludePaths": [],
"budgetExemptPaths": []
}
}