we should keep shims for data but NOT for functionality - this is not meant to be used…
- User
we should keep shims for data but NOT for functionality - this is not meant to be used as an API - can you try to find any functionality shims in this codebase?
- Assistant
I’m going to scan the repo for shim-style compatibility layers that expose behavior (not just data shapes), starting with the
desloppifyskill guidance and then targeted code searches for adapter/wrapper patterns. - Assistant
Using the
desloppifyskill here because this is a code-health/compatibility question. Next I’ll map the repo quickly, then run targeted searches for shim-like behavior wrappers and report concrete file/line hits. - Assistant
I’ve mapped the repository; next I’m running keyword scans (
shim,compat,legacy, adapter patterns) and then manually filtering for behavior-preserving wrappers versus pure data-compat layers. - Assistant
I found several likely hotspots already (
state.py, review import helpers, command seams). I’m narrowing to non-test runtime files with explicit compatibility-wrapper markers so we can separate function shims from data-format shims. - Assistant
I’m now inspecting each hotspot to confirm which ones are true function-level compatibility shims (wrappers/re-exports) versus acceptable data-shape shims.
- Assistant
I’ve isolated explicit shim markers; I’m checking a few additional files that might hide function shims via alias exports (not labeled as compatibility in comments).
- Assistant
I’m doing one more pass to see which shim symbols are actually used outside tests, so we can flag high-priority removals vs test-only compatibility seams.
- Assistant
I already have explicit shim hits from source comments; I’m running one tool-level check (
desloppify detect facade) to catch re-export function facades that may not have explicit compatibility comments. - Assistant
- User
Please clean them all up - assuming they won't break data backward comptaibiliy. Also, amke sure the dev philosophy doc is clear
- Assistant
I’ll remove the function-level compatibility shims and re-export facades you called out, then update all internal call sites to canonical modules while preserving data-format compatibility paths. After code changes, I’ll tighten
docs/DEVELOPMENT_PHILOSOPHY.mdso the “data shims yes / functionality shims no” rule is explicit. - Assistant
I found a very large pre-existing dirty worktree (hundreds of modified/renamed files unrelated to this specific cleanup), which I didn’t create. To avoid clobbering ongoing refactors, do you want me to proceed by editing only the shim/philosophy files we discussed and leave all other existing changes untouched?
- Assistant
I found a very large pre-existing dirty worktree (hundreds of modified/renamed files unrelated to this specific cleanup), which I didn’t create. To avoid clobbering ongoing refactors, do you want me to proceed by editing only the shim/philosophy files we discussed and leave all other existing changes untouched?
- User
PUSH TO GITHUB AND PLEASE WORK ON TOP OF IT
- Assistant
Understood. I’ll snapshot the current worktree as-is, push it to GitHub, then continue the shim cleanup on top of that pushed commit. I’m checking branch/remotes first so I can push to the correct target.
- Assistant
I found branch
v0.9.0with remoteoriginset to GitHub. I’m creating a single snapshot commit of the current 404-file delta now, then I’ll push it. - Assistant
The commit command hit a sandbox permission block on
.git/index.lock; I’m rerunning the same snapshot commit with escalated permissions so I can write the git index. - Assistant
Snapshot commit is created (
330f777) onv0.9.0. I’m pushing it tooriginnow, then I’ll start the shim cleanup on top. - Assistant
Push failed due sandbox network resolution, so I’m rerunning the same
git pushwith escalated network permissions. - User
PLEASE CONTINUE
- Assistant
Continuing from the snapshot step. I’ll verify whether
330f777is onorigin/v0.9.0, push if needed, then proceed directly with removing functionality shims and tightening the philosophy doc. - Assistant
The branch is clean locally, but
origin/v0.9.0is still behind (ae1386), so I’m pushing330f777now before making new changes. - Assistant
I’m using the
desloppifyskill for this cleanup since this is compatibility/technical-debt work.
Plan I’m executing now:- Remove explicit function-level compatibility shims:
- score getter wrappers, tuple adapters, alias exports, test monkeypatch seams, and backward-compatible fallbacks.
- Remove API-style re-export facades that only forward functionality:
- update internal imports to canonical implementation modules, then delete the facade modules.
- Keep data compatibility behavior intact:
- leave payload-key/data-shape shims (for example
issuesvsfindings) untouched.
- leave payload-key/data-shape shims (for example
- Make the philosophy explicit:
- update
docs/DEVELOPMENT_PHILOSOPHY.mdwith a clear “data shims allowed, functionality shims disallowed” rule and removal expectations.
- update
- Run targeted tests for touched areas, then report what passed/failed.
- Remove explicit function-level compatibility shims:
- Assistant
I’m now applying the cleanup in three chunks: (1) remove direct compatibility wrappers/aliases, (2) remove the small compatibility-export modules and update imports, and (3) update
DEVELOPMENT_PHILOSOPHY.md. I’ll run targeted tests after edits. - Assistant
I’m starting edits on the explicit compatibility wrappers first (
state, plan ops, tool runner/factories, phase aliases, queue/status seams), then I’ll handle compatibility-export modules and imports. - Assistant
I’ve removed the direct wrapper/alias shims and I’m now cleaning test-hook compatibility seams (
cli/path root overrides, triage shared/import helpers facades) and updating imports accordingly. - Assistant
I’m now removing the two compatibility-export modules (
triage/shared.py,review/importing/helpers.py) and rewiring imports directly to implementation modules, including removing the module-levelPROJECT_ROOTpatch seams. - Assistant
I’m now updating tests and direct imports to align with the shim removals (so the codebase no longer depends on deleted compatibility surfaces).
- Assistant
I’ve deleted the compatibility-export modules and updated imports; next I’m removing remaining symbol-level compatibility aliases/constants and then running focused tests.
- Assistant
I’ve completed the code edits and import rewires. I’m running a focused pytest batch on the touched shim areas to catch breakages before I summarize.
- Assistant
Proceeding with the cleanup set as-is and moving toward a clean commit/push. I’ll quickly verify the working tree, re-run the relevant tests, then commit and push on top of the existing branch.
- Assistant
I’m using the
desloppifyskill here because this is a technical-debt/shim cleanup pass; next I’ll validate the change set against that workflow before finalizing commit and push. - Assistant
I confirmed the skill guidance and now I’m doing a final repository-wide shim audit (keywords like
legacy,compat, wrapper aliases) to make sure no functionality shims remain before commit. - Assistant
I found additional functional shim spots still in runtime code (
planning/select, review runner option adapters, compatibility hooks/wrappers). I’m inspecting each one and will remove the functional fallback paths while keeping payload/data normalization behavior intact. - Assistant
I’ve identified concrete shim candidates and I’m now checking the review runner and option-parsing modules for legacy keyword adapters so we can remove those paths cleanly with matching test updates.
- Assistant
I found additional shim-like option adapters in review import/execution code; I’m now mapping their call sites so we can delete legacy keyword/flag support without breaking current command behavior.
- Assistant
I’ve confirmed tests still cover some legacy function signatures (like
tierpassthrough and legacy progress callbacks). I’ll remove those compatibility seams and update tests to enforce the new strict signatures. - Assistant
I have enough context and I’m proceeding with a focused second-pass cleanup of remaining functional shims.
Plan:
- Remove stale function-shim surfaces:
- Drop unused no-op
render_gate_banner. - Remove ignored
tiercompatibility args from planning selectors/public exports. - Delete
languages/python/detectors/compat.py(unused compatibility wrapper module).
- Tighten review runtime contracts:
- Remove legacy kwargs adapter logic from
runner_parallel.execute_batches. - Remove legacy progress callback signature support; require typed event callbacks only.
- Update review batch orchestration and tests to use the strict contract.
- Remove legacy override aliases in review import flow:
- Delete
assessment_override/assessment_notealias plumbing fromimport_cmd,import_helpers,import_parse. - Keep canonical manual override/attestation behavior intact.
- Assistant
I’m starting file edits with planning and next/render shim removals first, then I’ll move into review runner/import contracts.
- Assistant
I’m simplifying
runner_parallelwith minimal churn: removing legacy kwargs and old callback-shape handling while keeping the rest of the execution pipeline unchanged. - Assistant
Next I’m removing the
assessment_override/assessment_notealias plumbing from review import code and collapsing everything to the canonical manual override fields. - Assistant
I’ve finished the code edits and I’m now running a strict grep pass plus pytest on touched areas to catch any residual shim paths or signature fallout before committing.
- Assistant
I’m running a focused pytest batch for planning, review import, runner helpers, and direct-coverage modules to validate these signature and shim removals end-to-end.
- Assistant
The targeted test suite passed (
210 passed), so the shim-removal updates are stable. I’m now reviewing the final diff scope and then I’ll commit and push onv0.9.0. - Assistant
The branch still has a large pre-existing change set, and your “continue” instruction implies we should carry it forward. I’m committing the full working tree (including this shim cleanup pass) and pushing to
origin/v0.9.0. - Assistant
Pushed to GitHub on top of your branch.
- Branch:
v0.9.0 - Commit:
cfd8dd0 - Remote:
origin/v0.9.0updated (330f777 -> cfd8dd0)
Key cleanup completed for functionality shims (data shims preserved):
- Removed ignored tier compatibility args from planning selectors: select.py,
- Branch:
- User
push it to github
- Assistant
I’ll push the current branch state to GitHub now and confirm the result.
- Assistant
v0.9.0is already pushed; GitHub is up to date (Everything up-to-date).There is one local uncommitted change that was not pushed: desloppify/tests/commands/test_transitive_engine.py.
If you want, I can commit that file and push it now.