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

推荐订阅源

H
Help Net Security
腾讯CDC
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
V
V2EX
Blog — PlanetScale
Blog — PlanetScale
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
量子位
F
Fortinet All Blogs
G
Google Developers Blog
T
The Blog of Author Tim Ferriss
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
J
Java Code Geeks
S
SegmentFault 最新的问题
D
Docker
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
M
MIT News - Artificial intelligence
博客园 - 【当耐特】

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
docs: clarify maturity scorecard scoring (#96594) · openc...
RomneyDa · 2026-06-25 · via Recent Commits to openclaw:main

@@ -3,11 +3,32 @@ import { spawnSync } from "node:child_process";

33

import fs from "node:fs";

44

import path from "node:path";

55

import { afterEach, describe, expect, it } from "vitest";

6+

import { parse as parseYaml } from "yaml";

67

import { createTempDirTracker } from "../helpers/temp-dir.js";

7889

const repoRoot = path.resolve(__dirname, "../..");

910

const tempDirs = createTempDirTracker();

101112+

type TaxonomyFixture = {

13+

surfaces?: TaxonomySurfaceFixture[];

14+

};

15+16+

type TaxonomySurfaceFixture = {

17+

id?: string;

18+

status?: string;

19+

categories?: TaxonomyCategoryFixture[];

20+

};

21+22+

type TaxonomyCategoryFixture = {

23+

id?: string;

24+

name?: string;

25+

features?: TaxonomyFeatureFixture[];

26+

};

27+28+

type TaxonomyFeatureFixture = {

29+

coverageIds?: string[];

30+

};

31+1132

afterEach(() => {

1233

tempDirs.cleanup();

1334

});

@@ -26,7 +47,33 @@ function runCli(...args: string[]) {

2647

function writeQaEvidence(params: {

2748

dir: string;

2849

entries: Array<{ id: string; status: "pass" | "fail" | "blocked" | "skipped" }>;

50+

scorecard?: unknown;

2951

}) {

52+

const scorecard = params.scorecard ?? {

53+

filters: { surface: null, category: null },

54+

run: { evidenceEntryCount: params.entries.length },

55+

categories: {

56+

total: 0,

57+

fulfilled: 0,

58+

partial: 0,

59+

missing: 0,

60+

fulfillmentPercent: 0,

61+

},

62+

features: {

63+

total: 0,

64+

fulfilled: 0,

65+

partial: 0,

66+

missing: 0,

67+

fulfillmentPercent: 0,

68+

},

69+

coverageIds: {

70+

total: 0,

71+

fulfilled: 0,

72+

missing: 0,

73+

fulfillmentPercent: 0,

74+

},

75+

categoryReports: [],

76+

};

3077

fs.mkdirSync(params.dir, { recursive: true });

3178

fs.writeFileSync(

3279

path.join(params.dir, "qa-evidence.json"),

@@ -47,31 +94,7 @@ function writeQaEvidence(params: {

4794

coverage: [{ id: "tools.evidence", role: "primary" }],

4895

result: { status: entry.status },

4996

})),

50-

scorecard: {

51-

filters: { surface: null, category: null },

52-

run: { evidenceEntryCount: params.entries.length },

53-

categories: {

54-

total: 0,

55-

fulfilled: 0,

56-

partial: 0,

57-

missing: 0,

58-

fulfillmentPercent: 0,

59-

},

60-

features: {

61-

total: 0,

62-

fulfilled: 0,

63-

partial: 0,

64-

missing: 0,

65-

fulfillmentPercent: 0,

66-

},

67-

coverageIds: {

68-

total: 0,

69-

fulfilled: 0,

70-

missing: 0,

71-

fulfillmentPercent: 0,

72-

},

73-

categoryReports: [],

74-

},

97+

scorecard,

7598

},

7699

null,

77100

2,

@@ -80,6 +103,73 @@ function writeQaEvidence(params: {

80103

);

81104

}

82105106+

function allProfileScorecardFixture() {

107+

const taxonomy = parseYaml(

108+

fs.readFileSync(path.join(repoRoot, "taxonomy.yaml"), "utf8"),

109+

) as TaxonomyFixture;

110+

const activeSurfaces = (taxonomy.surfaces ?? []).filter(

111+

(surface) => surface.status !== "retired",

112+

);

113+

const categoryReports = activeSurfaces.flatMap((surface) =>

114+

(surface.categories ?? []).map((category) => {

115+

const coverageIds = [

116+

...new Set((category.features ?? []).flatMap((feature) => feature.coverageIds ?? [])),

117+

].sort();

118+

return {

119+

id: `${surface.id}.${category.id}`,

120+

surfaceId: surface.id,

121+

name: category.name,

122+

status: "missing",

123+

features: {

124+

total: category.features.length,

125+

fulfilled: 0,

126+

partial: 0,

127+

missing: category.features.length,

128+

fulfillmentPercent: 0,

129+

},

130+

coverageIds: {

131+

total: coverageIds.length,

132+

fulfilled: 0,

133+

missing: coverageIds.length,

134+

fulfillmentPercent: 0,

135+

secondaryOnly: 0,

136+

},

137+

missingCoverageIds: coverageIds,

138+

};

139+

}),

140+

);

141+

const featureCount = categoryReports.reduce((count, report) => count + report.features.total, 0);

142+

const coverageIdCount = categoryReports.reduce(

143+

(count, report) => count + report.coverageIds.total,

144+

0,

145+

);

146+

return {

147+

filters: { surface: null, category: null },

148+

run: { evidenceEntryCount: 1 },

149+

categories: {

150+

total: categoryReports.length,

151+

fulfilled: 0,

152+

partial: 0,

153+

missing: categoryReports.length,

154+

fulfillmentPercent: 0,

155+

},

156+

features: {

157+

total: featureCount,

158+

fulfilled: 0,

159+

partial: 0,

160+

missing: featureCount,

161+

fulfillmentPercent: 0,

162+

},

163+

coverageIds: {

164+

total: coverageIdCount,

165+

fulfilled: 0,

166+

missing: coverageIdCount,

167+

fulfillmentPercent: 0,

168+

},

169+

categoryReports,

170+

};

171+

}

172+83173

describe("maturity docs renderer CLI", () => {

84174

it("checks maturity inputs without requiring QA evidence artifacts", () => {

85175

const result = runCli("--check");

@@ -113,13 +203,7 @@ describe("maturity docs renderer CLI", () => {

113203

],

114204

});

115205116-

const result = runCli(

117-

"--output-dir",

118-

outputDir,

119-

"--evidence-dir",

120-

evidenceDir,

121-

"--strict-inputs",

122-

);

206+

const result = runCli("--output-dir", outputDir, "--evidence-dir", evidenceDir);

123207124208

expect(result.status).toBe(1);

125209

expect(result.stdout).toBe("");

@@ -147,4 +231,23 @@ describe("maturity docs renderer CLI", () => {

147231

expect(scorecard).not.toContain("0 failed");

148232

expect(scorecard).not.toContain("0 blocked");

149233

});

234+235+

it("renders the maturity score from quality and completeness without coverage", () => {

236+

const outputDir = tempDirs.make("openclaw-maturity-docs-output-");

237+

const evidenceDir = tempDirs.make("openclaw-maturity-docs-evidence-");

238+

writeQaEvidence({

239+

dir: evidenceDir,

240+

entries: [{ id: "passing-scenario", status: "pass" }],

241+

scorecard: allProfileScorecardFixture(),

242+

});

243+244+

const result = runCli("--output-dir", outputDir, "--evidence-dir", evidenceDir);

245+246+

expect(result.status).toBe(0);

247+

const scorecard = fs.readFileSync(path.join(outputDir, "maturity", "scorecard.md"), "utf8");

248+

expect(scorecard).toContain("<span>Maturity score</span>");

249+

expect(scorecard).toContain('<span className="maturity-summary-value">67%</span>');

250+

expect(scorecard).toContain("Coverage Experimental - 0%");

251+

expect(scorecard).toContain("end-to-end coverage above 90%");

252+

});

150253

});