Data UI Backlog

Prompt log format and NUL fix

Follow-up to the generate-button prompt log (DONE 2026-09-27). Two problems, one pass:

  1. NUL bytes pollute every prompt. u:slurp (dc-eclectic) sized its character buffer by file-length (bytes), then decoded; with UTF-8 multibyte content the undecoded tail stayed filled with NULs — 233 literal NUL characters rode every real Generate call's system prompt (plist-to-json escapes them as \u0000). Fixed at the source (2026-09-27): u:slurp now trims to the decoded count. Data-ui's only obligation: reload dc-eclectic into the live image.

  2. Structure. The system prompt is two logical parts (reference

    • examples) but rode as one undifferentiated blob in both the

    JSON body and the org log. Part 2 now opens with a level-1 # Examples markdown heading; the org log gains two level-2 children under * system-prompt (** Model Syntax Reference markdown block, ** Examples prose + one lisp block).

Plan: prompt-log-format-plan.org.

Summary (2026-09-28): Implemented per plan, no deviations.

Slot
26000
Status
60 Done
Tags
mvp, backend, ai
Contributors
Donnie