You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a5fdc66
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@ checkpoint, and status-only commits are intentionally omitted.
59
59
60
60
### Fixed
61
61
62
+
- Indexed webhook receipt expiry by receipt time to avoid scanning and sorting retained history on each accepted delivery, preserving 30-day retention and transactional cleanup.
62
63
- Bounded apply/proof/comment-sync record retention to selected records and paired dependencies, avoiding unrelated archive loads during ledger finalization without changing close guards.
63
64
- Kept projected GitHub reads out of the durable ETag cache so incompatible response shapes cannot hide requested reviewers from close guards. Thanks @goutamadwant! (#1242)
64
65
- Normalized unexpected exact-review failures at the Worker boundary without weakening Durable Object transaction rollback. Thanks @yetval and @vincentkoc! (#1240)
- Update when: ingress coverage, App subscriptions, snapshot schema or indexes, TTLs, repair policy, or consumer safety boundaries change
8
8
9
9
The queue Durable Object materializes signed GitHub App deliveries into a bounded, freshness-labelled read model. It serves planning, discovery, hydration, and dashboard reads through publisher-HMAC endpoints. Each response says which webhook watermark it represents, whether the required event class has ever been observed, and whether the object is stale.
10
10
@@ -27,14 +27,24 @@ Subscription readiness is detected per event class. A class remains unavailable
27
27
28
28
## Stored schema and bounds
29
29
30
-
The Durable Object assigns one monotonic repository-wide watermark to every unique GitHub delivery GUID. Per-object rows retain the source `updated_at`, delivery GUID, object watermark, receipt time, and normalized JSON. Older or duplicate deliveries can advance the global observation watermark but cannot replace a newer object row.
30
+
The Durable Object assigns one monotonic repository-wide watermark to every unique GitHub delivery GUID. Per-object rows retain the source `updated_at`, delivery GUID, object watermark, receipt time, and normalized JSON. Older deliveries with previously unseen GUIDs advance the global observation watermark but cannot replace a newer object row.
31
31
32
32
- One item row per repository and issue/PR number.
33
33
- Comments ordered by numeric ID, including deletion tombstones; at most 500 rows per item and 64 KiB per comment body.
34
34
- Reviews and inline review comments stored separately with tombstones, counts, and a stable activity digest; at most 500 rows per item.
35
35
- Workflow runs, jobs, check runs, and check suites; at most 1,000 current/recent objects.
36
36
- Delivery GUID receipts retained for 30 days.
37
37
38
+
Receipt cleanup uses a single-column `received_at` index, added idempotently by
39
+
the store initializer for both new and existing databases. Each accepted unique
40
+
delivery and repair still prunes at most 256 receipts strictly older than the
41
+
30-day cutoff, ordered by receipt time; equal timestamps have no specified tie
42
+
order. Retained GUIDs return their original watermark without pruning, and a
43
+
GUID can be accepted again after its receipt is pruned. The index changes only
44
+
the SQLite access path, not retention, constraints, transaction rollback, or
45
+
the public read-model contract. Building it on existing history has a one-time
46
+
initialization cost and adds storage and receipt-write work.
47
+
38
48
Item snapshots are stale after 15 minutes, comment and review collections after 30 minutes, and workflow state after 5 minutes. Placeholder discovery additionally requires a successful repair census within 6 hours. Missing, stale, incomplete, unsubscribed, or gap-detected snapshots fall back to GitHub and repair the Durable Object before later reads reuse it.
0 commit comments