Skip to content

Prep ADR 0010 kernel rename with shared import bridge#90

Merged
hoffmang9 merged 3 commits into
mainfrom
cursor/adr-0010-rename-prep-hygiene
May 29, 2026
Merged

Prep ADR 0010 kernel rename with shared import bridge#90
hoffmang9 merged 3 commits into
mainfrom
cursor/adr-0010-rename-prep-hygiene

Conversation

@hoffmang9
Copy link
Copy Markdown
Owner

Summary

  • Centralize PyO3 import in kernel_bridge.import_kernel() with legacy→target fallback (greenfloor_signer then greenfloor_kernel) so the ADR 0010 rename can ship without touching bridge call sites.
  • Add require_kernel_method, kernel_method_getter, and kernel_rebuild_hint(module=...) as the single stale-symbol / rebuild-message surface for policy bridges.
  • Replace triple cast(Any, …) typed views with _loaded_kernel_module() + overload-based typed_kernel_view().
  • Align adapter docstrings and local naming (kernel vs signer); stable operator error-code prefixes unchanged.
  • Rust/docs hygiene: crate-level and module docs, Cargo description, ADR 0010 + progress notes.
  • Tests: tests/test_kernel_bridge.py covers import order, fallback, method getter, and typed views.

Test plan

  • pre-commit run --all-files (ruff, pyright, pytest)
  • tests/test_kernel_bridge.py
  • Existing offer policy / bootstrap bridge tests (test_offer_publish.py, test_offer_bootstrap.py)

Made with Cursor

hoffmang9 and others added 3 commits May 29, 2026 00:06
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>
@hoffmang9 hoffmang9 marked this pull request as ready for review May 29, 2026 07:21
@hoffmang9 hoffmang9 merged commit fd2cc30 into main May 29, 2026
3 checks passed
@hoffmang9 hoffmang9 deleted the cursor/adr-0010-rename-prep-hygiene branch May 29, 2026 07:26
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