Charles Yao and Claude Opus 5
cc9ca8b1dd
feat(dify-builder): carry generation diagnostics into the exported debug log
...
api pods lose their logs on restart, so a failed build's real cause
("Workflow generator: structural validation failed: ...") could only be read
from a pod log that may already be gone. Session 01a08fd0 hit exactly that.
Carry the generator's own diagnostics back with the result instead:
BuildNodesResult and ErrorCard gain a ``diagnostics`` list, and build_nodes
records one entry per failed generation attempt -- initial AND the corrective
retry, so an error that changes between attempts stays visible -- plus the
all-rejected and exception paths.
Each entry holds a server-side UTC ``at`` (so the surviving pod-log window can
be searched around it), ``source``, ``attempt``, the generator's ``message``
(the same text the server logs), its ``codes``, and the full structured
``errors`` including ``node_id``. That is strictly more than the log line
carries: for an UNRESOLVED_REFERENCE the export now names the offending node.
The list rides in the ErrorCard's item payload, which is what the streamed
conversation item -- and therefore the exported debug log -- preserves. It is
not rendered in the UI. Retries that eventually succeed keep their breadcrumbs.
Deliberately not mirroring the "structural validation failed" prefix: build.py
cannot tell structural failures from the rest without duplicating the
generator's code taxonomy, which would go stale.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-09-17 15:16:10 -07:00
..
2026-09-17 07:28:18 +00:00
2026-09-02 06:54:47 +00:00
2026-08-29 14:05:35 +00:00
2026-09-08 01:30:39 +00:00
2026-09-17 15:16:10 -07:00
2026-09-07 04:39:43 +00:00
2026-08-18 12:01:49 +00:00
2026-09-01 11:50:52 +00:00
2026-09-09 10:22:33 +00:00
2026-08-27 02:41:43 +00:00
2026-09-07 09:25:55 +00:00
2026-08-29 14:06:07 +00:00
2026-08-29 14:05:34 +00:00
2026-09-07 08:29:57 +00:00
2026-08-11 06:19:08 +00:00
2026-08-06 04:14:12 +00:00
2026-09-04 07:38:01 +00:00
2026-08-27 08:51:05 +00:00
2026-09-03 06:20:21 +00:00
2026-08-21 05:56:30 +00:00
2026-08-21 05:56:30 +00:00
2026-08-21 08:13:23 +00:00
2026-08-21 08:46:06 +00:00
2026-08-21 08:05:43 +00:00
2026-08-25 01:48:12 +00:00
2026-08-31 03:22:01 +00:00
2026-08-31 03:22:01 +00:00
2026-09-11 02:41:35 +00:00
2026-09-03 01:38:59 +00:00
2026-09-03 01:38:59 +00:00
2026-09-02 06:54:47 +00:00
2026-08-21 05:56:30 +00:00
2026-09-03 06:20:21 +00:00
2026-09-03 06:20:21 +00:00
2026-09-03 08:47:14 +00:00
2026-09-03 08:47:14 +00:00
2026-09-03 01:38:59 +00:00
2026-08-21 05:56:30 +00:00
2026-08-20 05:03:08 +00:00
2026-09-03 01:38:59 +00:00
2026-09-11 02:41:35 +00:00
2026-08-29 14:05:34 +00:00
2026-09-17 07:05:02 +00:00
2026-08-25 10:21:32 +00:00
2026-09-12 04:55:53 +00:00
2026-09-08 01:14:06 +00:00
2026-08-20 05:11:46 +00:00
2026-08-19 07:23:47 +00:00
2026-09-17 07:05:02 +00:00
2026-08-29 14:05:35 +00:00
2026-09-04 12:16:31 +00:00
2026-08-18 12:23:33 +00:00
2026-09-17 05:43:18 +00:00
2026-09-02 06:54:47 +00:00
2026-09-07 02:47:00 +00:00
2026-09-07 02:47:00 +00:00
2026-08-18 12:01:49 +00:00
2026-08-20 05:11:46 +00:00
2026-08-25 10:21:32 +00:00
2026-09-07 08:29:57 +00:00
2026-09-02 06:54:47 +00:00
2026-09-08 05:42:22 +00:00
2026-08-28 14:47:16 +00:00
2026-08-28 14:47:16 +00:00
2026-09-02 06:54:47 +00:00
2026-09-08 03:31:01 +00:00
2026-08-18 12:26:01 +00:00
2026-08-28 14:47:16 +00:00
2026-08-26 07:33:37 +00:00
2026-09-02 10:30:42 +00:00
2026-08-28 14:47:17 +00:00
2026-09-07 08:29:57 +00:00
2026-09-07 08:29:57 +00:00
2026-09-08 10:22:20 +00:00
2026-08-18 12:01:29 +00:00
2026-09-07 08:29:57 +00:00
2026-09-07 08:29:57 +00:00
2026-08-29 14:05:35 +00:00
2026-08-18 12:23:33 +00:00
2026-09-07 08:29:57 +00:00
2026-09-02 06:54:47 +00:00
2026-08-23 12:38:04 -07:00
2026-09-09 04:38:50 +00:00
2026-09-01 11:50:52 +00:00
2026-09-07 08:29:57 +00:00
2026-09-07 08:29:57 +00:00
2026-08-25 10:26:06 +00:00
2026-09-01 11:50:52 +00:00
2026-09-08 05:42:22 +00:00
2026-08-10 03:27:56 +00:00
2026-09-04 02:01:35 +00:00
2026-09-04 02:01:35 +00:00
2026-08-04 13:14:02 +00:00
2026-09-09 02:56:40 +00:00
2026-08-29 14:05:34 +00:00
2026-09-07 03:21:33 +00:00
2026-08-29 14:05:34 +00:00
2026-09-09 02:56:40 +00:00
2026-08-12 08:42:09 +00:00
2026-09-01 11:50:52 +00:00
2026-08-29 14:05:34 +00:00
2026-09-07 08:59:18 +00:00
2026-09-03 05:02:09 +00:00
2026-08-18 12:01:49 +00:00
2026-08-11 16:37:14 +00:00
2026-08-11 16:37:14 +00:00
2026-08-18 12:23:33 +00:00
2026-08-07 00:42:13 +00:00
2026-08-29 14:05:34 +00:00
2026-08-31 04:37:07 +00:00
2026-09-04 01:52:30 +00:00
2026-08-26 07:33:37 +00:00
2026-08-26 07:33:37 +00:00
2026-09-08 03:42:32 +00:00
2026-09-08 03:42:32 +00:00
2026-09-07 08:29:57 +00:00
2026-09-07 04:39:43 +00:00
2026-09-15 12:45:34 +00:00
2026-08-29 14:05:35 +00:00
2026-09-04 06:03:46 +00:00
2026-09-03 06:00:13 +00:00
2026-08-06 04:06:04 +00:00
2026-08-08 11:52:15 +00:00
2026-08-24 01:57:17 +00:00
2026-08-08 11:52:15 +00:00
2026-09-17 07:17:45 +00:00
2026-09-07 10:59:09 +00:00
2026-08-20 05:12:30 +00:00
2026-09-08 09:31:08 +00:00
2026-09-02 06:54:47 +00:00
2026-09-10 04:11:28 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-09-02 06:54:47 +00:00
2026-08-29 14:05:34 +00:00
2026-09-08 02:51:11 +00:00
2026-09-04 07:21:17 +00:00
2026-08-29 14:05:34 +00:00
2026-09-08 02:03:24 +00:00
2026-08-29 14:05:34 +00:00
2026-08-20 05:11:46 +00:00
2026-09-07 08:29:57 +00:00
2026-09-09 02:56:40 +00:00
2026-09-01 11:50:52 +00:00
2026-09-01 11:50:52 +00:00
2026-08-20 02:27:49 +00:00
2026-08-29 14:05:34 +00:00
2026-09-09 09:02:04 +00:00
2026-08-24 04:01:02 +00:00
2026-09-04 10:06:46 +00:00
2026-08-29 14:05:35 +00:00
2026-08-24 03:20:32 +00:00
2026-08-25 10:21:32 +00:00
2026-09-08 09:31:08 +00:00
2026-09-04 08:16:49 +00:00
2026-09-08 09:31:08 +00:00
2026-09-01 11:50:52 +00:00
2026-09-02 06:54:47 +00:00
2026-09-07 08:29:57 +00:00
2026-09-02 06:54:47 +00:00
2026-08-06 01:08:39 +00:00
2026-09-10 04:13:53 +00:00