Retain upstream evidence for incremental reconciliation - #236
Merged
Conversation
Add inclusive incremental GitHub issue reads and authoritative dirty-subject lookup, plus a durable cache fenced by version and exact invalidation generations. Synchronization shares the materialization transaction and cooldown/run completion boundary. Co-Authored-By: GPT-6 Astra <noreply@openai.com>
Validate issue and pull-request identities through the route and processor, including review dismissals. Persist repository-scoped dirty generations and queue updates in one transaction so failed writes cannot lose invalidations. Co-Authored-By: GPT-6 Astra <noreply@openai.com>
…idence Reuse completed scan-start checkpoints with a one-minute overlap, independently refresh dirty issue and pull-request dependencies, and repair fully on re-derivation or after six hours. Fold retained raw evidence with fresh local state and publish synchronization atomically. Co-Authored-By: GPT-6 Astra <noreply@openai.com>
Observe the real complete fold input for both references and assert the persisted replacement-diff proof hash. The old regression survived omission of evidence from the second issue; the strengthened assertion catches that mutant. Co-Authored-By: GPT-6 Astra <noreply@openai.com>
Nitjsefnie
force-pushed
the
issue-196-incremental-reconciliation
branch
from
September 8, 2026 09:02
8643922 to
2933004
Compare
Nitjsefnie
marked this pull request as ready for review
September 8, 2026 09:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reconciliation now reuses durable upstream evidence and asks for changes since the last completed scan, so recent restarts and quiet passes avoid rereading every issue and pull request. Full repair and re-derivation still rebuild authoritative evidence and fold the complete repository snapshot.
Related Issues and Pull Requests
Fixes #196
Changes
sincefiltering, descending update ordering and stable-ID deduplication before issue hydration; since-only scans retain complete timelines.Testing
2933004ee495802cebfa819369795a901fd738e6, an independent final reviewer ranpnpm db:migrate && pnpm test --run && pnpm lint && pnpm typecheck && pnpm buildagainst local PostgreSQL 17; all 2,768 tests in 120 files passed, including the container-backed suites.Follow-ups / Known Limitations
The existing issue-comment subscription gap remains tracked by #231 and is outside this branch; periodic full repair remains necessary. The overlap does not establish an upstream snapshot or maximum-lag guarantee, and deleted upstream history cannot be recovered. Local folding/materialization still scales with the retained repository snapshot. No end-to-end GitHub point savings are claimed from request-count changes.
Footer
Generated by GPT-5.6 Sol (brief, orchestration), GPT-6 Astra (research, implementation, testing, review, verification)