fix: 区分 Trace 摘要与真实行保留

This commit is contained in:
Codex
2026-07-10 19:23:36 +02:00
parent 2394d8252e
commit 29166e2c07
2 changed files with 55 additions and 9 deletions
@@ -84,6 +84,7 @@ test("Workbench 产品 Trace 可读性源码解析独立 YAML 时序并识别终
mode: "window-progress",
passed: true,
retainedRowCount: 0,
retainedConcreteRowCount: 0,
runningEventCount: 121,
terminalEventCount: 122,
runningSourceSeqMin: 1,
@@ -92,6 +93,46 @@ test("Workbench 产品 Trace 可读性源码解析独立 YAML 时序并识别终
terminalSourceSeqMax: 121,
valuesRedacted: true,
});
assert.deepEqual(helpers.workbenchTraceReadabilityRetention({
rowIdentities: ["source:18:trace-noise-summary"],
disclosure: { eventCount: 25, rowWindowed: false },
sourceSeqMin: 18,
sourceSeqMax: 18,
}, {
rowIdentities: ["source:21:event:evt_fixture", "source:42:terminal:evt_terminal"],
disclosure: { eventCount: 50, rowWindowed: false },
sourceSeqMin: 21,
sourceSeqMax: 42,
}), {
mode: "summary-progress",
passed: true,
retainedRowCount: 0,
retainedConcreteRowCount: 0,
runningEventCount: 25,
terminalEventCount: 50,
runningSourceSeqMin: 18,
runningSourceSeqMax: 18,
terminalSourceSeqMin: 21,
terminalSourceSeqMax: 42,
valuesRedacted: true,
});
assert.deepEqual(helpers.workbenchTraceReadabilityRetention({
rowIdentities: ["source:18:event:evt_running"],
disclosure: { eventCount: 25, rowWindowed: false },
sourceSeqMin: 18,
sourceSeqMax: 18,
}, {
rowIdentities: ["source:21:event:evt_terminal"],
disclosure: { eventCount: 50, rowWindowed: false },
sourceSeqMin: 21,
sourceSeqMax: 21,
}), {
mode: "identity-overlap",
passed: false,
retainedRowCount: 0,
retainedConcreteRowCount: 0,
valuesRedacted: true,
});
});
test("运行卡片命中后使用 traceId 稳定定位,不随状态变更漂移", async () => {