Skip to content

Harden script bridge and workflow governance - #25

Merged
generalio merged 9 commits into
mainfrom
generalio/fix/workflow-governance-hardening
Aug 18, 2026
Merged

Harden script bridge and workflow governance#25
generalio merged 9 commits into
mainfrom
generalio/fix/workflow-governance-hardening

Conversation

@generalio

@generalio generalio commented Aug 18, 2026

Copy link
Copy Markdown
Owner

目的

修复 JS 桥来源校验、可信主机可变集合、跨平台状态测试与工作流治理问题。

改动内容

  • 收紧 Android、iOS、Desktop 与 extension 的可信 HTTPS JS 桥来源和顶层框架边界。
  • 为可信主机集合建立不可变快照,补齐跨平台回归测试。
  • 将默认 Agent 编排收敛为 Planner、单一 Implementer、Integrator、Verify-Reviewer,并优化无默认交接文档的工作流。

平台影响

  • Android:受影响;验证证据:./gradlew :webview-android:assembleRelease :webview-android:compileDebugAndroidTestKotlin --no-parallel -Dorg.gradle.jvmargs=-Xmx2g 通过(退出码:0)。
  • iOS:受影响;验证证据:./gradlew :webview-ios:compileTestKotlinIosSimulatorArm64 --no-parallel -Dorg.gradle.jvmargs=-Xmx2g 通过(退出码:0);未执行 WKWebView runtime。
  • Desktop:受影响;验证证据:./gradlew :webview-desktop:check --no-parallel -Dorg.gradle.jvmargs=-Xmx2g 通过(退出码:0)。
  • JS/Wasm:受影响;验证证据:./gradlew :sample-compose:compileKotlinJs :sample-compose:compileKotlinWasmJs --no-parallel -Dorg.gradle.jvmargs=-Xmx2g 通过(退出码:0);未执行 browser runtime。

验证命令与结果

  • PYTHONDONTWRITEBYTECODE=1 python3 -m unittest tools.tests.test_agent_workflow -v:48 项通过。
  • git diff 4320a062d641c84c9ed5ec67e1af09551f62d430 3ba4d6d41c327650ace3555aebc832cce1e71275 --check:通过。
  • ./gradlew apiCheck :webview-android:assembleRelease :webview-android:compileDebugAndroidTestKotlin :webview-desktop:check :webview-ios:compileTestKotlinIosSimulatorArm64 :sample-compose:compileKotlinJs :sample-compose:compileKotlinWasmJs --no-parallel -Dorg.gradle.jvmargs=-Xmx2g:通过(退出码:0)。

风险与兼容性

  • 公共 API:受影响;验证证据:./gradlew apiCheck --no-parallel -Dorg.gradle.jvmargs=-Xmx2g 通过(退出码:0),API 基线未改;ExactHttpsHosts 保留构造、copycomponent1 与等值语义并收紧非法主机输入。
  • JS 桥仅收紧来源边界,未放宽 Cookie、文件访问、下载或外部导航权限。
  • 未执行 Android System WebView、WKWebView 与 JS/Wasm browser runtime;替代证据为 Android instrumentation Kotlin 编译、iOS 测试 Kotlin 编译与 JS/Wasm 编译通过。

文档变更

更新 AGENTS、工作流协议、任务模板和账本 README,说明无默认 handoffs、停止状态和最小角色编排规则。

Agent 工作流记录

  • 任务契约路径:.codex/workflow/runs/MW-20260818-005/task-contract.md
  • 候选提交 SHA:3ba4d6d41c327650ace3555aebc832cce1e71275
  • 账本验证:PASS
  • 审查裁决:PASS

Copilot AI lite review requested due to automatic review settings August 18, 2026 03:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@generalio
generalio merged commit 6c6c090 into main Aug 18, 2026
2 of 3 checks passed
@generalio
generalio deleted the generalio/fix/workflow-governance-hardening branch August 18, 2026 05:59
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.

2 participants