Repository navigation
Fix bootstrap guidance and verified repository audit findings - #9113
Conversation
Signed-off-by: Codex <codex@users.noreply.github.com>
Signed-off-by: Codex <codex@users.noreply.github.com>
Signed-off-by: Codex <codex@users.noreply.github.com>
Signed-off-by: Codex <codex@users.noreply.github.com>
Signed-off-by: Codex <codex@users.noreply.github.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent | gpt-6.1-sol | OpenAI | runtime_reported | low
动机 / Motivation
使用 CLI 创建或重连 Goal、按文档安装 Workbench,或在浏览器体验 demo 的用户。bootstrap 被拒绝时,旧默认输出缺少失败原因;新输出直接说明原错误。stdin 安装器的 --help 原先读取不存在的脚本路径,新入口直接输出帮助;已连接页面不再因 DemoApi 静态引用而把示例数据塞进入口包。用户可在原入口理解失败并修正输入,stdin 帮助无需落盘,demo 图片和页面在首次访问时仍可读取。不迁移现有 Goal、不改创建权限或存储默认、不安装当前用户服务、不运行真实 benchmark,也不宣称已部署 UI。这几处属于入口可用性和已有审计问题,价值在于用户能在原任务路径排障,不能把清理行数或测试数量当成装机验收。
规格参照基点 8e9a28a866da06cc6fd63e78709910fe35dad564 的 apps/workbench/docs/install-agent.md:install-preview、preserve-existing-install、core-boundary 三项分别要求 dry-run 无安装效果、更新保留配置并保护其他服务,以及 Core 独立安装。本次文档自身被编辑的描述另与既有 typed storage owner 和真实隔离测试核对,未用修改后文档自证。
改动思路 / Approach
三个修复保留原 owner:bootstrap renderer 解释现有 payload,installer 的 usage 只负责静态帮助,DemoApi 在已有 demo 边界动态加载数据;未建立平行决策层。本 PR 的边界是这些已验证仓库审计问题和相应文档/未用名称清理。存储说明去掉已经过时的 candidate/opt-in 描述,依据是基点已存在的新Goal创建代码和测试,而非本次更改默认。已有Goal保持原target;保存v0/禁用创建配置可读取,与允许新创建是两件事。
演示数据沿原 DemoApi 的模块边界按需读取,未引入新的配置或缓存owner;帮助在已有flag parser中处理,避免为stdin路径另建安装器。AGENTS只移除不存在文档入口,三原则、文件只读和不干扰Agent目录等约束保留。
具体改动 / Changes
在 93c1b52eae1e86f9bd31ca83dfb8aa6eb683e031,render_bootstrap_markdown 输出原payload的非空error,成功输出与基点逐字相同。guided renderer仅把 bootstrap 标签写成 bootstrap --force,对应原 force_bootstrap_default;重连前保留Todo及scope迁移句子逐字保留。冲突fork的真实sourceCLI返回exit1,stdout包含原拒绝原因。
Workbench usage 改用literal heredoc,stdin/file调用共用,help在安装前退出。离线真实脚本12项测试覆盖首次安装、更新保留token/data、本地编辑保护、其他checkout服务、dry-run和卸载;外部npm/systemd为隔离fixture,不触碰真实服务。
DemoApi.threadFile/previewLink 各自await同一个data模块,保留SVG Blob、HTML/SVG dataURI和missing-file拒绝,8项demo测试通过,web类型检查和Vite生产构建通过;data成为独立36.23kB块。未将构建分块等同于真实浏览器下载时机验证。
Workbench README修正env路径、发布检查命令和 update-hosts --check 的候选版本行为,删除不存在的站点/截图/说明链接;双语storage说明与已实现的SQLite/hard_lease新Goal默认对齐。另删benchmark/example/test未用导入和局部名称,未改采样、评分或执行路径,变更Python编译通过。新Goal存储68项隔离测试通过,覆盖创建、重试、已有Todo和默认变化不改旧target;sourceCLI/platform另12 passed、1 skipped。
对主干的风险 / Risks
最需防的是把展示修复变成权限放宽,或懒加载导致首次读取失败。对照确认成功renderer无变化,force其余保留规则未变;首次读取图片/HTML、missingSVG和demo拒绝写路径均通过。既有存储owner和installer执行分支未改变,没有新持久状态或迁移。
quick premerge四个直接检查、编译、packaged-install/update与public-boundary通过;install-local-smoke.py 失败。相同命令在immutable base和本head均在line517因同一技能短语断言失败,相关skill树、installer和smoke无diff;因此归为已有无关失败,保留失败而不称全绿。独立Workbench installer验证已通过。依Goal策略未查询CI。本轮不据这一结果执行合并。
我的整体评价 / Verdict
APPROVE,未发现本head新增的阻断缺陷。三个修复保留原 owner:bootstrap renderer 解释现有 payload,installer 的 usage 只负责静态帮助,DemoApi 在已有 demo 边界动态加载数据;未建立平行决策层。本 PR 的边界是这些已验证仓库审计问题和相应文档/未用名称清理。install-preview、preserve-existing-install、core-boundary 有对应路径证据。已有技能文本断言失败是单独的合并验证保留项,不由本次展示/帮助修复承担修补;也没有放宽测试或删除断言。
没有修改组件、样式、布局或 demo 数据内容;DemoApi 仅改变加载时间,CLI 默认错误文本不需要网页截图。未重新进行真实浏览器的桌面/手机及明暗主题视觉验收;构建证明分块,未据此声称已验证实际浏览器下载时机或安装后体验。恢复RFC的历史经验用于提醒区分实际任务结果和配置/测试活动,不证明已验收安装后的产品旅程。代码留在原owner,未为这组修复增设协议或公共状态;进一步拆通用抽象目前没有实际调用需求。
English verdict: APPROVE — 93c1b52; bootstrap diagnostics, stdin help and lazy demo reads are validated with preserved authority and existing-state behavior. The same install-local skill-text assertion fails on base and head and remains a separate merge hold; no installed/browser qualification is claimed.
Changes
Validation
Base:
8e9a28a866da06cc6fd63e78709910fe35dad564. The bootstrap refactor in #8891 overlaps one renderer. This patch corrects the displayed flag on that surface.