Skip to content

doctrine: scan all use_cases dirs, not just top-level#119

Merged
absoludity merged 2 commits into
masterfrom
93-doctrine-scan-fix
Mar 25, 2026
Merged

doctrine: scan all use_cases dirs, not just top-level#119
absoludity merged 2 commits into
masterfrom
93-doctrine-scan-fix

Conversation

@absoludity

@absoludity absoludity commented Mar 23, 2026

Copy link
Copy Markdown
Collaborator

The previous PR #118 only scanned the business contexts' "use_cases" directory, whereas other BC's use BC/domain/use_cases.py. This change updates to check any use_cases directories within the BC.

Summary

  • Fixes TestExecutionAgnosticism tests which only scanned {ctx.path}/use_cases/, missing files in domain/use_cases/ or other nested locations
  • Now scans the entire bounded context path and matches any .py file with use_cases in its path (still excluding tests/ dirs)
  • Violation messages now include the full relative path (e.g. credential/domain/use_cases/initialize_system_data.py) rather than just the filename

Test plan

  • pytest src/julee/core/doctrine/ — 15 passed against julee itself

The execution-agnosticism tests only scanned {ctx.path}/use_cases/,
missing use case files nested under domain/use_cases/ or any other
subdirectory. Scan the entire bounded context path and match any .py
file containing 'use_cases' in its path instead.
@absoludity absoludity requested a review from monkeypants March 23, 2026 03:52
@absoludity absoludity changed the title doctrine: scan all use_cases dirs, not just top-level entities: enforce immutability doctrine across domain models Mar 23, 2026
@absoludity absoludity force-pushed the 93-doctrine-scan-fix branch from 7bdee6c to 851ed99 Compare March 24, 2026 00:00
@absoludity absoludity changed the title entities: enforce immutability doctrine across domain models doctrine: scan all use_cases dirs, not just top-level Mar 24, 2026
@absoludity absoludity merged commit d554307 into master Mar 25, 2026
10 checks passed
@absoludity absoludity deleted the 93-doctrine-scan-fix branch March 25, 2026 22:48
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