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

推荐订阅源

P
Proofpoint News Feed
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
C
Check Point Blog
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
Recent Announcements
Recent Announcements
L
LangChain Blog
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
J
Java Code Geeks
博客园_首页
Jina AI
Jina AI
美团技术团队
H
Help Net Security
MyScale Blog
MyScale Blog
Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
Y
Y Combinator Blog
S
SegmentFault 最新的问题

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
test(plugins): split kitchen sink qa personalities (#7461...
vincentkoc · 2026-04-30 · via Recent Commits to openclaw:main

@@ -87,11 +87,20 @@ function readConfig() {

87878888

function configureRuntime() {

8989

const pluginId = process.env.KITCHEN_SINK_ID;

90+

const personality = process.env.KITCHEN_SINK_PERSONALITY;

9091

const { configPath, config } = readConfig();

9192

config.plugins = config.plugins || {};

9293

config.plugins.entries = config.plugins.entries || {};

9394

config.plugins.entries[pluginId] = {

9495

...config.plugins.entries[pluginId],

96+

...(personality

97+

? {

98+

config: {

99+

...config.plugins.entries[pluginId]?.config,

100+

personality,

101+

},

102+

}

103+

: {}),

95104

hooks: {

96105

...config.plugins.entries[pluginId]?.hooks,

97106

allowConversationAccess: true,

@@ -124,6 +133,39 @@ const expectMissing = (listValue, expected, field) => {

124133

}

125134

};

126135136+

function assertExpectedDiagnostics(surfaceMode, errorMessages) {

137+

const expectedErrorMessages = new Set([

138+

"only bundled plugins can register agent tool result middleware",

139+

'agent harness "kitchen-sink-agent-harness" registration missing required runtime methods',

140+

'channel "kitchen-sink-channel-probe" registration missing required config helpers',

141+

"cli registration missing explicit commands metadata",

142+

"only bundled plugins can register Codex app-server extension factories",

143+

'compaction provider "kitchen-sink-compaction-provider" registration missing summarize',

144+

"context engine registration missing id",

145+

"http route registration missing or invalid auth: /kitchen-sink/http-route",

146+

"plugin must own memory slot or declare contracts.memoryEmbeddingProviders for adapter: kitchen-sink-memory-embedding-provider",

147+

"memory prompt supplement registration missing builder",

148+

]);

149+

if (surfaceMode !== "full" && surfaceMode !== "adversarial") {

150+

if (errorMessages.size > 0) {

151+

throw new Error(

152+

`unexpected kitchen-sink diagnostic errors: ${[...errorMessages].join(", ")}`,

153+

);

154+

}

155+

return;

156+

}

157+

for (const message of errorMessages) {

158+

if (!expectedErrorMessages.has(message)) {

159+

throw new Error(`unexpected kitchen-sink diagnostic error: ${message}`);

160+

}

161+

}

162+

for (const message of expectedErrorMessages) {

163+

if (!errorMessages.has(message)) {

164+

throw new Error(`missing expected kitchen-sink diagnostic error: ${message}`);

165+

}

166+

}

167+

}

168+127169

function assertRealPathInside(parentPath, childPath, label) {

128170

const parentRealPath = fs.realpathSync(parentPath);

129171

const childRealPath = fs.realpathSync(childPath);

@@ -181,8 +223,10 @@ function assertInstalled() {

181223

);

182224

}

183225184-

expectIncludes(inspect.plugin?.channelIds, "kitchen-sink-channel", "channels");

185-

expectIncludes(inspect.plugin?.providerIds, "kitchen-sink-provider", "providers");

226+

if (surfaceMode !== "adversarial") {

227+

expectIncludes(inspect.plugin?.channelIds, "kitchen-sink-channel", "channels");

228+

expectIncludes(inspect.plugin?.providerIds, "kitchen-sink-provider", "providers");

229+

}

186230187231

const diagnostics = [

188232

...(list.diagnostics || []),

@@ -193,7 +237,7 @@ function assertInstalled() {

193237

diagnostics.filter((diag) => diag?.level === "error").map((diag) => String(diag.message || "")),

194238

);

195239196-

if (surfaceMode === "full") {

240+

if (surfaceMode === "full" || surfaceMode === "conformance") {

197241

const toolNames = Array.isArray(inspect.tools)

198242

? inspect.tools.flatMap((entry) => (Array.isArray(entry?.names) ? entry.names : []))

199243

: [];

@@ -232,8 +276,13 @@ function assertInstalled() {

232276

}

233277

expectMissing(inspect.plugin?.agentHarnessIds, "kitchen-sink-agent-harness", "agent harnesses");

234278

expectIncludes(inspect.services, "kitchen-sink-service", "services");

235-

expectIncludes(inspect.commands, "kitchen-sink-command", "commands");

236-

expectIncludes(toolNames, "kitchen-sink-tool", "tools");

279+

if (surfaceMode === "full") {

280+

expectIncludes(inspect.commands, "kitchen-sink-command", "commands");

281+

expectIncludes(toolNames, "kitchen-sink-tool", "tools");

282+

} else {

283+

expectIncludes(inspect.commands, "kitchen", "commands");

284+

expectIncludes(toolNames, "kitchen_sink_text", "tools");

285+

}

237286

if (

238287

(inspect.plugin?.hookCount || 0) < 30 ||

239288

!Array.isArray(inspect.typedHooks) ||

@@ -243,32 +292,8 @@ function assertInstalled() {

243292

`expected kitchen-sink typed hooks to load, got hookCount=${inspect.plugin?.hookCount} typedHooks=${inspect.typedHooks?.length}`,

244293

);

245294

}

246-247-

const expectedErrorMessages = new Set([

248-

"only bundled plugins can register agent tool result middleware",

249-

'agent harness "kitchen-sink-agent-harness" registration missing required runtime methods',

250-

'channel "kitchen-sink-channel-probe" registration missing required config helpers',

251-

"cli registration missing explicit commands metadata",

252-

"only bundled plugins can register Codex app-server extension factories",

253-

'compaction provider "kitchen-sink-compaction-provider" registration missing summarize',

254-

"context engine registration missing id",

255-

"http route registration missing or invalid auth: /kitchen-sink/http-route",

256-

"plugin must own memory slot or declare contracts.memoryEmbeddingProviders for adapter: kitchen-sink-memory-embedding-provider",

257-

"memory prompt supplement registration missing builder",

258-

]);

259-

for (const message of errorMessages) {

260-

if (!expectedErrorMessages.has(message)) {

261-

throw new Error(`unexpected kitchen-sink diagnostic error: ${message}`);

262-

}

263-

}

264-

for (const message of expectedErrorMessages) {

265-

if (!errorMessages.has(message)) {

266-

throw new Error(`missing expected kitchen-sink diagnostic error: ${message}`);

267-

}

268-

}

269-

} else if (errorMessages.size > 0) {

270-

throw new Error(`unexpected kitchen-sink diagnostic errors: ${[...errorMessages].join(", ")}`);

271295

}

296+

assertExpectedDiagnostics(surfaceMode, errorMessages);

272297273298

const indexPath = path.join(process.env.HOME, ".openclaw", "plugins", "installs.json");

274299

const index = readJson(indexPath);