-
Notifications
You must be signed in to change notification settings - Fork 178
20.7 Off-chain-computation trigger class #1061
Copy link
Copy link
Open
Labels
Stellar WaveDrips Wave Program - opt an issue in by applying this labelDrips Wave Program - opt an issue in by applying this labelarea:workersWorker layer and worker marketplace (packages/worker-core)Worker layer and worker marketplace (packages/worker-core)blockedWaiting on an upstream issueWaiting on an upstream issuecomplexity:high200 points200 pointsneeds-designProposal / approach must be agreed before implementationProposal / approach must be agreed before implementationtype:feature--force--forcetype:security--force--force
Description
Activity
Metadata
Metadata
Assignees
Labels
Stellar WaveDrips Wave Program - opt an issue in by applying this labelDrips Wave Program - opt an issue in by applying this labelarea:workersWorker layer and worker marketplace (packages/worker-core)Worker layer and worker marketplace (packages/worker-core)blockedWaiting on an upstream issueWaiting on an upstream issuecomplexity:high200 points200 pointsneeds-designProposal / approach must be agreed before implementationProposal / approach must be agreed before implementationtype:feature--force--forcetype:security--force--force
Labels:
type:featurearea:workersneeds-designtype:securityMilestone: Phase 4 - Workers W2: external operators
Effort: High
Depends on: 20.6
Description
Third trigger class from §C.1: run when an external result lands - an oracle
resolves and settlement must execute, a model finishes an analysis and a position
must change.
This class is where verifiability gets hard, because the condition is not on
chain. The design must state what an off-chain condition means for 19.1's
verdicts: an unverifiable trigger is not a miss, and must not be scored as one.
Reflector Subscriptions already offers price-threshold triggers with webhook
notification (§C.8) and overlaps this use case. Position deliberately rather than
by accident.
Acceptance criteria
declared source, and the source is part of the manifest
chain records why the worker fired
unverifiablerather thanmissedwhere the conditioncannot be reconstructed from chain data
unverifiablewindows are excluded from reputation scores, not counted assuccesses
Implementation notes
needs-designclears on thedesign note.
into a number operators can inflate by choosing unverifiable triggers.
packages/abi-registry/src/attestation.tsif its signature model fitsrather than introducing a second attestation concept.
Affected files
packages/worker-core/src/triggers/computationTrigger.tspackages/worker-core/src/triggers/attestation.tspackages/worker-core/src/verification/verdict.tsdocs/design/worker-offchain-triggers.md