Skip to content

refactor(controller): split runtime modules and clarify code structure #91

Closed

Description

@RentnerKev

Goal

Split oversized Rust modules, especially controller/src/runtime/renderer.rs, into focused modules with clear responsibilities and small interfaces. The requested Alpha 4 code structure must remain maintainable as the certificate, proxy and access-log features land.

Scope

  • Inventory oversized controller modules and split cohesive concerns such as typed Caddy models, routing, upstream transport, certificate state, and associated tests.
  • Keep externally visible APIs, typed configuration validation, controller ownership, security boundaries, and persisted formats unchanged.
  • Remove ordinary prose comments from code and express intent through names and small functions. Keep explanatory documentation in Markdown; preserve compiler/tool directives needed for correct builds.
  • Avoid mixing behavioral changes into the refactor.
  • Run the complete repository check and focused production smokes for affected runtime paths.

Delivery

Use a dedicated descriptive branch/worktree and PR. Integrate after the related Alpha 4 feature PRs so their final implementation is covered. Merge only with all required current-head checks and reviews satisfied. Do not publish the alpha.4 release.

Activity

  1. added this to the v1.0.0-alpha.4 milestone on Sep 12, 2026
  2. added
    enhancement
    area: runtime
    on Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: runtimeenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions