Move :model: templates to modelstemplate
Two template files carry :model: placeholder tokens and are not loadable models, yet one sits in loadable space: models/widgets.lisp (the :generate-model exemplar — list-models lists it, (set-model "widgets") finds it and then fails to compile) and tests/model-template.lisp (the spawn-test twin slurped by th-slurp-model). Rule (Donnie, 2026-10-19): nothing unloadable in the models/ directory; a skippable subdirectory is fine. Both templates move to models/template/ as accepted near-duplicates (deliberately not unified — different consumers: LLM exemplar vs regex-slurped payload).
- Moves:
git mv models/widgets.lisp models/template/widgets.lisp,git mv tests/model-template.lisp models/template/model-template.lisp(contents unchanged). set-modelneeds nothing:resolve-model-pathprobes three literal paths, blind to new subdirectories by construction.lisp/model.lisp:generate-model-example-filesincludes the template by explicit path (its depth-one walk can't see it);list-models(recursive) also filtersmodels/template/.tests/helpers.lisp:th-slurp-modelrepoints tomodels/template/model-template.lisp.tests/generator-tests.lisp: pinned set survives (filename-only still yields"widgets"); the promptsearch "models/widgets.lisp"strengthens to the full new path; add twin-absent guard.tests/form-fields-tests.lisp+tests/widget-tests.lisp: the stem skip (unless (stringstem "widgets")=) becomes amodels/template/directory skip — future templates land for free.- Docs: AGENT.md, README.md, models/README.md (Layout bullet).
Lisp and test-suite edits need human permission.
Plan: models-template-dir-plan.org.
- Slot
- 9400
- Status
- 10 Open
- Tags
- model, maintenance, testing
- Contributors
- Donnie