Skip to content

Implementation Plan: Fix Logger Initialization Deviations in Three Modules#3899

Merged
Trecek merged 1 commit into
developfrom
fix-logger-initialization-deviations-in-three-modules/3770
Jun 8, 2026
Merged

Implementation Plan: Fix Logger Initialization Deviations in Three Modules#3899
Trecek merged 1 commit into
developfrom
fix-logger-initialization-deviations-in-three-modules/3770

Conversation

@Trecek

@Trecek Trecek commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fix four confirmed logger initialization deviations from the validated cohesion audit (F-C3-01):

  1. execution/process/_process_pty.py:11 — Replace structlog.get_logger() with get_logger(__name__) from autoskillit.core, eliminating both the direct structlog import and the missing module-name binding.
  2. execution/backends/_codex_config.py:38 — Add __name__ argument to existing get_logger() call.
  3. fleet/sidecar.py:12 — Add __name__ argument to existing get_logger() call.
  4. execution/backends/claude.py:72 — Add rationale comment to the existing # noqa: TID251 suppression explaining why stdlib logging.getLogger is used instead of the structlog wrapper.

Closes #3770

Implementation Plan

Plan file: /home/talon/projects/autoskillit-runs/impl-20260607-223738-023290/.autoskillit/temp/make-plan/fix_logger_initialization_deviations_plan_2026-06-07_224600.md

🤖 Generated with Claude Code via AutoSkillit

Token Usage Summary

Step Model count uncached output cache_read peak_ctx turns cache_write time
plan* opus[1m] 1 72 9.1k 1.2M 88.3k 45 66.6k 11m 45s
verify* sonnet 1 60 5.7k 265.4k 47.8k 19 26.1k 2m 49s
implement* MiniMax-M3 1 50.2k 3.7k 536.8k 51.5k 35 0 2m 42s
audit_impl* sonnet 1 1.4k 4.2k 166.0k 39.5k 14 22.6k 2m 23s
prepare_pr* MiniMax-M3 1 39.4k 2.3k 157.3k 42.8k 14 0 1m 2s
compose_pr* MiniMax-M3 1 35.6k 2.7k 229.9k 39.8k 16 0 1m 11s
review_pr* sonnet 3 446 32.0k 2.5M 58.5k 123 104.9k 9m 55s
Total 127.2k 59.7k 5.0M 88.3k 220.3k 31m 49s

* Step used a non-Anthropic provider; caching behavior may differ.

Token Efficiency

Step LoC Changed cache_read/LoC cache_write/LoC output/LoC
plan 0
verify 0
implement 10 53675.9 0.0 373.4
audit_impl 0
prepare_pr 0
compose_pr 0
review_pr 0
Total 10 500203.3 22033.5 5967.5

Model Usage Breakdown

Model steps uncached output cache_read cache_write time
opus[1m] 1 72 9.1k 1.2M 66.6k 11m 45s
sonnet 3 1.9k 41.9k 2.9M 153.7k 15m 8s
MiniMax-M3 3 125.3k 8.7k 923.9k 0 4m 55s

Replace bare `get_logger()` calls in `_process_pty.py`, `_codex_config.py`,
and `sidecar.py` with `get_logger(__name__)` to bind the module name for
structured log correlation.

In `_process_pty.py`, also remove the direct `import structlog` (the only
file in `execution/process/` not using `autoskillit.core.get_logger`) and
switch to the `autoskillit.core` wrapper.

In `claude.py`, document the rationale for the existing `logging.getLogger`
stdlib fallback (TID251): it runs before `configure_logging()`, where a
structlog proxy would emit to stderr via the import-time
WriteLoggerFactory and corrupt MCP stdio.

Resolves cohesion audit finding F-C3-01.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

@Trecek Trecek left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AutoSkillit PR Review — Verdict: approved

@Trecek Trecek left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AutoSkillit review passed. No blocking issues found.

@Trecek Trecek added this pull request to the merge queue Jun 8, 2026
Merged via the queue into develop with commit 5aaffc2 Jun 8, 2026
3 checks passed
@Trecek Trecek deleted the fix-logger-initialization-deviations-in-three-modules/3770 branch June 8, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant