Repository navigation
Description
Summary
PR #33 (squash-merge of 2,260 commits at 901b3310821e9d65a88301072bb0a183709eefad) was reverted by PR #36 at f19b47b196e7b9167477b19810bb6728e0874b32 because cargo check --workspace failed with 6+ errors across 3 crates (kcode-base, kcode-swarm-core, kcode-setup-hints). The 2,260-commit rebase was lossy in three known places and possibly more that were never caught.
This issue tracks the replacement attempt: a tighter, smaller-batch rebase that runs cargo check after every commit so failures are caught in real time and never accumulate into an unsalvageable mass.
Why a different approach
- 2,260 commits is too many to validate in one pass. A failure at the end means 2,259 prior commits have to be re-investigated.
- 3 known rebase-induced bugs (lost test body, stray
};, emptySerializeimpls) plus 3+ latent compile errors suggests more bugs went undetected. - Fixing forward on the merged state was rejected as too risky (the 2,260-commit rebase is not a clean foundation). Reverting and re-doing it tighter is safer.
Acceptance criteria (must hold before any future PR with this content merges)
cargo check --workspaceexits 0cargo test --workspacepasses (or any pre-existing failures are documented)cargo clippy --workspace --all-targets -- -D warningsexits 0 (or failures documented)- Rebase commit count per push ≤ 200. If the full rebase is larger, split into multiple PRs.
- Per-commit
cargo checkduring the rebase: after everygit rebase --continue, runcargo check --workspacebefore proceeding to the next commit. Do not batch.
Process (concrete)
- Use a private rebase branch (e.g.
decollide/round-2-rebase) on top ofmasteratf19b47b19. - For each rebase step:
git rebase --continuecargo check --workspace 2>&1 | tee /tmp/cargo-check.log- If exit 0, proceed.
- If exit non-zero, STOP. Investigate. Either fix the conflict cleanly or skip the commit with
git rebase --skipand document why.
- If the same file conflicts more than twice, refactor that file first to remove the structural source of conflicts (often a rename conflict that was handled sloppily).
- Once a coherent batch (≤200 commits) is clean, push and open a PR. Do not push the next batch until the previous PR is reviewed and merged.
Scope (in this rebase)
The rebase content itself (Phase 2 source changes) is owned by issue #32. This issue only tracks the process of doing the rebase more safely. If a specific batch surfaces a content-level decision, fork a child issue from #32.
Known lossy sites to watch for (from PR #33's failure)
These were the three sites where the 2,260-commit rebase lost or corrupted content. If they show up again, treat as a smell:
crates/kcode-tui-style/src/harmony.rs— test function body forprint_calibration_scoreswas droppedcrates/kcode-base/src/provider/mod.rs:117— stray};was introducedcrates/kcode-swarm-core/src/lib.rs:183,187— emptySerialize/Deserializeimpls were left in place
Per-commit cargo check would have caught the empty Serialize/Deserialize impls (the others are silent data loss). A review checklist should also include a "test body count" check on harmony.rs.
Out of scope
- The original PR refactor(decollision): rename jcode to kcode #33 — closed by merge
- The revert PR revert: refactor(decollision) rename jcode to kcode (#33) #36 — merged
- The cargo-bug fixes inside kcode-base, kcode-swarm-core, kcode-setup-hints — they are reverted along with everything else; any fix-forward work goes in the new rebase PRs, not back into the merged tree
Linked
- feat(decollide): rename jcode -> kcode (Phase 1: source rename) #T-31 #32 — umbrella tracking issue for the decollide work (Phase 1 done via feat(decollide): rename jcode -> kcode (1 of 2 PRs) #31, Phase 2 still scoped)
- refactor(decollision): rename jcode to kcode #33 — the failed 2,260-commit rebase
- revert: refactor(decollision) rename jcode to kcode (#33) #36 — the revert (merged at
f19b47b19)
Status
Not started. Waiting on maintainer bandwidth to schedule a tighter rebase attempt.
Activity
docs(herdr-session): record KCode PR #36 revert + rebase + issue #43
docs(herdr-session): record validation pass (cargo check PASSED) + #32 …