Memwright: Embedded, Inspectable Memory for AI Agents