Skip to content

refactor(engine): extract WeightUploadOrchestrator (init_weights) to its own TU#334

Closed
kekzl wants to merge 1 commit into
mainfrom
refactor/engine-extract-weight-upload-v2
Closed

refactor(engine): extract WeightUploadOrchestrator (init_weights) to its own TU#334
kekzl wants to merge 1 commit into
mainfrom
refactor/engine-extract-weight-upload-v2

Conversation

@kekzl
Copy link
Copy Markdown
Owner

@kekzl kekzl commented May 20, 2026

Rebased from #312 onto current main (PR-stack cleanup; harness blocked force-push). Original content preserved below.


Summary

Move `Engine::init_weights` (~230 LOC) from `src/runtime/engine.cpp` to `src/runtime/engine_weight_upload.cpp`. Mechanical TU split, body byte-identical.

Stacking

Stack chain: #310#311 → this.

LOC

`engine.cpp` 2752 → 2522 (-230). New file 253 LOC.

Test plan

  • `make build` green
  • `make verify-fast` green
  • Pre-push hook verify-fast green
  • Combined spec + code-quality reviewer ✅ Approved

Phase 4 Task 3 of `docs/superpowers/specs/2026-05-20-architecture-refactor-roadmap-design.md`.

🤖 Generated with Claude Code

…its own TU

Moves Engine::init_weights (~230 LOC) from src/runtime/engine.cpp to
src/runtime/engine_weight_upload.cpp. Declaration in engine.h unchanged.
Body byte-identical.

Phase 4 of docs/superpowers/specs/2026-05-20-architecture-refactor-roadmap-design.md

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@kekzl
Copy link
Copy Markdown
Owner Author

kekzl commented May 20, 2026

Superseded by phase-grouped PR (hybrid recovery plan) — see merged PRs #344 (Phase 2), #345 (Phase 3), #346 (Phase 4), #347 (Phase 5).

@kekzl kekzl closed this May 20, 2026
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