Skip to content

[QA] Standardize AI Kit errors & logging consistency #111

@dineshpinto

Description

@dineshpinto
  • Description
    • Standardize errors and logs so users get actionable, stable signals across modules.
  • Scope
    • Use flare_ai_kit.common.exceptions uniformly; add/align specific exception types where gaps exist.
    • Replace ad-hoc raises with the standardized exceptions; keep messages concise and actionable.
    • Make logging structured and consistent (levels, no secrets/keys in logs). Use structlog semantics.
    • Document common failure modes and how to handle them.
  • Acceptance criteria
    • All public functions raise documented exceptions from the common module.
    • No plaintext secrets/tokens in logs; sensitive values masked.
    • A short “Troubleshooting” section in docs/ mapping exceptions → likely causes → fixes.
    • CI green; no behavior changes to happy paths.
  • Deliverables
    • Updated annotations across src/.
    • List of remaining suppressions with reasons (in PR description).
  • Key Files Involved (Proposed)
    • src/flare_ai_kit/common/exceptions.py
    • All modules under src/flare_ai_kit/** that raise/log
    • docs/*.md (addtroubleshooting.md)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions