From 62c0d2665363fa053a89d668d678b6b6250b5f8e Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Thu, 1 Oct 2026 04:44:02 +0800 Subject: [PATCH] Expose feature settings during read-only hosting contract registration --- src/msg/hosting_runtime.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/msg/hosting_runtime.py b/src/msg/hosting_runtime.py index 61ebd0c1..c1a50f99 100644 --- a/src/msg/hosting_runtime.py +++ b/src/msg/hosting_runtime.py @@ -123,7 +123,11 @@ def __init__(self, settings, *, clock=None): self.registry = _ContractRegistry() # Installers only register trusted code. The throw-away context has no # storage, signer, policy service or parent Application to capture. - install_registry(SimpleNamespace(registry=self.registry), settings.server.plugins) + # Registration can inspect immutable feature flags, just as the writer + # does; handlers are still replaced by contract-only closures. + install_registry( + SimpleNamespace(registry=self.registry, settings=settings), settings.server.plugins + ) self.metadata = None self.contents = None self.runtime_generation = None