@tea-agent/loop-agent 0.42.0-next.10 → 0.42.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/dist/build-stamp.json +3 -3
- package/dist/executors/dag-pi-executor.js +33 -1
- package/dist/executors/pi-extension-resolver.js +14 -2
- package/dist/worker/observe/static/constants.js +22 -22
- package/dist/worker/observe/static/dag-context-reason-labels.js +19 -0
- package/dist/worker/observe/static/dag-history-labels.js +1 -0
- package/dist/worker/observe/static/dag-inspector-humanize.d.ts +16 -0
- package/dist/worker/observe/static/dag-inspector-humanize.js +339 -0
- package/dist/worker/observe/static/dag-node-purpose.js +10 -10
- package/dist/worker/observe/static/index.html +4 -4
- package/dist/worker/observe/static/prompt-restart-candidates.js +4 -2
- package/dist/worker/observe/static/relations.js +5 -5
- package/dist/worker/observe/static/styles.css +136 -0
- package/dist/worker/observe/static/views/dag-graph.js +1 -1
- package/dist/worker/observe/static/views/dag-inspector.js +322 -174
- package/dist/worker/observe/static/views/dag.js +16 -12
- package/dist/worker/observe/static/views/session-timeline.js +5 -3
- package/dist/workflows/dag/backend-test-plan-protocol.js +104 -0
- package/dist/workflows/dag/init-hybrid.js +4 -3
- package/dist/workflows/dag/node-execution.js +26 -0
- package/dist/workflows/dag/retry-policy.js +11 -0
- package/docs/templates/backend-test-dag.json +6 -4
- package/package.json +1 -1
|
@@ -76,6 +76,7 @@ import {
|
|
|
76
76
|
findDagForRun,
|
|
77
77
|
} from "../dag-model.js";
|
|
78
78
|
import { describeDagNodePurpose } from "../dag-node-purpose.js";
|
|
79
|
+
import { inspectorValueLabel } from "../dag-inspector-humanize.js";
|
|
79
80
|
import { layoutDag } from "../dag-layout.js";
|
|
80
81
|
import {
|
|
81
82
|
showView,
|
|
@@ -197,7 +198,9 @@ export function buildDagNodeTable(dagRunId, nodes) {
|
|
|
197
198
|
index + 1,
|
|
198
199
|
node.nodeId,
|
|
199
200
|
node.rank ?? "—",
|
|
200
|
-
node.executor
|
|
201
|
+
node.executor
|
|
202
|
+
? inspectorValueLabel("executor", node.executor)
|
|
203
|
+
: "—",
|
|
201
204
|
node.model ?? "—",
|
|
202
205
|
node.status ? badge(node.status) : "—",
|
|
203
206
|
formatMs(node.durationMs),
|
|
@@ -211,10 +214,10 @@ export function buildDagNodeTable(dagRunId, nodes) {
|
|
|
211
214
|
const nodeTable = buildTable(
|
|
212
215
|
[
|
|
213
216
|
"序号",
|
|
214
|
-
"
|
|
215
|
-
"
|
|
217
|
+
"步骤编号",
|
|
218
|
+
"执行层级",
|
|
216
219
|
"执行方式",
|
|
217
|
-
"
|
|
220
|
+
"实际模型",
|
|
218
221
|
"状态",
|
|
219
222
|
"耗时",
|
|
220
223
|
"执行历史",
|
|
@@ -261,7 +264,7 @@ export async function renderDagDetail(dagRunId, initial = true) {
|
|
|
261
264
|
const metaEl = document.getElementById("dag-meta");
|
|
262
265
|
const ranksEl = document.getElementById("dag-ranks");
|
|
263
266
|
const nodesEl = document.getElementById("dag-nodes");
|
|
264
|
-
if (initial && metaEl) mountViewState(metaEl, "loading", "
|
|
267
|
+
if (initial && metaEl) mountViewState(metaEl, "loading", "正在加载运行流程…");
|
|
265
268
|
uiState.dagGraphViewportState = captureDagGraphViewportState(
|
|
266
269
|
uiState.dagGraphViewportState,
|
|
267
270
|
dagRunId,
|
|
@@ -281,7 +284,7 @@ export async function renderDagDetail(dagRunId, initial = true) {
|
|
|
281
284
|
}
|
|
282
285
|
if (!dag) {
|
|
283
286
|
clearNode(metaEl);
|
|
284
|
-
mountViewState(metaEl, "error", "
|
|
287
|
+
mountViewState(metaEl, "error", "找不到这次运行。运行记录可能已被清理。");
|
|
285
288
|
mountRelationBar("dag-relations", {}, snapshot);
|
|
286
289
|
closeDagInspector();
|
|
287
290
|
return false;
|
|
@@ -354,7 +357,7 @@ export async function renderDagDetail(dagRunId, initial = true) {
|
|
|
354
357
|
LIVENESS_LABELS[dag.liveness] ?? dag.liveness ?? LIVENESS_LABELS.unknown;
|
|
355
358
|
const primaryEntries = [
|
|
356
359
|
["标题", dag.title || dag.dagRunId],
|
|
357
|
-
["
|
|
360
|
+
["运行编号", dag.dagRunId],
|
|
358
361
|
["状态", dagStatusBadge(dag.effectiveStatus ?? dag.status)],
|
|
359
362
|
];
|
|
360
363
|
if (visibility.showExecutorStatus)
|
|
@@ -383,7 +386,7 @@ export async function renderDagDetail(dagRunId, initial = true) {
|
|
|
383
386
|
["总耗时", formatDuration(dag.durationMs)],
|
|
384
387
|
["进度", `${progress.finished}/${progress.total}`],
|
|
385
388
|
["成功/失败/跳过", `${succeededCount}/${failedCount}/${skippedCount}`],
|
|
386
|
-
["
|
|
389
|
+
["记录保存位置", dag.dagPath ?? "—"],
|
|
387
390
|
);
|
|
388
391
|
const lintSummary = frontendLintSummary(dag.frontendLint);
|
|
389
392
|
if (lintSummary) {
|
|
@@ -429,7 +432,7 @@ export async function renderDagDetail(dagRunId, initial = true) {
|
|
|
429
432
|
);
|
|
430
433
|
if (nodes.length === 0) {
|
|
431
434
|
clearNode(ranksEl);
|
|
432
|
-
ranksEl.appendChild(el("h3", null, "
|
|
435
|
+
ranksEl.appendChild(el("h3", null, "执行步骤关系"));
|
|
433
436
|
ranksEl.appendChild(el("p", "empty", UI_TEXT.noNodes));
|
|
434
437
|
} else if (reuseShell && existingGraphWrap?.parentNode === ranksEl) {
|
|
435
438
|
// reuse-dag-graph-wrap + viewport identity: keep wrap/viewport alive.
|
|
@@ -440,16 +443,16 @@ export async function renderDagDetail(dagRunId, initial = true) {
|
|
|
440
443
|
}
|
|
441
444
|
} else {
|
|
442
445
|
clearNode(ranksEl);
|
|
443
|
-
ranksEl.appendChild(el("h3", null, "
|
|
446
|
+
ranksEl.appendChild(el("h3", null, "执行步骤关系"));
|
|
444
447
|
ranksEl.appendChild(renderDagGraph(dag, dagRunId, null));
|
|
445
448
|
}
|
|
446
449
|
|
|
447
450
|
const nodesScrollLeft = nodesEl.scrollLeft;
|
|
448
451
|
clearNode(nodesEl);
|
|
449
452
|
const nodeHeading = el("div", "dag-section-heading");
|
|
450
|
-
nodeHeading.appendChild(el("h3", null, "
|
|
453
|
+
nodeHeading.appendChild(el("h3", null, "执行步骤"));
|
|
451
454
|
nodeHeading.appendChild(
|
|
452
|
-
el("span", "dag-section-meta", `共 ${nodes.length}
|
|
455
|
+
el("span", "dag-section-meta", `共 ${nodes.length} 个步骤`),
|
|
453
456
|
);
|
|
454
457
|
nodesEl.appendChild(nodeHeading);
|
|
455
458
|
|
|
@@ -479,6 +482,7 @@ export async function renderDagDetail(dagRunId, initial = true) {
|
|
|
479
482
|
dagRunId,
|
|
480
483
|
nodes.find((node) => node.nodeId === uiState.selectedDagNodeId),
|
|
481
484
|
initial,
|
|
485
|
+
dag,
|
|
482
486
|
);
|
|
483
487
|
return isDagRunActive(dag);
|
|
484
488
|
}
|
|
@@ -1116,9 +1116,11 @@ function rerenderSessionTimeline(content, nodeId, options) {
|
|
|
1116
1116
|
const scrollLeft = content.scrollLeft;
|
|
1117
1117
|
const autoScrollEnabled = isTimelineAutoScrollEnabled();
|
|
1118
1118
|
const preserved = [...content.children].filter((child) =>
|
|
1119
|
-
|
|
1120
|
-
.
|
|
1121
|
-
|
|
1119
|
+
["dag-inspector-attempt-bar", "inspector-page-lead"].some((className) =>
|
|
1120
|
+
String(child.className ?? "")
|
|
1121
|
+
.split(/\s+/)
|
|
1122
|
+
.includes(className),
|
|
1123
|
+
),
|
|
1122
1124
|
);
|
|
1123
1125
|
while (content.firstChild) content.removeChild(content.firstChild);
|
|
1124
1126
|
for (const child of preserved) content.appendChild(child);
|
|
@@ -101,6 +101,110 @@ export function lookupRequiredVariantSlotsForMarkdownPath(inventory, markdownPat
|
|
|
101
101
|
.replace(/\.md$/i, "");
|
|
102
102
|
return inventory.modules.find((item) => item.stem === stem)?.requiredVariantSlots ?? [];
|
|
103
103
|
}
|
|
104
|
+
const MODULE_INDEX_HEADER = [
|
|
105
|
+
"Module Stem",
|
|
106
|
+
"Business Resource",
|
|
107
|
+
"Owned Operations",
|
|
108
|
+
"Owned Rule Keys",
|
|
109
|
+
"Case IDs",
|
|
110
|
+
"Split Reason",
|
|
111
|
+
"Markdown Path",
|
|
112
|
+
"Pytest Path",
|
|
113
|
+
];
|
|
114
|
+
function markdownTableCells(line) {
|
|
115
|
+
const trimmed = line.trim();
|
|
116
|
+
if (!trimmed.startsWith("|") || !trimmed.endsWith("|"))
|
|
117
|
+
return undefined;
|
|
118
|
+
return trimmed
|
|
119
|
+
.slice(1, -1)
|
|
120
|
+
.split("|")
|
|
121
|
+
.map((cell) => cell.trim().replace(/^`|`$/g, ""));
|
|
122
|
+
}
|
|
123
|
+
function isMarkdownSeparatorRow(cells) {
|
|
124
|
+
return cells.length > 0 && cells.every((cell) => /^:?-{3,}:?$/.test(cell));
|
|
125
|
+
}
|
|
126
|
+
/** Validate the minimum complete run-owned Markdown protocol before N2 succeeds. */
|
|
127
|
+
export function assessBackendTestPlanProtocol(markdown) {
|
|
128
|
+
const canonical = canonicalizeBackendTestPlanProtocolHeadings(markdown).markdown;
|
|
129
|
+
const lines = canonical.split("\n");
|
|
130
|
+
const issues = [];
|
|
131
|
+
if (lines.some((line) => /^(?:```|~~~)/.test(line.trim()))) {
|
|
132
|
+
issues.push({
|
|
133
|
+
code: "fenced-plan-output",
|
|
134
|
+
detail: "return the final Markdown plan directly, without a code fence",
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
const headingIndexes = new Map();
|
|
138
|
+
for (const heading of [
|
|
139
|
+
"Coverage Scope",
|
|
140
|
+
"Coverage Matrix",
|
|
141
|
+
"Scenario Partitions",
|
|
142
|
+
"Module Index",
|
|
143
|
+
]) {
|
|
144
|
+
headingIndexes.set(heading, lines.flatMap((line, index) => line.trim() === `## ${heading}` ? [index] : []));
|
|
145
|
+
}
|
|
146
|
+
const requireUnique = (heading, missingCode, duplicateCode) => {
|
|
147
|
+
const count = headingIndexes.get(heading)?.length ?? 0;
|
|
148
|
+
if (count === 0) {
|
|
149
|
+
issues.push({
|
|
150
|
+
code: missingCode,
|
|
151
|
+
detail: `require exactly one exact ## ${heading} section`,
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
else if (count > 1) {
|
|
155
|
+
issues.push({
|
|
156
|
+
code: duplicateCode,
|
|
157
|
+
detail: `found ${count}; require exactly one exact ## ${heading} section`,
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
// Module Index is first so retry diagnostics lead with the shard authority.
|
|
162
|
+
requireUnique("Module Index", "missing-module-index", "duplicate-module-index");
|
|
163
|
+
requireUnique("Coverage Scope", "missing-coverage-scope", "duplicate-coverage-scope");
|
|
164
|
+
requireUnique("Coverage Matrix", "missing-coverage-matrix", "duplicate-coverage-matrix");
|
|
165
|
+
const scenarioCount = headingIndexes.get("Scenario Partitions")?.length ?? 0;
|
|
166
|
+
if (scenarioCount > 1) {
|
|
167
|
+
issues.push({
|
|
168
|
+
code: "duplicate-scenario-partitions",
|
|
169
|
+
detail: `found ${scenarioCount}; require at most one exact ## Scenario Partitions section`,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
const moduleIndexes = headingIndexes.get("Module Index") ?? [];
|
|
173
|
+
if (moduleIndexes.length === 1) {
|
|
174
|
+
const start = moduleIndexes[0] + 1;
|
|
175
|
+
const nextHeading = lines
|
|
176
|
+
.slice(start)
|
|
177
|
+
.findIndex((line) => /^##\s+\S/.test(line.trim()));
|
|
178
|
+
const end = nextHeading < 0 ? lines.length : start + nextHeading;
|
|
179
|
+
const rows = lines
|
|
180
|
+
.slice(start, end)
|
|
181
|
+
.map(markdownTableCells)
|
|
182
|
+
.filter((cells) => cells !== undefined);
|
|
183
|
+
const headerIndex = rows.findIndex((cells) => cells.length === MODULE_INDEX_HEADER.length &&
|
|
184
|
+
MODULE_INDEX_HEADER.every((name, index) => cells[index] === name));
|
|
185
|
+
if (headerIndex < 0) {
|
|
186
|
+
issues.push({
|
|
187
|
+
code: "invalid-module-index-header",
|
|
188
|
+
detail: `require exact Module Index header: ${MODULE_INDEX_HEADER.join(" | ")}`,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
const dataRows = rows
|
|
193
|
+
.slice(headerIndex + 1)
|
|
194
|
+
.filter((cells) => !isMarkdownSeparatorRow(cells));
|
|
195
|
+
if (!dataRows.some((cells) => cells.length === MODULE_INDEX_HEADER.length &&
|
|
196
|
+
Boolean(cells[0]?.trim()) &&
|
|
197
|
+
Boolean(cells[6]?.trim()) &&
|
|
198
|
+
Boolean(cells[7]?.trim()))) {
|
|
199
|
+
issues.push({
|
|
200
|
+
code: "empty-module-index",
|
|
201
|
+
detail: "Module Index must contain at least one complete 8-cell module row",
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return { ok: issues.length === 0, issues };
|
|
207
|
+
}
|
|
104
208
|
export function isCanonicalPlanHeadingLine(line) {
|
|
105
209
|
return CANONICAL_HEADING_LINE.test(line.trim());
|
|
106
210
|
}
|
|
@@ -14,7 +14,7 @@ import { DEFAULT_OPENSPEC_GOVERNANCE_ROOT, DEFAULT_FRONTEND_SPEC_ROOTS, extractT
|
|
|
14
14
|
import { readFrontendSpecRegistry, scoreFrontendSpecCandidate, } from "../../task/frontend-project-capability.js";
|
|
15
15
|
import { BASELINE_FORBIDDEN_PATHS } from "./governance-constants.js";
|
|
16
16
|
import { buildDecisionEnvelopePromptContract } from "./decision-envelope.js";
|
|
17
|
-
import { DEFAULT_READ_ONLY_PI_RETRY_POLICY, FRONTEND_SCOUT_COMPLETENESS_RETRY_POLICY, PLANNER_OUTPUT_LIMIT_RETRY_POLICY, PROTOCOL_AWARE_PI_RETRY_POLICY, BACKEND_TEST_WRITER_COMPLETENESS_RETRY_POLICY, BACKEND_TEST_MARKDOWN_BINDING_RETRY_POLICY, WRITER_TRANSPORT_RETRY_POLICY, FRONTEND_PLAN_LADDER_RETRY_POLICY, FRONTEND_REVIEW_TERMINAL_RETRY_POLICY, TARGET_TEMPLATE_TRANSIENT_RETRY_PROFILE, TARGET_TEMPLATE_WRITER_TRANSPORT_RETRY_POLICY, isCanonicalFinalVerifyShellRetryCandidate, isSafeReadOnlyPiRetryCandidate, isTargetTemplateImplementPi, isWriterTransportRetryCandidate, } from "./retry-policy.js";
|
|
17
|
+
import { DEFAULT_READ_ONLY_PI_RETRY_POLICY, FRONTEND_SCOUT_COMPLETENESS_RETRY_POLICY, PLANNER_OUTPUT_LIMIT_RETRY_POLICY, PROTOCOL_AWARE_PI_RETRY_POLICY, BACKEND_TEST_MD_PLAN_RETRY_POLICY, BACKEND_TEST_WRITER_COMPLETENESS_RETRY_POLICY, BACKEND_TEST_MARKDOWN_BINDING_RETRY_POLICY, WRITER_TRANSPORT_RETRY_POLICY, FRONTEND_PLAN_LADDER_RETRY_POLICY, FRONTEND_REVIEW_TERMINAL_RETRY_POLICY, TARGET_TEMPLATE_TRANSIENT_RETRY_PROFILE, TARGET_TEMPLATE_WRITER_TRANSPORT_RETRY_POLICY, isCanonicalFinalVerifyShellRetryCandidate, isSafeReadOnlyPiRetryCandidate, isTargetTemplateImplementPi, isWriterTransportRetryCandidate, } from "./retry-policy.js";
|
|
18
18
|
import { REVIEW_JSON_VERDICT_OUTPUT_PROTOCOL, REVIEW_VERDICT_OUTPUT_PROTOCOL, } from "./output-protocol.js";
|
|
19
19
|
import { resolveAdapter } from "../../adapters/index.js";
|
|
20
20
|
import { loadHarnessManifest } from "../../governance/harness.js";
|
|
@@ -5099,10 +5099,11 @@ async function buildBackendTestHybridDag(sources) {
|
|
|
5099
5099
|
".harness/dag-runs/**/reports/backend-test-environment.md",
|
|
5100
5100
|
],
|
|
5101
5101
|
forbiddenPaths: forbidden,
|
|
5102
|
+
retryPolicy: BACKEND_TEST_MD_PLAN_RETRY_POLICY,
|
|
5102
5103
|
outputContract: "Return a Chinese, human-readable Markdown-first plan with Coverage Scope, Coverage Matrix, Scenario Partitions when applicable, and a machine-parseable Module Index. The runtime persists it as a run-owned Harness artifact; do not write testcase/md/README.md, execute pytest, or modify project files.",
|
|
5103
5104
|
subtask_prompt: [
|
|
5104
|
-
"This is a required plan-generation node. Read only the strict read set and return the complete Markdown plan in the assistant response. The runtime persists the response as a run-owned Harness artifact named generate-backend-md-plan-pi/plan.md. Do not write testcase/md/README.md or any project file; module case cards are written by downstream sharded nodes.",
|
|
5105
|
-
"Output budget protocol (hard, max output <=16K per turn): Never paste full Matrix, case bodies,
|
|
5105
|
+
"This is a required plan-generation node. Read only the strict read set and return the complete Markdown plan in the assistant response. Start the response with the final Markdown artifact immediately; never narrate analysis, reasoning, source summaries, or plans for producing the plan. The runtime persists the response as a run-owned Harness artifact named generate-backend-md-plan-pi/plan.md. Do not write testcase/md/README.md or any project file; module case cards are written by downstream sharded nodes.",
|
|
5106
|
+
"Output budget protocol (hard, max output <=16K per turn): Emit the complete required section skeleton before filling long table rows, including exactly one Module Index table with at least one module row. Never paste full Matrix, case bodies, source text, analysis or reasoning into assistant chat. README holds only Scope+Matrix+module index; never inline full case bodies. If a Completeness Gate / OUTPUT_LIMIT_RECOVERY retry is injected, continue only listed target paths.",
|
|
5106
5107
|
"Return the complete plan as plain Markdown. Do not emit JSON or code fences. The plan must contain the exact English protocol headings ## Coverage Scope, ## Coverage Matrix, ## Scenario Partitions when applicable, and ## Module Index. Never translate those headings into 覆盖范围/覆盖矩阵/场景分区/模块索引.",
|
|
5107
5108
|
"Read the upstream environment report only through the strict read set. Generate the Markdown-first backend test plan; it will be persisted under the current DAG run's Harness artifacts, not under testcase/md/.",
|
|
5108
5109
|
"Write human-readable content in Simplified Chinese by default. Keep English protocol literals exact: section headings, table headers, Partition IDs, TP IDs, Case IDs, HTTP methods, paths, field names, enum values, commands, filenames, code symbols and source citations. Never translate ## Module Index into ## 模块索引.",
|
|
@@ -721,6 +721,21 @@ export function buildAttemptPrompt(task, basePrompt, attemptNumber, previousFail
|
|
|
721
721
|
"</retry_instruction>",
|
|
722
722
|
].join("\n");
|
|
723
723
|
}
|
|
724
|
+
if (task.id === "generate-backend-md-plan-pi" &&
|
|
725
|
+
(previousFailureCategory === "output-too-large" ||
|
|
726
|
+
previousFailureCategory === "invalid-output")) {
|
|
727
|
+
return [
|
|
728
|
+
basePrompt,
|
|
729
|
+
"",
|
|
730
|
+
"<retry_instruction>",
|
|
731
|
+
"The previous backend-test plan attempt was truncated or failed its mandatory Markdown protocol.",
|
|
732
|
+
previousProtocolReason ?? "The previous plan artifact was incomplete.",
|
|
733
|
+
"Return the final Markdown artifact immediately. Do not output analysis, reasoning, source summaries, or planning narration.",
|
|
734
|
+
"Emit the complete section skeleton first, including exactly one ## Coverage Scope, exactly one ## Coverage Matrix, optional ## Scenario Partitions only when applicable, and exactly one ## Module Index with its required 8-column table and at least one module row.",
|
|
735
|
+
"After the complete skeleton exists, fill only concise table rows within the remaining output budget. Do not use code fences.",
|
|
736
|
+
"</retry_instruction>",
|
|
737
|
+
].join("\n");
|
|
738
|
+
}
|
|
724
739
|
if (frontendPlanRetryStep === "compact-terminal-first") {
|
|
725
740
|
return [
|
|
726
741
|
basePrompt,
|
|
@@ -1712,6 +1727,17 @@ export async function executeDagNode(input) {
|
|
|
1712
1727
|
durationMs: 0,
|
|
1713
1728
|
};
|
|
1714
1729
|
}
|
|
1730
|
+
if (task.id === "generate-backend-md-plan-pi" &&
|
|
1731
|
+
!result.ok &&
|
|
1732
|
+
(result.failureCategory === "output-too-large" ||
|
|
1733
|
+
result.failureCategory === "invalid-output")) {
|
|
1734
|
+
const marker = "backend-test Markdown plan";
|
|
1735
|
+
const markerIndex = result.stderr?.lastIndexOf(marker) ?? -1;
|
|
1736
|
+
previousProtocolReason =
|
|
1737
|
+
markerIndex >= 0
|
|
1738
|
+
? result.stderr.slice(markerIndex, markerIndex + 4_000).trim()
|
|
1739
|
+
: `backend-test Markdown plan attempt failed with ${result.failureCategory}`;
|
|
1740
|
+
}
|
|
1715
1741
|
if (isFrontendStructuredRepairSchemaId(task.structuredContractOutput?.schemaId)) {
|
|
1716
1742
|
const rawText = canonicalNodeOutput(result);
|
|
1717
1743
|
if (rawText.trim().length > 0) {
|
|
@@ -80,6 +80,17 @@ export const PLANNER_OUTPUT_LIMIT_RETRY_POLICY = {
|
|
|
80
80
|
CONTEXT_OVERFLOW_RETRY_CATEGORY,
|
|
81
81
|
],
|
|
82
82
|
};
|
|
83
|
+
/** Backend-test N2 emits a mandatory run-owned Markdown protocol, so both
|
|
84
|
+
* provider length truncation and deterministic protocol validation failures
|
|
85
|
+
* are safe producer-local retries. */
|
|
86
|
+
export const BACKEND_TEST_MD_PLAN_RETRY_POLICY = {
|
|
87
|
+
...STRUCTURED_REQUIRED_PI_RETRY_POLICY,
|
|
88
|
+
retryCategories: [
|
|
89
|
+
...STRUCTURED_REQUIRED_DAG_RETRY_CATEGORIES,
|
|
90
|
+
READ_BURST_RETRY_CATEGORY,
|
|
91
|
+
CONTEXT_OVERFLOW_RETRY_CATEGORY,
|
|
92
|
+
],
|
|
93
|
+
};
|
|
83
94
|
/**
|
|
84
95
|
* Default retry for reviewer / recovery nodes that declare outputProtocol.
|
|
85
96
|
* Includes protocol-invalid so missing VERDICT lines are corrected in-node.
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"validate-backend-test-environment-shell"
|
|
149
149
|
],
|
|
150
150
|
"complexity": "MED",
|
|
151
|
-
"subtask_prompt": "This is a required plan-generation node. Read only the strict read set and return the complete Markdown plan in the assistant response. The runtime persists the response as a run-owned Harness artifact named generate-backend-md-plan-pi/plan.md. Do not write testcase/md/README.md or any project file; module case cards are written by downstream sharded nodes.\n\nOutput budget protocol (hard, max output <=16K per turn): Never paste full Matrix, case bodies, or source text into assistant chat. README holds only Scope+Matrix+module index; never inline full case bodies. If a Completeness Gate / OUTPUT_LIMIT_RECOVERY retry is injected, continue only listed target paths.\n\nReturn the complete plan as plain Markdown. Do not emit JSON or code fences. The plan must contain the exact English protocol headings ## Coverage Scope, ## Coverage Matrix, ## Scenario Partitions when applicable, and ## Module Index. Never translate those headings into 覆盖范围/覆盖矩阵/场景分区/模块索引.\n\nRead the upstream environment report only through the strict read set. Generate the Markdown-first backend test plan; it will be persisted under the current DAG run's Harness artifacts, not under testcase/md/.\n\nWrite human-readable content in Simplified Chinese by default. Keep English protocol literals exact: section headings, table headers, Partition IDs, TP IDs, Case IDs, HTTP methods, paths, field names, enum values, commands, filenames, code symbols and source citations. Never translate ## Module Index into ## 模块索引.\n\nCreate the concise plan entry page: test objective, target/environment, isolation/cleanup, module summary and a linked case index table with Case ID, Chinese case name, scenario type, endpoint and expected status/result. Avoid repeating every case body in the plan artifact.\n\nBefore the Coverage Matrix, write a mandatory machine-readable `## Coverage Scope` section in the plan artifact using exactly `| Field | Value |`, immediately followed by the separator row `|---|---|`, and these six unique rows: `Change Classification`, `Coverage Policy`, `Affected Operations`, `Affected Rule Keys`, `Regression Floor`, `Scope Evidence`. Always set `Change Classification` to `new-operation` and `Coverage Policy` to `full-contract`; do NOT reason about whether operations are new or existing. Cover all in-scope rules from the requirement document at full depth; treat the product requirement as the coverage baseline and use API contract evidence (fields/status/enum/boundary/format) to supplement scenario dimensions. Scope is limited to operations/rules the requirement document (or its referenced API contract) explicitly describes; do not expand to unrelated operations that the requirement does not mention. List affected operations exactly as `METHOD /path`, stable rule keys separated by semicolons, and precise source pointers as Scope Evidence.\n\nCoverage depth is full over the in-scope rules: fully cover every documented status, request/response field rule, requiredness, enum, boundary, format, auth and business state of each affected operation the requirement describes, but do not re-test unrelated operations the requirement does not mention. Inspect shared validator/helper/DTO/query builder evidence and expand Affected Operations when the same affected path can affect them; unresolved impact stays visible as GAP/CONFLICT.\n\nBefore writing cases, build the mandatory machine-readable Coverage Matrix inside the plan artifact itself. Its section heading line must be exactly `## Coverage Matrix` with no numeric prefix/suffix; never place the canonical Matrix only in a module file. Use this exact header: `| Rule Key | Priority | Source | Endpoint/Field | Dimension | Rule | Required Test Points | Case IDs | Status |`. Every data row must contain exactly 9 pipe-delimited cells and must never omit `Dimension`; use concise dimensions such as requirement, operation, response-status, requiredness, enum, boundary, format, business-state or error. Use only P0/P1/P2 and COVERED/PARTIAL/GAP/CONFLICT. Use stable `TP-<UPPERCASE-HYPHENATED-ID>` test points separated by semicolons.\n\nEach Rule Key must appear in exactly one Matrix row. Preserve each AC/REQ/BR Rule Key as one row; if one product rule spans multiple dimensions, use a concise composite Dimension in that single row instead of duplicating the key. Derive OpenAPI Rule Keys exactly as the deterministic analyzer does: operation token is `<HTTP-METHOD>-<PATH>` with braces removed and every non-alphanumeric run replaced by a hyphen, uppercase (for example POST `/api/resource-notes` → `POST-API-RESOURCE-NOTES`); response statuses use `API-<OPERATION>-RESPONSE-STATUS`; body/parameter fields use `API-<OPERATION>-<FIELD>-REQUIRED|ENUM|MIN-LENGTH|MAX-LENGTH|MINIMUM|MAXIMUM|PATTERN|FORMAT`. Do not invent aliases such as API-CREATE-FIELDS when a deterministic key applies.\n\nCoverage priority is strict inside the declared scope: P0 product requirements/task hard constraints always remain in scope; P1 exhaustively supplements documented operations, fields, business rules, statuses and errors only for Affected Operations; P2 adds bounded protocol robustness only when it is relevant to the change and does not invent product behavior. Coverage percentages describe the declared affected scope, never whole-API completeness unless every operation is explicitly listed. Conflicts or undefined expectations must stay visible as GAP/CONFLICT with precise source pointers, never guessed.\n\nFor uniqueness/lifecycle rules cover absent, active-existing, deleted-existing, create-delete-recreate, restore-then-recreate and documented scope/case-normalization states. For every enum cover every valid value plus bounded invalid equivalence classes (unknown, case variant, whitespace, empty, null/missing and wrong types as applicable). For every length/number rule cover min-1, min, nominal, max and max+1. For format rules cover each allowed class separately plus a valid mixed value, and representative forbidden classes including uppercase, internal/leading/trailing whitespace, tab/newline, unsupported punctuation, slash, emoji or control characters when the source contract supports that expectation.\n\nMandatory module layout contract: first inspect the PRIMARY requirement for an explicit list of required Markdown/Python output path pairs. When explicit paths are present, they are authoritative `explicit-user-layout`: reproduce their exact filenames, count and one-to-one pairs in Module Index; do not rename, merge, split, omit or add a module from reference/example scripts. Only when the primary requirement has no explicit file layout may you derive the smallest `business-resource-layout`. Existing examples, historical regression functions and shared setup may add evidence/assertions to an existing required module, but never create an extra physical module by themselves. A reference-only `resp_regression`, positive/negative/boundary/error/response module is forbidden. The Module Stem cell must contain only the plain filename stem; never put Markdown link syntax or a path in that cell.\n\nInclude exactly one `## Module Index` table with this exact header: `| Module Stem | Business Resource | Owned Operations | Owned Rule Keys | Case IDs | Split Reason | Markdown Path | Pytest Path |`. Use canonical relative links `[label](./<stem>.md)` inside the Markdown Path cell followed by the resolved `${layout.markdownDir}/<stem>.md` path. Split Reason is exactly one of `explicit-user-layout`, `primary-business-resource`, `independent-business-resource`, or `output-budget`. Group by stable business resource/domain, not by CRUD operation, AC, parameter/field axis, scenario type or regression purpose: one resource's list/detail/create/update/delete and its filters/response assertions/regression floor belong in one module. Multiple modules owning the same exact `METHOD /path` are forbidden unless every such row is `explicit-user-layout` from primary-requirement path pairs or has a documented `output-budget` proof. Keep the total module count at the smallest safe value and never exceed 8 modules. Name model-derived modules with stable lowercase business stems such as `health` or `resource_notes`; explicit-user-layout preserves the primary requirement filename stem even when it is more specific. Do not use priority-only stems `p0`, `p1` or `p2`; Priority belongs only in the Coverage Matrix. Pure hexadecimal/hash-like opaque stems and test-purpose-only stems are forbidden. Do not use Case-ID-like module filenames. The relative link target, Markdown Path, Pytest Path and downstream automation mapping must be one-to-one and exact; for model-derived modules the default pair remains `testcase/md/<module>.md` and `testcase/test_<module>.py`, while explicit-user-layout preserves the primary requirement paths. Do not hand-write a conflicting module count in prose; the Module Index row count is the only count truth.\n\nScenario Partitions (query/filter axes): inspect every affected GET/list operation for query/path parameters whose bound source documents a finite enum or classification domain. If at least one such axis exists, add exactly one machine-readable `## Scenario Partitions` section after the Coverage Matrix using exactly `| Partition ID | Operation | Axis | Domain | Required Slots | Expected by Slot | Bind Rule |` with the separator row and one row per eligible axis. If no affected axis has a source-backed finite domain, omit the entire `## Scenario Partitions` heading and section; do not emit an explanatory prose-only section. Partition ID is a stable `SP-<OPERATION>-<AXIS>` token; Domain must copy the legal values verbatim from the bound OpenAPI enum or requirement sentence (never guess), using bare semicolon-separated identifier values inside the single table cell (for example `ACTIVE; ARCHIVED`, with no Markdown backticks or prose); Required Slots must contain `each-value` and exactly one `not-in-set`, plus `omitted` only when the parameter is optional. Before returning, expand every declared partition into its complete deterministic exact slot ID set: one `TP-<Partition ID>-<VALUE-TOKEN>` per Domain value, `TP-<Partition ID>-OMITTED` only for an optional axis, and exactly one `TP-<Partition ID>-NOT-IN-SET`. Every expanded slot ID must appear verbatim in the binding Rule's `Required Test Points` cell and be assigned to concrete Case IDs in that same Coverage Matrix row; ordinary alias/family Test Points do not replace this inventory. Scheme A: Case count may be smaller than the enum count, but every exact slot still needs an independent variant Test Point and pytest.param id; never use SINGLE/MULTIPLE aliases as coverage. Expected by Slot states the documented expectation per slot kind (`domain-value`, `default-behavior`, `empty-result`/`excluded-result` when documented, or `GAP` when the source does not document the complement expectation — never invent 空列表/400). POST/PUT body field-validation enums stay in the Coverage Matrix as `TP-<FIELD>-ENUM-*` and MUST NOT get a Scenario Partition row. Do not create partitions for axes without a documented legal-value domain. Only GET/list query or path parameters whose bound source documents a finite enum or classification set may become a Scenario Partition. Do not create partitions for free-form strings, primary keys, required-or-optional-only parameters, or boundary/format-only axes. If an axis has no finite legal-value domain, do not declare a Partition row and do not invent NOT-IN-SET cases. Cross-axis combinations stay as ONE nominal Case; never declare a cross-axis cartesian partition.\n\nBefore finalizing README, calculate the predicted collected-item count as `sum(max(1, number of variant Test Points in each Case))`. If the task declares an item budget, the prediction must not exceed it. Reduce excess only by removing duplicate execution and converting same-request checkpoints to assertions; never drop required rules, boundaries, enums, operation-specific inputs, or business states. Record the prediction in README. Use only environment-supported fixtures/targets/isolation, record evidence gaps in Chinese, and do not emit JSON, pytest, or execute commands.\n\n## Derived task contract: 需求.md\n\n# Backend test\n- AC-001 proof\n\n## Authoritative reference index\n\n[]\n\nFor each index entry, use `readPath` for Pi read-tool calls and copy `path` exactly into Markdown Source References. Bound files under .harness/tasks/<taskId>/source/** are read-only inputs: reading them is allowed even though writing .harness/** is forbidden. Never resolve `path` relative to the repository root, search for substitutes, or fall back to docs/** when a bound read fails.\n\nRead only precise indexed references needed for AC/API/field/rule evidence; references remain authoritative over derived text.",
|
|
151
|
+
"subtask_prompt": "This is a required plan-generation node. Read only the strict read set and return the complete Markdown plan in the assistant response. Start the response with the final Markdown artifact immediately; never narrate analysis, reasoning, source summaries, or plans for producing the plan. The runtime persists the response as a run-owned Harness artifact named generate-backend-md-plan-pi/plan.md. Do not write testcase/md/README.md or any project file; module case cards are written by downstream sharded nodes.\n\nOutput budget protocol (hard, max output <=16K per turn): Emit the complete required section skeleton before filling long table rows, including exactly one Module Index table with at least one module row. Never paste full Matrix, case bodies, source text, analysis or reasoning into assistant chat. README holds only Scope+Matrix+module index; never inline full case bodies. If a Completeness Gate / OUTPUT_LIMIT_RECOVERY retry is injected, continue only listed target paths.\n\nReturn the complete plan as plain Markdown. Do not emit JSON or code fences. The plan must contain the exact English protocol headings ## Coverage Scope, ## Coverage Matrix, ## Scenario Partitions when applicable, and ## Module Index. Never translate those headings into 覆盖范围/覆盖矩阵/场景分区/模块索引.\n\nRead the upstream environment report only through the strict read set. Generate the Markdown-first backend test plan; it will be persisted under the current DAG run's Harness artifacts, not under testcase/md/.\n\nWrite human-readable content in Simplified Chinese by default. Keep English protocol literals exact: section headings, table headers, Partition IDs, TP IDs, Case IDs, HTTP methods, paths, field names, enum values, commands, filenames, code symbols and source citations. Never translate ## Module Index into ## 模块索引.\n\nCreate the concise plan entry page: test objective, target/environment, isolation/cleanup, module summary and a linked case index table with Case ID, Chinese case name, scenario type, endpoint and expected status/result. Avoid repeating every case body in the plan artifact.\n\nBefore the Coverage Matrix, write a mandatory machine-readable `## Coverage Scope` section in the plan artifact using exactly `| Field | Value |`, immediately followed by the separator row `|---|---|`, and these six unique rows: `Change Classification`, `Coverage Policy`, `Affected Operations`, `Affected Rule Keys`, `Regression Floor`, `Scope Evidence`. Always set `Change Classification` to `new-operation` and `Coverage Policy` to `full-contract`; do NOT reason about whether operations are new or existing. Cover all in-scope rules from the requirement document at full depth; treat the product requirement as the coverage baseline and use API contract evidence (fields/status/enum/boundary/format) to supplement scenario dimensions. Scope is limited to operations/rules the requirement document (or its referenced API contract) explicitly describes; do not expand to unrelated operations that the requirement does not mention. List affected operations exactly as `METHOD /path`, stable rule keys separated by semicolons, and precise source pointers as Scope Evidence.\n\nCoverage depth is full over the in-scope rules: fully cover every documented status, request/response field rule, requiredness, enum, boundary, format, auth and business state of each affected operation the requirement describes, but do not re-test unrelated operations the requirement does not mention. Inspect shared validator/helper/DTO/query builder evidence and expand Affected Operations when the same affected path can affect them; unresolved impact stays visible as GAP/CONFLICT.\n\nBefore writing cases, build the mandatory machine-readable Coverage Matrix inside the plan artifact itself. Its section heading line must be exactly `## Coverage Matrix` with no numeric prefix/suffix; never place the canonical Matrix only in a module file. Use this exact header: `| Rule Key | Priority | Source | Endpoint/Field | Dimension | Rule | Required Test Points | Case IDs | Status |`. Every data row must contain exactly 9 pipe-delimited cells and must never omit `Dimension`; use concise dimensions such as requirement, operation, response-status, requiredness, enum, boundary, format, business-state or error. Use only P0/P1/P2 and COVERED/PARTIAL/GAP/CONFLICT. Use stable `TP-<UPPERCASE-HYPHENATED-ID>` test points separated by semicolons.\n\nEach Rule Key must appear in exactly one Matrix row. Preserve each AC/REQ/BR Rule Key as one row; if one product rule spans multiple dimensions, use a concise composite Dimension in that single row instead of duplicating the key. Derive OpenAPI Rule Keys exactly as the deterministic analyzer does: operation token is `<HTTP-METHOD>-<PATH>` with braces removed and every non-alphanumeric run replaced by a hyphen, uppercase (for example POST `/api/resource-notes` → `POST-API-RESOURCE-NOTES`); response statuses use `API-<OPERATION>-RESPONSE-STATUS`; body/parameter fields use `API-<OPERATION>-<FIELD>-REQUIRED|ENUM|MIN-LENGTH|MAX-LENGTH|MINIMUM|MAXIMUM|PATTERN|FORMAT`. Do not invent aliases such as API-CREATE-FIELDS when a deterministic key applies.\n\nCoverage priority is strict inside the declared scope: P0 product requirements/task hard constraints always remain in scope; P1 exhaustively supplements documented operations, fields, business rules, statuses and errors only for Affected Operations; P2 adds bounded protocol robustness only when it is relevant to the change and does not invent product behavior. Coverage percentages describe the declared affected scope, never whole-API completeness unless every operation is explicitly listed. Conflicts or undefined expectations must stay visible as GAP/CONFLICT with precise source pointers, never guessed.\n\nFor uniqueness/lifecycle rules cover absent, active-existing, deleted-existing, create-delete-recreate, restore-then-recreate and documented scope/case-normalization states. For every enum cover every valid value plus bounded invalid equivalence classes (unknown, case variant, whitespace, empty, null/missing and wrong types as applicable). For every length/number rule cover min-1, min, nominal, max and max+1. For format rules cover each allowed class separately plus a valid mixed value, and representative forbidden classes including uppercase, internal/leading/trailing whitespace, tab/newline, unsupported punctuation, slash, emoji or control characters when the source contract supports that expectation.\n\nMandatory module layout contract: first inspect the PRIMARY requirement for an explicit list of required Markdown/Python output path pairs. When explicit paths are present, they are authoritative `explicit-user-layout`: reproduce their exact filenames, count and one-to-one pairs in Module Index; do not rename, merge, split, omit or add a module from reference/example scripts. Only when the primary requirement has no explicit file layout may you derive the smallest `business-resource-layout`. Existing examples, historical regression functions and shared setup may add evidence/assertions to an existing required module, but never create an extra physical module by themselves. A reference-only `resp_regression`, positive/negative/boundary/error/response module is forbidden. The Module Stem cell must contain only the plain filename stem; never put Markdown link syntax or a path in that cell.\n\nInclude exactly one `## Module Index` table with this exact header: `| Module Stem | Business Resource | Owned Operations | Owned Rule Keys | Case IDs | Split Reason | Markdown Path | Pytest Path |`. Use canonical relative links `[label](./<stem>.md)` inside the Markdown Path cell followed by the resolved `${layout.markdownDir}/<stem>.md` path. Split Reason is exactly one of `explicit-user-layout`, `primary-business-resource`, `independent-business-resource`, or `output-budget`. Group by stable business resource/domain, not by CRUD operation, AC, parameter/field axis, scenario type or regression purpose: one resource's list/detail/create/update/delete and its filters/response assertions/regression floor belong in one module. Multiple modules owning the same exact `METHOD /path` are forbidden unless every such row is `explicit-user-layout` from primary-requirement path pairs or has a documented `output-budget` proof. Keep the total module count at the smallest safe value and never exceed 8 modules. Name model-derived modules with stable lowercase business stems such as `health` or `resource_notes`; explicit-user-layout preserves the primary requirement filename stem even when it is more specific. Do not use priority-only stems `p0`, `p1` or `p2`; Priority belongs only in the Coverage Matrix. Pure hexadecimal/hash-like opaque stems and test-purpose-only stems are forbidden. Do not use Case-ID-like module filenames. The relative link target, Markdown Path, Pytest Path and downstream automation mapping must be one-to-one and exact; for model-derived modules the default pair remains `testcase/md/<module>.md` and `testcase/test_<module>.py`, while explicit-user-layout preserves the primary requirement paths. Do not hand-write a conflicting module count in prose; the Module Index row count is the only count truth.\n\nScenario Partitions (query/filter axes): inspect every affected GET/list operation for query/path parameters whose bound source documents a finite enum or classification domain. If at least one such axis exists, add exactly one machine-readable `## Scenario Partitions` section after the Coverage Matrix using exactly `| Partition ID | Operation | Axis | Domain | Required Slots | Expected by Slot | Bind Rule |` with the separator row and one row per eligible axis. If no affected axis has a source-backed finite domain, omit the entire `## Scenario Partitions` heading and section; do not emit an explanatory prose-only section. Partition ID is a stable `SP-<OPERATION>-<AXIS>` token; Domain must copy the legal values verbatim from the bound OpenAPI enum or requirement sentence (never guess), using bare semicolon-separated identifier values inside the single table cell (for example `ACTIVE; ARCHIVED`, with no Markdown backticks or prose); Required Slots must contain `each-value` and exactly one `not-in-set`, plus `omitted` only when the parameter is optional. Before returning, expand every declared partition into its complete deterministic exact slot ID set: one `TP-<Partition ID>-<VALUE-TOKEN>` per Domain value, `TP-<Partition ID>-OMITTED` only for an optional axis, and exactly one `TP-<Partition ID>-NOT-IN-SET`. Every expanded slot ID must appear verbatim in the binding Rule's `Required Test Points` cell and be assigned to concrete Case IDs in that same Coverage Matrix row; ordinary alias/family Test Points do not replace this inventory. Scheme A: Case count may be smaller than the enum count, but every exact slot still needs an independent variant Test Point and pytest.param id; never use SINGLE/MULTIPLE aliases as coverage. Expected by Slot states the documented expectation per slot kind (`domain-value`, `default-behavior`, `empty-result`/`excluded-result` when documented, or `GAP` when the source does not document the complement expectation — never invent 空列表/400). POST/PUT body field-validation enums stay in the Coverage Matrix as `TP-<FIELD>-ENUM-*` and MUST NOT get a Scenario Partition row. Do not create partitions for axes without a documented legal-value domain. Only GET/list query or path parameters whose bound source documents a finite enum or classification set may become a Scenario Partition. Do not create partitions for free-form strings, primary keys, required-or-optional-only parameters, or boundary/format-only axes. If an axis has no finite legal-value domain, do not declare a Partition row and do not invent NOT-IN-SET cases. Cross-axis combinations stay as ONE nominal Case; never declare a cross-axis cartesian partition.\n\nBefore finalizing README, calculate the predicted collected-item count as `sum(max(1, number of variant Test Points in each Case))`. If the task declares an item budget, the prediction must not exceed it. Reduce excess only by removing duplicate execution and converting same-request checkpoints to assertions; never drop required rules, boundaries, enums, operation-specific inputs, or business states. Record the prediction in README. Use only environment-supported fixtures/targets/isolation, record evidence gaps in Chinese, and do not emit JSON, pytest, or execute commands.\n\n## Derived task contract: 需求.md\n\n# Backend test\n- AC-001 proof\n\n## Authoritative reference index\n\n[]\n\nFor each index entry, use `readPath` for Pi read-tool calls and copy `path` exactly into Markdown Source References. Bound files under .harness/tasks/<taskId>/source/** are read-only inputs: reading them is allowed even though writing .harness/** is forbidden. Never resolve `path` relative to the repository root, search for substitutes, or fall back to docs/** when a bound read fails.\n\nRead only precise indexed references needed for AC/API/field/rule evidence; references remain authoritative over derived text.",
|
|
152
152
|
"executor": "pi",
|
|
153
153
|
"role": "planner",
|
|
154
154
|
"toolProfile": "read-only",
|
|
@@ -176,6 +176,8 @@
|
|
|
176
176
|
"unavailable",
|
|
177
177
|
"empty-output",
|
|
178
178
|
"output-too-large",
|
|
179
|
+
"invalid-output",
|
|
180
|
+
"structured-output-truncated",
|
|
179
181
|
"read-burst",
|
|
180
182
|
"context-overflow"
|
|
181
183
|
]
|
|
@@ -193,7 +195,7 @@
|
|
|
193
195
|
"writePolicy": "read-only",
|
|
194
196
|
"shell": {
|
|
195
197
|
"commands": [
|
|
196
|
-
"node -e \"eval(require('zlib').inflateRawSync(Buffer.from('
|
|
198
|
+
"node -e \"eval(require('zlib').inflateRawSync(Buffer.from('zTvJcuNIdvf6CmiqQokcAqCqxlPdTTZYoVq6W3ZVSSGpesImUYoUkJRyhK0zQS0t6OSICR/66i3aDod9cNgnX8aXif6dmh6f5hccLxcgAZKSyjMO+yKRub738u3vMS5yUTlzEXL6zYJx6qK5QNgrSXXaDsE3hL2YX5VV0Q6r7wh736bsuB2GbwiPH8Ty6Cx5yXj4k4qKKiaCDrPkJ2ZKxJyVVWe6nas4i6vX5KpYVGG+SNNVEwen5MnPn3amqYhDEU5EwGmZkpi6w+lsOouub1z808Gz94/q2SwannhoNnu02QLJL98ke4ByTi+cfXry6rJ0qYhdCTweoNls6E63/b8g/rdb/mdHgR8N8GwWZAny0Il1zCIHbEpexFSIgObnwVfb+29fHRwcvdz+8mj/3dujlzv7dY3Q+AGbuxtqPb42G0SVUM6DC84q6qKMCcHyE2fFEc684M4xic9onvhAO+cN4WdJcZE7ZUpyh/CKzUlczXKExw04l6xyn+DxjYYWVkqk4XmDXxYsdxVAHjqhOeWkor65I0t8WO6XDHkIPgHuWGExl0eLShxc5bFrTsV3oXUP8EcOGpjzBmgNMimtHE5JktFwDs9Oki9YSjuweGhRzT9t3ykveAZcclBxlp+4AgdV8bq4oPwFEdTFFu+8Vy8eDYBnjpA19f5oUB8NHsG4PXxkVpq7jqtQXRPMeZG9OCX8RZFQ97On2Obo8jmJzyoWnwnFvaJMWeUeV1i9C2rPY/k5SVmyT4ko8pCTi3Bybc4JATGXkws8ZnN3+L6cbvlPokfDAGjsigpjTqsFzx1UclZwVl35RZ5e+VmRLFLqi4pmSO2cEn8ewR9A/vqp9/RnN6uOKUryzYL6p0ScLh0iqjAMkXoZ1OzgVFB+TpOl5Rvy0m/hUilj0U9XXaix98VVXpFLDaz7bHRM66qsSVxz+k19zPH0yI+GbHk/6Bg/ZWe0e7+elorkxlBa3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D9dG3vl27FGr4/aLqoIv0/OPKhtVdfU7IEP3PXtGzhUdMrNdAGwC1K2cnVfF8uOOMOJLBuJ1HlYUU4QxEFY+ewc4xlfsaQ5Nm0WbT7Zufw8NVLFI2mEfaa4be7h/7OW//g1aGSGHOtTkT0IvwsnLi9+A6SEbjVHUBiXNfuUpSo1slcQNHYwMIuiQlp5xzUM4hhGBbl3cu6VFN5Hd2+AKQzTQp2sBBOCu2FRU1e2t7Y0fWWf5dIL1q9C7ZNjMzT2CdMtyKszWVi0pcm2lvy8D7mEr15uhXpMGfVJa0VU9NBEJgDx21znbXq9qRLu7A13D4cKMMy6xgr5LrTOu/IDErBr8JrEZ/SjOwkI2T/smKFt6Au9c8fI6/10DwTIvbMuw4ytJE3OaGvCWckr6QlGdn8sUxpRWDJvtENxl6L6IEi5mga3YwfzEWQnSWMq6h86Qcp0FjASVzBb5OuOY0XHDzmEdRWoO9pOa6/5QTvfgQKfglNX9jrVYY6VPfgNwDeExAe69Eht6cevbf3ehWRVf7IvQ6CAD56tie+muBdGKw0Yp7Ak2XL6cG6vl79dNENqJDlGXipDiBLnKJC9NE6ttOxjAr4ffgxj+I4XR/o1LpRRcSZbx4IjeQPjPyEcnZOE+SZCXX9aPkHYABR98jNzX6ildY1WmrQaNrArJRiVUFE+ELGYEuZxmePR1vW4t1FFRcZXbEOxackP6EJGqG8gHYMRWJ04zVcpl6g85Q3wEj/DQ==','base64')).toString('utf8'))\""
|
|
197
199
|
],
|
|
198
200
|
"timeoutMs": 60000,
|
|
199
201
|
"cwd": "."
|
|
@@ -392,7 +394,7 @@
|
|
|
392
394
|
"writePolicy": "read-only",
|
|
393
395
|
"shell": {
|
|
394
396
|
"commands": [
|
|
395
|
-
"node -e \"eval(require('zlib').inflateRawSync(Buffer.from('
|
|
397
|
+
"node -e \"eval(require('zlib').inflateRawSync(Buffer.from('zTvJcuNIdvf6CmiqQokcAqCqxlPdTTZYoVq6W3ZVSSGpesImUYoUkJRyhK0zQS0t6OSICR/66i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So1slcQNHYwMIuiQlp5xzUM4hhGBbl3cu6VFN5Hd2+AKQzTQp2sBBOCu2FRU1e2t7Y0fWWf5dIL1q9C7ZNjMzT2CdMtyKszWVi0pcm2lvy8D7mEr15uhXpMGfVJa0VU9NBEJgDx21znbXq9qRLu7A13D4cKMMy6xgr5LrTOu/IDErBr8JrEZ/SjOwkI2T/smKFt6Au9c8fI6/10DwTIvbMuw4ytJE3OaGvCWckr6QlGdn8sUxpRWDJvtENxl6L6IEi5mga3YwfzEWQnSWMq6h86Qcp0FjASVzBb5OuOY0XHDzmEdRWoO9pOa6/5QTvfgQKfglNX9jrVYY6VPfgNwDeExAe69Eht6cevbf3ehWRVf7IvQ6CAD56tie+muBdGKw0Yp7Ak2XL6cG6vl79dNENqJDlGXipDiBLnKJC9NE6ttOxjAr4ffgxj+I4XR/o1LpRRcSZbx4IjeQPjPyEcnZOE+SZCXX9aPkHYABR98jNzX6ildY1WmrQaNrArJRiVUFE+ELGYEuZxmePR1vW4t1FFRcZXbEOxackP6EJGqG8gHYMRWJ04zVcpl6g85Q3wEj/DQ==','base64')).toString('utf8'))\""
|
|
396
398
|
],
|
|
397
399
|
"timeoutMs": 60000,
|
|
398
400
|
"cwd": "."
|
|
@@ -444,7 +446,7 @@
|
|
|
444
446
|
"verification-before-completion"
|
|
445
447
|
],
|
|
446
448
|
"complexity": "MED",
|
|
447
|
-
"subtaskPromptTemplate": "Convert the single frozen Markdown module `{{item.markdownPath}}` into one self-contained pytest module. Before writing, also read the run-owned Markdown plan artifact at `{{item.planReadPath}}` and use its explicit API target/environment table as the authoritative fallback base URL for every module. A task/Markdown `API_BASE_URL` target takes precedence over project README dev-server URLs; never infer a backend API fallback from a frontend/Vite port such as localhost:3000. After reading the module Markdown, the run-owned plan artifact, and the bounded pytest config/conftest, immediately use write tools to create the single frozen file `{{item.pytestPath}}`. Define any bounded HTTP client fixture, request logging/redaction/truncation helper and payload builders needed by this module inside that same file; do not import generated testcase/**/helpers/** or testcase/**/factories/** assets. Do not end after analysis or planning. Do not modify Markdown, conftest, helpers/factories, or any other module's pytest script.\n\nOutput budget protocol (hard, max output <=16K per turn): Write exactly the frozen `{{item.pytestPath}}`. Never paste full Python modules into assistant chat. Do not merge or split modules. Do not reduce params/assertions/skips to fit. If OUTPUT_LIMIT_RECOVERY is injected, continue only listed missing/broken scripts.\n\nAlign every variant pytest.param payload with the Markdown scenario intent (empty/missing/null/length/pattern/enum/wrong-type/nominal). Prefer literal payloads over Faker for intent-critical fields so pre-execution scenario-param checks can verify them. Hard contract: intent=enum-invalid MUST pass a concrete invalid value literal (string/number/boolean), never `_OMIT`/None/missing key; intent=missing/empty may use `_OMIT` or delete the key; intent=custom-literal:trim|whitespace-padded requires a leading/trailing whitespace string with non-empty trimmed content (all-whitespace belongs to empty/whitespace-only, not trim); intent=custom-literal:ACTIVE|ARCHIVED requires the exact enum string, never descriptive tokens like filter-active; intent=max/min/max+1 should pass a repeated-string length expression, a bare length number N, or a helper named _*_LEN{N} / _*_MAX_LENGTH / _*_OVER_LENGTH — never a bare 1 for oversize. Hard contract: request payload dicts may only contain DTO field keys from Payload Allowed Paths; never put expect/expected/echo_* helper keys inside the JSON body dict. Path/query/header identifiers and scenario-control metadata (including `id`, expected codes, and selector labels) must stay in separate pytest parameters and helper arguments; never merge them into a DTO patch or JSON body unless that exact path is allowed by the Markdown payload contract. Normalize the configured API base URL with `rstrip(\"/\")` (or equivalently join exactly one slash) before appending endpoint paths; generated requests must never contain a `//api/...` path. When the bound source documents a concrete non-secret local API URL, generated clients must use it as the fallback in `os.environ.get(\"API_BASE_URL\", \"<documented-url>\")`; do not require an otherwise-uninjected environment variable or fail setup solely because it is absent. Missing-field helpers must remove keys idempotently with `payload.pop(field, None)`, never `del payload[field]`, because optional fields may already be absent.\n\nFor every response contract that requires an object or pagination envelope, first assert that each envelope/data value is a dict and that required keys exist, then index fields and assert values. Never let an incidental KeyError or list/string TypeError stand in for the explicit response-shape contract failure.\n\nEnsure every automatable final Markdown Case ID in this module appears in exactly one primary pytest test function or pytest test class method region, using the exact `primary symbol` declared by Markdown. Skip evidence-only meta Cases that declare `脚本/primary symbol=无` with empty variants; do not invent a business pytest symbol for them. The symbol must start with `test_BE_<MODULE>_<NNN>_` so every parameterized collected item remains associated with its Case. Module-level functions and class-based pytest methods are both supported. Only `变体测试点` may use stable `pytest.param(..., id=\"TP-...\")` IDs, and every atomic variant ID must appear exactly once with a genuine input/state/outcome change. Use a literal direct `pytest.param(..., id=...)` expression for every row; never hide or wrap it behind `_post_case`, `_put_case`, row-factory functions, comprehensions, generators, or dynamically returned parameter lists; do not use decorator-level `ids=[...]`, generated suffixes, or IDs that extend/shorten the exact Markdown TP. Do not parameterize `场景断言测试点` or `横切证据测试点`; execute all assertion checkpoints within the same business journey/item and use shared helpers for cross-cutting evidence. The primary symbol docstring must contain exact metadata lines `Case-ID: BE-...`, `Assertion-Test-Points: TP-...;TP-...` and `Cross-Cutting-Test-Points: TP-...;TP-...` (use `none` when empty). Implement request dictionaries so their direct and nested key paths and enum literals exactly satisfy the Case `Payload Required Paths`, `Payload Allowed Paths`, and `Payload Enum`; for `Payload Contract: none`, do not invent a JSON/body DTO. GET/DELETE setup journeys may create resources, but their setup DTO must not change the target operation's no-body payload contract. No Test Point may be invented, renamed, omitted or bound in two modes. The generated pytest collection shape must equal the Markdown prediction `sum(max(1, variant count per Case))`; keep it at or below the task's explicit budget by removing duplicate execution, never by collapsing multiple parameter rows under a coarse family TP. Assertions come only from 预期结果 and setup comes only from 前置条件/测试数据/自动化映射.\n\nName the generated pytest file so it corresponds one-to-one with its source Markdown module file: this module stem `{{item.stem}}` maps to exactly the frozen `{{item.pytestPath}}`. The <module> stem is the Markdown filename without the `.md` extension, lowercased and with non-alphanumeric characters replaced by underscores. For example, `resource_notes` → `testcase/test_resource_notes.py`, `health` → `testcase/test_health.py`. If Markdown automation mapping names a different path than this module stem path, still write the frozen manifest pytest path and do not invent prefixes. Never merge multiple Markdown modules into one pytest file, never split one module across several files, and never invent pytest filenames unrelated to the Markdown modules.\n\nScenario Partition slots: every `TP-<Partition ID>-...` variant Test Point declared by this module's Markdown MUST become exactly one literal direct `pytest.param(..., id=\"TP-<Partition ID>-...\")` row with the exact slot ID; the not-in-set slot passes a concrete literal absent from the documented Domain (e.g. `UNKNOWN_TYPE`) — never `_OMIT`, never a descriptive token. Never split one slot into multiple params or merge several slots under a family TP id. Slot filtering requests hit the documented list endpoint with the slot value as the query/path filter.\n\nKeep this module self-contained: define module-local fixtures and helpers directly in `{{item.pytestPath}}`, so pytest discovers every fixture dependency without external plugin registration. The request log must include method, URL/path, and request parameters (query plus JSON/body/payload summary). The response log must include status code and response result (JSON/text/body summary), and both records must be visible in pytest stdout/stderr without changing assertions. Recursively redact sensitive values and apply bounded truncation before logging.\n\nMaterialize every automatable Markdown Case exactly once as one canonical primary pytest symbol. Preserve every explicit variant Test Point as a stable pytest.param id and every assertion/cross-cutting binding as declared. Build request payloads from the effective Markdown test data literally: keep all declared DTO keys, nested shapes, enum values, missing/null/boundary variants and business-state preconditions; never substitute guessed convenience fields or rename contract fields. Never assert an identifier's concrete Python/JSON type unless the Markdown or bound contract explicitly declares that type; when only presence is required, accept any non-null scalar identifier and serialize it safely into the path. For a nonexistent-resource 404 Case whose identifier syntax/type is not declared, obtain a syntactically valid identifier from a live create response and delete it before the 404 request; never invent an arbitrary UUID/text identifier that may fail path conversion with 400. Respect every local helper's actual return signature: never tuple-unpack a scalar status/id/helper result, and never treat a tuple response as a scalar.\n\nDo not read source/**, add cases, reassign ACs, modify conftest/config/production code, use skip/xfail, swallow assertions, execute pytest, or emit JSON. For best-effort cleanup, catch only the narrow transport exception actually raised by the selected HTTP client (for example `requests.RequestException` or `urllib.error.URLError`); never use bare `except`, `Exception`, or `BaseException` with `pass`.",
|
|
449
|
+
"subtaskPromptTemplate": "Convert the single frozen Markdown module `{{item.markdownPath}}` into one self-contained pytest module. Before writing, also read the run-owned Markdown plan artifact at `{{item.planReadPath}}` and use its explicit API target/environment table as the authoritative fallback base URL for every module. A task/Markdown `API_BASE_URL` target takes precedence over project README dev-server URLs; never infer a backend API fallback from a frontend/Vite port such as localhost:3000. After reading the module Markdown, the run-owned plan artifact, and the bounded pytest config/conftest, immediately use write tools to create the single frozen file `{{item.pytestPath}}`. Define any bounded HTTP client fixture, request logging/redaction/truncation helper and payload builders needed by this module inside that same file; do not import generated testcase/**/helpers/** or testcase/**/factories/** assets. Do not end after analysis or planning. Do not modify Markdown, conftest, helpers/factories, or any other module's pytest script.\n\nOutput budget protocol (hard, max output <=16K per turn): Write exactly the frozen `{{item.pytestPath}}`. Never paste full Python modules into assistant chat. Do not merge or split modules. Do not reduce params/assertions/skips to fit. If OUTPUT_LIMIT_RECOVERY is injected, continue only listed missing/broken scripts.\n\nAlign every variant pytest.param payload with the Markdown scenario intent (empty/missing/null/length/pattern/enum/wrong-type/nominal). Prefer literal payloads over Faker for intent-critical fields so pre-execution scenario-param checks can verify them. Hard contract: intent=enum-invalid MUST pass a concrete invalid value literal (string/number/boolean), never `_OMIT`/None/missing key; intent=missing/empty may use `_OMIT` or delete the key; intent=custom-literal:trim|whitespace-padded requires a leading/trailing whitespace string with non-empty trimmed content (all-whitespace belongs to empty/whitespace-only, not trim); intent=custom-literal:ACTIVE|ARCHIVED requires the exact enum string, never descriptive tokens like filter-active; intent=max/min/max+1 should pass a repeated-string length expression, a bare length number N, or a helper named _*_LEN{N} / _*_MAX_LENGTH / _*_OVER_LENGTH — never a bare 1 for oversize. Hard contract: request payload dicts may only contain DTO field keys from Payload Allowed Paths; never put expect/expected/echo_* helper keys inside the JSON body dict. Path/query/header identifiers and scenario-control metadata (including `id`, expected codes, and selector labels) must stay in separate pytest parameters and helper arguments; never merge them into a DTO patch or JSON body unless that exact path is allowed by the Markdown payload contract. Normalize the configured API base URL with `rstrip(\"/\")` (or equivalently join exactly one slash) before appending endpoint paths; generated requests must never contain a `//api/...` path. When the bound source documents a concrete non-secret local API URL, generated clients must use it as the fallback in `os.environ.get(\"API_BASE_URL\", \"<documented-url>\")`; do not require an otherwise-uninjected environment variable or fail setup solely because it is absent. Missing-field helpers must remove keys idempotently with `payload.pop(field, None)`, never `del payload[field]`, because optional fields may already be absent.\n\nFor every response contract that requires an object or pagination envelope, first assert that each envelope/data value is a dict and that required keys exist, then index fields and assert values. Never let an incidental KeyError or list/string TypeError stand in for the explicit response-shape contract failure.\n\nEnsure every automatable final Markdown Case ID in this module appears in exactly one primary pytest test function or pytest test class method region, using the exact `primary symbol` declared by Markdown. Skip evidence-only meta Cases that declare `脚本/primary symbol=无` with empty variants; do not invent a business pytest symbol for them. The symbol must start with `test_BE_<MODULE>_<NNN>_` so every parameterized collected item remains associated with its Case. Module-level functions and class-based pytest methods are both supported. Only `变体测试点` may use stable `pytest.param(..., id=\"TP-...\")` IDs, and every atomic variant ID must appear exactly once with a genuine input/state/outcome change. A Case with exactly one variant Test Point still needs one literal `pytest.param(..., id=\"TP-...\")` row; never leave a single-variant Case as a bare function with the TP only in the docstring. Use a literal direct `pytest.param(..., id=...)` expression for every row; never hide or wrap it behind `_post_case`, `_put_case`, row-factory functions, comprehensions, generators, or dynamically returned parameter lists; do not use decorator-level `ids=[...]`, generated suffixes, or IDs that extend/shorten the exact Markdown TP. Do not parameterize `场景断言测试点` or `横切证据测试点`; execute all assertion checkpoints within the same business journey/item and use shared helpers for cross-cutting evidence. The primary symbol docstring must contain exact metadata lines `Case-ID: BE-...`, `Assertion-Test-Points: TP-...;TP-...` and `Cross-Cutting-Test-Points: TP-...;TP-...` (use `none` when empty). Implement request dictionaries so their direct and nested key paths and enum literals exactly satisfy the Case `Payload Required Paths`, `Payload Allowed Paths`, and `Payload Enum`; for `Payload Contract: none`, do not invent a JSON/body DTO. GET/list filters still declare query fields in those payload labels when the Case varies `params=`/`query=` keys. Python `True`/`False` may implement JSON/OpenAPI `true`/`false` query or body booleans. GET/DELETE setup journeys may create resources, but their setup DTO must not change the target operation's no-body payload contract. No Test Point may be invented, renamed, omitted or bound in two modes. The generated pytest collection shape must equal the Markdown prediction `sum(max(1, variant count per Case))`; keep it at or below the task's explicit budget by removing duplicate execution, never by collapsing multiple parameter rows under a coarse family TP. Assertions come only from 预期结果 and setup comes only from 前置条件/测试数据/自动化映射.\n\nName the generated pytest file so it corresponds one-to-one with its source Markdown module file: this module stem `{{item.stem}}` maps to exactly the frozen `{{item.pytestPath}}`. The <module> stem is the Markdown filename without the `.md` extension, lowercased and with non-alphanumeric characters replaced by underscores. For example, `resource_notes` → `testcase/test_resource_notes.py`, `health` → `testcase/test_health.py`. If Markdown automation mapping names a different path than this module stem path, still write the frozen manifest pytest path and do not invent prefixes. Never merge multiple Markdown modules into one pytest file, never split one module across several files, and never invent pytest filenames unrelated to the Markdown modules.\n\nScenario Partition slots: every `TP-<Partition ID>-...` variant Test Point declared by this module's Markdown MUST become exactly one literal direct `pytest.param(..., id=\"TP-<Partition ID>-...\")` row with the exact slot ID; the not-in-set slot passes a concrete literal absent from the documented Domain (e.g. `UNKNOWN_TYPE`) — never `_OMIT`, never a descriptive token. Never split one slot into multiple params or merge several slots under a family TP id. Slot filtering requests hit the documented list endpoint with the slot value as the query/path filter.\n\nKeep this module self-contained: define module-local fixtures and helpers directly in `{{item.pytestPath}}`, so pytest discovers every fixture dependency without external plugin registration. The request log must include method, URL/path, and request parameters (query plus JSON/body/payload summary). The response log must include status code and response result (JSON/text/body summary), and both records must be visible in pytest stdout/stderr without changing assertions. Recursively redact sensitive values and apply bounded truncation before logging.\n\nMaterialize every automatable Markdown Case exactly once as one canonical primary pytest symbol. Preserve every explicit variant Test Point as a stable pytest.param id and every assertion/cross-cutting binding as declared. Build request payloads from the effective Markdown test data literally: keep all declared DTO keys, nested shapes, enum values, missing/null/boundary variants and business-state preconditions; never substitute guessed convenience fields or rename contract fields. Never assert an identifier's concrete Python/JSON type unless the Markdown or bound contract explicitly declares that type; when only presence is required, accept any non-null scalar identifier and serialize it safely into the path. For a nonexistent-resource 404 Case whose identifier syntax/type is not declared, obtain a syntactically valid identifier from a live create response and delete it before the 404 request; never invent an arbitrary UUID/text identifier that may fail path conversion with 400. Respect every local helper's actual return signature: never tuple-unpack a scalar status/id/helper result, and never treat a tuple response as a scalar.\n\nDo not read source/**, add cases, reassign ACs, modify conftest/config/production code, use skip/xfail, swallow assertions, execute pytest, or emit JSON. For best-effort cleanup, catch only the narrow transport exception actually raised by the selected HTTP client (for example `requests.RequestException` or `urllib.error.URLError`); never use bare `except`, `Exception`, or `BaseException` with `pass`.",
|
|
448
450
|
"outputContract": "Write exactly the frozen pytest module file `{{item.pytestPath}}` whose actual test function region contains the exact Case ID, preferably in the function name or docstring. the frozen `{{item.markdownPath}}` maps one-to-one to `{{item.pytestPath}}`; never merge or split modules. No JSON and no pytest execution.",
|
|
449
451
|
"toolProfile": "write",
|
|
450
452
|
"writePolicy": "exclusive",
|