Skip to content

test: assert the stale tenant-guard claim stays removed (#1355 follow-up) - #1359

Merged
alfredo1996 merged 1 commit into
release/1.4from
test/1355-assert-stale-claim-gone
Jul 29, 2026
Merged

test: assert the stale tenant-guard claim stays removed (#1355 follow-up)#1359
alfredo1996 merged 1 commit into
release/1.4from
test/1355-assert-stale-claim-gone

Conversation

@alfredo1996

@alfredo1996 alfredo1996 commented Jul 28, 2026

Copy link
Copy Markdown
Owner

What

Follow-up to #1357, which I merged before reading its one CodeRabbit comment — I checked the comment count and merged in the same command. Same slip as on #1331 earlier in this session. The finding was valid.

The finding

The test asserted that the new path reference and the two load-bearing caveats are present. Nothing stopped someone reintroducing "Adding a guard is tracked in #1226" alongside them.

CLAUDE.md would then contradict itself — saying both that the guard is tracked-as-future-work and that it exists at a given path. That's worse for a reader than either version alone, and considerably worse for an agent, which has no way to tell which sentence is current.

Now asserts both directions: new text present, both stale phrasings absent.

Proven by reintroducing the claim next to the corrected wording and watching the suite go red.

Why it generalises

The original test had the shape this codebase keeps getting caught by — asserting the presence of the good state without asserting the absence of the bad one. A doc guard that only checks for the correct sentence will happily pass a document containing both.

Refs #1355

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Tests
    • Strengthened documentation accuracy checks to prevent outdated or contradictory tenant-guard references.
    • Added validation ensuring legacy tracking and data-leak wording does not reappear.

…t the new text exists

CodeRabbit's finding on #1357, which I merged before reading — my own rule,
broken the same way as on #1331 earlier in this session: I checked the comment
count and merged in the same command.

The finding is right. The test asserted the new path and the two load-bearing
caveats are present, but nothing stopped someone reintroducing "Adding a guard
is tracked in #1226" alongside them. CLAUDE.md would then contradict itself,
which is worse for a reader than either version alone — and worse for an agent,
which has no way to tell which sentence is current.

Now asserts both directions: the new text present, and both stale phrasings
absent.

Proven by reintroducing the claim next to the corrected wording and watching
the suite go red.

Refs #1355

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@alfredo1996 alfredo1996 added this to the Launch Readiness (GTM) milestone Jul 28, 2026
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 870527d0-371b-4cd0-8ec7-7ac7a6088bb5

📥 Commits

Reviewing files that changed from the base of the PR and between cbd984d and ffe5e0d.

📒 Files selected for processing (1)
  • app/src/lib/__tests__/docs-accuracy.test.ts

Walkthrough

The documentation accuracy test now verifies that CLAUDE.md excludes two stale tenant-guard phrases while retaining its existing canonical wording checks.

Changes

Tenant-guard documentation validation

Layer / File(s) Summary
Reject stale tenant-guard wording
app/src/lib/__tests__/docs-accuracy.test.ts
Adds case-insensitive negative assertions for the legacy “tracked in #1226” and “leak that nothing catches” phrases.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related issues

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the change: it adds a test to keep the stale tenant-guard claim out of CLAUDE.md.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch test/1355-assert-stale-claim-gone

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install timed out. The project may have too many dependencies for the sandbox.


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

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@alfredo1996
alfredo1996 merged commit 8569cad into release/1.4 Jul 29, 2026
15 checks passed
@alfredo1996
alfredo1996 deleted the test/1355-assert-stale-claim-gone branch July 29, 2026 00:21
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