T5-P4-A2-WP1 — Eliminate noqa:F841 Silent Parameter Discards in CodexBackend#4141
Merged
Trecek merged 4 commits intoJun 28, 2026
Conversation
…ded params Replace 6 silent noqa:F841 parameter discards in build_skill_session_cmd and build_food_truck_cmd with explicit behavioral dispositions: - plugin_source and output_format now emit structlog warnings when non-default values are passed (codex_plugin_source_discarded, codex_output_format_coerced). - exit_after_stop_delay_ms and stream_idle_timeout_ms inject AUTOSKILLIT_IDLE_OUTPUT_TIMEOUT into env extras via setdefault (existing provider_extras/env_extras values win via CodexEnvPolicy extras precedence). Part of T5-P4-A2-WP1. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… test test_claude_only_params_accepted_but_ignored asserted the silent-discard behavior; replace it with test_default_params_emit_no_warnings which uses structlog.testing.capture_logs() to assert the new behavioral contract: no codex_plugin_source_discarded or codex_output_format_coerced events fire on default params, and CLAUDE_* Claude env vars remain absent. Part of T5-P4-A2-WP1. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ions Replace the silent-discard documentation tests with 15 behavioral contract tests covering both build_skill_session_cmd and build_food_truck_cmd: - plugin_source -> captures codex_plugin_source_discarded warning event. - output_format -> captures codex_output_format_coerced warning event when non-default (JSON for skill, STREAM_JSON for food_truck). - exit_after_stop_delay_ms -> asserts AUTOSKILLIT_IDLE_OUTPUT_TIMEOUT env injection via setdefault. - stream_idle_timeout_ms -> asserts both env injection and CmdSpec.process_idle_timeout_ms routing. - Defaults -> asserts no warning events and no env injection. Also updates the class docstring to describe active dispositions instead of the old noqa:F841 discard picture. Part of T5-P4-A2-WP1. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…test isolation
build_food_truck_cmd's warning compared against JSON instead of STREAM_JSON
(the food truck default), so passing JSON triggered no warning; fix by
comparing against STREAM_JSON.
test_zero_ms_no_idle_timeout_{skill,food_truck}_builder now use monkeypatch
to remove AUTOSKILLIT_IDLE_OUTPUT_TIMEOUT from ambient env before asserting
absence in spec.env (ambient pipeline env leaked through filtered_base).
Raise codex.py line-limit exemption from 1125 to 1150 to cover the +18 net
lines added by T5-P4-A2-WP1 explicit parameter dispositions.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
Remove all 6
noqa:F841silent parameter discards acrossbuild_skill_session_cmdandbuild_food_truck_cmdincodex.py. Each discarded parameter gets an explicit disposition:plugin_sourceandoutput_formatemit structlog warnings when non-default values are passed, andexit_after_stop_delay_ms(plusstream_idle_timeout_ms) injectAUTOSKILLIT_IDLE_OUTPUT_TIMEOUTinto env extras viasetdefault. Replace the old test and rewrite theTestCodexDiscardDispositionsclass to assert the new behavioral contracts.Implementation Plan
Plan file:
/home/talon/projects/autoskillit-runs/impl-20260628-060859-170393/.autoskillit/temp/make-plan/t5_p4_a2_wp1_eliminate_noqa_f841_discards_plan_2026-06-28_061300.mdCloses #4016
🤖 Generated with Claude Code via AutoSkillit
Token Usage Summary
* Step used a non-Anthropic provider; caching behavior may differ.
Token Efficiency
Model Usage Breakdown