Skip to content

test(copy): check every TaintSource kind has taintFrom copy in both locales - #161

Merged
juancguerrerodev merged 1 commit into
DojoCodingLabs:mainfrom
santinofuentesAI:test/copy-taint-kinds
Nov 28, 2026
Merged

juancguerrerodev merged 1 commit into
DojoCodingLabs:mainfrom
santinofuentesAI:test/copy-taint-kinds

Conversation

@santinofuentesAI

Copy link
Copy Markdown
Contributor

What and why

Follow-up to @dbejarano820's review note on #134 (for #85).

Adds a test in packages/copy/test/copy.test.ts checking that every TaintSource["kind"] in packages/core/src/types.ts has an HM-APPR-01.taintFrom.<kind> entry in both packages/copy/locales/en.json and es-419.json, so pnpm --filter @hermit/copy test catches a missing taintFrom key right away when a new taint kind is added.

Verified locally that temporarily renaming HM-APPR-01.taintFrom.bot in en.json makes the new test fail before reverting the temporary edit.

Vision fit

Serves Principle 5 ("Spanish and English, first-class") and Principle 7 ("Small, typed and tested").

Non-negotiables

  • This keeps every non-negotiable in AGENTS.md as it is.
  • Or it changes one, and this is the accepted RFC: #

Checklist

  • It closes one issue, linked above, or it's a small fix (a typo, a broken link, a wrong comment). A feature has an accepted proposal. (Follow-up test requested in feat(cage): add bot taint kind and untrusted botInput wrapper #134's review.)
  • I wrote the failing test first. It fails without this change and passes with it.
  • These pass: pnpm check:privacy, pnpm typecheck, pnpm lint, pnpm test and node scripts/guard/check.mjs --base origin/main --patterns scripts/guard/patterns.txt.
  • No new network call, telemetry, analytics, ads or crash reporting. (A new request in an app adapter is explained below, with its host, skill and risk.)
  • No new dependency, or the reason for each one is below.
  • Every UI string is in packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes. (n/a: test-only change.)
  • Tests, fixtures and screenshots use made-up data only.

Model path

  • This doesn't touch the model path: packages/model, agent, skills or eval, the prompt, the router, tool descriptions, normalizers, examples or the model file.
  • It does. The eval numbers from before and after are below, run as docs/evals.md says. No held-out case was tuned on.

Screenshots

  • No UI change.
  • UI change. Each changed screen is below, in both themes and both languages, with made-up data.

New dependencies and network calls

n/a

AI agents

  • No AI agent wrote any part of this.
  • An AI agent helped. Which one, and what it did: Antigravity wrote the test in packages/copy/test/copy.test.ts, verified it fails on a missing key, ran all five gates against origin/main (6f0d47e), and drafted this PR description.
  • I read and ran everything in this pull request, and I can explain it.

…ocales

Signed-off-by: Santino Fuentes <santinofuentesAI@users.noreply.github.com>
@juancguerrerodev
juancguerrerodev merged commit 743d83a into DojoCodingLabs:main Nov 28, 2026
3 checks passed
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.

2 participants