Skip to content

chore(payload): pin kin-oauth-auth attestation-v2, cli-node & CRAG 5.0.2 - #2478

Merged
dofastted merged 2 commits into
devfrom
chore/pin-oauth-auth-and-crag-502
Dec 1, 2026
Merged

dofastted merged 2 commits into
devfrom
chore/pin-oauth-auth-and-crag-502

Conversation

@dofastted

@dofastted dofastted commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

1. 本次改动与原因

钉选最新闭源续发 prerelease(零轮换密钥),将 kin-oauth-auth(hCaptcha attestation 修复)、cli-node(zero-billing / bugfix)与 CRAG 5.0.2(3-OS slot-machine-env + 3 项泄露修复 + slot reset + zero-prompt-field)对齐至 deploy/payload.json、deploy/arm64-cli.json 与 src/lib/admin/kernel-catalog.mjs:

elease: payload-2026.12.02-oauth-auth-attestation-v2(13 assets;kin-oauth-auth sha256 9a0bae61... + cli-node sha256 8391ab0...)

2. 已执行验证与结果

  • 远端 GitHub Release 资产逐字节 sha256 核对:payload-2026.12.02-oauth-auth-attestation-v2 + payload-2026.12.02-crag-5.0.2 共 24/24 个资产与 deploy/payload.json / deploy/arm64-cli.json 100% 匹配
  • CRAG 5.0.2 单包一致性复核:./crag-v2 --version = 5.0.2-native-v4、
    eadelf -V <= GLIBC_2.34、�erifyCragV2Tree() ok: true、零轮换(issuer_public_key_id=9dbb4bc2... / payload_key_id=835451e2...)
  • kin-oauth-auth 静态 Linux amd64 ELF:go test ./... PASS、--capabilities 含 setup-token-hcaptcha-attestation
  • 单元/契约测试:

ode --test test/unit/kernel-catalog.test.mjs test/unit/install-payload.test.mjs — 54/54 PASS

ode --test test/unit/release-kernel.test.mjs test/unit/crag-update.test.mjs — 30/30 PASS

  • 格式检查:
    px biome check src/lib/admin/kernel-catalog.mjs — 0 fixes

3. 破坏性验证(Broken-by-hand)

  • 手工翻转 src/lib/admin/kernel-catalog.mjs 中 5.0.2 的 manifestSha256 1 个字符 -> kernel-catalog.test.mjs 立即报 payload.json CRAG pin and the catalog recommended entry agree on tag, tarball and manifest digests FAIL;恢复后 1/1 PASS。

4. 未验证范围(明确列出)

  • 未在生产机 ph24 实装运行新版 kin-oauth-auth / crag-v2 端到端线上流量(待合入 dev -> main 发布后按独立发版流程部署验证)。
  • 未在真实 arm64 宿主机重编 arm64 cli-node 二进制(由 CI �rm64-native-cli 负责)。

5. 风险与回滚

  • 仅修改 3 个钉选/目录文件,未改密钥、未覆盖任何已有 Release 资产;回滚只需 revert 本提交恢复上一版 release tag 钉选。

Note

Low Risk
Metadata-only release pinning and digest alignment; no application logic or key material changes in this diff.

Overview
Bumps the main payload release to payload-2026.12.02-oauth-auth-attestation-v2 and the CRAG payload to payload-2026.12.02-crag-5.0.2 in deploy/payload.json, with updated size/sha256 for kin-oauth-auth and all CRAG 5.0.2 packaged assets (kernel binary, encrypted payload, manifest, tarball).

Adds CRAG 5.0.2 as the new recommended pin in CRAG_PINNED_RELEASES in kernel-catalog.mjs (matching the tarball and manifest digests in payload.json) and demotes 5.0.1 from recommended to historical.

Reviewed by Cursor Bugbot for commit 78f28d4. Configure here.

WHY:
Pin the latest verified continuation payloads (kin-oauth-auth hCaptcha attestation
fix + cli-node zero-billing/bugfix + CRAG 5.0.2 3-OS slot-machine-env & zero-prompt-field)
and align arm64-cli.json & kernel-catalog.mjs with zero key rotation.

