Skip to content

[log] Add debug logging to webhook, model-routing, and JS taint-summary files - #71327

Merged
pelikhan merged 1 commit into
mainfrom
log-enhancement-webhook-model-routing-taint-27f11bdd061a6e6e
Oct 23, 2026
Merged

pelikhan merged 1 commit into
mainfrom
log-enhancement-webhook-model-routing-taint-27f11bdd061a6e6e

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Debug logging added to 3 files

Added meaningful pkg/logger debug logging to the only genuine zero-logging candidates found in the scanned manifest pool.

Files changed:

  • pkg/workflow/webhook.go — new webhookLog (workflow:webhook): logs webhook catalog load counts, subscription-parsing entry/exit, and the early skip when no gateway-dispatch triggers are configured.
  • pkg/workflow/model_routing_candidates.go — new modelRoutingCandidatesLog (workflow:model_routing_candidates): logs allowed-models resolution counts, policy-excluded candidate groups, and the final resolved AWF candidate count.
  • pkg/workflow/taint/javascript_summaries.go — new javascriptSummariesLog (workflow:taint:javascript_summaries): logs catalog/hash verification failures and unknown summary transfer-function models.
Why only 3 files instead of 5

The pre-flight manifest files_needing_logger and missing_logger_import lists are mostly false positives for this codebase: many files share a package-level logger declared in a sibling file (e.g. workflowLog in compiler.go, threatLog, auditLog, addInteractiveLog, actionPinsLog), so a per-file missing-logger-import check flags files that already log extensively through the shared logger. I verified log-call counts across every first-round candidate (actionpins package, several pkg/cli files, several pkg/workflow files, pkg/agentdrain) before picking files, to avoid duplicating logging or padding the PR with already well-instrumented code. Only webhook.go, model_routing_candidates.go, and javascript_summaries.go had zero existing log calls.

Validation: make build and make fmt passed.

Steering: checked issue #71325 comments — none present, nothing to incorporate.

🤖 Generated with [Claude Code]((claude.com/redacted)

Generated by 📝 Go Logger Enhancement · claude · agent · ~220 AIC · ⌖ ~1 AIC · ⊞ 5.4K · ◷

  • expires on Oct 24, 2026, 7:37 PM UTC-08:00
These three files were the only genuine zero-logging candidates in the
scanned pool; every other candidate already used a shared package-level
logger with extensive call sites.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions github-actions Bot added automation enhancement New feature or request labels Oct 23, 2026
@pelikhan
pelikhan merged commit 67e9e6c into main Oct 23, 2026
34 of 35 checks passed
@pelikhan
pelikhan deleted the log-enhancement-webhook-model-routing-taint-27f11bdd061a6e6e branch October 23, 2026 03:42
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v0.93.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation enhancement New feature or request

1 participant