Repository navigation
refactor(b09): mount STRATEGY_RUNTIME onto RunContext during cycles - #360
Merged
Merged
Conversation
PR-2 of B09: activate still writes module STRATEGY_RUNTIME for unbound fallback/compat, and also stores the handle on ExecutionRuntime plus active RunContext. Cycle-path evaluate/metrics/artifact/display reads go through resolve_strategy_runtime. No submission/owner changes.
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
B09 PR-2 (after #359): mount activated
STRATEGY_RUNTIMEonto cycle-scopedRunContextwhile keeping behavior-equivalent module fallback.Changes
run_context.py:resolve_strategy_runtime/set_active_strategy_runtime;strategy_runtimefield is live (no longer reserved-only)._activate_execution_strategy_runtimestill updates module globals (compat), returns the handle, and writesctx.strategy_runtimewhen a context is bound.build_live_runtimestores the handle onExecutionRuntime.strategy_runtime.execute_cyclemounts that handle ontoRunContext.evaluate/ metrics / artifact candidates / periodic BTC display name) go throughresolve_strategy_runtime(STRATEGY_RUNTIME).Explicitly unchanged (B04)
runtime_supportsubmission / owner /runtime_call_clientlogic (field-only:strategy_runtime).STRATEGY_RUNTIMEsymbol kept as unbound fallback (PR-3 can tighten).Verification
Local: all green (11 + 133).
Author: Pigbibi. No CloudAgent.