👾 Open Computer Use – Open-Source Alternative to Codex Computer Use
Swift accessibilityai-agentai-agentsclaude-codecodexcodex-computer-usecomputer-usecomputer-use-agentcross-platformcuadesktop-automationgemini-cligui-automationmacosmcpmodel-context-protocolopen-computer-useopen-computer-use-mcpopenai-codexopencode
fix(release): explicitly require library validation for signed peers
ifuryst41de9f79fe63
diff --git a/docs/histories/2026-10/20261014-0950-v1.1.0-release.md b/docs/histories/2026-10/20261014-0950-v1.1.0-release.mdindex cd48f84..078b691 100644--- a/docs/histories/2026-10/20261014-0950-v1.1.0-release.md+++ b/docs/histories/2026-10/20261014-0950-v1.1.0-release.md@@ -26,3 +26,5 @@ PR #92 合并后,从 main 发布 v1.1.0。首次 CI 的 metadata 和 DMG job 成功,npm job 在组件签名阶段找不到临时 keychain 中的 identity,未进入 npm / GitHub 发布。组件签名 helper 现在与原主 App 一样临时加入签名 keychain 并恢复原搜索列表;模拟 CI keychain 的成功 / 失败路径回归通过,不修改本机真实 keychain。修复后更新尚未发布的 v1.1.0 tag 并重跑。修正搜索列表后 CI 完成组件签名与插件 ABI,随后 kernel verifier 正例被拒绝;本机同一正负例仍通过。新增仅链接到构建诊断程序的逐项 requirement 位图与签名用途输出,定位 CI 分类 / 标志差异;生产插件 verifier 不变。诊断运行不发布 npm 或 GitHub Release,待查明后再更新 tag。++CI 诊断确认 Developer ID 分类、team、运行时均通过,仅 CS_REQUIRE_LV 缺失(failedChecks=64)。主 App 与 Locked Use 组件签名显式使用 runtime,library,避免不同宿主环境对隐式 library validation 的差异;不放宽生产进程 requirement。diff --git a/docs/releases/RELEASE_GUIDE.md b/docs/releases/RELEASE_GUIDE.mdindex d7e8162..31e8cee 100644--- a/docs/releases/RELEASE_GUIDE.md+++ b/docs/releases/RELEASE_GUIDE.md@@ -223,3 +223,5 @@ git push origin :refs/tags/v0.1.14如果一次 release 暴露出新的流程坑,就不要只在聊天里记住,直接补进这份文档。Locked Use 组件签名同样必须在 CI 临时 signing keychain 可搜索的上下文中执行;仅传 codesign --keychain 不能替代现有的临时搜索列表处理。helper 在成功和失败时均恢复列表,scripts/tests/locked-use-signing.test.sh 用模拟 keychain 回归此边界,不触碰真实用户 keychain。++主 App 与 Locked Use 组件显式以 `codesign --options runtime,library` 签名,确保运行时有 `CS_REQUIRE_LV`;仅启用 Hardened Runtime 不能替代进程校验要求的 Library Validation 标志。构建时 kernel verifier 正例必须通过,不能跳过或放宽生产 requirement。diff --git a/scripts/build-locked-use-components.sh b/scripts/build-locked-use-components.shindex 7ebbec6..7599629 100755--- a/scripts/build-locked-use-components.sh+++ b/scripts/build-locked-use-components.sh@@ -31,9 +31,9 @@ fimkdir -p "$output"locked_use_build_product OCULockService "$output/OCULockService"locked_use_build_product OCULockInstaller "$output/OCULockInstaller"-locked_use_sign --force --options runtime --timestamp --identifier dev.opencomputeruse.locked-use.installer \+locked_use_sign --force --options runtime,library --timestamp --identifier dev.opencomputeruse.locked-use.installer \--sign "$identity" "$output/OCULockInstaller"-locked_use_sign --force --options runtime --timestamp --identifier dev.opencomputeruse.locked-use.broker \+locked_use_sign --force --options runtime,library --timestamp --identifier dev.opencomputeruse.locked-use.broker \--sign "$identity" "$output/OCULockService"team="$(codesign -dv --verbose=4 "$output/OCULockService" 2>&1 | sed -n 's/^TeamIdentifier=//p')"if [[ ! "$team" =~ ^[A-Z0-9]{10}$ ]]; then echo 'Developer ID team unavailable.' >&2; exit 1; fi@@ -77,7 +77,7 @@ cat > "$bundle/Contents/Info.plist" <<PLIST<key>CFBundleShortVersionString</key><string>${locked_use_version}</string></dict></plist>PLIST-locked_use_sign --force --options runtime --timestamp --sign "$identity" "$bundle"+locked_use_sign --force --options runtime,library --timestamp --sign "$identity" "$bundle"codesign --verify --strict "$bundle"codesign --verify --strict "$output/OCULockService"if [[ " ${architectures[*]} " == *" $native_arch "* ]]; then@@ -95,7 +95,7 @@ xcrun swiftc -parse-as-library -emit-object -target "$native_arch-apple-macos14.-o "$test_output/task-verifier-diagnostics.o"xcrun swiftc -target "$native_arch-apple-macos14.0" "$test_output/task-verifier-diagnostics.o" "$test_output/task-verifier-tests.o" "$output/plugin-$native_arch/task-verifier.o" \-o "$test_output/task-verifier-tests"-locked_use_sign --force --options runtime --timestamp --identifier dev.opencomputeruse.locked-use.broker \+locked_use_sign --force --options runtime,library --timestamp --identifier dev.opencomputeruse.locked-use.broker \--sign "$identity" "$test_output/task-verifier-tests"authority="$(codesign -dv --verbose=4 "$test_output/task-verifier-tests" 2>&1 | sed -n 's/^Authority=//p' | head -n 1)"if [[ "$authority" == 'Developer ID Application:'* ]]; then@@ -106,19 +106,19 @@ fi"$test_output/task-verifier-tests" matchrm -f "$test_output/task-verifier-wrong-id"cp "$test_output/task-verifier-tests" "$test_output/task-verifier-wrong-id"-locked_use_sign --force --options runtime --timestamp --identifier dev.opencomputeruse.locked-use.wrong \+locked_use_sign --force --options runtime,library --timestamp --identifier dev.opencomputeruse.locked-use.wrong \--sign "$identity" "$test_output/task-verifier-wrong-id""$test_output/task-verifier-wrong-id" rejectrm -f "$test_output/task-verifier-adhoc"cp "$test_output/task-verifier-tests" "$test_output/task-verifier-adhoc"-locked_use_sign --force --options runtime --identifier dev.opencomputeruse.locked-use.broker --sign - "$test_output/task-verifier-adhoc"+locked_use_sign --force --options runtime,library --identifier dev.opencomputeruse.locked-use.broker --sign - "$test_output/task-verifier-adhoc""$test_output/task-verifier-adhoc" rejectcat > "$test_output/task-verifier-debug.plist" <<PLIST<plist version="1.0"><dict><key>com.apple.security.get-task-allow</key><true/></dict></plist>PLISTrm -f "$test_output/task-verifier-debug"cp "$test_output/task-verifier-tests" "$test_output/task-verifier-debug"-locked_use_sign --force --options runtime --timestamp --identifier dev.opencomputeruse.locked-use.broker \+locked_use_sign --force --options runtime,library --timestamp --identifier dev.opencomputeruse.locked-use.broker \--entitlements "$test_output/task-verifier-debug.plist" --sign "$identity" "$test_output/task-verifier-debug""$test_output/task-verifier-debug" rejectelse@@ -143,6 +143,6 @@ cat > "$fixture/Contents/Info.plist" <<PLIST<key>NSPrincipalClass</key><string>NSApplication</string></dict></plist>PLIST-locked_use_sign --force --options runtime --timestamp --sign "$identity" "$fixture"+locked_use_sign --force --options runtime,library --timestamp --sign "$identity" "$fixture"fidiff --git a/scripts/build-locked-use-guardian.sh b/scripts/build-locked-use-guardian.shindex b01ed85..99e4018 100755--- a/scripts/build-locked-use-guardian.sh+++ b/scripts/build-locked-use-guardian.sh@@ -45,7 +45,7 @@ PLISTif [[ "$identity" == "-" ]]; thenlocked_use_sign --force --sign - "$app_path"else- locked_use_sign --force --options runtime --timestamp --sign "$identity" "$app_path"+ locked_use_sign --force --options runtime,library --timestamp --sign "$identity" "$app_path"ficodesign --verify --strict "$app_path"printf '%s\n' "$app_path"diff --git a/scripts/build-open-computer-use-app.sh b/scripts/build-open-computer-use-app.shindex f509682..866d3b0 100755--- a/scripts/build-open-computer-use-app.sh+++ b/scripts/build-open-computer-use-app.sh@@ -219,7 +219,7 @@ codesign_app_bundle() {fiif [[ "${identity}" != "-" ]]; then- args+=(--options runtime)+ args+=(--options runtime,library)fiif [[ -n "${OPEN_COMPUTER_USE_PROVISIONING_PROFILE:-}" ]]; thenif [[ "${identity}" == "-" ]]; then