Skip to content

Decompose the mega files: lib.rs (18.7k), config.rs (12.3k), client.rs (11.1k), runtime_threads.rs (9.3k) #5586

Description

@Hmbown

User ask for the 0.9.12 cleanup lane: the 10k+-line files keep causing pain. Measured today (prod code, excluding the 20k-line test files which should split alongside their subjects):

Approach (same discipline as #5580): mechanical module extraction, one cohesive region per commit, no behavior change, moves verified by cargo check + the file's existing test slice. Suggested first cuts: client.rs wire-parsing (parse_usage/SSE chunk parsing + their tests) into client/wire.rs; config.rs merge/persistence into config/merge.rs; lib.rs engine-config assembly into its own module. Declared one-way per AGENTS.md once started: new code lands in the extracted modules, touched regions migrate.

Tracker: #5573. Related: #5580, #5581.

Metadata

Metadata

Assignees

No one assigned

    Labels

    v0.9.12Tracked for the v0.9.12 cycle

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions