Skip to content

Seanaye/feat/server fact projections 2 - #6017

Merged
seanaye merged 16 commits into
seanaye/feat/server-fact-projection-1from
seanaye/feat/server-fact-projections-2
Aug 31, 2026
Merged

seanaye merged 16 commits into
seanaye/feat/server-fact-projection-1from
seanaye/feat/server-fact-projections-2

Conversation

@seanaye

@seanaye seanaye commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Note

High Risk
Changes cache schema epoch, authoritative projection composition, and local list authority for production Documents filters—incorrect supplement/patch handling could cause stale membership or unsafe local results until network fallback.

Overview
Ships browser-side soup-flat-v2 predicate projections so Documents tabs can re-evaluate locally after realtime/backfill writes, using direct GraphQL fields plus decoded cacheProjection supplements (subtype + email-attachment facts).

The WASM cache path now composes complete v2 Replace mutations (or Patch when mutations omit projection fields) from query/subscription/backfill responses, rejects invalid required backfill capsules without advancing revision/checkpoints, and switches entityFilter compilation to compile_soup_flat_v2. CACHE_SCHEMA_COMPATIBILITY_EPOCH is bumped to 2 to invalidate stale v1 index state.

Mixed-deployment safety: dssGraphqlFetch retries without cacheProjection on legacy servers, exposes graphqlSoupProjectionSupported(), and flat Soup local authority stays off when projection isn’t supported. apply_authoritative_projection_patch preserves unmentioned server-owned facts on settlement/partial writes.

Large planning docs (entity-filter-cache-index-plan, server-minted projection plan, v1 manifest) are removed; related plans are retargeted to the optimistic/pagination prerequisites.

Reviewed by Cursor Bugbot for commit 6359ae5. Bugbot is set up for automated code reviews on this repo. Configure here.

@coderabbitai

coderabbitai Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: d956ee62-d9a2-4e77-a0fc-470f72139e0c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

@seanaye
seanaye force-pushed the seanaye/feat/server-fact-projections-2 branch from 0579bbd to ad88d23 Compare August 28, 2026 13:37
Comment thread apps/web/src/lib/service-clients/service-storage/graphql-soup.ts
@seanaye
seanaye force-pushed the seanaye/feat/server-fact-projections-2 branch from ad88d23 to a1d3226 Compare August 28, 2026 15:10
@seanaye
seanaye force-pushed the seanaye/feat/server-fact-projections-2 branch 2 times, most recently from a021d9c to 30ab8cb Compare August 28, 2026 16:25

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 30ab8cb. Configure here.

Comment thread apps/web/src/lib/service-clients/service-storage/graphql-soup.ts
Comment thread apps/web/src/lib/service-clients/service-storage/graphql-soup.ts
@seanaye
seanaye force-pushed the seanaye/feat/server-fact-projections-2 branch from 30ab8cb to c251c12 Compare August 28, 2026 18:52
@seanaye
seanaye merged commit 9d631e6 into main Aug 31, 2026
34 checks passed
@seanaye
seanaye deleted the seanaye/feat/server-fact-projections-2 branch August 31, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant