Repository navigation
feat(browser): operator-declared origins for scoped ask/auto sessions — ADR 0195 Phase 4 CLI slice(含 OCR delegate 复审) - #541
Closed
Qiyuanqiii wants to merge 0 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Qiyuanqiii
force-pushed
the
feat/agent-browser-origin-scope
branch
from
November 5, 2026 23:41
9be146f to
bab65dc
Compare
Qiyuanqiii
force-pushed
the
feat/browser-scoped-sessions
branch
from
November 5, 2026 23:44
3977294 to
bab65dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
动机
ADR 0195 Phase 4 第一片(CLI-only):让 ask/auto Run 拥有操作者声明的 scoped 浏览器会话——对标 Codex in-app browser 的站点级授权,第一次端到端点亮 Phase 1 的执法管道。本 PR 堆叠在 #538(Phase 1,已 CI 全绿)之上,base 设为其分支;#538 合并后 base 自动跟随 main。
内容(10 文件 +225/-5)
RunConfig.BrowserOrigins:创建时钉死的受信操作者输入(1..8 精确 origin,经共享 scope 语法 canonical 化,fail-closed),与不可信.prayu快照严格分离;线程后继继承(多轮对话保持边界)、fork/resume/branch 永不从 continuity 重建(对称既有 NotInherited 语义)、项目移动跟随重建的 Run。currentAuthorityscoped 分支:ask/auto + 声明 → scoped 权威(DeclaredOrigins 取 scope 规范化串 + ScopeFingerprint);所有其他模式的拒绝面与 Phase 1 逐字节一致,Full 保持 unscoped 并忽略声明。Capabilities暴露DeclaredOrigins(live view 投影随 Desktop 落地)。MatchesOrigin纯成员判断、无解析),navigate 的双重执法必然兜底。run create --browser-origin(重复旗标,reorderFlags 登记),错误 fail-closed 进 stderr。测试
normalizeBrowserOrigins规范化矩阵TestThreadSuccessorInheritsBrowserOrigins)评审
OCR delegate 复审(9 项专项核对 + 7 项发现全部处置):currentAuthority 拆分后非 ask/auto/full 模式的拒绝面逐字节一致;scoped 权威全链 Equal 稳定(PermissionActivation=0 链自洽);声明三层独立重建比对指纹;继承矩阵测试与文档固化。记录:docs/reviews/browser-origin-declaration/。
关联