Skip to content

[docs] Add a rule against naming customers in code and PRs - #4998

Open
szdziedzic wants to merge 1 commit into
mainfrom
t3/no-customer-names-rule
Open

szdziedzic wants to merge 1 commit into
mainfrom
t3/no-customer-names-rule

Conversation

@szdziedzic

@szdziedzic szdziedzic commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Why

We are hardening the agent instructions for this repo. This PR adds an explicit rule that keeps customer names and identifiers out of code and PRs.

How

Added a "Customer Privacy" section to CLAUDE.md (at the top) and to AGENTS.md. The rule:

  • forbids customer names and identifiers (account and project names, slugs, production IDs, bundle IDs, package names, and target or extension names) in code, tests, docs, changesets, commits, branch names, and PRs;
  • tells agents to describe affected customers in general terms ("one app", "4 apps");
  • tells agents to use invented placeholders in tests;
  • tells agents to remove identifiers from pasted production logs, and to check the diff and the PR description before they push.

Docs only, so no changeset.

Test Plan

Docs only. oxfmt --check skips Markdown files, so no formatting applies.

🤖 Generated with Claude Code


Devin Review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@szdziedzic szdziedzic added the no changelog PR that doesn't require a changelog entry label Nov 27, 2026
@github-actions

Copy link
Copy Markdown

⏩ The changeset check has been skipped since the "no changelog" label is present.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread AGENTS.md
- Describe affected customers in general terms, such as "one app", "4 apps", or "a customer reported". Counts, dates, and error messages are fine after you remove identifying values.
- In tests and examples, use invented placeholders, such as `MyApp.app`, `com.example.app`, `@example/my-app`, and `NotificationServiceExtension`.
- Before you paste production logs, error output, or stack traces, remove all identifying values, including file paths that contain app or account names.
- Before you push, or open or update a PR, check the diff, commit messages, and PR description for customer identifiers.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Privacy checklist misses titles and branches

Both pre-push checklists omit branch names and PR titles, even though the policy explicitly covers them.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.89%. Comparing base (e6f7621) to head (e789c6b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4998      +/-   ##
==========================================
+ Coverage   77.89%   77.89%   +0.01%     
==========================================
  Files        1146     1146              
  Lines       58651    58651              
  Branches    13029    13029              
==========================================
+ Hits        45682    45683       +1     
+ Misses      12849    12848       -1     
  Partials      120      120              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@szdziedzic
szdziedzic requested a review from gwdp November 27, 2026 17:18

@gwdp gwdp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this! One nonblocking thought: could we make the process synthetic first? Keep the original report and logs in the private support case, and recreate the smallest example that shows the same behavior using invented names and IDs. If we still need a log excerpt, share just the useful lines and check whether the remaining details could identify the customer together. NIST’s de-identification guidance has some useful context on that.

Could we also say to check every commit we’re about to push, along with the branch name and PR title, description, comments, and attachments? It’s easy to remove a name in a later commit and miss that it’s still in the history we’re pushing.

— Codex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog PR that doesn't require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants