Files
summercms/.planning/todos/pending/verify-models-leaf-rule.md

1.1 KiB

title, date, priority, area
title date priority area
Verify the models-leaf layout rule against keios.eu and a jz/pxpx plugin before Phase 5 2026-09-18 medium plugin layout / conversion

Before the bulk model port (Phase 5) and before any second-project port, repeat the dependency probe done for Fonoteka on 2026-09-18 (see .planning/notes/plugin-layout-winter-directories.md) on at least:

  • one keios.eu stack plugin with models and services (/media/nvme/dev/golem15/keios.eu/plugins/golem15/user or paymentgateway)
  • one jz project plugin
  • one pxpx project plugin

For each, count models/ → classes/ (and models/ → any sibling dir) use edges and classify them as cast / service-calling hook / other. The rule holds if every edge falls into "cast moves into models" or "hook becomes a callback registered from classes/plugin.go". Any "other" category means the rule (or the note) needs amending before agents apply it at scale.

grep -rl "Vendor\\\\Plugin\\\\Classes" plugins/vendor/plugin/models | wc -l
grep -rn "Vendor\\\\Plugin\\\\Classes" plugins/vendor/plugin/models