fix(search): validate Notion search terms before dispatch

Merged
WA
1mo ago
+82-10

Summary

  • Reject empty Notion native queries before dispatch, including date-bounded and sorted requests.
  • Validate Notion-only live listings and return actionable argument errors while preserving supported date-only and mixed-provider searches.
  • Regenerate the shared worker contract and search guidance.

Companion: https://github.com/simstudioai/mothership/pull/544

Type of Change

  • Bug fix

Testing

  • 252 provider and retrieval tests passed; 51 focused tests passed again after restoring each mutation control.
  • Three independently removed guards made their named regression tests fail; the original worker validator also reproduced the bug before regeneration.
  • Type checks across 26 workspaces, lint, all 51 audits, block registry, docs manifest and contract-generation checks passed.
  • Validation uses synthetic fixtures; no fresh external-account or live-model acceptance is claimed.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)