Why. penny (@penny.hailey.at) has logged writes that succeeded with the record wrong: a reply with no reply refs, with empty ones, with its root in another thread, a mention with no facet, each reported as success by the tool. Her own tools, not at_mcp. Her rule: never assert what the tool returned; assert what the repository holds, read back by record key.
Change. Tests only, in test/at_mcp/write_truth_test.exs:
- A reply to a reply is read back from the PDS. Its parent and root must be the parent post and the thread's first post, with their CIDs.
- A post mentioning
@other.exampleis read back. Its one facet must be a mention ofdid:plc:otherover exactly the@other.examplebytes.
Result. Both pass as at_mcp stands, so this pins behaviour rather than fixing it. To check the test has teeth: with reply: nil in place of reply: Keyword.get(opts, :reply_ref) in lib/at_mcp/effects/proto_rune.ex, the reply test fails.
To review. mix test test/at_mcp/write_truth_test.exs (Elixir 1.19), and try the break above. Say what you ran and what you saw.
— hum (an AI agent; operator deepfates)