agent: Convert key format document to org.