Skip to content

fix(engine): explicit SiteData flag for whether an audit may request other hosts #2109 - #2176

Merged
nc9 merged 4 commits into
mainfrom
boat/sitedata-allow-external-2109
Nov 22, 2026
Merged

nc9 merged 4 commits into
mainfrom
boat/sitedata-allow-external-2109

Conversation

@nc9

@nc9 nc9 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Closes #2109

Adds SiteData.mayRequestOtherHosts, set by the engine in both site-data builders (blocking and streaming; the late pass spreads the streaming one). It is config.external_links.enabled !== false; --offline and targeted runs already switch that off in mergeOptionsToConfig. Absent reads as false.

security/supabase-rls and reliability/broken-forms read the flag. supabase-rls leaves LINK_VERDICT_RULE_IDS (runs in the normal pass); broken-forms stays because it still reads the verdicts.

Acceptance criteria

  • Flag set in both passes, false on offline/targeted/config off: engine tests late-link-verdicts-2144 > "SiteData.mayRequestOtherHosts" (both passes, 3 cases each); CLI audit-options.test.ts (offline, targeted, externalLinksEnabled false).
  • Rules read the flag; supabase-rls removed from the set: rules tests reads mayRequestOtherHosts, not externalLinks (both rules), link-verdict-rules-2144 passes.
  • Off cases and on-with-zero-links covered (engine and rule level).
  • link-verdict-rules-2144 and late-link-verdicts-2144 pass. The order test now has a fixture that names a Supabase project (as asked in the issue comment) and asserts the rule runs in the first pass.

Gates

format:check, lint, typecheck clean. CI suites: rules 12521 pass 0 fail; audit-engine 2372 pass 0 fail; cli audit-options 30 pass. Mutation check: forcing the flag to true fails 2 engine tests.

Skill change: none. Docs: none.

@nc9
nc9 force-pushed the boat/sitedata-allow-external-2109 branch from 9569e84 to 817ac88 Compare November 22, 2026 12:55
nc9 added a commit that referenced this pull request Nov 22, 2026
@nc9
nc9 marked this pull request as ready for review November 22, 2026 13:32
@nc9
nc9 force-pushed the boat/sitedata-allow-external-2109 branch from 2358a0f to 88216e0 Compare November 22, 2026 13:52
@nc9
nc9 merged commit b1a9006 into main Nov 22, 2026
10 checks passed
@nc9
nc9 deleted the boat/sitedata-allow-external-2109 branch November 22, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SiteData: explicit flag for whether an audit may request other hosts (stop inferring it from externalLinks)

1 participant