Skip to content

Implementation Plan: T5-P4-A1-WP2 Eliminate Duplicated Env-Assembly Block#4138

Merged
Trecek merged 8 commits into
developfrom
t5-p4-a1-wp2-eliminate-the-25-line-duplicated-env-assembly-b/4015
Jun 28, 2026
Merged

Implementation Plan: T5-P4-A1-WP2 Eliminate Duplicated Env-Assembly Block#4138
Trecek merged 8 commits into
developfrom
t5-p4-a1-wp2-eliminate-the-25-line-duplicated-env-assembly-b/4015

Conversation

@Trecek

@Trecek Trecek commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Expand _assemble_shared_env_extras in BackendCmdBuilderBase to produce the four env keys that are currently duplicated across all four call sites (claude skill, claude food_truck, codex skill, codex food_truck): AUTOSKILLIT_HEADLESS, AUTOSKILLIT_SESSION_TYPE, AUTOSKILLIT_APPLICABLE_GUARDS, AUTOSKILLIT_WRITE_GUARD_TOOL_NAMES. Collapse claude.py's build_skill_session_cmd/_build_skill_session_cmd_impl indirection into a single method using _apply_config. Replace codex.py's inline config unpack with _apply_config. Update existing tests that reference _build_skill_session_cmd_impl and the 8-key count assertion. Add AST-based arch tests verifying the consolidation.

Closes #4015

Implementation Plan

Plan file: /home/talon/projects/autoskillit-runs/impl-20260628-015959-473386/.autoskillit/temp/make-plan/t5_p4_a1_wp2_eliminate_env_assembly_duplication_plan_2026-06-28_020600.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 65 34.1k 1.6M 132.8k 53 124.2k 15m 21s
verify* sonnet 1 837 16.7k 466.1k 70.9k 27 52.4k 6m 36s
implement* MiniMax-M3 1 108.3k 20.6k 3.8M 0 118 0 15m 19s
fix* sonnet 1 198 12.1k 1.5M 82.8k 64 64.2k 7m 8s
audit_impl* sonnet 1 44 17.0k 174.1k 52.6k 14 53.6k 8m 40s
prepare_pr* MiniMax-M3 1 48.7k 2.0k 117.5k 0 11 0 45s
compose_pr* MiniMax-M3 1 36.0k 1.2k 140.3k 0 12 0 34s
review_pr* sonnet 1 156 42.0k 1.1M 101.1k 49 83.7k 9m 45s
resolve_review* sonnet 1 261 14.6k 1.9M 77.9k 73 59.4k 11m 37s
Total 194.6k 160.3k 10.9M 132.8k 437.6k 1h 15m

* 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 464 8222.3 0.0 44.5
fix 17 89033.5 3777.5 713.2
audit_impl 0
prepare_pr 0
compose_pr 0
review_pr 0
resolve_review 4 478687.8 14860.0 3651.2
Total 485 22427.3 902.3 330.5

Model Usage Breakdown

Model steps uncached output cache_read cache_write time
opus[1m] 1 65 34.1k 1.6M 124.2k 15m 21s
sonnet 5 1.5k 102.4k 5.2M 313.4k 43m 49s
MiniMax-M3 3 193.1k 23.8k 4.1M 0 16m 38s

Trecek and others added 8 commits June 28, 2026 02:33
…shorten test docstring

claude.py._flag_vocabulary() returned variadic_flags={ADD_DIR,PLUGIN_DIR,TOOLS}
but VARIADIC_CLAUDE_FLAGS={ADD_DIR,TOOLS} (PLUGIN_DIR belongs in NON_VARIADIC).
Also PLUGIN_DIR, OUTPUT_FORMAT, VERBOSE, APPEND_SYSTEM_PROMPT, ALLOW_DANGEROUSLY_SKIP_PERMISSIONS
were missing from non_variadic_flags.  Fix: use the canonical module-level constants.

Also truncate test_backend_builder_no_independent_copies.py docstring from 108 to
88 chars to satisfy ruff E501 (99-char limit).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…qa line

Reviewer flagged "currently unused, reserved for future backend dispatch"
as vague forward-looking prose per project slop conventions. Retain the
noqa: F841 suppressor (mechanically required); drop the explanatory text.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…h codex.py

AGENT_BACKEND_DYNACONF_ENV_VAR was set after AGENT_BACKEND_ENV_VAR in
build_skill_session_cmd while codex.py sets DYNACONF first. Reorder to
match, reducing cognitive friction when reading both files side-by-side.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Trecek Trecek added this pull request to the merge queue Jun 28, 2026
Merged via the queue into develop with commit 037e37e Jun 28, 2026
3 checks passed
@Trecek Trecek deleted the t5-p4-a1-wp2-eliminate-the-25-line-duplicated-env-assembly-b/4015 branch June 28, 2026 10:29
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