Skip to content

refactor(autonomous): split todo_manager into cohesive submodules (PLF-044) - #92

Merged
tom-sapletta-com merged 1 commit into
mainfrom
ticket/039-split-todo-manager
Sep 19, 2026
Merged

tom-sapletta-com merged 1 commit into
mainfrom
ticket/039-split-todo-manager

Conversation

@tom-sapletta-com

Copy link
Copy Markdown
Contributor

Summary

  • Extract todo_ownership (marker + legacy splitting, classifier decomposed into focused predicates), todo_planning (todo derivation) and todo_render (block rendering) from todo_manager (551 → 283 lines, module CC 13 → 6).
  • TodoManager remains the public façade; public API (PREFACT_BEGIN/END, update_todo_md, execute_todos) unchanged.
  • Focused regression tests added for ownership classification, legacy split and rendering (tests/test_todo_ownership.py).

Closes #39

Verification

  • local: pytest -m "not slow and not integration" → 142 passed, 1 skipped
  • code2llm on src/prefact/autonomous: no CC>15 method remains; LAYERS no longer flags todo_manager

…F-044)

Extract todo_ownership (marker/legacy splitting), todo_planning (todo
derivation) and todo_render (block rendering) from todo_manager, keeping
TodoManager as the execution façade. Decompose the legacy classifier
into focused predicates (CC 18 → within limits). Add focused regression
tests for ownership and rendering.

Closes #39

Co-authored-by: Koru Agent <agent@coru.dev>
@tom-sapletta-com
tom-sapletta-com merged commit 3ed06cc into main Sep 19, 2026
2 checks passed
@tom-sapletta-com
tom-sapletta-com deleted the ticket/039-split-todo-manager branch September 19, 2026 17:34
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.

Split large module: todo_manager

1 participant