Security review findings: (1) the local peer identity was only a claimed pin; the listener now requests the client certificate and compares the certificate hash that completed the handshake with the pin in hello, refusing a mismatch or a missing certificate, and the client presents its identity certificate (test_local uses real identities: matching, other identity, any). (2) unpaired peers could send file offers; the UI manager carries a paired flag, answers offers from unpaired peers with file-reject 'pairing required' and refuses to send. The review document lists both fixes and the accepted limits (no passphrase, public pins, media nonces later, adapter spawn, file names, QR, parser limits). Standalone: test_local, test_filexfer, tests/p2p.sh and the UI pairing/message run pass with the changes. The in-tree build is pending because another release chain holds the lock (pid 4040149).
make mcde-host exit=0, 30 ok/0 bad, the four new tests and p2p pass with the built binaries; the built UI paired with a headless peer and received a message.
The local listener, text protocol, file transfer, headless mode, pairing and the UI manager are built and committed; the full build of everything after T5.3 is still waiting for the build lock. Expected harness: 30 ok.
Normative description of the LAN transport: TLS with the identity certificate, TOFU pin and 6-digit SAS, hello/hello-ack, presence/msg/msg-ack/typing, file-offer/data/end/done/cancel with 64 KiB chunks and the 512 MiB limit, reconnect backoff and the peers.json pin store. Aligned with local.c, filexfer.c, pair.c and headless.c; the file dialogs are the remaining part of T5.8.
The local listener and the text protocol with reconnect are built; T5.4/T5.5 wait for the next full build because the lock is held by a foreign release/sourcesets/usb chain.
The IRC adapter is complete through reconnect; the identity and peer model are in. The build gate is green (mcde-host exit=0, 26 tests). T3.7 is paused for lack of public IRC, T5.2 for lack of avahi/libdns_sd and T4.x for lack of libstrophe. Next is T5.4.
The screenshots of this directory follow the rule of 2026-11-16: the whole
desktop (bar, front panel, icons) and a palette per picture. The pictures
from before that rule do not show the session and are removed; the four
pictures still there are the new set (dtwm-4dwm-font, the two pointer panes,
the desktop menu). The files stay in the history if a state is needed
again.
The desktop pictures show the session (dtbar, front panel, desktop icons)
and each picture of a series takes another palette (MCDE_SHOT_PALETTE);
tools/mcde-shot.sh has both (MCDE_SHOT_EXTRA=dtbar, MCDE_SHOT_FULL=1).
tools/mcde-shot.sh learns MCDE_SHOT_PALETTE (a palette from dt/palettes:
its first colour is the background, the text is black) and MCDE_SHOT_FULL
(dtsession starts the whole desktop). A holder client keeps the X server
from resetting the resource database and the font path when xrdb and xset
exit; the palette and share/fonts are in place before the first client
starts, so dtwm, the bar and the program take them.
The four desktop pictures are taken again with the bar (clock, sound,
bluetooth, global menu, M menu), the front panel and the desktop icons,
each in another palette: dtwm-4dwm-font.png IRIX, pointer-irix-xcursor.png
Charcoal, pointer-solaris-cursors.png Desert, desktop-root-menu.png
Default.
Normative contract for the stdio JSON-line adapters: framing, lifecycle, hello and settings schema, core commands, adapter events, request/answer, error/fatal, bye, versioning, security, IRC and QR examples. Aligned with adapter.c, fake_adapter.c and test_adapter.c; hello timeout now 10 s.
IRIX 6.5.29, SunOS 4.1.4, Mac OS 9.2 and Mac OS X 10.4 Tiger as QEMU
machines: /usr/bin/museum (base system, CNCL) links the owner's media,
creates the qcow2 disks, prints the exact command and checks what is
missing; the emulator comes from pkgsrc, offered by the installer as the
new group "Makronix Museum" (kind museum, like games).
Measured 2026-11-16 with QEMU 11.1.2: the Mac OS 9.2.2 CD reaches the
Finder and the Tiger 10.4.6 DVD the language chooser through
`museum install'. OpenBIOS cannot boot the SunOS 4.1.4 CD (the SS-5 PROM
ss5.bin is required); stock QEMU has no SGI Indy (qemu-sgi-ip22 or MAME
indy_4610). The operating system media are proprietary and stay with
their owner.
checkflist after installing the program: only the pre-existing missing
makronix-guide-vm.7 remains (another session's file).
Documents the decision recorded as t0360: first contact shows a 6-digit code derived from both certificate hashes and a nonce; only after the people compare it is the pin stored. Unpaired peers may send a text request only; a changed pin blocks until re-pairing.
Phase 1 has started: the core API, JSON reader and line framing build with make mcde-host and their tests pass. The mcde-tests.sh entry is written but that file is still an untracked other-agent change, so T1.8 is not committed yet.
QEMU/KVM: KVM/CPU host, 2-4 GiB, 32 GiB disk, BIOS and UEFI (OVMF with a
writable variable store), AHCI for UEFI because OVMF's IDE is slow, the
serial console (com0) and the device names the installer shows (ld0,
sd0, wd0). Proxmox VE: q35/OVMF or i440fx/SeaBIOS, VirtIO SCSI, the
qm create example, boot order, serial socket and the noVNC focus note.
The installation chapter points to it. Rebuilt 28 manual pages and the
73-page PDF with page numbers and the chapter outline; www/guide.html
updated. The print stylesheet wraps long commands instead of clipping
them.
TDLib builds with -DTD_ENABLE_JNI=OFF; libtdjson.so.1.8.70 is 50 MB and the build tree 537 MB. tdjson_spike starts a client without an account and getOption(version) answers 1.8.70; the authorization state is waitTdlibParameters. NetBSD is still open, so the Telegram package is Linux-first and a release gate.
Records the exact cmake invocation, the -j4 choice and the current 48% state in /home/lotherk/tmp/dtchat-tdlib/td/build; go/no-go and the NetBSD attempt are still open.
ADR and C5 now record: libtls and DNS-SD verified on Linux (NetBSD runs open), libstrophe TLS/SASL/message verified, ALSA 48k/20ms duplex verified, whatsmeow builds and emits a QR event, TDLib still building. Phase 1 proceeds on Linux; NetBSD validation is a release gate; PTT stays default; Telegram/WhatsApp remain conditional and call-less in v1.
whatsmeow v0.0.0-20261116124925 and Go 1.27 build with cgo sqlite3; sqlstore + GetFirstDevice + GetQRChannel + Connect produce a 277-character QR code and a 160 KB session DB. Login and message need a spare account, so the task is paused.
ALSA default opens capture and playback simultaneously at 48k S16_LE mono with 960-frame periods and a 3840-frame buffer; 48000 frames in 1.013 s. The one-period loop underruns playback, so the real path needs a pre-filled ring buffer. hw:0,0 rejects the config; default is the entry point. NetBSD audio(4) not run; PTT stays the v1 default.
libstrophe 0.12.3 against a minimal fake XMPP server: TLS 1.3, SASL PLAIN, bind, session and an incoming message through xmpp_run_once() in a poll-style loop. Build needs -Wno-error=incompatible-pointer-types on GCC 16. xmpp_stanza_get_text_ptr() is the wrong accessor for element text; use xmpp_stanza_get_text() and free it.
_dtchat._tcp registers and resolves on IPv4/IPv6, TXT survives, the service disappears after exit. pkgsrc's avahi installs avahi-client but not the libdns_sd compat library, so the Linux backend uses avahi-client; NetBSD keeps libdns_sd. NetBSD runtime not measured.
libretls 3.8.1: non-blocking handshake with poll, system-CA verification, self-signed rejection and a TOFU pin that matches openssl's SHA-256. NetBSD had no reachable host; the exact command and the open point are recorded in docs/reference/dtchat-spikes.txt.
Adds docs/reference/dtchat-upstream.txt with the quoted sources for libtls, libstrophe, TDLib, whatsmeow, DNS-SD, Opus, VP8, XMPP and the media crypto. Corrects the ADR: TDLib does expose call signalling (createCall/acceptCall/sendCallSignalingData/discardCall), but the media stack is the separate tgcalls; whatsmeow lists Calls as not implemented. libstrophe 0.12.3 has no MUC module; xmpp_run_once exists. DNS-SD uses txtvers, not v.
dtchat needs libtls, libstrophe, libopus and optional libvpx; record the exception in AGENTS.md, the decision in docs/reference/dtchat-architecture.txt, and the program in docs/MCDE-PROGRAMS.md (C5). Tasks: tasksd scope mcde/dtchat.
The Helvetica bitmaps of the reference desktops are in share/fonts: the six
IRIX x_eoe PCFs (helvB10, helvBO10, helvR10, helvR12, helvR14, helvR18) and
the twenty Solaris SUNWxwfnt PCFs (Helvetica 6..14, bold, oblique, bold
oblique); mkfontdir wrote fonts.dir.
Dtwm.defs.src sets the four fontLists of the 4Dwm app-defaults: menus and
client titles -adobe-helvetica-bold-o-normal--14-*, feedback
-adobe-helvetica-bold-r-normal--14-*, icon labels
-adobe-helvetica-medium-r-normal--14-*.
The fonts are core X11 fonts (Motif reads them): dtlogin fontPathTail
(config/Xconfig) puts share/fonts on the X server font path at session
start (ApplyFontPathMods, fontpath.c); 0070.dtfonts keeps the same for a
session that did not come through dtlogin, without a second entry.
Measured: xlsfonts -fn -adobe-helvetica-bold-o-normal--14-* returns the
IRIX 100dpi face; xrmget on the installed Dtwm app-defaults resolves the
four fontLists to the Helvetica names; a session through dtlogin lists
.../share/fonts in xset q Font Path (9 elements); mcde-plist-check ok;
docs/screenshots/desktop/dtwm-4dwm-font.png shows the dtterm title in
Helvetica Bold Oblique.
The IRIX cursor font x_eoe usr/lib/X11/fonts/misc/cursor.pcf is extracted
with the sw parser, pcf2bdf turns it into BDF, and bdf-cursors.py makes
58 Xcursor names from the glyphs (form + _mask). The Solaris and IRIX
themes are in share/icons/Solaris and share/icons/IRIX; the Appearance
pane has a "Cursor theme:" menu (Solaris, IRIX) that keeps the choice in
~/.dt/cursor-theme; 0079.dtcursor exports XCURSOR_THEME from it.
Measured: XcursorLibraryLoadImage("left_ptr", "IRIX", 16) returns a
16x16 image, and the menu shows Solaris/IRIX; choosing Solaris wrote
~/.dt/cursor-theme.
The network view's warning names Eject; now dtfile has it. The Selected
menu carries "Eject" (mnemonic E) after "Put in Trash", and Command+E is
bound in the drawing area's translation block (Mod4<Key>e:McdeKey(@,eject)).
Both call McdeEjectSelection(): it takes the selected folders, asks
mcde_sys_disks for the mounted volume whose mountpoint is one of them, and
unmounts it through mcde_sys_disk_unmount -- never a shell, and McdeSys
refuses what the computer runs from. No selection or no mounted volume gets
a sentence instead; a refused unmount shows mcde_sys_error() (as a user,
udisksctl asks polkit and fails without an agent -- measured).
The menu table is a fixed XtCalloc(menuItemCount): the new item made it 69
entries, so menuItemCount goes from 68 to 69 (51 to 52 without the Trash
menu). Without that, opening the Selected menu crashed the window (the
overflow was found by the menu click, not by the build).
Catalog: set 20 messages 173 "Eject", 174 "E", 175/176 the two answers, in
dtfile.msg and the German copy. The desktop's warning now says "Eject in
the file manager (Command+E) or Unmount in the Disk Utility"; its screenshot
docs/screenshots/leopard/Device-Removal-mcde.png is renewed.
Measured (Xvfb, a 32 MB image with one ext4 partition on /dev/loop0p1):
- as the user on :82: the Selected menu shows "Eject" and the window
survives (0x60002d, 213x218); Command+E opens the Eject message
"/usr/bin/udisksctl did not succeed (status 1)." -- the key reaches the
call, polkit refuses a user.
- as root under a root ttsession on :83 (ttsession -c dtfile): selecting the
mounted folder and Selected > Eject unmounts; findmnt then prints
"UNMOUNTED" for /tmp/opencode/ejecttest/mnt.
- after that Eject, a simulated removal of loop0p1 in dtwm
(MCDE_DESK_TEST_DEVICE) logs only "desktop: loop0p1 (remove)" and opens
0 dialogs -- a volume that was put away stays quiet.
- make mcde-linux MCDE_DIRS="install programs/dtfile" and "install
programs/localized/C/msg" exit=0; gencat reads both catalogs;
MCDE_DIRS=plist "mcde-plist-check: ok".
programs/cursors holds the 27 .cursor files of Solaris 2.6; programs/dtcursor
reads the X11 cursor text format (Format_version=1, Width, Height,
Valid_bits_per_item=16, one or two bitmaps) into source and mask bitmaps,
makes the cursor with XCreatePixmapCursor and puts it on the root window
(XDefineCursor; the clients that set none inherit it). The name is kept
in ~/.dt/cursor; 0079.dtcursor sets it at login. The Appearance pane has
a "Pointer:" menu of the cursor names; a choice runs dtcursor -set NAME.
Measured under Xvfb: the menu lists black, bullseye, busy, ... gr_root;
choosing busy wrote ~/.dt/cursor and printed "dtcursor: busy".
A medium that is pulled while it is still mounted now gets the reference's
one-button "Disk Not Ejected" warning: Motif's error dialog, the device and
its stale mountpoint in the text, the Warning sound. The desktop (dtwm,
WmMcdeDesktop.c) owns the event descriptor already; it reads each event,
asks what it says, and checks the mount table before it shows anything.
McdeSys:
- mcde_sys_disk_event_info() parses both shapes the read gives: Linux's
uevent with its NULs turned into spaces ("remove@/... ACTION=remove
DEVNAME=sdb1 ...") and NetBSD's "device-detach sd0"; 1 when the device
went away, 0 for add/change/attach, -1 on bad arguments.
- mcde_sys_disk_detached(name, mountpoint, len): looks in the mount table
for a partition of NAME (sdb takes sdb1, sd0 takes sd0a), copies the
mountpoint and unmounts it the forced way -- "umount -l" on Linux,
"umount -f" on NetBSD (disk_linux.c, disk_netbsd.c) -- but never what the
computer runs from. 0 when nothing of NAME was mounted.
- test_disk_events.c: the uevent and drvctl shapes, add/change/attach,
missing DEVNAME, the bad arguments. make check: 8/8 PASS (the seven
before and this one).
Measured under Xvfb :79 with a real ext4 loop mount at /tmp/opencode/mnt:
- start of dtwm with MCDE_DESK_TEST_DEVICE="remove@/... DEVNAME=loop0":
log "desktop: loop0 (remove)", "umount: /tmp/opencode/mnt: must be
superuser to unmount.", "desktop: loop0 was mounted at
/tmp/opencode/mnt"; the dialog is 354x167 at (335,300), OK as the only
button (docs/screenshots/leopard/Device-Removal-mcde.png).
- sudo umount /tmp/opencode/mnt, the same event again: log "desktop: loop0
(remove)" and no "was mounted"; zero dialog windows -- a device that was
put away stays quiet.
- make mcde-linux MCDE_DIRS="install lib/McdeSys programs/dtwm" exit=0;
MCDE_DIRS=plist "mcde-plist-check: ok".
MCDE_DESK_TEST_DEVICE is the test hook: one event line through the same
handler a real event takes, without a kernel. The NetBSD drvctl branch is
unchanged (t0272); the force unmount there is written for it but was not
run. Still open in t0093: the Eject item in dtfile (Selected menu,
Command+E) and the qemu device_del test in a VM.
system.chestrc now has the reference's menu tree instead of the five short
menus: ToolChest (Desktop, Selected, Internet, Find, System, Help), Desktop
(Access Files, Shared Resources, Customize, Control Audio, Empty Dumpster,
Eject Media, Start ScreenSaver, Open Unix Shell, Log Out), Access Files
(home, network, another user, remote login), Shared Resources, Customize
(Windows, Desktop, Sounds, Background, Color Schemes, Screen Saver, Mouse,
Keyboard, Accessibility, Language), Internet (browser, accounts, network,
remote login), Find (files, quick find, host quick find, info search, icon
catalog), System (manager, processes, filesystems, printers, software,
displays, date, information, Utilities: xhost and console, restart/shut
down through dtbar's one question) and Help.
Every action is a program this tree has: dtsystemsettings -pane for the
settings, dtfile for files and ~/Network, dtaction for ExitSession,
DtEmptyTrash and StartDtscreen*, dtactivity, dtdiskutility, dtprintinfo,
dtinfo, dticon, dtconsole, dtremotelogin, dtbar -command power. Entries
without a counterpart (Extra Desks -- the workspace switch is dtwm's and F8
the overview, no command; License Manager; Demos; Restart Window Manager)
are left out and named in a comment at their place rather than starting
nothing.
The parser's TakeCommand stopped at the \" of an argument: a chestrc line
f.exec "dtfile -dir \"$HOME\"" gave "dtfile -dir \". It now reads the
escaped quote as part of the command.
Measured (Xvfb :77, build/mcde-root/dt): the log says "dttoolbox: 11 menus
from .../share/toolchest/system.chestrc" (no menu left unread), the
screenshots show the opened Desktop, Access Files, System, Utilities and
Help menus (/tmp/opencode/dtchest-*.png), and a click on Access Files > In
my Home Directory runs "dttoolbox: dtfile -dir "$HOME"" (stderr; dtfile is
not in this test shell's PATH). make mcde-linux MCDE_DIRS="install
programs/dttoolbox" exit=0; MCDE_DIRS=plist "mcde-plist-check: ok".
docs/MCDE-PROGRAMS.md: the T1 status says 11 menus, the mapped entries and
the quote fix; T2/T3/include and -horizontal/-icon stay open.
A .url file is a WEB_URL now (the reference sdturl.dt): a text file
whose content is a URL, ACTIONS McdeWeb,Print, ICON Dtdata,
NAME_TEMPLATE %s.url, MIME text/x-url. Measured in dtfile: test.url
shows the URL icon beside note.txt (screenshot).
test_sysload: the child that waits for a signal sets alarm(60), so a
hung or killed test no longer leaves it in pause() and blocks the
build lock with waitpid.
The chestrc now carries the reference structure: Desktop (Access Files,
Open Home Folder, Shared Resources, Customize, Control Audio, Empty
Dumpster, Open Unix Shell, Start ScreenSaver, Lock Screen, Log Out),
Shared (Network Places, Connect to Server), Internet (Open Web Browser),
Find (Search For Files, File QuickFind, Host QuickFind, Info Search) and
System (Processes, Filesystems, Disk Utility, Printers, Software Update,
Date & Time, System Settings, Backup, Restart, Shut Down). Measured
under Xvfb: the chest lists Desktop/Selected/Find/System/Help and the
Desktop menu shows the reference entries (screenshot).
test.sh, mediacheck.sh, install-simple.sh, install-cgd.sh and mcde-tests.sh
call build-lock.sh --check; an existing build stops them, while make
test/cdtest pass because they hold the lock.
AGENTS.md, tools/AGENTS.md and docs/BUILD-CONTRACT.md name the re-entrant
lock, cdtest's whole run, mcde-linux/mcde-host, and the tools that refuse
to write build/obj or releasedir outside the lock (build-lock.sh --held).
Measured 2026-11-16: make release && make iso exit 0; the DVD and CD 3 have
pkg_summary.gz.sig, and the summary extracted from the DVD verifies through
the root key -> release key chain.
- make sourcesets signs RELEASEDIR/source/sets/SHA512 inside the build lock
when SIGNIFY_SECKEY is set (tools/sign-release.sh auto); a build without
the key says so and stays unsigned.
- make iso signs the package summary first; tools/cd3.sh puts
pkg_summary.gz.sig next to the summary on the DVD and on every package CD.
- tools/cd-source.sh carries SHA512.sig on the source DVD and the README
names the two verification commands.
- tools/upgrade-verify.sh: verifies root key -> release key -> SHA512 and
then the SHA512 of the set files; the upgrade command (tasksd t0055) calls
it before sysupgrade/pkg_add run as root.
Measured 2026-11-16: the source SHA512 signed with the release key verifies
through the chain ("signed by the root key", "good signature"), the copy
extracted from the source DVD too, the package summary verifies, and
upgrade-verify checks src.tgz (5.8 GB) against SHA512. `make iso` itself
was not run to the end: a commit in another session changed src/ during the
release, so build-stamp refused the packaging
(build/logs/release-iso-2026-11-16-signed.log).
The MCDE chapter gets the desktop, System Settings, file manager and
terminal figures; the Information Manager chapter gets its book list.
The system HTML embeds the PNGs as data URIs, the website form points to
www/img/, the manual pages keep the caption and the dtinfo book keeps
the caption (the CDE DTD could carry TIFFs, but the library stays text).
The PDF gets a page-number overlay (gs + qpdf) and a chapter outline
(mutool); mutool clean normalises the file so qpdf and readers see the
outline. docs/guide/check.sh checks outline and page numbers when the
tools are installed; tools/test-tools.sh copies www/img for the site
check and stays at 33 ok.
dtsystemsettings has a Workspace menu on the Desktop page: This
Workspace (the active one) or one of the named workspaces, read from
DtWsmGetWorkspaceList. A chosen backdrop goes to that workspace: dtwm
learned f.change_backdrop_ws INDEX PATH PIXMAP STYLE (the same parse as
f.change_backdrop, with the workspace index first) and
McdeBackdropFromFile on pSD->pWS[INDEX]; SetNewBackdrop keeps the choice
with SaveWorkspaceResources, so dtsession carries it to the next login
and ChangeToWorkspace shows it. Measured under Xvfb: the menu lists
This Workspace, One, Two, Three, Four; Two + Ankh.bm printed
'dtwm: backdrop ws=1 .../backdrops/Ankh.bm style=0'. WmMain.c now
includes WmFunction.h (the MCDE prototypes were implicit).
The old IRIX desktop sounds (imported from the IRIX 6.5.29 media,
~/tmp/irix_extract/assets/desktop-sounds/sounds-events) are a theme of
their own beside Camouflage and Base: 20 events with the names MCDE
uses (Launch, Start, End, Error, Warning, Beep, OpenFolder, DropMove,
DropCopy, Remove, RemoveToDumpster, DeskSwitch, Iconify, Deiconify,
NewMail, PrintFiles, SearchHit, SearchMiss, ClockChimeHour, TerminalBell),
theme.ss from the reference event list, in
$(CDE_INSTALLATION_TOP)/share/sounds/themes/IRIX. The Sound pane lists
it (Theme menu: Camouflage, Base, IRIX); mcdesoundd -selftest with
MCDE_SOUND_THEME=.../IRIX prints PASS. tools/mcde-shot.sh passes
MCDE_SOUND_THEME through for such tests.