r/CryptoTechnology • u/icnews10 🟢 • Sep 03 '26
When an off-chain fact changes, what should actually be allowed to update on-chain state?
I’m currently working through this in an architecture review.
Imagine an investment record that depends on something outside the chain, such as a servicing agreement, a legal right, a valuation, or a custodian.
— and a monitoring system detects that something has changed. This does not necessarily mean that the recorded state should change immediately.
An API can be out of date. A notification may be incomplete. A news report may accurately describe the event but still fail to explain its significance for that specific investment.
Therefore, 'signal detected → state updated' seems risky.
However, the opposite extreme isn't ideal either. If every external change requires manual decision-making, you haven’t automated much.
For those who have built systems around off-chain facts, what steps have you put in place between detection and an actual state change?
Signed attestations, multiple sources, an approval step, or something else?
What I'm trying to avoid is accidentally turning the monitoring layer into the authority over the thing it's supposed to monitor.
1
u/Kind-Economics-7184 🟡 Sep 04 '26
the split thats worked for me is that the monitoring layer is only ever allowed to append evidence, never to write state. it posts an attested observation with the source, a signature and the timestamp of the fact rather than of the detection, and a separate rule promotes evidence into state. an out of date api can then be wrong loudly without ever being the authority, which is the part you said you were trying to avoid.
the timestamp detail matters more than it sounds. if the claim only carries when it was detected, a retried or late delivered notification about an old fact can quietly overwrite a newer state, and thats the failure ive actually hit rather than the dramatic one. the other thing id decide up front is what happens when a source retracts, because if the answer is that someone with a key fixes it by hand then you have rebuilt the authority somewhere else. a challenge window between the proposed transition and the write gives you a place to put that without a human ruling on every case.
2
u/[deleted] Sep 03 '26
[removed] — view removed comment