EPIC-005: CodeWhale TUI Crate Decomposition (Umbrella)
FEAT-026 implemented — draft PR awaiting hosted verification
Draft PR #6793 completes the session-group adoption and extraction boundary for all 17 commands, including /structcopy. Submitted head 60235a471 includes upstream main 173edb8ae. Bounded issue #6792 is linked for closure on merge; #6145 and this umbrella remain open.
- Shared capabilities, results and nested protocol payloads replace concrete App/TUI dependencies inside the movable group. Host registration, action conversion, observation and I/O stay outside. The pure sanitizer no longer brings credential storage into the group’s graph.
- The actual complete group compiles independently: 64 tests passed. Rebased workspace nextest: 17,612 passed, zero failed, 28 configured skips; doctests 3 passed, 8 ignored. Formatting, workspace Clippy, boundary/migration guards, 91 guard tests, release order and version/release-note checks passed. Final commit changes only changelogs; executable validation is at
8c38b73f1. - Rebase preserves upstream execution-ID matching and ambiguous-pair refusal, their regression tests, and current-main sanitizer fixes. Original frozen evidence remains intact. One stale transport fixture was corrected. A local typed-plugin failure was traced to a system Node build without TypeScript support; the official Node 22 build passes the same fixture and the complete suite. Failed attempts remain recorded.
- Hosted workflows are held for administrator approval; Greptile 5/5 is pending. Contributor approval of CI run 36685514423 returned HTTP 403 (admin rights required). No Greptile review/check is present; GitGuardian and contribution gate passed. The PR remains draft; owner review has not been requested. Local implementation completion is not a merged delivery.
- EPIC-006: 12/32 implemented, 11/32 merged, one draft delivery, 20 unimplemented. Stage B 10/17 implemented, 9/17 merged. The submitted frontier is
config, core; upstream retainssessionuntil this PR lands. Next adoption work: FEAT-027/028. Physical session extraction remains FEAT-043. The shared outcome/dependency fixes completed here are not deferred to FEAT-037.
EPIC-005 and EPIC-006 remain in progress. Older dated sections below preserve delivery history.
FEAT-029 landed — September 29, 2026
The complete debug group (all fourteen commands, including the former FEAT-030 mutation scope) merged into upstream main via PR #6707 on 2026-09-29 (47a014c68c1). The bounded issue #6706 closed automatically. The hosted Linux/macOS/Windows test jobs, lint and supporting checks passed on the submitted head; the owner approved the contribution. Portable group compilation remains independent of TUI; concrete host I/O and mutations stay in TUI adapters. Root debug leaves the pending frontier; config, core and session remain. FEAT-030 is superseded, not a separate PR. EPIC-006 and umbrella EPIC-005 remain in progress; the next adoption milestone is FEAT-026. Broader #6145 stays open.
Verified delivery and remaining work
- Final submitted head:
5e04eb746; upstream merge:47a014c68c1, confirmed reachable fromorigin/main. - Final CI run 36558141864 succeeded: Linux, macOS, Windows, lint and safety checks passed. Configured skipped jobs are not counted as executed tests.
- EPIC-006: 11/32 active delivery units merged (Stage A 2/2, Stage B 9/17); 21 remain. FEAT-030 is superseded and excluded from the active count, not counted as a second merged PR.
- Next: FEAT-026, then FEAT-027 and FEAT-028. Capability widening is already delivered. FEAT-037 retains remaining outcome ownership; FEAT-045 retains physical debug movement and pure-helper/import wiring.
config,core, andsessionremain in the adoption frontier. EPIC-005/006 and #6145 stay open. No parent-EPIC completion or release-publication claim is made.
FEAT-029 CI follow-up — September 29, 2026 (historical pre-merge snapshot)
PR #6707 remains unmerged and is back in draft while the corrected head is verified. The owner approved the earlier implementation and supplied licensing/version/LF fixes in d5ae33cac. Its Windows run then had one platform-dependent context fixture failure (16,684 passed, one failed). Follow-up 1f402aff3 corrects host environment expectations and owned path/JSON normalization, with 87 focused diagnostics tests passing. Latest origin/main 1cdec0f81 is included; maintainer history is preserved. New fork workflows require administrator approval again; actual Windows verification of the correction is pending. No EPIC completion or full updated-head green matrix is claimed.
Current Core execution — September 9, 2026
Follow the Codewhale Core execution plan for C03–C10, ownership, dependency order and completion evidence. Linear is the current execution authority; local checklists are supporting snapshots.
C03 is active with the existing Kimi worker. Local commits 2be4359f5 migrate AppMode/ApprovalMode consumers and durable context records; 798d3d664 moves worker roster records; 76f8d0044 moves reasoning preferences and removes the UI re-export. The last commit records 229 passing reasoning tests and a warning-free all-target cargo check. Final C03 boundary/approval-policy reconciliation remains open; C04–C10 are not complete.
Preserve the contributor provenance below and credit merged command-contract Stage A and Stage B FEAT-018 through FEAT-024. Current direction supersedes older fleet-stays-in-TUI, engine-last, mandatory staged-shim and fixed-size assumptions. Converge parent/child execution before extracting one runtime; migrate every consumer and measure the headless build boundary. C06 gives the model discretion over useful goals and supported effort, with runtime-owned limits and receipts. Do not impose explicit-goal-request-only semantics.
The whole extraction is active project scope; C20 separately decides which source is required for 0.9.13. These local commits do not establish hosted CI, installed acceptance or publication.
Original umbrella and delivery history
EPIC-005: CodeWhale TUI Crate Decomposition — Umbrella EPIC
This issue is the EpicStyle tracking issue for the CodeWhale TUI crate decomposition. It represents the entire structure below: every sub-EPIC and every FEAT reports here when done, and every PR created under this work is logged here.
The decomposition is the direct answer to the compilation-time discussion in #4991 — see the Developer fast loop section below.
Structure
EPIC-005 is the umbrella EPIC. It does not contain FEATs directly — it holds the map of sub-EPICs, each of which contains its own FEATs.
flowchart TD
U["EPIC-005: TUI Crate Decomposition (umbrella)"]
U --> E6["EPIC-006: Commands -> codewhale-commands (P1)"]
U --> E7["EPIC-007: Tools consolidation -> crates/tools (P1)"]
U --> E8["EPIC-008: Config consolidation -> crates/config (P2)"]
U --> E9["EPIC-009: Hooks + Execpolicy + MCP (P2)"]
U --> E10["EPIC-010: Core extraction -> crates/core (P3)"]| ID | Sub-EPIC | Scope | Status |
|---|---|---|---|
| EPIC-006 | Commands → codewhale-commands |
crates/tui/src/commands/ — groups, registry and discovery |
IN PROGRESS — 12/32 implemented, 11 merged; Stage A 2/2 merged, Stage B 10/17 implemented and 9/17 merged. FEAT-026 complete locally, draft #6793 pending hosted checks and Greptile 5/5. Next FEAT-027/028; physical extraction and other sub-EPICs remain. |
| EPIC-007 | Tools consolidation | crates/tui/src/tools/ (~117k lines) → crates/tools (currently 1.3k) |
NotStarted |
| EPIC-008 | Config consolidation | crates/tui/src/config/ (~13k lines) → crates/config (currently 33k) |
NotStarted |
| EPIC-009 | Hooks + Execpolicy + MCP | hooks/ (7k), execpolicy/ (0.5k), mcp/ (8k) → crates/hooks, crates/execpolicy, crates/mcp |
NotStarted |
| EPIC-010 | Core extraction | crates/tui/src/core/ (~42k lines) → crates/core (currently 3.4k); tightly coupled, P3 follow-up |
NotStarted |
Stays in codewhale-tui: tui/ rendering (~205k lines), fleet/ (~27k lines), and the TUI-specific long tail.
Rules (applied to every sub-EPIC)
- Behavior-preserving — extraction only, no command/UX behavior changes.
- Trait-first — define the boundary interface before moving code (pattern: EPIC-006
CommandContext). - Compiles at every step — bottom-up extraction, workspace stays green at each commit.
- CI gate — extracted crate must never depend on
codewhale-tui(e.g.cargo check -p codewhale-commandspulls no TUI). - Deliver one independently verified PR per completed FEAT against current upstream main; keep parent EPICs open until their remaining work and acceptance criteria are complete.
- Sequencing — EPIC-006 first, then 007/008, then 009, then 010.
Work summary (to be done)
Estimated FEATs under each EPIC. Check a FEAT off and append its PR link when the PR lands; parent EPICs auto-complete when all their FEATs are done. This section is the visual tracker — the Features Breakdown tables in the MemoryBank EPIC documents are the static FEAT-creation source and are not updated per PR.
- EPIC-006: Commands extraction — staged, one FEAT = one independently green PR
Stage A — shapes + infrastructure (COMPLETE 2026-08-19)
- FEAT-014: Prototype command capability/handler/registration shapes only — merged in #5328 (2026-08-13, merge commit
3b41d0ee); no TUI production rewiring - FEAT-015: Add TUI adapters, dual-path dispatch seam, and shrinking migration gate; convert no group — merged in #5506 (2026-08-19, merge commit
ae56154c); complete required check matrix green
- FEAT-014: Prototype command capability/handler/registration shapes only — merged in #5328 (2026-08-13, merge commit
Stage B — adopt shapes inside TUI (files do not move)
- Least-capability invariant: every contextual registration declares its exact minimum external facet set; the TUI exposes only those facets; pure handlers construct no host bundle; missing required facets fail safely. FEAT-019 through FEAT-035 inherit this pattern, and FEAT-035 enforces it repository-wide.
[!NOTE] Historical pre-merge debug delivery — 2026-09-28. Draft #6707 completes FEAT-029 for all fourteen debug commands and absorbs FEAT-030. Source head
d7c766119already includes latest fetchedorigin/main0bfe04e163. Local CI-profile nextest: 17,224 passed, zero failed, 28 configured skips; all 23 required local checks pass. The real complete group also builds in a separate normal library without TUI (30 portable/helper tests pass, no transport stand-ins). Host App/Git/snapshot operations remain outside the movable group. The shared contract still depends on core; physical file extraction is pending. The proposed frontier isconfig,core,session; upstream still hasdebuguntil this PR merges. Hosted CI requires administrator approval of fork workflows (action_required; contributor approval attempt returned HTTP 403). Contribution gate and GitGuardian passed; build/test jobs have not run yet. Review remains pending; this is not a merged delivery or EPIC acceptance. #6145 and this umbrella remain open.Current sequence: FEAT-029 (including former FEAT-030 scope) is merged. Next: FEAT-026 → FEAT-027 → FEAT-028, then the remaining planned work. FEAT-026 reuses the capability widening already delivered by FEAT-029. The dated September 23 account below is historical; its separate FEAT-030 delivery is superseded by this update.
Command adoption update — 2026-09-23. FEAT-025 (session export) merged through #6096 on 2026-09-16 (
9a674f47f). Stage A is complete (2/2); Stage B has 8/18 FEATs merged; 10/33 EPIC-006 FEATs are merged overall. The remaining migration frontier isconfig,core,debug, andsession.Reason for changing the order: the owner requested debug first. In the 2026-09-17 decision on #6145, @Hmbown chose to keep
codewhale-command-contractand finish adoption, with debug + config + the session straggler as the bounded scope, delivered in reviewable slices. He preferred debug first if the order was flexible and deferred core command adoption beyond that release scope because of its larger concrete-Appsurface.Agreed delivery sequence: FEAT-029 (debug diagnostics) → FEAT-030 (debug mutation paths) → FEAT-026 (session structcopy) → FEAT-027 (config policy/status) → FEAT-028 (main config). The debug-first priority comes from the owner; completing session before config afterward is our delivery sequencing choice. FEAT numbers and scope are unchanged: FEAT-026/027/028 remain required. Each FEAT gets an independently verified PR, and the migration gate must reflect completed whole slices. FEAT-031–034 (core command adoption) follow this sequence.
Capability prerequisite — satisfied: FEAT-029 / #6707 widened
CommandCapabilitiestou32, preserving published identities (currently bits 0–21). FEAT-026 reuses that representation and selects its own minimum authority after inspecting current main.Tracker and release scope: #6145 stays open until the adoption frontier is empty. This umbrella stays open across releases, as confirmed in the owner’s milestone clarification. The owner’s 0.9.14 target describes the scope at the time of that comment; this update does not assign a new release deadline.
- FEAT-018: Utility group — shipped in #5525 via v0.9.11 (2026-08-23); complete utility group adopted external command shapes in place
- FEAT-019: Memory group — merged to
mainvia maintainer re-land #5833 (ad813cda6) after review fixes/current-main reconciliation through #5839; original #5609 retained as harvested provenance - FEAT-020: Plugins group — merged into
mainvia current-main re-land #5865 (2026-09-05,dcd4c200f), preserving original #5657 authored history, reconciling FEAT-019/021/022 plus current plugin/marketplace behavior, and restoring three current-main CI blockers with a fully green final matrix - FEAT-021: Project group — merged into
mainin #5717 (2026-08-30, merge commit2f200ee) — first Stage B FEAT to land directly onmain; exact least-authority facets (/init=workspace,/lspand/share=project,/goal=project+presentation). Subsequent FEAT-019/020/022 reconciliation preserves these declarations; current frontier has four groups - FEAT-022: Skills group — merged into
mainvia maintainer replacement #5829 (2026-09-02,84b3dd694); contributor PR #5825 closed as superseded after its work was harvested and co-author credited - FEAT-023: Session lifecycle leaves — merged into
mainin #5902 (2026-09-06, merge commit41fecf8a4); nine handlers migrated with a dedicated least-authority facet,/compactand/purgeremain pure, concrete lifecycle machinery remains TUI-owned, and TUI-only acceptance/regression tests stay outside the movable group; final maintainer nit keptCommandCapabilitiesatu16with bit 13 assigned toSESSION_LIFECYCLE - FEAT-024: Session control / remote paths — merged into
mainin #5951 (2026-09-06, merge commita58e96d40); six handlers useCommandSessionControlContextwith exact least-authority declarations; owner feedback was addressed ind4b68963d, and the complete GitHub/Buildkite matrix was green before merge - FEAT-025: Session export — merged in #6096 on 2026-09-16 (
9a674f47f)./exportand/daochuadoptCommandSessionExportContextwith exactSESSION_EXPORTauthority; concrete host services stay TUI-owned. Four baseline-captured goldens and an external compilation check cover behavior preservation and extraction readiness. This consumes the last freeu16capability bit; the first upcoming slice needing another bit owns widening tou32. Rootsessionfrontier remains pending for FEAT-026. - FEAT-029: Complete debug group — merged in #6707 on 2026-09-29 (
47a014c68c1), with hosted Linux/macOS/Windows tests and lint passing; bounded issue #6706 closed. All fourteen commands adopt external shapes; portable group compiles independently of TUI, with concrete host authority in adapters. - FEAT-030: Debug mutation paths — superseded/absorbed into FEAT-029 / merged #6707; no separate implementation or PR.
- FEAT-026: Session structcopy and complete group boundary — implemented; draft #6793, bounded #6792; hosted checks and Greptile pending, unmerged
- FEAT-027: Config policy/status
- FEAT-028: Main config module
- FEAT-031: Core navigation/display leaves
- FEAT-032: Core model/provider/setup
- FEAT-033: Core coordination/workflow
- FEAT-034: Remaining core policy/interaction
- FEAT-035: Registry/discovery completion + enforce zero direct concrete-
Apphandlers
Stage C — focused prerequisites after in-place decoupling
- FEAT-036: Extract localization behind the existing compatibility path
- FEAT-037: Move only shared command outcome/action data proven necessary
Stage D — bootstrap then move one already-decoupled group per PR
- FEAT-016: Bootstrap
codewhale-commands+ shared registry/discovery boundary; move no group - FEAT-038: Move utility
- FEAT-039: Move memory
- FEAT-040: Move plugins
- FEAT-041: Move project
- FEAT-042: Move skills
- FEAT-043: Move session
- FEAT-044: Move config
- FEAT-045: Move debug
- FEAT-046: Move core
- FEAT-016: Bootstrap
Stage E — final validation
- FEAT-017: Acceptance-test boundary, compatibi
Source: Hmbown/CodeWhale