惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
WordPress大学
WordPress大学
小众软件
小众软件
云风的 BLOG
云风的 BLOG
IT之家
IT之家
人人都是产品经理
人人都是产品经理
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
宝玉的分享
宝玉的分享
博客园 - Franky
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
D
Docker
博客园 - 聂微东
C
Check Point Blog
H
Help Net Security

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: preserve Google Gemini 3 cron thinking (#85300) · op...
clawsweeper · 2026-05-22 · via Recent Commits to openclaw:main

@@ -6,6 +6,7 @@ export const MOCK_ONLY_PROOF_LABEL = "triage: mock-only-proof";

66

export const MAINTAINER_TEAM_SLUG = "maintainer";

7788

export const CLAWSWEEPER_PROOF_VERDICT_STATUS = "clawsweeper_exact_head_pass";

9+

const CLAWSWEEPER_BOT_LOGINS = new Set(["clawsweeper[bot]", "openclaw-clawsweeper[bot]"]);

9101011

const privilegedAuthorAssociations = new Set(["OWNER", "MEMBER", "COLLABORATOR"]);

1112

@@ -142,11 +143,10 @@ export async function isMaintainerTeamMember({

142143

return body?.state === "active";

143144

}

144145145-

export function extractRealBehaviorProofSection(body = "") {

146+

function extractMarkdownSection(headingRegex, body = "") {

146147

// Normalize CRLF → LF so regexes and section slicing see GitHub web-editor PR

147148

// bodies the same way as locally-authored Markdown.

148149

const normalizedBody = normalizeLineEndings(body);

149-

const headingRegex = /^#{2,6}\s+real behavior proof\b[^\n]*$/gim;

150150

const match = headingRegex.exec(normalizedBody);

151151

if (!match) {

152152

return "";

@@ -157,6 +157,14 @@ export function extractRealBehaviorProofSection(body = "") {

157157

return (nextHeading ? rest.slice(0, nextHeading.index) : rest).trim();

158158

}

159159160+

export function extractRealBehaviorProofSection(body = "") {

161+

return extractMarkdownSection(/^#{2,6}\s+real behavior proof\b[^\n]*$/im, body);

162+

}

163+164+

function extractOutOfScopeFollowUpsSection(body = "") {

165+

return extractMarkdownSection(/^#{2,6}\s+out-of-scope follow-ups\b[^\n]*$/im, body);

166+

}

167+160168

function fieldLineRegex(name) {

161169

return new RegExp(

162170

`^\\s*(?:[-*]\\s*)?(?:\\*\\*)?${escapeRegex(name)}(?:\\s*\\([^)]*\\))?(?:\\*\\*)?\\s*:\\s*(.*)$`,

@@ -246,7 +254,14 @@ function isTrustedClawSweeperComment(comment) {

246254

const appSlug = String(

247255

comment?.performed_via_github_app?.slug ?? comment?.performedViaGithubApp?.slug ?? "",

248256

).toLowerCase();

249-

return appSlug === "clawsweeper";

257+

if (appSlug === "clawsweeper") {

258+

return true;

259+

}

260+

// GitHub can omit performed_via_github_app on issue comments while still

261+

// returning a reserved ClawSweeper App bot identity.

262+

const login = String(comment?.user?.login ?? "").toLowerCase();

263+

const userType = String(comment?.user?.type ?? "");

264+

return CLAWSWEEPER_BOT_LOGINS.has(login) && userType === "Bot";

250265

}

251266252267

export function hasClawSweeperExactHeadProof({ pullRequest, comments = [] } = {}) {

@@ -292,7 +307,8 @@ export function evaluateRealBehaviorProof({ pullRequest, labels } = {}) {

292307

return result("skipped", "Maintainer, collaborator, or bot PRs do not require this gate.");

293308

}

294309295-

const section = extractRealBehaviorProofSection(pullRequest?.body ?? "");

310+

const body = pullRequest?.body ?? "";

311+

const section = extractRealBehaviorProofSection(body);

296312

if (!section) {

297313

return result(

298314

"missing",

@@ -303,6 +319,9 @@ export function evaluateRealBehaviorProof({ pullRequest, labels } = {}) {

303319

const fields = Object.fromEntries(

304320

requiredProofFields.map((field) => [field.key, extractFieldValue(section, field)]),

305321

);

322+

if (!fields.notTested) {

323+

fields.notTested = extractOutOfScopeFollowUpsSection(body);

324+

}

306325

const missingFields = requiredProofFields

307326

.filter((field) => isMissingValue(fields[field.key] ?? "", field))

308327

.map((field) => field.key);