Sub topic 4
Keep Personal Data Out of Your Prompts
You have a master CV and a fact ledger. The next question is how much of that material the assistant needs to see. This chapter covers what to withhold, how to swap identifying details for placeholders, and how to put them back afterward. It assumes you have a ledger like the one from the previous chapter. It also assumes you can run a short Python script, or can follow the same steps by hand.
Why this matters for tailoring
A CV is dense with personal data: your name, email, phone number, home address, employer names, and sometimes dates of birth, photos, or nationality. The assistant needs none of this to rewrite a bullet. It needs the facts about what you did, the tools you used, and the job posting's requirements.
When you paste the whole CV, you take on risks that buy you nothing:
- Retention. Depending on the service and your account type, conversations may be stored, reviewed by staff, or used to improve models. The defaults differ between providers and between consumer and business plans. Check the current settings and terms for the product you use. Don't assume.
- Sharing and leakage. Shared chat links, browser extensions, synced histories, and screenshots can expose a conversation long after you forgot it.
- Third-party data. Your CV may name colleagues, clients, or a manager. Those people did not agree to be pasted into a tool. Client names and internal project names may also be covered by a confidentiality agreement.
- Reuse. Once a prompt template contains your phone number, every future paste carries it too.
The principle is data minimization: send the least information that still lets the assistant do the task.
Sort your data into three tiers
Not everything needs the same treatment. Classify each item before you paste.
| Tier | Examples | What to do |
|---|---|---|
| Never send | Home address, date of birth, national ID numbers, passport details, salary history, references' contact details, health or immigration status | Leave out. The assistant has no use for them. |
| Replace with a placeholder | Your name, email, phone, profile URLs, employer names, client names, internal project code names, colleague names | Substitute a label such as `[EMPLOYER_1]` and restore it later. |
| Safe to send | Technologies, task descriptions, generic role titles, measured results without client identifiers, the public job posting | Send as is. |
Two judgment calls come up often.
Employer names. The assistant rarely needs them. A line such as "Migrated the invoicing service at [EMPLOYER_1]" gives it everything it needs. Keep the real name only if the job posting refers to that company or industry and you want the assistant to draw the connection. In that case, decide deliberately instead of by default.
Metrics. Numbers are facts and belong in the ledger. A figure like "reduced processing time from 40 minutes to 6" is fine to send. If the figure would reveal a client's confidential data, such as revenue, volumes, or contract values, round it to a level you are allowed to share or leave it out. Don't invent a safer-looking number. That would put a fabricated figure in your CV, which is the problem this whole tutorial is about.
Redact, work, restore
The workflow has three steps, and the middle one is the only one the assistant sees.
The mapping from placeholder to real value stays on your machine and never goes into a prompt. If you paste the mapping into the chat to "help" the assistant, you have undone the redaction.
A small redaction script
Regular expressions catch patterned data such as emails, URLs, and phone numbers. Names and employers have no pattern, so you list them yourself. The script below runs patterns first, so an email like [email protected] is replaced whole before the name list is applied.
import re
PATTERNS = [
("EMAIL", re.compile(r"[\w.+-]+@[\w-]+(?:\.[\w-]+)+")),
("URL", re.compile(r"(?:https?://|www\.)\S+|(?:linkedin|github)\.com/\S+")),
("PHONE", re.compile(r"\+?\d[\d ()\-]{7,}\d")),
]
def redact(text, terms):
"""Replace patterned data and listed terms with placeholders.
terms maps a label to the exact string to hide, for example
{"NAME": "Jordan Rivera"}. Returns (redacted_text, mapping).
"""
mapping = {}
counters = {}
def placeholder(kind, value):
for ph, original in mapping.items():
if original == value:
return ph
counters[kind] = counters.get(kind, 0) + 1
ph = f"[{kind}_{counters[kind]}]"
mapping[ph] = value
return ph
for kind, pattern in PATTERNS:
def swap(match, kind=kind):
value = match.group(0)
# Skip digit runs too short to be phone numbers, such as date ranges.
if kind == "PHONE" and sum(c.isdigit() for c in value) < 9:
return value
return placeholder(kind, value)
text = pattern.sub(swap, text)
for kind, value in terms.items():
text = text.replace(value, placeholder(kind, value))
return text, mapping
def restore(text, mapping):
for ph, original in mapping.items():
text = text.replace(ph, original)
return text
if __name__ == "__main__":
sample = (
"Jordan Rivera\n"
"[email protected] | +44 7700 900123\n"
"linkedin.com/in/jordan-rivera\n"
"Backend Developer, Example Co, 2022-03 to 2023-06\n"
"Migrated the invoicing service to a queue-based worker.\n"
)
terms = {"NAME": "Jordan Rivera", "EMPLOYER": "Example Co"}
redacted, mapping = redact(sample, terms)
print(redacted)
assert restore(redacted, mapping) == sample
print("Round trip OK")Running it prints:
[NAME_1]
[EMAIL_1] | [PHONE_1]
[URL_1]
Backend Developer, [EMPLOYER_1], 2022-03 to 2023-06
Migrated the invoicing service to a queue-based worker.
Round trip OKNotice what the script leaves alone. The date range 2022-03 to 2023-06 stays, because the digit-count check keeps dates from being mistaken for phone numbers. The tools and the task description stay too, because those are what the assistant works on.
Limits of the script
Treat the script as a net. It is not a guarantee.
- It misses anything that has no pattern and is not in your list: a street address, a colleague's first name inside a bullet, a client's internal tool name.
- Phone formats vary. A number with unusual spacing may slip through, and a long run of digits that is not a phone number may be replaced.
- It cannot see context. "Led the migration for the city of Leeds" identifies a client even though no regex flags it.
Always read the redacted text yourself before sending it. Search it for capitalized words you did not expect to see.
Prompts that work with placeholders
Placeholders are easy for the assistant to carry through. Tell it what they are, so it does not "fix" them or guess at what they hide.
The text below uses placeholders such as [EMPLOYER_1] and [NAME_1]. Keep every placeholder exactly as written. Do not guess what any placeholder stands for, and do not add real names, companies, or contact details.Add this to the grounded prompt from the earlier chapter on constrained prompting. The two instructions work together. The ledger limits what facts the assistant may use, and the placeholder rule limits what identifying detail it receives or can produce.
After you restore the text, check that each placeholder came back in the right place. A restored [EMPLOYER_2] in a bullet about your first job is a sign the assistant moved a claim between roles. That is a factual error, and the line-by-line audit later in the tutorial should catch it.
Keep the redacted ledger as the working copy
You will paste ledger entries into many prompts across many applications. Redact once and keep two versions:
ledger.yaml, the full version, which never leaves your machine.ledger.redacted.yaml, generated from the first, which is the only version you paste.
Regenerate the redacted file whenever the full ledger changes. This prevents the common slip of pasting the original because it was the file already open. Store both outside any folder that syncs to a public or shared location, and keep the private mapping next to the full ledger, not the redacted one.
Account and tool settings to check
Before the first paste, spend a few minutes on the tool itself.
- Find the data-use setting and see whether your conversations can be used for model training. Opt out if you can.
- Learn how deletion works. Deleting a chat may not delete it immediately from backups or logs. Read the provider's retention statement for specifics.
- Use temporary or incognito chat modes if your tool offers them, but confirm what they actually do.
- If your employer provides an approved assistant with business terms, prefer it for anything touching work you did there. Don't use a personal account for work-related material your employer treats as confidential.
- Don't connect the assistant to your email, cloud drive, or browser history for this task. Then it cannot pull in more than you pasted.
Common mistakes
- Redacting the CV but not the job posting notes. If you paste your own comments, such as "I know the hiring manager, Sam Patel", the redaction is wasted.
- Pasting the mapping to "make it easier". The mapping is the key. Keep it local.
- Trusting the script's silence. No replacements does not mean no personal data. Read the text.
- Replacing facts instead of identifiers. Swapping "PostgreSQL" for
[TOOL_1]hides nothing sensitive and breaks the tailoring. Replace identifiers, not skills. - Changing a number to avoid disclosure. Round it, omit it, or get permission to use it. Never substitute an invented figure.
Exercise
Your ledger entry says "Built a reporting dashboard for Acme Bank, saving the compliance team about 12 hours a week." You want an assistant to reword it for a data analyst posting. Which parts do you replace or consider omitting before pasting, which parts do you keep, and why?
Show answer
Replace "Acme Bank" with a placeholder such as [CLIENT1], because a client name may be confidential and the assistant does not need it to reword the bullet. Keep "reporting dashboard", the compliance team's role, and the "about 12 hours a week" figure, since those are the facts the rewrite must preserve and the figure is a measured result rather than an identifier. If the savings figure or the client relationship is covered by a confidentiality agreement, omit or generalize it only to something that is still true, and do not invent a different number. After the reply, restore [CLIENT1] locally and check that the bullet still says what happened.