Repository navigation
Conversation
`--state qa` fuzzy-matched whichever name scored highest, so a work item could silently land in "pronto p/ qa" when the user meant "em qa", and `wi ls --state` ORed every state containing the text. State names now resolve in order: UUID, exact case-insensitive name, the only name containing the query as a whole word, then the only name containing it as a substring (with a `State matched: "x" -> "y"` notice on stderr). Ambiguous, unknown or fuzzy-only names raise a ValidationError listing the project's states. `wi ls --state` applies the same rules per project. Other resources keep fuzzy resolution. Recorded as ADR-0009. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HcDT5cKbMgPEE4tTPZqhKs
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.
Summary
State names resolved fuzzily, so
--state qapicked whichever state scored highest. A work item could land in "pronto p/ qa" when the user meant "em qa", with no warning.wi ls --statealso ORed every state whose name contained the text.State names now resolve strictly, in this order:
Steps 3 and 4 print
State matched: "x" -> "y"on stderr. An ambiguous, unknown or fuzzy-only name fails with aValidationError(exit code 5) that lists the project's states. Before, an unknown name exited with 3.Applies to
wi create --state,wi update --state,wi ls --stateandstate show/update/delete.wi ls --stateapplies the same rules per project. Other resources keep fuzzy resolution. The decision is recorded as ADR-0009, and AGENTS.md, the README, docs/architecture.md and the skill docs are updated.Test plan
uv run ruff check src/uv run pytest tests/: 202 passed, including new resolver andwi ls --statetestsNotes
Based on
main. It touchescommands/work_items.pynext to where #16 adds_validate_date, so whichever merges second needs a trivial rebase. I can rebase this one.🤖 Generated with Claude Code
https://claude.ai/code/session_013dQcgZHVdyPjyJMov9Ljba