Skip to content

docs(design): implementation designs for plugin interfaces and plugin reload - #4

Closed
jasper-yl wants to merge 11 commits into
masterfrom
docs/plugin-design
Closed

jasper-yl wants to merge 11 commits into
masterfrom
docs/plugin-design

Conversation

@jasper-yl

Copy link
Copy Markdown
Owner

Which issue or RFC does this PR close?

Implementation designs for RFC #2549 plugin interfaces and RFC #2579 plugin hot reload and custom APIs. This PR is in the fork for review only.

Rationale for this change

The RFCs stay at the contract level. These documents record how core implements those contracts, following the existing docs/zh/design/1557_recurring_failure_repair_design.md.

What changes are included in this PR?

docs/{zh,en}/design/2549_plugin_interfaces_design.md and docs/{zh,en}/design/2579_plugin_reload_and_apis_design.md (Chinese first, English in sync):

  • docs(rfc): propose plugin interfaces oceanbase/powercontext#2549 design: invariants, gaps against feat/plugin-interfaces-v3, file list, checks and code fingerprints, Worker generate / collect flows, writer rules, host processes (core runtime plus plugin, multiprocessing spawn with a duplex Pipe, started once the plugin loads), user change call path and error mapping, Source plugins and edge mode, dedicated storage and models, migration, observability, defaults, and task breakdown.
  • docs(rfc): propose plugin hot reload and plugin-defined APIs oceanbase/powercontext#2579 design: scan loop and content digests, read-only version snapshots with reference counts, switching and host replacement, plugin route mounting, MCP tools for opted-in routes, handler capabilities implemented in the host process, plugin pages and forwarding, defaults, and task breakdown.
  • Each document ends with a table of design decisions beyond the RFC (D1-D13, E1-E9) with reasons and status, for review one by one.

Are there any user-facing changes?

No. Documentation only; the design/ directory is not published on the website.

How was this change tested?

  • uv run prek run --files docs/en/design/2549_plugin_interfaces_design.md docs/zh/design/2549_plugin_interfaces_design.md docs/en/design/2579_plugin_reload_and_apis_design.md docs/zh/design/2579_plugin_reload_and_apis_design.md
  • Headings, tables, and code fences match between the Chinese and English versions.

AI usage statement

Drafted with Claude Code (Claude Opus 5.5) under the author's direction and review.

🤖 Generated with Claude Code

jasper-yl and others added 11 commits November 11, 2026 11:16
…load

Record how core implements RFC oceanbase#2549 and RFC oceanbase#2579: module layout,
Worker and host process flows, the host protocol, writer rules, user
change call path, Source collection and edge mode, persistence changes,
version snapshots, plugin route mounting, page hosting, defaults, and
task breakdown, with the gaps against the current implementation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…isions beyond the RFCs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…definitions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pawn Pipe

Host processes rebuild database connections and authorization like Workers, so Server only authenticates and forwards, and messages including bytes travel over a duplex multiprocessing Pipe. Host processes start once the plugin loads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… create

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d start every plugin's host

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he interfaces each plugin implements

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on background instances

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mented

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…emented

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jasper-yl

Copy link
Copy Markdown
Owner Author

Closing: the designs it describes were merged upstream (oceanbase#2616, oceanbase#2638, oceanbase#2659). These design documents were never sent upstream; the branch is kept.

@jasper-yl jasper-yl closed this Dec 3, 2026
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