feat(ql3): establish 3.0 incubation baseline

This commit is contained in:
whyour
2026-08-12 00:25:26 +08:00
parent 4bf92dcfeb
commit c699c32461
2817 changed files with 779642 additions and 653 deletions
@@ -0,0 +1,30 @@
import type {
CompletionReceiptJournalCursor,
CompletionReceiptJournalPage,
} from '../domain/completionReceiptJournal';
export const MAX_COMPLETION_RECEIPT_JOURNAL_BATCH_SIZE = 64;
export interface RegisterCompletionReceiptCommand {
attemptId: string;
runId: string;
registeredAtMs: number;
}
export interface QuarantineCompletionReceiptCommand {
attemptId: string;
quarantineRef: string;
purgeAfterMs: number;
updatedAtMs: number;
}
export interface CompletionReceiptJournal {
register(command: RegisterCompletionReceiptCommand): Promise<void>;
markQuarantined(command: QuarantineCompletionReceiptCommand): Promise<void>;
resolve(attemptId: string): Promise<boolean>;
listCandidates(options: {
observedAtMs: number;
cursor?: CompletionReceiptJournalCursor;
limit?: number;
}): Promise<CompletionReceiptJournalPage>;
}