@tea-agent/loop-agent 0.16.10 → 0.16.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 CHANGED
@@ -18,6 +18,12 @@
18
18
  - Pi SDK 执行长推理或大段结构化输出时不再把高频流式增量事件无界累积到内存;同一响应在多个生命周期事件中重复出现的 Token 用量只统计一次,避免 `Invalid string length` 和成本数据虚高。
19
19
  - 后端测试复合执行节点继续保持 clean environment、失败分类和 fail-closed outcome,并为 initial/final Result、repair eligibility、traceability 与 Observe 投影保留结构化运行证据。
20
20
 
21
+ ## [0.16.11] - 2026-07-20
22
+
23
+ ### 修复
24
+
25
+ - Worker 报告决策不再把条件分支的 `SKIPPED` 节点当成失败;backend-test 等混合 DAG 在 revise/repair 未选中时,只要 ERROR 不存在且 run finished,即可 `report-completed` 并进入 Outcome/promote。
26
+
21
27
  ## [0.16.10] - 2026-07-20
22
28
 
23
29
  ### 修复
@@ -455,7 +455,8 @@ function isPathInside(root, target) {
455
455
  const relative = path.relative(root, target);
456
456
  return relative !== "" && relative !== ".." && !relative.startsWith(`..${path.sep}`) && !path.isAbsolute(relative);
457
457
  }
458
- function decideFromReport(workerRunId, result) {
458
+ /** Exported for unit tests: map DAG report JSON into Worker report decision. */
459
+ export function decideFromReport(workerRunId, result) {
459
460
  if (!result.ok || !result.json) {
460
461
  return {
461
462
  succeeded: false,
@@ -473,11 +474,16 @@ function decideFromReport(workerRunId, result) {
473
474
  }
474
475
  const runStatus = readString(run, "status");
475
476
  const nodes = readObjectArray(run, "nodes");
477
+ // Condition-branch SKIPPED nodes are expected on green backend-test / hybrid
478
+ // paths (e.g. revise/repair not selected). Do not treat SKIPPED as failure.
479
+ // ERROR and non-success failureCategory on executed nodes still fail closed.
476
480
  const failedNode = nodes.find((node) => {
477
481
  const status = readString(node, "status");
478
482
  const failureCategory = readString(node, "failureCategory");
483
+ if (status === "SKIPPED") {
484
+ return false;
485
+ }
479
486
  return (status === "ERROR" ||
480
- status === "SKIPPED" ||
481
487
  (Boolean(failureCategory) && failureCategory !== "success"));
482
488
  });
483
489
  if (runStatus !== "completed" && runStatus !== "finished") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tea-agent/loop-agent",
3
- "version": "0.16.10",
3
+ "version": "0.16.11",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "loop-agent": "bin/loop-agent.js",