Skip to content

Ship-critical fixes: GET endpoints, domain exceptions, health check#9

Merged
CosmicDreamer17 merged 1 commit into
mainfrom
ship-critical-fixes
Mar 29, 2026
Merged

Ship-critical fixes: GET endpoints, domain exceptions, health check#9
CosmicDreamer17 merged 1 commit into
mainfrom
ship-critical-fixes

Conversation

@CosmicDreamer17

Copy link
Copy Markdown
Owner

Summary

  • Wire CQRS query adapters to API routers — adds GET endpoints for both bounded contexts with status filtering
  • Replace ValueError with WorkItemNotFoundError / IntegrationJobNotFoundError domain exceptions
  • Add /health endpoint for deployment readiness
  • Consistent error handling across both contexts (404/409/422 mapping)
  • Update CLAUDE.md with CQRS, API layer, and updated workflow sections
  • Update README with accurate stats, curl examples, and OpenAPI docs link
  • Update .claude/rules/application-rules.md with CQRS query guidance
  • Add MIT LICENSE

Test plan

  • 78 tests passing (up from 67)
  • New GET endpoint tests: list, get by ID, filter by status, 404 for missing
  • Health check test
  • Use case tests updated for domain-specific exceptions
  • Architecture enforcement green (3/3 contracts, 5/5 archon rules)
  • make all-checks passes

🤖 Generated with Claude Code

…docs

Major fixes to make the template production-ready:
- Wire CQRS query adapters to API routers (GET /work-items, GET /work-items/{id},
  GET /integration-jobs, GET /integration-jobs/{id} with status filtering)
- Replace ValueError with domain-specific NotFoundError exceptions
  (WorkItemNotFoundError, IntegrationJobNotFoundError)
- Add /health endpoint
- Consistent error handling across both bounded contexts
  (NotFoundError->404, InvalidTransition->409, InvalidEmail->422)
- Update CLAUDE.md with CQRS query pattern, API layer, updated workflow
- Update README with accurate test count, API docs, curl examples
- Update .claude/rules/application-rules.md with CQRS guidance
- Add MIT LICENSE file
- 78 tests (up from 67), all passing

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CosmicDreamer17
CosmicDreamer17 merged commit 4919add into main Mar 29, 2026
3 checks passed
@CosmicDreamer17
CosmicDreamer17 deleted the ship-critical-fixes branch March 29, 2026 00:31
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