merge: bring ghbot-Nodeloc v2.0 into upstream

- Adopt nodeloc v2.0 reliability/observability work (MergeGuard, failureMessages,
  MetricsCollector, staleness, QueueStore, shared error helpers) and tests
- Keep upstream bilingual README convention (README.md + README-zh.md);
  port nodeloc's first-principles intro and v2.0 module notes into both
- Resolve doc conflicts in favor of upstream formatting where origin was
  formatting-only; drop the 计划与指南/ directory per maintainer request
This commit is contained in:
lezi-fun committed 2026-10-20 22:06:49 +08:00
commit 77eca8a915
44 files changed
+7021 -1073

No files matched your search

+10
View File
@@ -4,6 +4,16 @@
ghbot 是一个基于 GitHub Actions 和 goose 的仓库机器人,用于审核 Pull Request、分类 Issue/PR、提示可能的重复项、回答 PR 中的代码问题,并可按仓库策略自动合并。
## 第一性原理:为什么需要 ghbot?
**问题本质**:代码审查是人类协作中最耗时也最容易被跳过的环节。审查者没时间、贡献者等太久、合并后才发现问题——这是所有团队的通用痛点。
**核心矛盾**:代码审查需要"完整理解上下文"和"逐行检查逻辑",这两件事恰好是当代 LLM 最擅长的;但 LLM 需要被安全地接入到代码仓库的审查流程中,不能直接给它写权限。
**ghbot 的解法**:把 LLM(goose)嵌入到 GitHub Actions 的标准审查流水线中,用 GitHub 自身的权限系统做安全边界,让 AI 只读分析、不写代码、不触碰密钥。审查通过后,是否合并、何时合并、谁批准——仍然由仓库策略决定。
**一句话**:ghbot = 一个能看懂代码的机器人助手,帮你做代码审查的苦活累活,但钥匙在你手里。
## Pull Request 审核
goose 的审核结果固定包含四个顶层字段: