Skip to content

The agent that grows with you

test(qqbot): mark environ-opt-in isolation case xfail pending authz_mixin gate PR

Tekniumed9986873de2
diff --git a/tests/gateway/test_qqbot_scope_paths.py b/tests/gateway/test_qqbot_scope_paths.py
index 038abd8bbcb..11a2ab70c05 100644
--- a/tests/gateway/test_qqbot_scope_paths.py
+++ b/tests/gateway/test_qqbot_scope_paths.py
@@ -97,6 +97,16 @@ class TestAuthzAllowAllScope:
finally:
ss.reset_secret_scope(tok)
+ @pytest.mark.xfail(
+ reason=(
+ "gateway/authz_mixin.py still reads the platform allow-all flag via "
+ "_auth_env, which falls through to os.environ on a scoped miss; the "
+ "scope-authoritative gate (_platform_gate_env semantics) for the "
+ "remaining authz_mixin reads lands in a separate PR. Flips green "
+ "when that PR converts the allow-all read."
+ ),
+ strict=True,
+ )
def test_scope_does_not_inherit_environ_opt_in(self, monkeypatch):
# The PRIMARY profile opted in via os.environ; the secondary profile's
# scope has no opt-in. The secondary must NOT inherit the primary's