The Agency by Y.S. Lee
Mary graduates from Miss Scrimshaw’s Academy for Girls with admirable skills, including being an undercover investigator. Working in the guise of a lady’s companion, she infiltrates a merchant’s home to try to trace his missing cargo ships. She then finds that that household is full of dangerous secrets.