chore(market): 更新 last30days 上游快照 (#360)

将 last30days 固定到 7c2e1c2b099b13abd4397910168c4f53e638bb21,并保留绑定该精确 pin 的根通知回执与行为复审文档。
This commit is contained in:
github-actions[bot] authored and GitHub committed 2026-11-29 07:56:29 +08:00
1 parent 20b61bf769
commit d1123e67b5
5 files changed
+67 -20

No files matched your search

@@ -0,0 +1,25 @@
# PR360 实际安装范围许可与安全加固复审(`last30days`)
旧 pin:`331025e662756ca51e86dfddcf59969f6dba25a0`;目标 pin:`7c2e1c2b099b13abd4397910168c4f53e638bb21`。
审核人:`mashagua`。复审日期:`2026-11-29`。
## 1. 主项目根许可交付核验(绑定已发布客户端 `v10.0.214`)
- 客户端 [desirecore#6429](https://github.com/desirecore/desirecore/pull/6429) squash `85fba4abf4c60c5704557b2c76568a3da3323967`(tree `4e38063a01a6d8b9e7b7fc549bbc2716b7d45a81`)已合入 `dev`,并已随正式版 **[DesireCore v10.0.214](https://github.com/desirecore/agent-os/releases/tag/v10.0.214)**(commit `b92537657ea2ff8717e0c3000edb1104292b0225`)发布。经比对,`85fba4ab...v10.0.214` 期间 `skill-staging.ts`、`market-install.ts`、`source-fetch.ts` 零变更。
- 固定目标 pin `7c2e1c2b099b13abd4397910168c4f53e638bb21` 核对结果:
- 主项目根 `LICENSE`(Matt Van Horn,MIT):1070 字节,SHA-256 `31803213a789825dc419de43542381e1d570b4408cf2bcf2e8a9947a6d3fd2ab`。
- 安装范围 `skills/last30days` 顶层无同名 `LICENSE` 冲突;原第三方 `scripts/lib/vendor/bird-search/LICENSE`(Peter Steinberger)位于嵌套路径并保持不变。
- `special-review.v1.json` 已按 [market#379](https://github.com/desirecore/market/pull/379) 合约写入 `acceptedClientAttachedNotices`。
## 2. 安装范围内行为与安全加固差异复审
`331025e6 → 7c2e1c2b` 共 43 个提交(安装范围 `skills/last30days/` 变更 132 个文件),配套 `changelog.d/` 安全记录与 `tests/` 安全回归测试确认本次升级以安全收敛为主,无新增静默提权或未授权数据外传:
| 审查项 | 涉及文件 | 复审结论 |
| --- | --- | --- |
| 浏览器 Cookie 与同意门控 | `scripts/lib/agentcookie.py`、`chrome_cookies.py`、`cookie_extract.py`、`permission_preflight.py` | **安全收敛**:macOS Chromium 解密改为进程内实现(不再经 `openssl` argv 暴露主密钥,并固定 `/usr/bin/security`);Firefox/Chromium SQLite 临时副本先关 fd 再清理,严格按 host/expiry(含 Firefox 142+ ms)/path/partition 隔离;CDP 强制 loopback-only、无代理、无重定向;`agentcookie.is_disabled()` 同时尊重 config 与环境变量拒绝,且显式 `FROM_BROWSER` pin 不自动启用 sidecar。 |
| 凭据与 Token 安全 | `scripts/lib/auth_safety.py`(新增)、`scripts/lib/env.py` | **安全收敛**:新增 `auth_safety.py` 校验请求头 token(拒绝控制字符与非 ASCII)并脱敏异常中的 Bearer/Basic/Token/x-api-key;`env.py` 过滤未替换的 `${user_config.*}` 占位符,拒绝不可信 `.claude/last30days.env` 符号链接与非法键泄漏,增加 `load_secret_stores` 策略开关。 |
| 外部通道与子进程边界 | `scripts/lib/reddit_envelope.py`、`x_envelope.py`、`vendor/bird-search/lib/cookies.js` | **安全收敛**:Reddit 登录态改为公开 subreddit 白名单放行,文件读取增加受保护凭据目录拦截与 `O_NOFOLLOW \| O_NONBLOCK` + `fstat` TOCTOU 校验;X/Bird 强制 `--` 参数分隔、脱敏错误路径中的 session cookie 并加固 HTML 实体清洗。 |
| 扫描排除清单 | `skills/last30days/.skillignore` | **合理**:仅新增 `.env`、`.env.*`、`.claude/`、`*.pem`、`*.key`、`__pycache__/`、`*.pyc`、`scripts/setup-keychain.sh`、`scripts/setup-pass.sh`、`scripts/x_lane_parity.py`,未隐藏核心运行时入口。 |
| 依赖清单 | `pyproject.toml`、`uv.lock` | 已由既有 `acceptedDependencyIdentities` 精确绑定新 tree blob 哈希,无新增未声明依赖。 |
## 3. 审核边界
本复审为只读源码与元数据核验,未执行上游脚本或真实外部账号/浏览器调用;不构成软件安全认证,也不自动延伸到未来快照。
+7 -7
View File
@@ -29,13 +29,13 @@
}, },
"release": { "release": {
"state": "known", "state": "known",
"version": "4.5.0", "version": "4.6.0",
"versionScheme": "semver" "versionScheme": "semver"
}, },
"timestamps": { "timestamps": {
"catalogUpdatedAt": { "catalogUpdatedAt": {
"state": "known", "state": "known",
"value": "2026-11-24T01:37:18Z", "value": "2026-11-25T01:26:49Z",
"precision": "second" "precision": "second"
}, },
"releasePublishedAt": { "releasePublishedAt": {
@@ -43,12 +43,12 @@
}, },
"reviewedAt": { "reviewedAt": {
"state": "known", "state": "known",
"value": "2026-11-24", "value": "2026-11-25",
"precision": "day" "precision": "day"
}, },
"upstreamObservedAt": { "upstreamObservedAt": {
"state": "known", "state": "known",
"value": "2026-11-24T01:37:18Z", "value": "2026-11-25T01:26:49Z",
"precision": "second" "precision": "second"
} }
}, },
@@ -57,7 +57,7 @@
"kind": "git", "kind": "git",
"url": "https://github.com/mvanhorn/last30days-skill.git", "url": "https://github.com/mvanhorn/last30days-skill.git",
"path": "skills/last30days", "path": "skills/last30days",
"ref": "331025e662756ca51e86dfddcf59969f6dba25a0" "ref": "7c2e1c2b099b13abd4397910168c4f53e638bb21"
} }
}, },
"governance": { "governance": {
@@ -76,8 +76,8 @@
}, },
"compliance": { "compliance": {
"licenseEvidencePath": "LICENSE", "licenseEvidencePath": "LICENSE",
"reviewedRef": "331025e662756ca51e86dfddcf59969f6dba25a0", "reviewedRef": "7c2e1c2b099b13abd4397910168c4f53e638bb21",
"reviewedAt": "2026-11-24", "reviewedAt": "2026-11-25",
"reviewedBy": "automated:source-license-metadata-v1", "reviewedBy": "automated:source-license-metadata-v1",
"upstreamEndorsed": false "upstreamEndorsed": false
} }
+2 -2
View File
@@ -11,7 +11,7 @@
"hacker-news", "hacker-news",
"web" "web"
], ],
"latestVersion": "4.5.0", "latestVersion": "4.6.0",
"i18n": { "i18n": {
"zh-CN": { "zh-CN": {
"name": "近 30 天研究", "name": "近 30 天研究",
@@ -36,6 +36,6 @@
"repoUrl": "https://github.com/mvanhorn/last30days-skill.git", "repoUrl": "https://github.com/mvanhorn/last30days-skill.git",
"repoBranch": "main", "repoBranch": "main",
"path": "skills/last30days", "path": "skills/last30days",
"ref": "331025e662756ca51e86dfddcf59969f6dba25a0" "ref": "7c2e1c2b099b13abd4397910168c4f53e638bb21"
} }
} }
+23 -3
View File
@@ -1,13 +1,33 @@
{ {
"schemaVersion": 1, "schemaVersion": 1,
"reviewedBy": "DesireCore", "reviewedBy": "mashagua",
"reviewedAt": "2026-11-24", "reviewedAt": "2026-11-29",
"notes": "Read-only review of Last30Days 4.6.0 against the installed 4.5.0 pin. Root pyproject.toml and uv.lock change only the project version. The new short-form lane finds public TikTok and Instagram URLs via configured search services or the host, then uses yt-dlp with --ignore-config and no browser cookie option. The existing operator-configured yt-dlp SSH/proxy route now also applies to this lane. Root and scoped license evidence was rechecked by the catalog auditor. The inherited assets omission applies only to the audit, and dependencies and scripts were not executed.", "notes": "Read-only license-delivery and behavioral security review of Last30Days pin 7c2e1c2b099b13abd4397910168c4f53e638bb21 against 331025e662756ca51e86dfddcf59969f6dba25a0. DesireCore#6429 (commit 85fba4abf4c60c5704557b2c76568a3da3323967, tree 4e38063a01a6d8b9e7b7fc549bbc2716b7d45a81) is shipped unchanged in official release DesireCore v10.0.214 (commit b92537657ea2ff8717e0c3000edb1104292b0225) and attaches root MIT LICENSE (1070 bytes, SHA-256 31803213a789825dc419de43542381e1d570b4408cf2bcf2e8a9947a6d3fd2ab) into skills/last30days while preserving nested vendor bird-search LICENSE. Reviewed 43-commit security-hardening delta (agentcookie.py, auth_safety.py, chrome_cookies.py, cookie_extract.py, env.py, permission_preflight.py, reddit_envelope.py, x_envelope.py, bird-search/lib/cookies.js, .skillignore): all changes tighten consent gating, loopback-only CDP, in-process decryption, token/secret scrubbing, TOCTOU file checks, and public-subreddit allowlisting. Root pyproject.toml and uv.lock match acceptedDependencyIdentities. Detailed review: docs/reviews/last30days-pr360-7c2e1c2b099b.md. No upstream code was executed; not a security certification or runtime acceptance, and does not extend to future pins.",
"acceptedDependencyIdentities": { "acceptedDependencyIdentities": {
"pyproject.toml": "b2c07f01993df4d5fa0a2c7296266c1092bad227", "pyproject.toml": "b2c07f01993df4d5fa0a2c7296266c1092bad227",
"uv.lock": "60bde91fdf2d51abf52ee14380505a12f3a7174b" "uv.lock": "60bde91fdf2d51abf52ee14380505a12f3a7174b"
}, },
"excludePaths": [ "excludePaths": [
"skills/last30days/assets" "skills/last30days/assets"
],
"acceptedClientAttachedNotices": {
"sourceRef": "7c2e1c2b099b13abd4397910168c4f53e638bb21",
"clientCommit": "85fba4abf4c60c5704557b2c76568a3da3323967",
"clientTree": "4e38063a01a6d8b9e7b7fc549bbc2716b7d45a81",
"observedAt": "2026-11-28T23:28:00Z",
"noticeRootPath": "LICENSE",
"noticeSha256": "31803213a789825dc419de43542381e1d570b4408cf2bcf2e8a9947a6d3fd2ab",
"scopes": [
{
"path": "skills/last30days",
"attached": [
{
"name": "LICENSE",
"sourceName": "LICENSE",
"sha256": "31803213a789825dc419de43542381e1d570b4408cf2bcf2e8a9947a6d3fd2ab"
}
] ]
} }
]
}
}
+10 -8
View File
@@ -1,11 +1,11 @@
{ {
"schemaVersion": 1, "schemaVersion": 1,
"reviewer": "automated:source-license-metadata-v1", "reviewer": "automated:source-license-metadata-v1",
"reviewedAt": "2026-11-24T01:37:18Z", "reviewedAt": "2026-11-25T01:26:49Z",
"source": { "source": {
"url": "https://github.com/mvanhorn/last30days-skill.git", "url": "https://github.com/mvanhorn/last30days-skill.git",
"previousRef": "e63f8e8732f1b934449b363f211b3654531b8ef2", "previousRef": "331025e662756ca51e86dfddcf59969f6dba25a0",
"ref": "331025e662756ca51e86dfddcf59969f6dba25a0", "ref": "7c2e1c2b099b13abd4397910168c4f53e638bb21",
"paths": [ "paths": [
"skills/last30days" "skills/last30days"
] ]
@@ -21,9 +21,11 @@
"LICENSE": "31803213a789825dc419de43542381e1d570b4408cf2bcf2e8a9947a6d3fd2ab", "LICENSE": "31803213a789825dc419de43542381e1d570b4408cf2bcf2e8a9947a6d3fd2ab",
"skills/last30days/scripts/lib/vendor/bird-search/LICENSE": "62316704df7426e5a79d2827ff8aca36e9abb3a73b8e68557030749ebefec667" "skills/last30days/scripts/lib/vendor/bird-search/LICENSE": "62316704df7426e5a79d2827ff8aca36e9abb3a73b8e68557030749ebefec667"
}, },
"observedVersions": {}, "observedVersions": {
"contentManifestSha256": "7c4489e21798b67fb5419dbc8c86d73294bb8bdecc026ca7dbb4f405e2575d18", "skills/last30days": "4.6.0"
"fileCount": 200, },
"contentManifestSha256": "14fe0cb3d6744f94482cceb37363851ca68be864511b0ebe038261e5309e915e",
"fileCount": 201,
"limitations": [ "limitations": [
"自动来源、许可和结构化元数据核验;不执行上游代码,不代表软件安全认证或真实运行验收。", "自动来源、许可和结构化元数据核验;不执行上游代码,不代表软件安全认证或真实运行验收。",
"未结构化表达的依赖与行为变化仍在 PR 差异中供复核,不据此扩大授权。", "未结构化表达的依赖与行为变化仍在 PR 差异中供复核,不据此扩大授权。",
@@ -31,8 +33,8 @@
"excludePaths 只从本仓库的自动审核树遍历中省略路径;DesireCore 安装器在支持该字段前仍会从上游 pin 安装这些文件。" "excludePaths 只从本仓库的自动审核树遍历中省略路径;DesireCore 安装器在支持该字段前仍会从上游 pin 安装这些文件。"
], ],
"specialReview": { "specialReview": {
"reviewedBy": "DesireCore", "reviewedBy": "mashagua",
"reviewedAt": "2026-11-24", "reviewedAt": "2026-11-29",
"excludePaths": [ "excludePaths": [
"skills/last30days/assets" "skills/last30days/assets"
], ],