CHANGES:
- deploy/payload.json: release -> payload-2026.12.02-oauth-auth-attestation-v2 (updated kin-oauth-auth & cli-node digests), crag_release -> payload-2026.12.02-crag-5.0.2 (v5.0.2 kernel/payload/manifest/tarball digests)
- deploy/arm64-cli.json: sync cli-node source_sha256 & amd64 digest with payload-2026.12.02-oauth-auth-attestation-v2
- src/lib/admin/kernel-catalog.mjs: add 5.0.2 (recommended) entry matching payload.json and mark 5.0.0 as historical

VERIFIED:
- Remote GitHub asset byte-for-byte digest check: 24/24 assets match payload.json + arm64-cli.json
- node --test test/unit/kernel-catalog.test.mjs test/unit/install-payload.test.mjs (54/54 PASS)
- node --test test/unit/release-kernel.test.mjs test/unit/crag-update.test.mjs (30/30 PASS)
- Broken-by-hand: 1-char manifestSha256 flip fails kernel-catalog.test.mjs as expected
- npx biome check src/lib/admin/kernel-catalog.mjs (0 fixes)
@cursor

cursor Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 94106dee-cd34-4650-8670-fc39bbd3010d)

…nd-crag-502

# Conflicts:
#	deploy/payload.json
#	src/lib/admin/kernel-catalog.mjs
@dofastted

Copy link
Copy Markdown
Owner Author

验收评论(head 78f28d48d12c66b2023cc3e3b622a47b8be5b942,对 origin/dev 1659075ec 无冲突;只改 deploy/payload.json 与 src/lib/admin/kernel-catalog.mjs)

钉选核对(我自己逐项比对,不是转述 PR 自述):deploy/payload.json 24 项与两个 Release(payload-2026.12.02-oauth-auth-attestation-v2 13 个资产、payload-2026.12.02-crag-5.0.2 12 个资产,均为 prerelease)逐项大小 + sha256 相等,0 项不符;除 kin-oauth-auth 与 CRAG 5.0.2 的 6 项外,其余 18 项相对 dev 的钉选值逐字节不变(含 cli-node f8391ab0…,arm64-cli.json 无需改)。配套闭源改动已合入各自权威仓:dofastted/oauth-auth#1 → main,CRAG release-5.0.2(#57)→ main。

Run:test/deploy/test_native_cli.py OK;kernel-catalog、install-payload、native-cli、release-kernel、crag-update 5 个文件 88/88;GitHub ci、Cursor 检查全部 SUCCESS。

Real use:把 Release 里钉选的 kin-oauth-auth(sha256 9a0bae61… 与钉选一致,静态 x86-64 ELF)放进评审树 bin/ 后,test/unit/oauth-binary.test.mjs 12/12 通过——在这之前这个文件在 dev 上因缺 bin/kin-oauth-auth 一直红,现在对 #2463/#2474 的 hCaptcha 证明重试用例做了一次真实 helper 验证。fetch-default-gemini.py 不适用(本 PR 不动 Gemini 钉选)。没有 ph24。

Broken by hand:把 payload.json 里 CRAG 5.0.2 crag-v2-licensed-amd64.tar.gz 的 sha256 改一位(锚点唯一、还原后 sha256 一致)→ kernel-catalog.test.mjs 的 “payload.json CRAG pin and the catalog recommended entry agree on tag, tarball and manifest digests” 变红。如实记:kin-oauth-auth 那一项的摘要没有任何测试覆盖,只由上面的逐项下载比对保证(LESSONS 里 pins 测试不保护摘要的老问题)。

Not run(钉选默认翻到新内核,按 LESSONS 逐环境写缺口):Docker 槽、KVM 客机(crag-debian13,noexec 的 /run 曾让 4.0.0 失败)、custom-os 客机——没有任何一种环境实跑 CRAG 5.0.2 的证据(作者只做了 --version、readelf -V ≤ GLIBC_2.34、verifyCragV2Tree());ph24 金丝雀排在发版之后;arm64-native-cli(CI 跳过);install.sh 的 SYNC_WRAP 默认会把活跃 CRAG 槽同步到钉选版本。这是维护者的发布决定,不是遗漏;回滚只需 revert 本提交(上一版 5.0.1 的 Release 未被覆写)。CRAG 5.0.2 带的 3-OS 槽位画像需要 Node 侧 #2472/#2479 才会生效,本 PR 单独合入时那部分是空闲能力,不改变现有请求。

@dofastted
dofastted merged commit 83436ae into dev Dec 1, 2026
7 checks passed
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