Skip to content

Commit f919d0c

Browse files
committed
Merge remote-tracking branch 'origin/main' into codex/harden-descendant-timeout-test
2 parents 83f508a + b91a33d commit f919d0c

103 files changed

Lines changed: 1878 additions & 1723 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs/gateway/doctor.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Flags:
149149
- Optional pre-flight update for git installs (interactive only).
150150
- UI protocol freshness check (rebuilds Control UI when the protocol schema is newer).
151151
- Health check + restart prompt.
152-
- Skills status summary (eligible/missing/blocked) and plugin status.
152+
- Problem-only skill and plugin notes; healthy inventory stays in `openclaw skills check` and `openclaw plugins list`.
153153

154154
</Accordion>
155155
<Accordion title="Config and migrations">
@@ -469,19 +469,20 @@ That stages grounded durable candidates into the short-term dreaming store while
469469

470470
</Accordion>
471471
<Accordion title="9. Security warnings">
472-
Doctor emits warnings when a provider is open to DMs without an allowlist, or when a policy is configured in a dangerous way.
472+
Doctor emits a Security note only when it finds a warning, such as a provider open to DMs without an allowlist or a dangerously configured policy. Use `openclaw security audit` for the full security inventory.
473473
</Accordion>
474474
<Accordion title="10. systemd linger (Linux)">
475475
If running as a systemd user service, doctor ensures lingering is enabled so the gateway stays alive after logout.
476476
</Accordion>
477477
<Accordion title="11. Workspace status (skills, plugins, and TaskFlows)">
478-
Doctor prints a summary of the workspace state for the default agent:
478+
Doctor prints problems and actions for the default agent, not healthy-state inventory:
479479

480-
- **Skills status**: counts eligible, missing-requirements, and allowlist-blocked skills.
481-
- **Plugin status**: counts enabled/disabled/errored plugins; lists plugin IDs for any errors; reports bundle plugin capabilities.
480+
- **Skills**: lists allowed but unusable skill names; use `openclaw skills check` for requirement details and full counts.
481+
- **Plugins**: reports only errored plugin IDs; use `openclaw plugins list` for loaded, imported, disabled, and bundle-plugin inventory.
482482
- **Plugin compatibility warnings**: flags plugins that have compatibility issues with the current runtime.
483483
- **Plugin diagnostics**: surfaces any load-time warnings or errors emitted by the plugin registry.
484484
- **TaskFlow recovery**: surfaces suspicious managed TaskFlows that need manual inspection or cancellation.
485+
- **Claude CLI**: reports only binary, authentication, profile, workspace, or project-directory problems; healthy probe details are omitted.
485486

486487
</Accordion>
487488
<Accordion title="11b. Bootstrap file size">

‎extensions/qa-lab/src/agentic-parity-report.test.ts‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,24 @@ import { describe, expect, it } from "vitest";
33
import {
44
buildQaAgenticParityComparison,
55
buildQaRuntimeParityReport,
6-
computeQaAgenticParityMetrics,
7-
QaParityLabelMismatchError,
86
renderQaAgenticParityMarkdownReport,
97
renderQaRuntimeParityMarkdownReport,
10-
type QaParityReportScenario,
118
type QaParitySuiteSummary,
129
type QaRuntimeParitySuiteSummary,
1310
} from "./agentic-parity-report.js";
1411

