Apply the locked formatter to the keyed-archive CLI/MCP regression test. Preserve all assertions and runtime behavior.