- RecoderWriteGate.ts (third_party/t3code/apps/server) now calls the Recoder
backend over loopback (POST /internal/agent-os/t3-write-gate/decide) before
pr.link, confirmed wired end-to-end: backend bootstrap mounts
createT3WriteCommandGate (dedicated Governance + FileAuditLog + approvals)
behind buildInternalT3WriteGateRouter at the matching path — not dead code.
- Add LoomTerminalManagerAdapter (terminal_manager.* headless PTY seam) with
full test coverage for the apps/server environment that has no open Loom
workspace/tab/pane layout.
- Confirm LOOM_PROTOCOL_VERSION 20->21 bump matches loom's wire.rs
PROTOCOL_VERSION; fix a stale "(20)" docstring/test name that no longer
matched the constant.
- Fix a real test-runner mismatch: t3-write-gate.adapter.test.ts imported
describe/it from node:test instead of vitest, so `vitest --run` (the
backend's actual test command) silently collected zero tests from it.
Switched to vitest's describe/it so the 6 tests actually run in CI.
All touched suites green: 55 agent-runtimes tests, 6 backend governance
tests, 10 t3code apps/server tests. Typecheck clean on every touched/new
file (remaining tsc errors in backend/apps-server are pre-existing,
unrelated unbuilt-package and repo-wide Effect-lint findings).