Skip to content

Fix morphology planner crash on empty affix inventories#285

Draft
cursor[bot] wants to merge 1 commit intomainfrom
cursor/critical-bug-inspection-aa18
Draft

Fix morphology planner crash on empty affix inventories#285
cursor[bot] wants to merge 1 commit intomainfrom
cursor/critical-bug-inspection-aa18

Conversation

@cursor
Copy link

@cursor cursor bot commented Mar 7, 2026

Add morphology template-weight validation and defensive weighted-selection checks so invalid morphology configs fail fast with clear errors instead of crashing at generation time. Includes regression tests covering missing prefix/suffix inventories and zero-sum template weights.

Open in Web View Automation 

Co-authored-by: depatchedmode <depatchedmode@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Mar 7, 2026

🦉 Quality Report

Quality Gates ✅

Gate Result Threshold
5+ consonant runs 0 = 0

Quality Metrics

Metric Value
4-cons clusters 1,925 (1.6%)
dk 0
ckt not reached
-owngs 0
-reng/-teng 1
Avg length 7.5
Unique rate 83.5%

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