feat: add log-watcher workflow for agent run diagnostics#327
feat: add log-watcher workflow for agent run diagnostics#327adamhenson wants to merge 2 commits intogithubnext:mainfrom
Conversation
|
@adamhenson @lpcox @pelikhan Looks like we also added https://github.com/githubnext/agentics/blob/main/docs/cost-tracker.md - probably inspired by your issue Adam Could you three reconcile these please? Great suggestion either way. Slightly concerned it may be expensive if triggering often |
|
@adamhenson maybe we can link to a report in your org as a community AW? |
|
Good call on reconciling them. The intended split: cost-tracker answers "what did this run cost" and log-watcher answers "what went wrong." They share the same data source but the output is different - a spend summary vs. a health diagnosis. Happy to clarify that in the docs for both, or to consolidate if you'd prefer a single workflow that does both. The cost concern is fair. Log-watcher only produces verbose output on degraded or failed runs - healthy runs get a one-liner. That keeps the token footprint low for normal operation. Worth calling out explicitly in the docs either way. |
|
@pelikhan that would be great - happy to contribute whatever format works. Are you thinking a link in the README, a dedicated docs page, or something else? Let me know what you have in mind and I'll put it together. |
Summary
workflows/log-watcher.md- fires onworkflow_run: completed, downloads theagent-artifactsartifact written by gh-aw's firewall, scans run logs for error patterns and retry loops, analyses token-usage.jsonl for anomalies, and posts a health diagnosis on the associated pull request or creates a diagnosis issuedocs/log-watcher.md- installation instructions, mermaid flow diagram, health level reference, and detection listREADME.md- add Log Watcher to the Fault Analysis Workflows sectionRelated to #297. Companion to #319.
Notes
agent-artifactsartifact exists the workflow produces no outputtoken-usage.jsonlwritten by gh-aw's firewall - no extra setup needed beyond enabling the firewall (the default)