You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(rules): gaps/keywords and gaps/content can never run, even when enabled as documented #1067
The docs say the two gap-analysis cloud rules are opt-in and can be turned on with [rules] enable = ["gaps/keywords", "gaps/content"] (docs/cloud/rules.mdx, docs/rules/gaps/index.mdx). In the code they can never run:
Both rules set meta.disabled: true (packages/rules/src/gaps/keywords.ts, packages/rules/src/gaps/content.ts), with a comment saying they stay off "until the user explicitly enables it".
loadAllRules() skips every rule with meta.disabled before any enable or disable pattern is read (packages/rules/src/loader.ts).
The runner (packages/rules/src/runner.ts) and both selectCloudRules() copies (apps/cli/src/audit/cloud.ts, packages/audit-engine/src/cloud-prefetch-run.ts) build on loadAllRules(), so an enable list, --rule-include gaps or [rule_options."gaps/keywords"] enabled = true cannot bring the rules back.
So a user who follows the docs gets no gap results and no error. loadKnownRules() does include them, which is why their [rule_options] validate.
Found while upgrading the gaps docs hub (squirrelscan/repo#3145); a codex trace confirmed the path.
Acceptance Criteria
With [rules] enable = ["gaps/keywords", "gaps/content"] and a signed-in audit, both rules run and the cloud keyword-gaps and content-gaps services are selected (or the docs say plainly that the rules are unavailable and the enable example is removed)
With the default config, neither rule runs and no gap credits are spent
--rule-include gaps either runs both rules or the docs stop presenting it as a way to run them
A test covers the opt-in path, so meta.disabled cannot silently swallow an explicit enable again
I would like to take this. I will make an explicit rules.enable/--rule-include opt-in able to select the two disabled gap rules while preserving their default-off behavior, cover the loader and cloud-selection paths with focused tests, and keep the documented configuration contract in sync.
Fixed in #1117 (main 06b9a3b): gaps/keywords and gaps/content now run when selected explicitly (gaps/*, --rule-include gaps, or enabled = true in rule_options). Ships in v0.0.134.
Activity
feat(docs): mobile, security, integrity, legal, blocking, reliability…
WilliamK112 commentedon Oct 24, 2026
I would like to take this. I will make an explicit
rules.enable/--rule-includeopt-in able to select the two disabled gap rules while preserving their default-off behavior, cover the loader and cloud-selection paths with focused tests, and keep the documented configuration contract in sync.fix(rules): enable explicit gap opt-ins squirrelscan#1067
fix(rules): enable explicit gap opt-ins squirrelscan#1067
fix(rules): enable explicit gap opt-ins #1067
nc9 commentedon Oct 26, 2026
Fixed in #1117 (main 06b9a3b): gaps/keywords and gaps/content now run when selected explicitly (gaps/*, --rule-include gaps, or enabled = true in rule_options). Ships in v0.0.134.