Skip to content

Migrate resource and Composer queries to native remote caching - #1181

Open
jasonhedman wants to merge 7 commits into
json/native-cache-transfersfrom
json/native-cache-database
Open

Migrate resource and Composer queries to native remote caching#1181
jasonhedman wants to merge 7 commits into
json/native-cache-transfersfrom
json/native-cache-database

Conversation

@jasonhedman

@jasonhedman jasonhedman commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Migrates 20 resource, Bazaar, agent, Composer, and spending query functions to native remote caching. Query implementations and authorization boundaries stay intact.

The agent activity schema no longer injects a fresh endDate into every request: an omitted endDate is resolved inside the cached computation; explicit ranges stay in the key. Regression tests cover both cases. The spending time series keeps its one-minute hard expiration.

Removes the obsolete Redis query wrappers when their final database callers migrate. Only the existing TTL constant remains for discovery until the next PR, keeping this intermediate branch clean under Knip.

Review agent-config/stats/agent.ts and its tests, then resources/resource/index.ts and the other query wrappers.

Validation: full pnpm check passes independently at every level of the rebased stack, including UI integrity, lint, types, tests, formatting, Knip, and boundaries. Remote cache persistence and stale-on-error behavior still require deployed validation; warming remains enabled.

@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
x402scan Ready Ready Preview Sep 9, 2026 7:18pm UTC

Request Review

@jasonhedman jasonhedman changed the title json/native cache database Migrate resource and Composer queries to native remote caching Sep 8, 2026
@jasonhedman
jasonhedman force-pushed the json/native-cache-database branch from 98ba30c to 06b045d Compare September 8, 2026 20:34
@jasonhedman
jasonhedman force-pushed the json/native-cache-database branch from 06b045d to aa71b13 Compare September 8, 2026 20:41
@jasonhedman
jasonhedman force-pushed the json/native-cache-database branch from aa71b13 to ef861f0 Compare September 8, 2026 21:19
@jasonhedman
jasonhedman removed this pull request from stack #1183 September 9, 2026 14:39
@jasonhedman
jasonhedman added this pull request to stack #1128 September 9, 2026 14:40
@jasonhedman
jasonhedman marked this pull request as ready for review September 9, 2026 14:43
@jasonhedman
jasonhedman force-pushed the json/native-cache-database branch from ef861f0 to 71cd0d1 Compare September 9, 2026 15:02
@jasonhedman
jasonhedman force-pushed the json/native-cache-database branch 2 times, most recently from ce66168 to ebe678b Compare September 9, 2026 15:13
@jasonhedman
jasonhedman force-pushed the json/native-cache-database branch from ebe678b to f39cc2e Compare September 9, 2026 19:14
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