feat: stage Reader ingestion proposals durably - #12
Merged
Conversation
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.
What
Adds a durable, bounded staged-proposal protocol for Reader ingestion jobs, strengthens subagent context handling, and publishes review-before-write contracts for Granola, GitHub, and Gmail.
Why
Large filing plans and compacted retry context could produce ambiguous failures or unverifiable partial writes. Scoped ingestion needs a server-owned proposal that survives compaction, is tied to the exact artifact and capture page, and can be applied only after review.
Changes
Changes walkthrough
Testing
bun test test/submit-agent.test.ts test/agent-job-proposals.test.ts test/gmail-thread-ingestion-skill.test.tsbun teston the ten repaired migration and contract fixturesbun run typecheckbun run verifyThe repository's sharded
Testworkflow is already red onmaster; the priorPR head reproduced that same baseline plus one stale v134 migration-count
fixture, which this head repairs. Tier 1, Tier 2, JSONB parity, verify,
serial tests, gitleaks, semgrep, and both slow focused gates passed on the prior
head.