JOLT_TRACE: map tail-frame history to ns/name (file:line)

The eval path recorded only a frame's munged name, so a JOLT_TRACE backtrace was
a list of bare names. Register source for a runtime-compiled fn def when tracing
is on (keyed by the same munged name the entry push records), reusing the
source-registry the renderer already maps to "ns/name (file:line)". Direct-link
builds already registered via emit-def-cached; this covers the open-world eval
path. trace-off output is byte-identical (returns "" — seed mint / `jolt build`
unchanged), seed re-minted. A name shared across namespaces (e.g. -main) stays
bare, the existing ambiguity guard.

smoke asserts a file-backed project run maps a frame to ns/name (file:line).
This commit is contained in:
Yogthos 2026-07-04 17:09:44 -04:00
parent e297a74501
commit 6c88198115
3 changed files with 119 additions and 85 deletions

File diff suppressed because one or more lines are too long