~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix(gitignore): track root config/community files masked by /*.* (#4938)
LearningCircuit354ff0410aef
diff --git a/.gitignore b/.gitignoreindex 5178e29781..f531b28706 100644--- a/.gitignore+++ b/.gitignore@@ -72,6 +72,7 @@ src/local_deep_research/web/static/css/themes.css!README.md!CHANGELOG.md!CONTRIBUTING.md+!SECURITY.md!LICENSE.md!Dockerfile!pyproject.toml@@ -79,6 +80,9 @@ src/local_deep_research/web/static/css/themes.css!package.json!MANIFEST.in!eslint.config.mjs+!eslint.config.js+!playwright.config.js+!vite.config.js!vulture_whitelist.py!docker-compose.yml@@ -86,6 +90,7 @@ src/local_deep_research/web/static/css/themes.css# Block JSON files in root directory (except package.json which is explicitly allowed above)/*.json!package.json+!lighthouserc.json# Block all other dot files/folders.*diff --git a/tests/security/test_repo_guardrails.py b/tests/security/test_repo_guardrails.pyindex a5748af4d3..f29af0d0ba 100644--- a/tests/security/test_repo_guardrails.py+++ b/tests/security/test_repo_guardrails.py@@ -71,6 +71,18 @@ DOTFILES_THAT_MUST_STAY_TRACKABLE = (".zap/some_new_rule.tsv", # ZAP config dir: type-scoped .tsv re-allow)+# Non-dotfile root config / community-health files masked by the `/*.*` (and+# `/*.json`) ROOT catch-all — same tracked-but-masked class as the dotfiles+# above, just a different catch-all. Regression targets from the follow-up to+# #4932. Guarded the same way (real `git check-ignore` semantics).+ROOT_FILES_THAT_MUST_STAY_TRACKABLE = (+ "SECURITY.md",+ "vite.config.js", # COPY'd by the Dockerfile — build-breaking if dropped+ "eslint.config.js",+ "playwright.config.js",+ "lighthouserc.json",+)+# Binary extensions that MUST be path-anchored (start with ^) in the whitelist.# Broad binary wildcards like `\.png$` permanently bloat git history.BINARY_EXTENSIONS = {@@ -262,7 +274,7 @@ class TestGitignoreDotfileNegationOrdering:* ``test_dotfile_negations_are_after_catch_all`` — a fast, deterministic,false-positive-free *structural* guard for the exact recurring bug: aLITERAL dot-component negation placed before the catch-all.- * ``test_known_dotfiles_remain_trackable`` — a *git-semantics* guard on+ * ``test_known_paths_remain_trackable`` — a *git-semantics* guard onthe concrete regression targets, which also catches dead negations thestructural check can't (deleted negation, later re-ignore, missingparent-dir re-allow).@@ -350,18 +362,23 @@ class TestGitignoreDotfileNegationOrdering:not _IN_GIT_WORK_TREE,reason="git check-ignore requires git and a git work tree",)- def test_known_dotfiles_remain_trackable(self):+ def test_known_paths_remain_trackable(self):"""Regression targets must be trackable per real git-ignore semantics.Uses `git check-ignore --no-index` (evaluates the whole rule set the- way git does) on the concrete dotfiles fixed in #4909/#4922. Catches- dead negations the positional check can't see — a deleted negation, a- later re-ignore, or a `.dir/` negation missing its parent-dir re-allow.- `--no-index` ignores tracked-status, so this fails even while the file- is still committed (that masking is exactly the bug).+ way git does) on the concrete files fixed across #4909/#4922/#4932 and+ its follow-up — dotfiles masked by the `.*` catch-all and root configs+ masked by the `/*.*` catch-all. Catches dead negations the positional+ check can't see — a deleted negation, a later re-ignore, or a `.dir/`+ negation missing its parent-dir re-allow. `--no-index` ignores+ tracked-status, so this fails even while the file is still committed+ (that masking is exactly the bug)."""ignored = []- for path in DOTFILES_THAT_MUST_STAY_TRACKABLE:+ for path in (+ DOTFILES_THAT_MUST_STAY_TRACKABLE+ + ROOT_FILES_THAT_MUST_STAY_TRACKABLE+ ):# `-q` is required: it sets exit status only (rc 0 = ignored,# 1 = not ignored). Do NOT switch to `-v` — with `-v` a path# matched by a `!` negation also returns rc 0, which would@@ -379,10 +396,10 @@ class TestGitignoreDotfileNegationOrdering:if result.returncode == 0:ignored.append(path)assert not ignored, (- "These dotfiles would be silently dropped by `git add` — their "- ".gitignore negation is dead (missing, moved above the `.*` "+ "These files would be silently dropped by `git add` — their "+ ".gitignore negation is dead (missing, moved above the `.*`/`/*.*` ""catch-all, missing a parent-dir re-allow, or killed by a later "- "re-ignore). See PR #4922.\n"+ "re-ignore). See PRs #4922 / #4932.\n"+ "\n".join(f" - {p}" for p in ignored))