Init: preserve repository config in easy mode - #1057
Conversation
|
Note Automatic reviews are paused because your team has used its included automatic processing for this billing period (headroom scales with your seat count). You can still comment "Gitar review" to run one anytime, and automatic reviews resume on their own by October 1. Add seats for more headroom. Code Review ✅ Approved🟡 Medium risk Preserves repository config in easy mode by detecting and using the root Review coverageRules No rules evaluated OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
Claude audit (merge-authority lane)Head SHA: |
|
Resolved the exact-head Claude P2 on the same branch at The real-file lane-config de-duplication is now limited to Claude and Codex, the only modules previously duplicated through Validation after the fix: 8 focused #1054 tests, 127 related init/adoption tests plus 76 subtests, Ruff, and diff check passed. A fresh exact-head Claude audit is requested; prior evidence remains bound to the old head. |
8006a76 to
ef981e6
Compare
Claude audit (merge-authority lane)Head SHA: |
Problem and behavior
In a configured repository,
code-mower init --easypreviously selected packaged starter defaults and could stage them beside the repository's owncode-mower.yml. It now detects and uses the root config for both preview and apply. An implicit packaged-starter apply beside a root config fails with exact safe commands;--packaged-starterremains the explicit opt-in.The generated plan also emits each selected lane config once. Claude and Codex lane configs now use the same package-backed selected-lane path as other local lanes, eliminating the duplicate-path collision while keeping setup-drift source/target naming unchanged.
Closes #1054.
Validation
PYTHONPATH=src /private/tmp/code-mower-v151-venv/bin/python -m pytest -q tests/test_safe_init_1054.py tests/test_adoption_diagnostics.py tests/test_init_builders_cold_start.py tests/test_adoption_polish_1015.py tests/test_init_actionlint.py tests/test_init_build_loop.py— 134 passed, 76 subtests passedPYTHONPATH=src /private/tmp/code-mower-v151-venv/bin/python -m pytest -q tests/test_release_hygiene.py— 363 passed, 945 subtests passedPYTHONPATH=src /private/tmp/code-mower-v151-venv/bin/python scripts/smoke_easy_mode.py— passedruff check src/code_mower/init.py tests/test_safe_init_1054.py— passedruff format --check tests/test_safe_init_1054.py— passedgit diff --check— passed