feat: add Every Inside bootstrap contract#45
Open
JannikJung wants to merge 1 commit into
Open
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.
Summary
Plus One can now install the current Every Inside defaults during a connection's one-time bootstrap, then move to incremental feed processing without a synchronization gap. The designation is stored independently from
featured, so editorial distribution and marketplace promotion can evolve separately.Design
every_inside_defaultis a separate persisted toggle with an explicit all-connected-users installation warning.skills.bootstrapreturns published public defaults in deterministic order with package, resource, and version metadata.Publication metadata and membership edges are committed in one D1 batch. Same-version republication uses an in-place version upsert so existing event references survive, and the branch preserves the newly landed retirement of organization-scoped submissions from
main.The producer contract is documented in
docs/runtime-storage.mdand the public MCP usage guide.Validation
npm test -- --maxWorkers=1— 27 files, 132 tests passednpm run build— production Astro/Cloudflare build passedNew concepts
Snapshot-to-stream handoff with overlap
A consumer that starts from a snapshot and then follows a change feed needs a boundary that cannot lose events. Here, the producer captures watermark
Wbefore reading the defaults and returnsWwith the snapshot:Capturing the watermark first deliberately permits overlap: a change concurrent with the snapshot can appear in both the snapshot and the later feed, but it cannot fall between them. This is preferable here because installation is idempotent and avoiding a gap matters more than avoiding a duplicate notification. Do not use this shape when replay is not idempotent or when the cursor cannot define a stable ordering boundary.