tesseract-ogar: migrate to the generic hot-plug pattern (HotPlug const)#14
Merged
Conversation
The bespoke CapabilityRegistration const is replaced by the GENERIC
socket shape every consumer migrates to (operator ruling): HOT_PLUG =
lance_graph_contract::hotplug::HotPlug { consumer, classids, covered }.
The activation test now runs the generic resolution
(ogar_vocab::capability_registry::resolve_hotplug): the consumer tells
OGAR which classids are hot-plugged and receives BOTH the vocab rows
(3 concepts) and the action surface (8 capabilities) for exactly those
ids -- classid is the join key on both sides. Executor dispatch is
unchanged; the crate's remaining role is executor + one const.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016b33swuXE23hKtqxsHu9p1
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_9937a41b-b1d9-4dba-b4d6-55015bf3438e) |
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.
Consumer migration onto the GENERIC plug-and-play pattern (operator ruling: one pattern for ALL consumers, no bespoke per-consumer plug mechanism). Companions: AdaWorldAPI/OGAR#175 (merge first — this crate's activation test calls the new
resolve_hotplug), lance-graph#658 (the zero-dephotplugsocket +OgarAuthoritybridge).CapabilityRegistrationconst is replaced byHOT_PLUG: lance_graph_contract::hotplug::HotPlug— one const naming the classids this executor hot-plugs (OCR_SUBJECT_CLASSIDS) and the capabilities it covers. That is now the ENTIRE per-consumer registration surface.ogar_vocab::capability_registry::resolve_hotplugverifies the plug and returns BOTH the vocab rows (3 concepts) and the action surface (8 capabilities) for exactly the hot-plugged ids — classid is the join key on both sides; drift is a namedHotplugDriftarm.OcrRequest/OcrResponse→ proven pipeline) unchanged;lance-graph-contractadded as a path dep for the socket types (no pins).Gates: fmt + clippy
-D warningsclean, 5/5 tests incl. the real-data smoke (qLLiy,,) and the generic activation, scoped-p tesseract-ogar.🤖 Generated with Claude Code
https://claude.ai/code/session_016b33swuXE23hKtqxsHu9p1
Generated by Claude Code