TURN RECORD: THE Genuine 2.3 CLIENT NOW RUNS THE WHOLE EXPORT PATH CORRECTLY, AND
THE REMAINING BadValue IS IN THE FIRMWARE DDX -- DEC'S PORTABLE SOURCE HAS NONE.

A) CLIENT FIXED AND RUNNING THE INTENDED SEQUENCE
   xie/decclient.c now does:
     XieCreateImage(w,h, XieK_PCM, XieK_BandByPlane, XieK_Bitonal, 1,
                    unsigned long lvl[3]={2,2,2}, ...)
     XieCreatePhoto(dpy, XieK_Photomap, w,h, XieK_Bitonal, 1, lvl, ...)
     XiePutTile(pm, img, XieK_AllPlanes, 0,0,0,0, w,h)
     XieExport(pm, win, gc, 0,0, 0,0, 64,64, 0,0, 0.0, 0.0)
   Output: "image: w=64 h=64 levels=2,0,0 arSize=4096" / "photomap created" /
           "put tile sent"  -- all three steps succeed.

B) THE SERVER-SIDE CHECKS ALL PASS
   With xie_ext.lua armed during the C client's export:
     EX_EF8 f80=00000000 fA0=00000040 fC0=00000040 a11=003FD7D0
     EX_F0E a7=00000040 a5=00000040
     EX_F12 a5=00000040
     EX_CONTINUE_TO_RENDER
   i.e. ProcExport's ValueOkIf_(w>0 && h>0) PASSES (w=h=64).

C) EXHAUSTIVE SEARCH OF THE PORTABLE SERVER SOURCE FOR BadValue ON THIS PATH
   XieDisplay.c        : exactly one ValueOkIf_ (line 301, measured passing);
                         no BadValue literal at all.
   CreateExportContext : no ValueOkIf_ (only Match/Access/Alloc/Color).
   LookupPhotos (XieResource.c:576) : returns only BadIDChoice / BadAccess.
   BePCM_ (XieMacros.h:111) -> UtilBePCM : BadAccess / BadAlloc only.
   Export()            : returns Success when photo_lut_id == 0.
   SmiConvert unsupported path : BadImplementation (17).
   Only BadValue_ sites in the whole server: XieTransport.c:626
     (SetTransport's unknown compression_scheme) and XieTransport.c:1012
     (LookupTransport's unknown mode).  Export calls neither.
   => The BadValue the client receives CANNOT come from DEC's portable server
      code.  It comes from the device-dependent layer (DdxConvert_ and the
      terminal's image accelerator), which exists only in the VT1200 firmware.

D) STATE
   No client-chosen image displayed.  Window unchanged; white vs black AE
   ~2895 px = Terminal Manager figures + cursor.
   Import still verified (element+0x28 = 0xFF white / 0x00 black).
   xshow (core X) remains the only viewer that has shown an image.

CONCLUSION: the export request, the drawable, the GC, the depth (root is depth 1),
the geometry, the photomap attributes and every portable check are now correct,
and both a hand-rolled and a genuine DEC 2.3 client fail identically inside the
firmware's own conversion routine.
