Conversation
- audit_cross_run: log entry and spike detection results in buildMetricsTrend - observability_insights: log hotspot detection and final insight counts - command: log number of checks built and condition path chosen - safe_outputs_tools_repo_params: log entry, skip, and result of repo param computation - imports: log entry and completion of mergeSafeOutputConfig Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enhanced debug logging in 5 key files to improve troubleshooting and visibility into workflow compilation and analysis:
pkg/cli/audit_cross_run.go: Log entry and computed results (avg cost/tokens/turns, spike counts) inbuildMetricsTrendpkg/cli/observability_insights.go: Log when failure/drift hotspots are detected and log total insight counts at function returnpkg/workflow/command.go: Log the number of command checks built and which condition path is taken (simple vs event-aware)pkg/workflow/safe_outputs_tools_repo_params.go: Log entry, skip decision, and result of repo parameter computation in bothaddRepoParameterIfNeededandcomputeRepoParamForToolpkg/workflow/imports.go: Log entry and completion ofmergeSafeOutputConfigwhen merging imported safe-output configurationsAll changes follow project conventions (file-specific logger variables,
pkg:filenamenaming, no side effects in log arguments). Build validated withmake buildandgo build ./....Test plan
make buildpasses with no compilation errorsgo build ./...succeedsDEBUG=workflow:command,workflow:safe_outputs_configshows new log output during workflow compilationDEBUG=cli:audit_cross_run,cli:observability_insightsshows new log output during audit report generation🤖 Generated with [Claude Code]((claude.com/redacted)