#7005

test(domain): kill surviving mutants in redactExplicitText

Opencoskunulugwants to merge intofrom

Adds 5 focused unit tests for redactExplicitText. The existing suite only asserted the output no longer contains the declared literals, so a return "" mutant survived. New cases pin: [REDACTED] redaction while preserving surrounding text, replacement fallback to … then "", longest-literal-first ordering, and fail-closed empty output when redaction re-forms a declared literal.

Verification: 11/11 pass (vitest run src/domain/explicitSensitiveValues.test.ts); mutation-checked locally (return "" → 5 fail, reversed sort → 1 fail, removed fail-closed guard → 1 fail). Source unchanged — tests only.

🤖 Generated with Claude Code

Activity

4
chatgpt-codex-connector[bot]1mo ago

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

ReviewStatusCommitReview trigger
📝 Code Review✅ Completed 2026-10-24T12:48:23.290563Zb99ecccPR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

greptile-apps[bot]1mo ago

Confidence Score: 5/5

[Low impact] The PR appears safe to merge; the added tests match the existing redaction behavior.

Summary

Adds five focused tests for redactExplicitText.

  • Redaction tests now pin the exact text returned in edge cases.

Reviews (1) · Last reviewed commit: "test(domain): kill surviving mutants in ..." · Reviewed by Greptile

CassieFox2317d ago

TL;DR: I ran the one changed test file on three Node versions, and all 11 tests passed on each. The CI workflow run on this head is action_required, so no CI test jobs ran. The head is also 1394 commits behind main.

CheckNode 22.23.4Node 24.22.1Node 26.12.1
src/domain/explicitSensitiveValues.test.tspass: Test Files 1 passed (1), Tests 11 passed (11)pass: Test Files 1 passed (1), Tests 11 passed (11)pass: Test Files 1 passed (1), Tests 11 passed (11)
  • I ran head b99ecccfa9, which is 1394 commits behind main 559083be29.
  • The CI workflow run is completed/action_required. Its check runs show no Source tests, Portable tests or Test shard jobs.
  • PR readiness has 1 completed/failure run and 2 completed/success runs. PR title has 2 completed/action_required runs.
  • Check runs: Greptile Review succeeded. Validate author declaration has 2 successes and 1 failure.
  • The commit status PR readiness is pending.
  • GitHub shows mergeable true, state blocked, and draft true.

Not run

  • A full test suite run on the pinned Node version.
  • A typecheck run of the project.
  • A merge with current main, 559083be29.
Test setup
  • Box: Fedora 44 VM (4 vCPUs, 8 GB) on my Nobara 44 PC, Linux 7.2.11
  • Node: 22.23.4, 24.22.1, 26.12.1
  • Head / base: b99ecccfa9 / 2250e67bc2 (merge base with main)
  • Install: npm ci --offline and npm run test:prepare on Node 24.22.1
Commands
npm ci --offline
npm run test:prepare
xvfb-run -a npm run test:focused -- src/domain/explicitSensitiveValues.test.ts

🤖 Written and tested with Claude Code (Sonnet 5.5, verified by Opus 5.5), posted with my OK 🦊