refactor(server): group backend plan by concern - #693
Closed
Graffioh wants to merge 4 commits into
Closed
Conversation
Graffioh
force-pushed
the
codex/backend-plan-structure
branch
from
September 3, 2026 09:44
43e6a5a to
72c2c9d
Compare
Graffioh
force-pushed
the
codex/backend-plan-structure
branch
from
September 3, 2026 10:03
72c2c9d to
6700cde
Compare
Graffioh
force-pushed
the
codex/backend-plan-structure
branch
from
September 3, 2026 10:08
6700cde to
90062dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Second slice of the server refactor stack, following #691.
BackendPlan::args()view with read-only snapshots by concernModelPlacement,Cache,Speculation, and genericExecutionvaluesDeepSeek4groupBackendArgsonce at preparation, after normalization and admissionExecutionnow contains onlystream_fdandchunk; it is no longer a miscellaneous model-path and DeepSeek bag. No architecture hierarchy or variant is introduced.Stack
This is PR 2 of 3:
d6ef2f7cf90062dc21)66b9295bbThis branch is directly based on the current #691 head. Because the branches live in a fork, the PR targets
mainand temporarily displays the preceding stack commits.Review only this PR's delta: Graffioh/lucebox-hub@codex/backend-plan-boundary...codex/backend-plan-structure
The following #692 delta is: Graffioh/lucebox-hub@codex/backend-plan-structure...codex/luce-engine-implementation
Resulting boundary
The grouped field carriers are public read-only views; only the private builder can populate the plan. Persistent architecture configs introduced in #691 own their path storage, so the plan and returned backend have independent lifetimes.
Why this shape
Modelcouples the path with the metadata inspected from that path.Executionremains small and architecture-neutral.DeepSeek4is a simple field group, not a hierarchy or variant. A variant becomes useful only if more families accumulate distinct option sets.BackendPlanremains the one effective launch snapshot for construction and startup reporting.A separate
BackendRuntimeInfois deferred until it can replace reporting state rather than duplicate it. Explicit SpecLA configuration is also deferred because removing the current environment bridge would be a broader behavior change across low-level graph helpers.Tests
dflash_server,test_feature_gate,test_server_unit,test_deepseek4_unit,test_generate, andtest_dflashModelBackendreturn type and absence of a flatargs()viewgit diff --check