@tea-agent/loop-agent 0.34.0 → 0.34.2

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/application/task-lifecycle/advance.js +57 -7
  3. package/dist/application/task-lifecycle/plan-transitions.js +13 -21
  4. package/dist/executors/dag-pi-executor.js +18 -3
  5. package/dist/shared/operator/capabilities.js +26 -2
  6. package/dist/shared/timeout-policy.js +5 -0
  7. package/dist/task/source-prepare/prepare.js +49 -2
  8. package/dist/worker/cli.js +16 -0
  9. package/dist/worker/console/interview/grill-me.js +7 -6
  10. package/dist/worker/console/operator-actions.js +231 -22
  11. package/dist/worker/console/prd-intake-bridge.js +393 -0
  12. package/dist/worker/console/recovery-cta.js +35 -6
  13. package/dist/worker/console/server.js +28 -0
  14. package/dist/worker/console/static/assets/index-BpuHmlSP.js +29 -0
  15. package/dist/worker/console/static/index.html +1 -1
  16. package/dist/worker/console/static-src/app/console-types.js +1 -0
  17. package/dist/worker/console/static-src/app/usePrdImport.js +2 -1
  18. package/dist/worker/console/static-src/app/useRecoveryActions.js +24 -1
  19. package/dist/worker/console/static-src/app/useRecoveryConsole.js +19 -1
  20. package/dist/worker/console/static-src/app/useTaskWizard.js +57 -2
  21. package/dist/worker/observability/read-model.js +3 -0
  22. package/dist/workflows/dag/failure-category.js +3 -0
  23. package/dist/workflows/dag/init-hybrid.js +15 -9
  24. package/dist/workflows/dag/liveness-policy.js +2 -1
  25. package/dist/workflows/dag/node-execution.js +3 -2
  26. package/dist/workflows/dag/retry-policy.js +44 -11
  27. package/dist/workflows/dag/runner.js +6 -0
  28. package/dist/workflows/dag/scheduler.js +49 -1
  29. package/dist/workflows/dag/validate.js +16 -2
  30. package/docs/templates/agent-dag.schema.json +4 -4
  31. package/package.json +1 -1
  32. package/dist/worker/console/static/assets/index-CMHovlqG.js +0 -32
@@ -401,7 +401,7 @@
401
401
  "type": "object",
402
402
  "additionalProperties": false,
403
403
  "required": ["maxAttempts"],
404
- "description": "Retry policy for safe read-only Pi nodes, plus the sole explicit writer exception: an exclusive bounded Pi implementer with writerOutcomePolicy.requireChangedFiles=true may use exactly two attempts with only writer-empty-diff. Total attempts include the first try and are capped at five. Only the categories listed in retryCategories are retried; quota/auth/invalid-output/write-guard are never retried.",
404
+ "description": "Retry policy for safe read-only Pi nodes and validation-gated bounded writer exceptions. Total attempts include the first try and are capped at five. Standard implementation-outcome writers may use exactly two attempts with only writer-clean-timeout after the executor proves zero attributed writes and zero write-tool calls; requireChangedFiles writers retain their dedicated writer-empty-diff/completeness policies.",
405
405
  "properties": {
406
406
  "maxAttempts": {
407
407
  "type": "integer",
@@ -423,10 +423,10 @@
423
423
  "retryCategories": {
424
424
  "type": "array",
425
425
  "items": {
426
- "enum": ["timeout", "network", "rate-limit", "unavailable", "empty-output", "output-too-large", "protocol-invalid", "writer-empty-diff"]
426
+ "enum": ["timeout", "network", "rate-limit", "unavailable", "empty-output", "output-too-large", "protocol-invalid", "invalid-output", "writer-empty-diff", "incomplete-write-set", "writer-clean-timeout"]
427
427
  },
428
- "default": ["timeout", "network", "rate-limit", "unavailable"],
429
- "description": "Failure categories eligible for retry. quota is never eligible. empty-output is safe only because retryPolicy is restricted to read-only Pi nodes (apart from the exact writer-empty-diff exception). output-too-large is reserved for explicit structured-required nodes. protocol-invalid is for nodes that declare outputProtocol with retryOnInvalid. writer-empty-diff is reserved for the exact bounded writer policy (two total attempts, requireChangedFiles=true) after executor-attributed empty diff evidence."
428
+ "default": ["timeout", "network", "rate-limit", "unavailable", "empty-output"],
429
+ "description": "Failure categories eligible for retry. quota/auth/write-guard are never eligible. invalid-output is allowed only on explicit structured/protocol policies; writer-empty-diff and incomplete-write-set are reserved for requireChangedFiles generation/completeness writers; writer-clean-timeout is reserved for standard bounded writers after explicit zero-write-tool-call and empty-diff evidence."
430
430
  }
431
431
  }
432
432
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tea-agent/loop-agent",
3
- "version": "0.34.0",
3
+ "version": "0.34.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "loop-agent": "bin/loop-agent.js",