docs(visual-testing): stop promising secrets stay out of screenshots on the Security card

Merged
SA
5d ago
+1-1

What and why

The Security card at the end of docs/visual-testing.mdx said: "How secrets stay out of screenshots, reports, and model input."
That promise is wrong. Screenshots mask secure fields only, so a secret typed into a plain input, or shown anywhere else on screen, is in the image. The model provider gets that image too.

  • Web masks only input[type="password" i] (SECURE_FIELD_SELECTOR, packages/web/src/read-node.ts:22).
  • Mobile masks only nodes with states.secure (packages/mobile/src/nodes.ts).
  • docs/security.mdx:23-28 ("What can still leak") and docs/reference/security.mdx:176-179 already say this.

The card now reads: "How secrets stay out of reports and the model's text input, and what can still leak."
"The model's text input" is the wording docs/security.mdx:18-19 uses for what redaction covers.

cubic flagged the same line in the Hindi translation on #1986. That PR keeps the Hindi matching the English page, so the fix starts here.

Verified

Ran it locally: yes

  • pnpm docs:check: 281 pages compile, 4119 anchor links resolve, and 198 of 198 translated pages match their English outline and code.
  • No other English page promises that secrets stay out of screenshots. I searched docs/, skills/, and README.md.

For maintainers

  • docs/ja/visual-testing.mdx:124 and docs/zh/visual-testing.mdx:124 still have the old promise. The translation check compares outlines and code, not card text, so it does not flag them.
  • A separate inaccuracy, not changed here: docs/visual-testing.mdx:138-139 and docs/reference/security.mdx:85 say the matcher fails with POLICY_DENIED when masking can't be proven. That holds on web. On mobile, observe returns no pixels for an unmaskable secure node (packages/mobile/src/surface.ts:1886-1887), so the matcher fails with ASSERTION_FAILED ("the engine returned no screenshot") instead.

🤖 Generated with Claude Code