Skip to content

fix: close P0/P1 safety and reliability gaps - #531

Closed
Panniantong wants to merge 8 commits into
mainfrom
codex/p0-p1-hardening-20260725
Closed

fix: close P0/P1 safety and reliability gaps#531
Panniantong wants to merge 8 commits into
mainfrom
codex/p0-p1-hardening-20260725

Conversation

@Panniantong

Copy link
Copy Markdown
Owner

结果

从最新 origin/main 重新实现并收口当前 P0/P1,不搬运已过时或冲突的旧 PR。默认行为更安全,凭据与外部内容边界更明确,Windows/V2EX 假故障得到修复,并准备 1.6.0(本 PR 不创建 GitHub Release)。

主要改动

  • agent-reach install 默认改为只检查;必须显式 --system 才允许全局安装和配置写入
  • 即使显式授权,也不再执行远程 setup 脚本或自动写 apt 软件源
  • Twitter Cookie 支持 --stdin,生成 0600 的 ~/.agent-reach/twitter.env,输出不包含秘密值的加载命令
  • Exa、LinkedIn、集成脚本和 Agent 指令改为当前真实可用的命令;外部内容明确视为不可信数据
  • 通用网页读取拒绝本机/内网/带凭据 URL,并限制响应大小
  • 音频转写默认不跨服务商发送;只有 --allow-provider-fallback 才允许第二家兜底;小宇宙脚本增加大小、时长、切片和超时上限
  • Windows 子进程执行系统解析出的 .CMD/可执行文件真实路径
  • V2EX 先用 requests,只在 TLS EOF 类错误时用系统 curl 重试,避免 Doctor 假告警
  • 三处版本统一为 1.6.0,补齐 Changelog 和可构建 wheel

验证

  • pytest tests/ -q:462 passed(Python 3.10、3.12、3.13 均全绿)
  • ruff check agent_reach tests:0 errors
  • bash test.sh:全新临时环境安装、完整测试、默认安全安装、显式 dry-run、Doctor JSON、渠道路由全部通过
  • wheel:成功构建 agent_reach-1.6.0-py3-none-any.whl
  • 真实 V2EX API:返回热门主题,V2EXChannel().check()ok
  • Windows .CMD 路径:用 Windows 风格绝对路径回归测试覆盖

Closes #506
Closes #514
Closes #523

@Panniantong

Copy link
Copy Markdown
Owner Author

该历史 P0 和 P1 大包现已由 merged #530#575#576#577 分层替代,并在最新组合基线上通过 570 项测试。剩余工作应继续使用聚焦小 PR,因此关闭此旧集成分支。

@Panniantong Panniantong closed this Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant