feat(metadata-protocol,objectql): MetadataProtocolPlugin + registerProtocol 退出开关 — ADR-0076 Step 2 PR-A (#2462) - #3578
Merged
Conversation
…otocol opt-out — ADR-0076 Step 2 PR-A (#2462) Cross-repo window opened. Additive first leg of the three-leg sequence: - metadata-protocol grows createMetadataProtocolPlugin() owning the historical inline assembly: ObjectStackProtocolImplementation + 'protocol' registration, the metadata-storage platform objects (same environmentId===undefined gate), and the D12 degraded analytics fallback. Assembly-conflict guard turns the kernel's generic duplicate throw into the actionable fix. - ObjectQLPlugin grows registerProtocol?: boolean (default true, zero behavior change). false skips the assembly block; the authored hook/action mutation rebind is extracted to a shared private method and arms lazily from start() against whatever registered 'protocol'. DB hydration already consumed getService('protocol') + a type guard — untouched. - Combo tests live in objectql (metadata-protocol must not depend on objectql even as devDep — turbo flags the cycle, the PR#2415 lesson): surface parity, protocol-free boot, conflict guard, default-mode back-compat. PR-B flips cloud's 3 boot sites; PR-C retires the built-in assembly + objectql's protocol re-exports + the dependency. Verified: objectql 1086, metadata-protocol 70, runtime 653, dogfood 351, full build green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Contributor
📓 Docs Drift CheckThis PR changes 2 package(s): 13 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
This was referenced Jul 27, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
跨仓窗口开启(用户授权 cloud 可修改)——Step 2 三段式第一腿(纯加性)
按记忆中预写的 Step 2 配方执行:
createMetadataProtocolPlugin()(metadata-protocol 包)接管 ObjectQLPlugin 历史内联装配:ObjectStackProtocolImplementation构造 +protocol注册、元数据存储平台对象(同environmentId===undefined门)、D12degradedanalytics fallback。模式照抄 plugin-security(命名插件 +dependencies:['com.objectstack.engine.objectql']+ctx.getService('objectql'))。装配冲突守卫把 kernel 的泛型重复抛错转为带修法的配置指引。ObjectQLPlugin增registerProtocol?: boolean(默认true零行为变化):false跳过装配段;authored hook/action 重绑订阅抽为共享私有方法、delegated 模式下从start()惰性 arm(所有 init 已跑完,时序安全);DB hydration 本就经getService('protocol')+类型守卫消费——零改动。后续两腿
registerProtocol:false。验证
objectql 1086 / metadata-protocol 70 / runtime 653 / dogfood 351 / 全仓 build 全绿。
关联 #2462(Step 2 PR-A)。
🤖 Generated with Claude Code