Skip to content

Decouple NativeOwnerRegistry, delete Thread.wake_context forwarder, fix storage_room test - #5298

Merged
trissim merged 1 commit into
mainfrom
perf/cut12-native-owner-registry-and-wake-context
Nov 28, 2026
Merged

trissim merged 1 commit into
mainfrom
perf/cut12-native-owner-registry-and-wake-context

Conversation

@trissim

@trissim trissim commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Three clean structural fixes:

  1. Move NativeOwnerRegistry(ClaimGenerationRead) out of execution/native_input_owner.py into registry/native_owner_registry.py so registry/registry_document.py no longer depends upward on execution.native_input_owner.
  2. Delete the 2-line Thread.wake_context(self, goals) forwarder (registry/threads.py:921-922, Theorem 4.6) and call goals.wake_context(owner) directly at its sole product call site (context_segments/wake.py:65) and 5 test sites, removing the context_segments.wake_values import from registry/threads.py.
  3. Update tests/test_storage_room.py:134 regex from unit_start/build to Unit Start/Build matching StorageRule's display_label rendering from 491da348ab.

Verification

  • IMPORTED 922 MODULES, ERRORS=0, REL_IMPORTS=0.
  • Focused tests (test_goals.py, test_thread_identity.py, test_wake_goal_execution.py, test_storage_room.py): 52 passed (6.80s).
  • 5-round warm alternating unprofiled A/B: -1..-2 imported modules (cli_verbs.threads 1107.7 -> 1088.3 ms; registry_privacy.py still pulls execution.native_input_owner for RegistryOwner, so full module drop awaits decoupling registry_privacy).

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