Prep ADR 0010 kernel rename with shared import bridge#90
Merged
Conversation
Centralize PyO3 module resolution and rebuild hints in kernel_bridge so the future greenfloor_kernel rename can ship without touching bridge call sites. Co-authored-by: Cursor <cursoragent@cursor.com>
Drop parallel module discovery; rebuild hints use the loaded kernel's name, and policy bridges share one stale-symbol helper. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace per-bridge require wrappers and cast(Any) import paths with one loader and typed_kernel_view overloads. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
kernel_bridge.import_kernel()with legacy→target fallback (greenfloor_signerthengreenfloor_kernel) so the ADR 0010 rename can ship without touching bridge call sites.require_kernel_method,kernel_method_getter, andkernel_rebuild_hint(module=...)as the single stale-symbol / rebuild-message surface for policy bridges.cast(Any, …)typed views with_loaded_kernel_module()+ overload-basedtyped_kernel_view().kernelvssigner); stable operator error-code prefixes unchanged.tests/test_kernel_bridge.pycovers import order, fallback, method getter, and typed views.Test plan
pre-commit run --all-files(ruff, pyright, pytest)tests/test_kernel_bridge.pytest_offer_publish.py,test_offer_bootstrap.py)Made with Cursor