Skip to content

refactor(cmd): extract completion policy model#351

Merged
barrettruth merged 2 commits intomainfrom
refactor/cmd-completion-policy
Apr 20, 2026
Merged

refactor(cmd): extract completion policy model#351
barrettruth merged 2 commits intomainfrom
refactor/cmd-completion-policy

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

Problem

Cmdline completion policy is currently split across forge.cmd, picker availability helpers, and picker semantics, which makes the stock Ex surface easy to drift as the cmdline contract evolves. Closes #338.

Solution

Extract lua/forge/completion_policy.lua as the shared stock-cmdline policy source, route forge.cmd subject and modifier-value completion decisions through it, and add focused specs for the new policy module.

Centralize stock cmdline completion policy so later cmdline contract
changes can apply shared rules without spreading more ad hoc branching.
@barrettruth barrettruth merged commit 0356242 into main Apr 20, 2026
1 check passed
@barrettruth barrettruth deleted the refactor/cmd-completion-policy branch April 20, 2026 02:19
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.

refactor(cmd): extract a shared completion policy model from picker semantics

1 participant