The harness now has the interface it was missing: a chat pane on three
quarters of the screen, a sidebar on one quarter, a status bar underneath.
- vendor/netbsd-curses: NetBSD's curses and terminfo, ported edition,
vendored with PROVENANCE.md. The build of that one directory needs GNU
make; splinter's own Makefile stays POSIX make.
- tools/genpalettes.py turns CDE's *.dp palette files into a C table. 42
palettes, generated, checked in with the generator, so the source of every
colour is a file in the CDE tree and not a guess.
- themes: roles are derived, not invented - background is the darkest of the
eight colour sets, foreground the lightest, border the second darkest,
accent the most saturated of the rest, status the accent darkened by a
third. Delphinium is the default. Unknown palette is an error.
- colours map to the terminal through xterm's 256-colour cube when available,
the 16 basic colours otherwise, so a palette looks the same everywhere
within what the terminal can show.
- ui.c redraws only on change; the sidebar shows session, transport, theme
and last-turn numbers. Widgets are a labelled empty area - the registry
lands next.
Six test binaries green, including test_theme (42 palettes, ordering
invariants, unknown name rejected, colour indices in range).
Rebuilt from scratch after the previous attempt left no code behind: what
exists here is what compiles and what the tests prove, and nothing else is
claimed.
What is in it:
- a turn loop that refuses an over-budget request before sending it, reports
unknown tools instead of guessing, and honours authorization classes
(read runs, mutate/destructive ask unless --autonomous);
- a registry that is authoritative - the model names a tool, the registry
decides whether it exists;
- an append-only JSONL session (O_APPEND, fsync per record), where a crash can
only truncate the tail and the tail is skipped, not repaired;
- two transports: a deterministic mock (queue of replies, last request kept)
and HTTP via curl(1) with the request body in a temp file;
- two builtins that exist to prove the classes: echo (read) and run
(destructive, reports its exit status as an observation).
Five test binaries, no external framework, no network: mock driver covers the
answer path, a tool round, an unknown tool, a denial, autonomy, a failing tool,
the step limit, the byte budget (asserting that nothing was sent) and a
non-2xx reply.
The wire format is splinter's own line protocol (user/observe out,
answer/tool in); provider adapters translate. That is why the loop is testable
without a model, and why no vendor JSON is parsed in the core.