Skip to content

[log] Add debug logging to run phase, update compile, trial types, and safe-outputs handler/data-schema code - #50993

Merged
pelikhan merged 1 commit into
mainfrom
log/add-debug-logging-5-files-c678b6ff253625e0
Aug 7, 2026
Merged

[log] Add debug logging to run phase, update compile, trial types, and safe-outputs handler/data-schema code#50993
pelikhan merged 1 commit into
mainfrom
log/add-debug-logging-5-files-c678b6ff253625e0

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds pkg/logger-based debug logging to 5 previously under-instrumented Go files, following the conventions in AGENTS.md (one logger.New("pkg:filename") var per file, gated internally by the logger's own enabled check, no side-effecting log arguments).

File Namespace What is logged
pkg/workflow/run_phase.go workflow:run_phase Which run phase (evals/detection) a workflow resolves to
pkg/cli/update_compile.go cli:update_compile Start of a workflow-update compilation batch and any compile failure
pkg/cli/trial_types.go cli:trial_types Count of rejected safe-output messages extracted, and aggregated trial result summary
pkg/workflow/safe_outputs_data_schema.go workflow:safe_outputs_data_schema How safe-outputs.data resolved (disabled / inline schema / GitHub Actions expression)
pkg/workflow/safe_outputs_handler_registry.go workflow:safe_outputs_handler_registry Per-handler GitHub App token resolution decisions

No _test.go files were modified. Exactly 5 files changed.

Validation note

This sandbox has Go 1.25.12 installed with GOTOOLCHAIN=local, while go.mod requires go >= 1.26.5, so make build and make fmt could not be run locally here (pre-existing environment gap, unrelated to this change). The real CI workflow for this job (.github/workflows/go-logger.lock.yml) sets GOTOOLCHAIN: auto and uses actions/setup-go pinned to go-version-file: go.mod, which installs the correct toolchain automatically, so CI build/format checks should validate this normally. The diffs were manually reviewed line-by-line for import correctness, naming collisions, and gofmt-style formatting (tabs, import grouping) matching existing sibling-file patterns in the same packages.

Generated by 📝 Go Logger Enhancement · agent · 364.5 AIC · ⌖ 50 AIC · ⊞ 6K ·

  • expires on Aug 8, 2026, 8:24 PM UTC-08:00

…-outputs data schema/handler registry

Adds pkg:filename-namespaced loggers (workflow:run_phase, cli:update_compile,
cli:trial_types, workflow:safe_outputs_data_schema, workflow:safe_outputs_handler_registry)
with entry/state-change/decision log calls, following the conventions in AGENTS.md.
@github-actions github-actions Bot added automation enhancement New feature or request labels Aug 7, 2026
@pelikhan
pelikhan merged commit 0cf1606 into main Aug 7, 2026
37 checks passed
@pelikhan
pelikhan deleted the log/add-debug-logging-5-files-c678b6ff253625e0 branch August 7, 2026 04:41
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v0.86.1

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant