Broken format string in validate-new-directory error
lisp/backend.lisp (the "Can't assign roles that parent doesn't have" report-ve in validate-new-directory). Adding a directory with roles the parent doesn't have — /garbage/ on the books demo — dies with the raw error instead of the intended message:
error in FORMAT: Unknown format directive (character: Space)
Can't assign roles that parent doesn't have.
- Parent directory: ~a
- Parent roles: ~{~a^~, ~}
- Requested roles: ~{~a~^, ~}
Workaround observed 2026-09-18: removing the public role from the request let the directory through.
Plan: broken-format-validate-new-directory-plan.org.
Implemented 2026-10-17 per the plan: separator typo fixed (~{~a^~, ~} → ~{~a~^, ~}) and the third tilde slot of both roles messages rebound to the excess list (non-parent-roles / non-user-roles), so "Requested roles" names the excess instead of the full request. Log-only specs keep the full context. Deviation from the plan: its fix snippets repeated the subject in both a tilde and non-tilde spec, which report-ve's log plist build rejects (repeated-key error, caught live); the subject appears once, tilde'd. The end-to-end non-user-roles test also needed the root "" to actually carry user-x:exclusive before the /child/ seed insert passes validation (type roles never reach the root resource), so the test grants it to "" via a:add-resource-role first. New suite new-directory-suite (tests/new-directory-tests.lisp, modelbank-test fixture): 14 checks — FORMAT regression, happy-path control, and the non-user-roles message end-to-end through the shareable exclusive-role path. Registered in data-ui.asd, runner run-new-directory-tests added to tests/helpers.lisp and run-tests. docs/lisp-style.md gained the ~{~a~^, ~} idiom line. run-tests: 1995 checks, 34 groups, all green. Live repro on the books demo confirmed: renders the intended message naming the excess role, GMN attached, no FORMAT error. valid-file-meta has the same class of defects (plan marks it out of scope — follow-up ticket).
- Slot
- 2100
- Status
- 60 Done
- Tags
- mvp, backend, bug
- Contributors
- Donnie