Giving AI Agents a Second Brain: Declarative APIs, Secret Vaults, and a Trilium Memory Bridge in Pure Coni Lisp 10-12