Skip to content

fix: reject empty decoder resource selectors - #90

Merged
tcconnally merged 1 commit into
mainfrom
fix/issue-78-empty-item-id
Sep 5, 2026
Merged

tcconnally merged 1 commit into
mainfrom
fix/issue-78-empty-item-id

Conversation

@tcconnally

Copy link
Copy Markdown
Owner

Summary

The Mac run showed that unset shell variables expand to --item-id "". The previous CLI treated that as no selector and proceeded into an uncontrolled Favorites phase, producing only a generic BLOCK report.

This change validates --item-id before repository tests, source health, or live phases begin. Empty and whitespace-only values now exit with an actionable argparse error; valid IDs and omitted selectors retain their existing behavior.

Verification

  • observed reproduction: --item-id "" on main a858488152f1e57453c7ad98ad9c620a69dda407
  • focused diagnostics: 84 passed, 0 failed
  • full python3 tests/run_all.py: OVERALL: PASS (all suites green)
  • candidate: 1e9b23a663c8e5d6c5153bf0968e410d6273c5d2
  • binary diff SHA-256 from main: f2a9ec0877b678aa0eaa3ed99d68128f8c82de5fc21acefce1a52ce2978a9747

Addresses #78

@tcconnally
tcconnally merged commit 33e1dbe into main Sep 5, 2026
2 checks passed
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.

1 participant