Skip to content

fix(graphile): isolate plugin caches by owner - #1751

Draft
Zetazzz wants to merge 2 commits into
mainfrom
agent/graphile-build-cache-ownership
Draft

fix(graphile): isolate plugin caches by owner#1751
Zetazzz wants to merge 2 commits into
mainfrom
agent/graphile-build-cache-ownership

Conversation

@Zetazzz

@Zetazzz Zetazzz commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Plugin discovery state now belongs to its exact Graphile build, codec, or PostgreSQL pool. Concurrent builds and pools using the same database names cannot share mutable billing, agent, i18n, search, or BM25 discovery state.

API compatibility: two-argument getLlmBillingConfig calls remain supported with the client as their default owner; internal metering supplies the build explicitly. Cache statistics require an explicit owner. The deprecated typed bm25IndexStore export remains for caller-supplied configuration, but automatic discovery never populates it or reads an implicit build-level store. bm25ExtensionDetected is removed; migration guidance is in the package READMEs.

Rebased onto current main. Deferred overlapping-owner tests cover billing and agent discovery, plus owner-specific invalidation and compatibility.

Validation: 5 focused suites / 18 tests and affected CJS/ESM builds passed. Full CI passed all 17 jobs on 9f64a8c668519ba3d12fc3af82499755333cb2c1, including real database search coverage.

Refs constructive-io/constructive-planning#1693 (F08).

@Zetazzz
Zetazzz force-pushed the agent/graphile-build-cache-ownership branch from 90e84a2 to a15ec5d Compare September 6, 2026 01:51
@Zetazzz
Zetazzz force-pushed the test/performance-harness-core branch 2 times, most recently from 658736e to f7c63ec Compare September 7, 2026 03:22
@Zetazzz
Zetazzz force-pushed the agent/graphile-build-cache-ownership branch from a15ec5d to 9f64a8c Compare September 9, 2026 04:03
@Zetazzz
Zetazzz changed the base branch from test/performance-harness-core to main September 9, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant