Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(ci): repair vulture and Puppeteer e2e gate failures on main (#5478)

LearningCircuit62eff65fdf1f
diff --git a/tests/ui_tests/test_egress_policy_ui.js b/tests/ui_tests/test_egress_policy_ui.js
index 67a52c8202..c6862c153b 100644
--- a/tests/ui_tests/test_egress_policy_ui.js
+++ b/tests/ui_tests/test_egress_policy_ui.js
@@ -172,14 +172,24 @@ async function main() {
});
// -----------------------------------------------------------
- // 2. Scope dropdown lists all scope options (incl. adaptive)
+ // 2. Scope dropdown lists the default scope options. UNPROTECTED
+ // is an operator-gated escape hatch (env-only
+ // policy.allow_unprotected_egress, default false — see
+ // src/local_deep_research/settings/env_definitions/security.py
+ // and migration 0027_disable_legacy_unprotected_egress) and
+ // must stay hidden unless an operator explicitly opts in via
+ // LDR_POLICY_ALLOW_UNPROTECTED_EGRESS, which CI never sets.
+ // So this checks both the default set is present AND that
+ // the gated option is absent (a regression guard on the gate
+ // itself, covered from the env-var side by
+ // tests/security/test_egress_unprotected.py).
// -----------------------------------------------------------
- await run('2. All scope options present', async () => {
+ await run('2. Default scope options present, UNPROTECTED gated off', async () => {
const opts = await page.$$eval(
'#policy_egress_scope option',
(els) => els.map((o) => ({ value: o.value, text: o.textContent.trim() })),
);
- const wantVals = ['adaptive', 'public_only', 'private_only', 'strict', 'unprotected'];
+ const wantVals = ['adaptive', 'public_only', 'private_only', 'strict'];
const haveVals = opts.map((o) => o.value);
const ok = wantVals.every((v) => haveVals.includes(v));
record(
@@ -187,6 +197,11 @@ async function main() {
ok,
`found ${haveVals.join(', ')}`,
);
+ record(
+ 'unprotected-gated-by-default',
+ !haveVals.includes('unprotected'),
+ `found ${haveVals.join(', ')}`,
+ );
});
// -----------------------------------------------------------
diff --git a/vulture_whitelist.py b/vulture_whitelist.py
index 1abbfe921c..22e59b0e5f 100644
--- a/vulture_whitelist.py
+++ b/vulture_whitelist.py
@@ -17,6 +17,10 @@ search_data # noqa: F821 (news/core/storage.py)
news_id # noqa: F821 (news/core/storage.py)
vote_type # noqa: F821 (news/core/storage.py)
+# Protocol __exit__ parameter — WriteLock structural-typing stub (body is `...`);
+# signature mirrors the context-manager protocol, unused by design
+exception_type # noqa: F821 (vector_stores/base.py — WriteLock Protocol)
+
# Parameters that are unused but have keyword-argument callers (cannot rename)
bypass_cache # noqa: F821 (manager.py — callers pass bypass_cache=True)
allow_absolute # noqa: F821 (path_validator.py — callers pass allow_absolute=False)