mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-21 00:17:47 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import type { CompletionReceipt } from '../domain/completionReceipt';
|
||||
import type { WorkerExecutionOfferJournalRecord } from '../domain/workerExecutionOffer';
|
||||
|
||||
/**
|
||||
* Verifies the Worker-local completion capability without exposing it in a
|
||||
* recovery result. Implementations may compare a persisted digest, consult a
|
||||
* secure local store, or validate a rotated capability.
|
||||
*/
|
||||
export interface WorkerExecutionCompletionReceiptAuthenticator {
|
||||
authenticate(
|
||||
receipt: CompletionReceipt,
|
||||
record: WorkerExecutionOfferJournalRecord,
|
||||
): boolean | Promise<boolean>;
|
||||
}
|
||||
Reference in New Issue
Block a user