Skip to content

Say the Rust scanner is live, and publish its real limits - #122

Merged
Mazze LeCzzare Frazer (mazze93) merged 1 commit into
mainfrom
fix/scanner-engine-copy
Nov 29, 2026
Merged

Mazze LeCzzare Frazer (mazze93) merged 1 commit into
mainfrom
fix/scanner-engine-copy

Conversation

@mazze93

@mazze93 mazze93 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

PR Checklist

  • I understand that changing component props means updating docs/components/contracts.md (no props changed)
  • PR description includes BEFORE/AFTER snippet for any API changes (no API changes; copy before/after below)
  • CI passes (content validation build)

Notes

Before: /tools and the home page said "The Rust/WASM scanner is built but not deployed to the public scanner route." The limits table said translated, look-alike-letter and invisible-character instructions were missed.

After: /tools has a "What runs the scanner" section saying the engine is Rust compiled to WebAssembly, running on the Worker that serves securepride.org, and that it replaced the TypeScript engine in November 2026. The home card reads "What runs it · Rust, compiled to WASM". The limits table shows four caught, one missed, tested November 25, 2026.

How it was checked:

  • The production Worker secure-pride (version dc7976d7, deployed 2026-11-23) bundles scanner_wasm_bg.wasm with SHA-1 de9a04e3…, identical to functions/_lib/scanner/pkg/scanner_wasm_bg.wasm on main (Cloudflare API, script content module names + sha1sum).
  • The five published payloads replayed against that WASM in Node 22: english-override caught, translated caught, homoglyph caught, zero-width caught, reworded-concealment missed. The October table and its test ran functions/_lib/dlp/patterns.ts, the retired TypeScript engine.
  • The guard test moves to functions/_lib/scanner/published-limits.test.ts and loads the committed WASM from disk, so a future engine change fails it.
  • Copy pass: no em dashes or negation molds in added lines; no stale "not deployed" phrasing left in src/ or public/. /privacy and README.md were already correct.

Merging to main triggers Workers Builds, which deploys production.


Generated by Claude Code


Note

Low Risk
Documentation and contract tests only; no scanner API or deployment logic changed in this diff.

Overview
Site copy and published limits now describe the Rust/WASM scanner as live on the Cloudflare Worker, replacing messaging that the engine was built but not deployed.

The limits table (scanner-limits.ts) is retested November 25, 2026 against the shipped WASM: translated, homoglyph, and zero-width inputs are now caught (they were missed under the retired TypeScript engine). Reworded concealment remains missed.

The guard test moves from functions/_lib/dlp/published-limits.test.ts to functions/_lib/scanner/published-limits.test.ts, replaying the same payloads via scan_json on the committed scanner_wasm_bg.wasm so CI fails if the public table drifts from the engine.

/tools, the home fact card, and the brand document engine sample text are updated to match (new “What runs the scanner” section; “In development” limited to playbooks/templates).

Reviewed by Cursor Bugbot for commit 4444fc0. Configure here.

Summary by CodeRabbit

  • New Features
    • The public scanner now runs on the Rust/WebAssembly engine hosted on the site’s Cloudflare Worker.
  • Bug Fixes
    • Published scanner-limit results now show translated, homoglyph, and zero-width cases as caught.
  • Documentation
    • Updated the scanner information and limits to reflect the deployed engine and its November 2026 evaluation. Roadmap details now focus on community playbooks and deployment templates.

/tools, the home page and the Document Engine template still said the
Rust/WASM scanner was built but not deployed. The production Worker
(version dc7976d7, 2026-11-23) bundles the same scanner_wasm_bg.wasm as
functions/_lib/scanner/pkg (SHA-1 de9a04e3...) and serves /api/scan with it.

The /tools limits table was tested on 2026-10-14 against the retired
TypeScript engine, and its guard test still replayed that engine. Replayed
against the shipped WASM, the translated, look-alike-letter and
invisible-character payloads are caught; the reworded concealment
instruction is still missed. The table now says so, and the guard test
moves to functions/_lib/scanner/ and loads the committed WASM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The published scanner limits and their integration test now use the shipped Rust/WASM scanner. The site’s sample document and pages identify the scanner as running on the Cloudflare Worker.

Changes: Scanner limits and deployment status

Layer / File(s) Summary
Published limits and WASM validation
functions/_lib/dlp/published-limits.test.ts, functions/_lib/scanner/published-limits.test.ts, src/lib/site/scanner-limits.ts
The published-limits test now checks each result against the shipped WASM scanner and verifies that payload IDs match published rows. The test date changes to November 25, 2026, and the translated, homoglyph, and zero-width results change to caught.
Public deployment descriptions
src/components/tools/securepride-document-engine.jsx, src/pages/index.astro, src/pages/tools.astro
The sample document and site pages state that the Rust/WASM scanner runs on the Cloudflare Worker. The tools page describes both caught and missed limits and lists community playbooks and deployment templates as development work.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

Suggested reviewers: claude

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title says the Rust scanner is live and that its real limits are published. The diff moves the scanner copy to a live Rust/WASM description, retests the published limits against the shipped WASM, …
Description check Passed The description follows the template's structure: it has the PR checklist and Notes sections. It explains the before and after copy, the limits table change, how the WASM match was verified, and the t…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title says the Rust scanner is live and that its real limits are published. The diff moves the scanner copy to a live Rust/WASM description, retests the published limits against the shipped WASM, and moves the guard test to the new scanner path. The title covers the main change, though it is informal and does not name the test or copy updates.

Full details: Description check

Explanation

The description follows the template's structure: it has the PR checklist and Notes sections. It explains the before and after copy, the limits table change, how the WASM match was verified, and the test move. The CI checkbox is left unchecked, which the template allows. The BEFORE/AFTER snippet item is marked as having no API changes, and the description gives before and after copy instead. The description does not add screenshots, which the template suggests only if relevant.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 49137f65-3269-49e5-ba5a-f3edb7931e60
Commits

Reviewing files that changed from the base of the PR and between 124ca88 and 4444fc0.

Files selected for processing: 6

  • functions/_lib/dlp/published-limits.test.ts
  • functions/_lib/scanner/published-limits.test.ts
  • src/components/tools/securepride-document-engine.jsx
  • src/lib/site/scanner-limits.ts
  • src/pages/index.astro
  • src/pages/tools.astro
Files with no reviewable changes: 1

  • functions/_lib/dlp/published-limits.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@mazze93
Mazze LeCzzare Frazer (mazze93) marked this pull request as ready for review November 25, 2026 02:37
@cursor

cursor Bot commented Nov 25, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: e229b18c-8530-4eec-b479-eed43ae1e92e)

@mazze93
Mazze LeCzzare Frazer (mazze93) merged commit 4d3b7cd into main Nov 29, 2026
15 checks passed
@mazze93
Mazze LeCzzare Frazer (mazze93) deleted the fix/scanner-engine-copy branch November 29, 2026 04:13
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.

1 participant