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

推荐订阅源

宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
爱范儿
爱范儿
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
Jina AI
Jina AI
博客园 - 叶小钗
雷峰网
雷峰网
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
量子位

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
chore: add positive proof labels (#78117) · openclaw/open...
pashpashpash · 2026-05-06 · via Recent Commits to openclaw:main

@@ -5,6 +5,10 @@ import {

55

managedLabelSpecs,

66

runBarnacleAutoResponse,

77

} from "../../scripts/github/barnacle-auto-response.mjs";

8+

import {

9+

PROOF_SUFFICIENT_LABEL,

10+

PROOF_SUPPLIED_LABEL,

11+

} from "../../scripts/github/real-behavior-proof-policy.mjs";

812913

const blankTemplateBody = [

1014

"## Summary",

@@ -227,6 +231,8 @@ describe("barnacle-auto-response", () => {

227231

expect(managedLabelSpecs["r: false-positive"].description).toContain("false positive");

228232

expect(managedLabelSpecs["r: third-party-extension"].description).toContain("ClawHub");

229233

expect(managedLabelSpecs["r: too-many-prs"].description).toContain("twenty active PRs");

234+

expect(managedLabelSpecs[PROOF_SUPPLIED_LABEL].color).toBe("C2E0C6");

235+

expect(managedLabelSpecs[PROOF_SUFFICIENT_LABEL].color).toBe("0E8A16");

230236231237

for (const label of Object.values(candidateLabels)) {

232238

expect(managedLabelSpecs[label]).toBeDefined();

@@ -283,7 +289,7 @@ describe("barnacle-auto-response", () => {

283289

expect(labels).not.toContain(candidateLabels.needsRealBehaviorProof);

284290

});

285291286-

it("does not label external PRs that include real behavior proof", () => {

292+

it("labels external PRs that include real behavior proof as supplied", () => {

287293

const labels = classifyPullRequestCandidateLabels(

288294

pr(

289295

"Fix gateway startup",

@@ -292,6 +298,23 @@ describe("barnacle-auto-response", () => {

292298

[file("src/gateway/server.ts")],

293299

);

294300301+

expect(labels).toContain(PROOF_SUPPLIED_LABEL);

302+

expect(labels).not.toContain(candidateLabels.needsRealBehaviorProof);

303+

expect(labels).not.toContain(candidateLabels.mockOnlyProof);

304+

});

305+306+

it("labels CRLF-formatted external PRs with screenshot proof as supplied", () => {

307+

const labels = classifyPullRequestCandidateLabels(

308+

pr(

309+

"Fix gateway startup",

310+

realBehaviorProofBody(

311+

"![after](https://github.com/user-attachments/assets/gateway-ready)",

312+

).replace(/\n/g, "\r\n"),

313+

),

314+

[file("src/gateway/server.ts")],

315+

);

316+317+

expect(labels).toContain(PROOF_SUPPLIED_LABEL);

295318

expect(labels).not.toContain(candidateLabels.needsRealBehaviorProof);

296319

expect(labels).not.toContain(candidateLabels.mockOnlyProof);

297320

});

@@ -662,18 +685,115 @@ describe("barnacle-auto-response", () => {

662685663686

await runBarnacleAutoResponse({

664687

github,

665-

context: barnacleContext({}, [candidateLabels.needsRealBehaviorProof, "proof: override"]),

688+

context: barnacleContext({}, [

689+

candidateLabels.needsRealBehaviorProof,

690+

candidateLabels.mockOnlyProof,

691+

PROOF_SUPPLIED_LABEL,

692+

PROOF_SUFFICIENT_LABEL,

693+

"proof: override",

694+

]),

666695

core: {

667696

info: () => undefined,

668697

},

669698

});

670699671-

expect(calls.removeLabel).toContainEqual(

672-

expect.objectContaining({ name: candidateLabels.needsRealBehaviorProof }),

700+

expect(calls.removeLabel.map((call) => call.name)).toEqual(

701+

expect.arrayContaining([

702+

candidateLabels.needsRealBehaviorProof,

703+

candidateLabels.mockOnlyProof,

704+

PROOF_SUPPLIED_LABEL,

705+

PROOF_SUFFICIENT_LABEL,

706+

]),

673707

);

674708

expect(calls.update).toEqual([]);

675709

});

676710711+

it("removes stale negative proof labels and adds supplied when proof is present", async () => {

712+

const { calls, github } = barnacleGithub([file("src/gateway/server.ts")]);

713+714+

await runBarnacleAutoResponse({

715+

github,

716+

context: barnacleContext(

717+

{

718+

body: realBehaviorProofBody(

719+

"![after](https://github.com/user-attachments/assets/gateway-ready)",

720+

),

721+

},

722+

[candidateLabels.needsRealBehaviorProof, candidateLabels.mockOnlyProof],

723+

),

724+

core: {

725+

info: () => undefined,

726+

},

727+

});

728+729+

expect(calls.removeLabel.map((call) => call.name)).toEqual(

730+

expect.arrayContaining([

731+

candidateLabels.needsRealBehaviorProof,

732+

candidateLabels.mockOnlyProof,

733+

]),

734+

);

735+

expect(calls.addLabels).toContainEqual(

736+

expect.objectContaining({

737+

labels: expect.arrayContaining([PROOF_SUPPLIED_LABEL]),

738+

}),

739+

);

740+

});

741+742+

it.each(["edited", "synchronize"])(

743+

"removes stale sufficient proof label after PR %s events",

744+

async (action) => {

745+

const { calls, github } = barnacleGithub([file("src/gateway/server.ts")]);

746+747+

await runBarnacleAutoResponse({

748+

github,

749+

context: barnacleContext(

750+

{

751+

body: realBehaviorProofBody(

752+

"![after](https://github.com/user-attachments/assets/gateway-ready)",

753+

),

754+

},

755+

[PROOF_SUPPLIED_LABEL, PROOF_SUFFICIENT_LABEL],

756+

{ action },

757+

),

758+

core: {

759+

info: () => undefined,

760+

},

761+

});

762+763+

expect(calls.removeLabel).toContainEqual(

764+

expect.objectContaining({ name: PROOF_SUFFICIENT_LABEL }),

765+

);

766+

},

767+

);

768+769+

it("preserves ClawSweeper's sufficient proof label on ordinary label events", async () => {

770+

const { calls, github } = barnacleGithub([file("src/gateway/server.ts")]);

771+772+

await runBarnacleAutoResponse({

773+

github,

774+

context: barnacleContext(

775+

{

776+

body: realBehaviorProofBody(

777+

"![after](https://github.com/user-attachments/assets/gateway-ready)",

778+

),

779+

},

780+

[PROOF_SUPPLIED_LABEL, PROOF_SUFFICIENT_LABEL],

781+

{

782+

action: "labeled",

783+

label: { name: PROOF_SUFFICIENT_LABEL },

784+

sender: { login: "openclaw-clawsweeper[bot]", type: "Bot" },

785+

},

786+

),

787+

core: {

788+

info: () => undefined,

789+

},

790+

});

791+792+

expect(calls.removeLabel).not.toContainEqual(

793+

expect.objectContaining({ name: PROOF_SUFFICIENT_LABEL }),

794+

);

795+

});

796+677797

it("actions manually applied candidate labels", async () => {

678798

const { calls, github } = barnacleGithub([file("extensions/example/openclaw.plugin.json")]);

679799