You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This EPIC tracks the smaller mergeable layers for the command-boundary refactor discussed in #2791. The intent is to keep #2851 as the proof/reference branch, but land the v0.9 work in smaller PRs against codex/v0.9.0-stewardship.
Extract registry ownership into commands/registry.rs.
Extract slash parsing into commands/parse.rs.
Keep current command-specific help rendering in commands/core.rs; do not add commands/help.rs unless a real shared help/palette ownership boundary appears.
Keep behavior protected by the Layer 2 harness.
Layer 4: group-owned built-in command files.
Move toward group-owned command areas for core, config, session, skills, project, memory, utility, and debug.
Avoid a long-lived hybrid loader unless Layer 2 proves it is required.
Split inside a group only when the group boundary itself becomes unclear.
Layer 5: user command follow-up.
Treat user_commands as a separate follow-up after built-in command boundaries are stable.
Keep markdown/frontmatter command behavior pinned by parity tests.
Layer 6: completion cleanup.
Remove any temporary bridge if one was introduced.
PR #2888 intentionally does not restructure command handler groups. It moves command registry metadata, command lookup, unknown-command suggestion ranking, and slash command parsing into dedicated helper modules while keeping dispatch in commands/mod.rs.
Tracking
Refs #2791.
Reference / proof PR: #2851.
This EPIC tracks the smaller mergeable layers for the command-boundary refactor discussed in #2791. The intent is to keep #2851 as the proof/reference branch, but land the v0.9 work in smaller PRs against
codex/v0.9.0-stewardship.Direction agreed in #2791
Refs #2791/ partial progress wording for layered PRs.Layer checklist
Layer 1: command-surface cleanup and neutral shared extraction. PR Layer 1: clean command support boundaries #2871.
commands.commands.cargo test --workspaceand no warnings.Layer 2: command parity harness. PR Layer 2: add command parity harness #2878.
Supporting acceptance-test harness proposal/example. PR Add Gherkin acceptance E2E harness example #2887.
Layer 3: internal command boundary helpers. Active draft PR refactor(commands): extract registry and parser helpers #2888.
commands/registry.rs.commands/parse.rs.commands/core.rs; do not addcommands/help.rsunless a real shared help/palette ownership boundary appears.Layer 4: group-owned built-in command files.
Layer 5: user command follow-up.
user_commandsas a separate follow-up after built-in command boundaries are stable.Layer 6: completion cleanup.
Current Layer 3 PR scope
PR #2888 intentionally does not restructure command handler groups. It moves command registry metadata, command lookup, unknown-command suggestion ranking, and slash command parsing into dedicated helper modules while keeping dispatch in
commands/mod.rs.Validation for PR #2888:
cargo fmtcargo check -p codewhale-tuicargo test -p codewhale-tui commands::cargo test --workspacegit diff --checkPaulo Aboim Pinto