Skip to content

Add guarded bulk database replacement - #1993

Closed
RhysSullivan wants to merge 1 commit into
mainfrom
mcp-catalog/guarded-replacement
Closed

RhysSullivan wants to merge 1 commit into
mainfrom
mcp-catalog/guarded-replacement

Conversation

@RhysSullivan

@RhysSullivan RhysSullivan commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Catalog rebuilds need to replace rows only while they still own their rebuild claim. Add a guarded replaceMany operation to Fuma's Drizzle, Kysely, and memory adapters, with parameter-budgeted inserts.

The operation checks the guard's affected-row count before deleting or inserting rows. Transactional adapters roll back a missed guard. Drivers that cannot report an affected-row count fail rather than assume ownership. Adapters without transactions retain the documented weaker cross-writer guarantee; the next layer validates catalog generations before serving them.

Validation: four focused guard tests and the Fuma typecheck passed. This layer contains no catalog schema or MCP changes.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 15, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud e3a46ff Sep 15 2026, 01:17 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 15, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing e3a46ff Commit Preview URL

Branch Preview URL
Sep 15 2026, 01:15 AM

@RhysSullivan
RhysSullivan added this pull request to stack #1995 September 15, 2026 01:12
@RhysSullivan
RhysSullivan removed this pull request from stack #1995 September 15, 2026 01:13
@RhysSullivan
RhysSullivan added this pull request to stack #1996 September 15, 2026 01:13
@github-actions

github-actions Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@pkg-pr-new

pkg-pr-new Bot commented Sep 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@1993

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@1993

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@1993

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@1993

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@1993

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@1993

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@1993

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@1993

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@1993

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@1993

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@1993

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@1993

executor

npm i https://pkg.pr.new/executor@1993

commit: e3a46ff

@RhysSullivan
RhysSullivan removed this pull request from stack #1996 September 15, 2026 01:17
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