12+
type QaParityReportScenario = QaParitySuiteSummary["scenarios"][number];
13+
14+
function computeQaAgenticParityMetrics(summary: QaParitySuiteSummary) {
15+
const label = summary.run?.primaryProvider ?? "qa";
16+
return buildQaAgenticParityComparison({
17+
candidateLabel: label,
18+
baselineLabel: label,
19+
candidateSummary: summary,
20+
baselineSummary: summary,
21+
}).candidateMetrics;
22+
}
23+
1524
const FULL_PARITY_PASS_SCENARIOS: QaParityReportScenario[] = [
1625
{ name: "Approval turn tool followthrough", status: "pass" },
1726
{ name: "Compaction retry after mutating tool", status: "pass" },
@@ -664,7 +673,7 @@ status=done`,
664673
},
665674
comparedAt: "2026-04-11T00:00:00.000Z",
666675
}),
667-
).toThrow(QaParityLabelMismatchError);
676+
).toThrow("do not match --candidate-label");
668677
});
669678

670679
it("throws QaParityLabelMismatchError when the baseline run.primaryProvider does not match the label", () => {

‎extensions/qa-lab/src/agentic-parity-report.ts‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type QaParityReportStep = {
2121
details?: string;
2222
};
2323

24-
export type QaParityReportScenario = {
24+
type QaParityReportScenario = {
2525
name: string;
2626
status: "pass" | "fail" | "skip";
2727
details?: string;
@@ -194,9 +194,7 @@ function scenarioHasRuntimeToolCallEvidence(scenario: QaParityReportScenario): b
194194
);
195195
}
196196

197-
export function computeQaAgenticParityMetrics(
198-
summary: QaParitySuiteSummary,
199-
): QaAgenticParityMetrics {
197+
function computeQaAgenticParityMetrics(summary: QaParitySuiteSummary): QaAgenticParityMetrics {
200198
const scenarios = summary.scenarios.map((scenario) => ({
201199
...scenario,
202200
status: normalizeScenarioStatus(scenario.status),
@@ -398,7 +396,7 @@ function verifySummaryLabelMatch(params: {
398396
});
399397
}
400398

401-
export class QaParityLabelMismatchError extends Error {
399+
class QaParityLabelMismatchError extends Error {
402400
readonly role: "candidate" | "baseline";
403401
readonly label: string;
404402
readonly runProvider: string;

‎extensions/qa-lab/src/agentic-parity.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const QA_AGENTIC_PARITY_SCENARIOS = [
6666
},
6767
] as const;
6868

69-
export const QA_AGENTIC_PARITY_SCENARIO_IDS = QA_AGENTIC_PARITY_SCENARIOS.map(({ id }) => id);
69+
const QA_AGENTIC_PARITY_SCENARIO_IDS = QA_AGENTIC_PARITY_SCENARIOS.map(({ id }) => id);
7070
export const QA_AGENTIC_PARITY_SCENARIO_TITLES = QA_AGENTIC_PARITY_SCENARIOS.map(
7171
({ title }) => title,
7272
);

‎extensions/qa-lab/src/character-eval.test.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import fs from "node:fs/promises";
33
import os from "node:os";
44
import path from "node:path";
55
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
6-
import {
7-
runQaCharacterEval,
8-
type QaCharacterEvalJudgment,
9-
type QaCharacterEvalParams,
10-
} from "./character-eval.js";
6+
import { runQaCharacterEval } from "./character-eval.js";
117
import type { QaSuiteResult } from "./suite.js";
128

9+
type QaCharacterEvalParams = Parameters<typeof runQaCharacterEval>[0];
10+
type QaCharacterEvalJudgment = Awaited<
11+
ReturnType<typeof runQaCharacterEval>
12+
>["judgments"][number]["rankings"][number];
1313
type CharacterRunSuiteParams = Parameters<NonNullable<QaCharacterEvalParams["runSuite"]>>[0];
1414
type CharacterRunJudgeParams = Parameters<NonNullable<QaCharacterEvalParams["runJudge"]>>[0];
1515
type TestJudgeRanking = Pick<QaCharacterEvalJudgment, "model" | "rank" | "score" | "summary"> &

‎extensions/qa-lab/src/character-eval.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type QaCharacterEvalRun = {
5656
error?: string;
5757
};
5858

59-
export type QaCharacterEvalJudgment = {
59+
type QaCharacterEvalJudgment = {
6060
model: string;
6161
rank: number;
6262
score: number;
@@ -106,7 +106,7 @@ type RunJudgeFn = (params: {
106106
timeoutMs: number;
107107
}) => Promise<string | null>;
108108

109-
export type QaCharacterEvalParams = {
109+
type QaCharacterEvalParams = {
110110
repoRoot?: string;
111111
outputDir?: string;
112112
models: string[];

‎extensions/qa-lab/src/cli.runtime.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,10 @@ describe("qa cli runtime", () => {
782782
capabilityMatrixPath: "crabline-fake-provider-capabilities.json",
783783
channel: "telegram",
784784
channelDriver: "crabline",
785+
providerReadinessArtifactPath: "crabline-fake-provider-smoke.json",
785786
smokeArtifactPath: "crabline-fake-provider-smoke.json",
786787
},
788+
evidenceMode: undefined,
787789
providerMode: "mock-openai",
788790
primaryModel: undefined,
789791
alternateModel: undefined,
@@ -859,6 +861,7 @@ describe("qa cli runtime", () => {
859861
capabilityMatrixPath: "crabline-fake-provider-capabilities.json",
860862
channel: "telegram",
861863
channelDriver: "crabline",
864+
providerReadinessArtifactPath: "crabline-fake-provider-smoke.json",
862865
smokeArtifactPath: "crabline-fake-provider-smoke.json",
863866
},
864867
}),

‎extensions/qa-lab/src/confidence-report.test.ts‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import path from "node:path";
55
import { afterEach, beforeEach, describe, expect, it } from "vitest";
66
import {
77
buildQaConfidenceReport,
8-
buildQaConfidenceSelfTestSummary,
98
renderQaConfidenceMarkdownReport,
109
writeQaConfidenceSelfTestArtifacts,
11-
type QaConfidenceManifest,
1210
} from "./confidence-report.js";
1311

12+
type QaConfidenceManifest = Parameters<typeof buildQaConfidenceReport>[0]["manifest"];
13+
1414
describe("qa confidence report", () => {
1515
let tempRoot: string;
1616

@@ -949,7 +949,10 @@ describe("qa confidence report", () => {
949949
});
950950

951951
it("emits confidence self-test canaries for every drift class we need to catch", async () => {
952-
const summary = await buildQaConfidenceSelfTestSummary("2026-05-12T00:00:00.000Z");
952+
const { summary } = await writeQaConfidenceSelfTestArtifacts({
953+
outputDir: tempRoot,
954+
generatedAt: "2026-05-12T00:00:00.000Z",
955+
});
953956

954957
expect(summary.pass).toBe(true);
955958
expect(summary.canaries.map((canary) => canary.id)).toEqual([

‎extensions/qa-lab/src/confidence-report.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type QaConfidenceManifestLane = {
6262
labels?: string[];
6363
};
6464

65-
export type QaConfidenceManifest = {
65+
type QaConfidenceManifest = {
6666
version: 1;
6767
profile: string;
6868
lanes: QaConfidenceManifestLane[];
@@ -1136,7 +1136,7 @@ function detectJsonlReplayDrift(): boolean {
11361136
}).passed;
11371137
}
11381138

1139-
export async function buildQaConfidenceSelfTestSummary(
1139+
async function buildQaConfidenceSelfTestSummary(
11401140
generatedAt = new Date().toISOString(),
11411141
): Promise<QaConfidenceSelfTestSummary> {
11421142
const promptDriftDetected = detectHarnessDrift({

‎extensions/qa-lab/src/coverage-report.test.ts‎

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
// Qa Lab tests cover coverage report plugin behavior.
22
import { expectDefined } from "@openclaw/normalization-core";
3-
import { describe, expect, it } from "vitest";
3+
import { describe, expect, it, vi } from "vitest";
4+
import YAML from "yaml";
45
import {
56
buildQaCoverageInventory,
67
findQaScenarioMatches,
78
renderQaCoverageMarkdownReport,
89
renderQaScenarioMatchesMarkdownReport,
910
} from "./coverage-report.js";
1011
import { readQaScenarioPack, type QaSeedScenarioWithSource } from "./scenario-catalog.js";
11-
import { buildQaScorecardTaxonomyReport, type QaMaturityTaxonomy } from "./scorecard-taxonomy.js";
12+
import { readQaScorecardTaxonomyReport, type QaMaturityTaxonomy } from "./scorecard-taxonomy.js";
1213

1314
const TEST_EXECUTABLE_CATEGORY_ID = "agent-runtime-and-provider-execution.agent-turn-execution";
1415
const TEST_EXECUTABLE_COVERAGE_ID = "channels.dm";
@@ -17,13 +18,26 @@ const TEST_BROWSER_COVERAGE_ID = "ui.control";
1718
const TEST_WEBCHAT_COVERAGE_ID = "ui.webchat";
1819
const DOTTED_COVERAGE_ID_PATTERN = /^[a-z0-9][a-z0-9-]*(?:\.[a-z0-9][a-z0-9-]*)+$/;
1920

21+
function buildQaScorecardTaxonomyReport(params: {
22+
taxonomy: QaMaturityTaxonomy;
23+
repoRoot: string;
24+
scenarios: readonly QaSeedScenarioWithSource[];
25+
}) {
26+
expect(params.repoRoot).toBe(process.cwd());
27+
const parseSpy = vi.spyOn(YAML, "parse").mockReturnValueOnce(params.taxonomy);
28+
try {
29+
return readQaScorecardTaxonomyReport(params.scenarios);
30+
} finally {
31+
parseSpy.mockRestore();
32+
}
33+
}
34+
2035
function testMaturityTaxonomy(params?: {
2136
categoryId?: string;
2237
coverageIds?: readonly string[];
2338
featureCoverageIds?: readonly (readonly string[])[];
2439
includeAllCategories?: boolean;
2540
includeArchivedSurface?: boolean;
26-
profileCategoryIds?: readonly string[];
2741
}): QaMaturityTaxonomy {
2842
const categoryId = params?.categoryId ?? TEST_EXECUTABLE_CATEGORY_ID;
2943
const firstDot = categoryId.indexOf(".");
@@ -46,9 +60,7 @@ function testMaturityTaxonomy(params?: {
4660
description: "Test release profile.",
4761
includeAllCategories: params?.includeAllCategories ?? false,
4862
channelDriver: "qa-channel" as const,
49-
categoryIds: [
50-
...(params?.includeAllCategories ? [] : (params?.profileCategoryIds ?? [categoryId])),
51-
],
63+
categoryIds: params?.includeAllCategories ? [] : [categoryId],
5264
},
5365
],
5466
surfaces: [
@@ -577,20 +589,6 @@ describe("qa coverage report", () => {
577589
]);
578590
});
579591

580-
it("reports profile membership refs missing from taxonomy categories", () => {
581-
const report = buildQaScorecardTaxonomyReport({
582-
taxonomy: testMaturityTaxonomy({
583-
profileCategoryIds: ["missing.category"],
584-
}),
585-
repoRoot: process.cwd(),
586-
scenarios: [],
587-
});
588-
589-
expect(report.validationIssues.map((issue) => issue.code)).toContain(
590-
"profile-category-ref-not-found",
591-
);
592-
});
593-
594592
it("resolves all-category profiles from taxonomy categories", () => {
595593
const report = buildQaScorecardTaxonomyReport({
596594
taxonomy: testMaturityTaxonomy({

0 commit comments

Comments
 (0)