Add design doc for extracting sans-I/O pattern into reusable crate#33
Merged
RobbieMcKinstry merged 4 commits intotrunkfrom Feb 8, 2026
Merged
Conversation
Analyzes what it would take to extract the generalizable "Functional Core, Imperative Shell" architecture from crates/controlplane into a standalone kube-sans-io crate. Covers generic ReconcileResult<U,S>, Snapshot trait, executor traits, migration phases, and design decisions. https://claude.ai/code/session_01DSEmZoHqrhsQUZwzU2SHoR
Major changes: - Executor trait uses #[async_trait] for object safety, enabling dyn Executor for test fakes (RecordingExecutor, FailingExecutor) - Single Executor trait with associated types replaces three separate traits - Ships built-in test fakes in kube_sans_io::testing module - ControllerContext holds Box<dyn Executor<...>> for dependency injection - Replace chrono with jiff::Timestamp for datetime operations - Add testing layer summary showing what's fakeable at each level https://claude.ai/code/session_01DSEmZoHqrhsQUZwzU2SHoR
Parent issue + 4 sub-issues (one per migration phase) with detailed acceptance criteria including linting, formatting, and test requirements. https://claude.ai/code/session_01DSEmZoHqrhsQUZwzU2SHoR
Each sub-issue now has a "Blocked by" field showing which phase must complete first. Added a visual dependency graph at the top for quick reference. All four phases are strictly sequential. https://claude.ai/code/session_01DSEmZoHqrhsQUZwzU2SHoR
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.
Analyzes what it would take to extract the generalizable "Functional Core,
Imperative Shell" architecture from crates/controlplane into a standalone
kube-sans-io crate. Covers generic ReconcileResult<U,S>, Snapshot trait,
executor traits, migration phases, and design decisions.
https://claude.ai/code/session_01DSEmZoHqrhsQUZwzU2SHoR