Files
glenloch-media/.agent
Tiel Coder 467f193389 unit(D5): conflict engine (pure function, hard vs soft)
classifyConflicts(input) encodes the 10 conflict rules from
ARCHITECTURE §5.3 / BUILD-SPEC §7 as pure hard/soft classifications:
- hard (block): inactive/unapproved, duplicate-in-instance,
  core-skill-below-required, shadow-mentor-not-ready
- soft (warn, override with note): blackout-overlap, monthly-cap,
  back-to-back, comfort-below-50, stale, readiness-below-threshold

Reuses the pure predicates it encodes: isUnavailable (D4),
isMentorReady (C5), levelRank (C3). No DB, no route, no migration.
hasHardConflict/hardConflicts/softConflicts let callers filter by
severity. Table-driven test: one case per rule + edges (20 tests).
2026-11-18 11:41:51 +00:00
..