Skip to content

Code quality sweep + PROGRESS.md v2 replan - #76

Merged
atc964 merged 3 commits into
mainfrom
fix/v2-replan-code-quality
Mar 25, 2026
Merged

Code quality sweep + PROGRESS.md v2 replan#76
atc964 merged 3 commits into
mainfrom
fix/v2-replan-code-quality

Conversation

@atc964

@atc964 atc964 commented Mar 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Ruff auto-fix across codebase (715 violations fixed, 153 files reformatted)
  • Replace all datetime.utcnow() with datetime.now(timezone.utc) (30+ occurrences)
  • Fix MD5 deal ID generation (usedforsecurity=False)
  • Narrow 60 overly broad except Exception catches to specific types
  • Add docs/CODING_STANDARDS.md (14 standards from code quality audit)
  • Update PROGRESS.md for v2 replan (AI Assistant epic, Deal Library rename, dropped beads removed)

Test plan

  • 1994 tests pass, 6 pre-existing CrewAI KnownIssue failures (not ours)
  • Zero regressions introduced
  • ruff check clean on auto-fixable rules

🤖 Generated with Claude Code

atc964 and others added 3 commits March 25, 2026 09:17
- Run ruff check --fix and ruff format (100 files reformatted)
- Replace datetime.utcnow() with datetime.now(timezone.utc) across 6 source files + 1 doc
- Fix MD5-based deal ID generation with usedforsecurity=False in 2 files

bead: ar-pkji

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Narrow overly broad except Exception catches to specific types across
  28 source files (77 occurrences total):
  * DealStore persistence: sqlite3.Error, OSError, ValueError, AttributeError
  * HTTP client calls: httpx.HTTPError, OSError, ValueError
  * Pydantic model construction: ValueError, TypeError
  * MCP/UCP transport: httpx.HTTPError, ValueError, RuntimeError
  * API route handlers: ValueError, TypeError, KeyError, OSError
- Annotate intentionally broad catches with # noqa: BLE001 comments
  explaining the design rationale (17 occurrences):
  * Event bus subscriber isolation
  * Event emission fail-open pattern
  * CrewAI flow step handlers
  * CLI/background task top-level handlers
  * Per-seller/per-channel isolation loops
- Add docs/CODING_STANDARDS.md with 14 standards from code quality audit
- Fix test_deals_client side_effect to use OSError instead of Exception

bead: ar-rx35

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Phase 3: Add AI Assistant epic (buyer-mw9) with 10 MCP tool beads
- Phase 4: Rename to Deal Library & External Hooks, remove dropped beads
- Remove 3A/3B/3C/3D/3E prefixes, clean titles
- Show blocker dependencies

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@atc964
atc964 merged commit 383e9db into main Mar 25, 2026
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