Sensitive-content scanning
Mail carries credentials. A deployment key pasted into a thread, a connection string in a stack trace, an API token a colleague sent because it was quicker than a vault — all of it arrives in a mailbox and, from there, would otherwise reach a chat provider's context window, a hosted embedding request, a retrieval snippet, and a log line. Sensitive-content scanning is the stage that finds such material and replaces it before the text is copied anywhere or handed out.
Two scanners can be switched on, independently and both off by default. This page records the contract they share: what a detection is, what replaces it, what one scan may spend, and what happens when a scanner cannot answer.
What is scanned, and what is never touched
The boundary is egress and derived data, never ingestion. The table names the paths this contract is written for.
| Kind of text | What scanning does to it |
|---|---|
| Extracted text, chunks, and the embeddings built from them | Redacted before they are written, so the placeholder is what is stored and later retrieved |
| Text handed to a model, to a hosted embedding endpoint, or back through an MCP tool | Redacted in flight, on every call |
| The message a caller asks this deployment to send or to hold as a draft, attached documents included | Nothing is rewritten. What is found cancels the act instead |
| An attachment a caller asks this deployment to hand back | Nothing is rewritten. What is found in its text refuses the download instead |
| The stored RFC 822 bytes | Nothing. They are never rewritten |
Raw MIME stays byte-exact because it is the fetched artifact and the local source of truth: redacting it would break signature verification, make re-derivation impossible, and destroy content permanently with no way back from a false positive. What protects it is access control, encryption at rest, and retention — not redaction.
The two scanners
They are separate switches because they are not alike in precision, not because one is more optional than the other.
Secrets looks for material that identifies its own format: a provider-prefixed token, a PEM block, a JWT, a
connection string. Detection is close to exact and costs one pass over the text.
Pii looks for personal data beyond the fixed-format identifiers. A mailbox is made of names, addresses, and
signature blocks, so this pass applied the same way redacts a great deal of an ordinary corpus. An operator handling
regulated correspondence wants it; the ordinary one wants secrets alone and would switch a single combined switch off
entirely rather than accept the second.
All four combinations are supported configurations. With both off nothing is scanned, nothing is constructed, and no cost lands on any path.
The first row is what a message stores rather than what leaves, so what it covers, what a derived row records about the configuration behind it, and what a late switch does to text already written are in derived data below.
Each account's own posture
A deployment holds several mailboxes, and what one of them is scanned for is not what the next one is. So the two switches above are the deployment's floor rather than its whole answer: a mail account's record carries a scanning block of its own, and the posture that mailbox's mail is read under is the stricter of the two.
It is the account's rather than its user's because the mail is one copy: a mailbox two people are assigned holds one set of messages, one set of derived rows, and one stamp on each of them, so two records deciding it would be two answers about the same stored mail. What scanning is asked of a mailbox therefore travels with the mailbox, and a user assigned a second one scans it under whatever that second account states.
The block is part of the account document — the content of the record, not an overlay on the deployment's
SensitiveContent section — and it is written under SensitiveContent in that record. No configuration source states
it: a record is reached with mfctl account edit and with nothing else, the client publishing no route that edits an
existing mail account. A user record naming either block is refused as a property nothing binds, exactly as any
other unknown setting is.
{
"SensitiveContent": {
"Secrets": { "Enabled": true },
"Pii": { "Enabled": true },
"ScreenOutgoingMailFor": ["Secrets", "Pii"]
}
}
One direction only. An account may switch on a scanner the deployment left off, and may add a scanner to what stops its outgoing mail. It may not switch off a scanner the deployment requires, and may not name fewer scanners than the deployment screens for. The obligation belongs to whoever holds the mail, so a loosening is refused where it is written — at the record write, and at the start that reads a block declared in the deployment's own file — rather than accepted and then quietly overruled, which would leave a reader of the record seeing something other than what is in force. Each refusal names the deployment setting behind it, and never repeats the text of the record.
A record this deployment already holds is composed rather than refused, and that is deliberate rather than a gap. An operator who tightens the deployment afterwards turns every record accepted before into one that asks for less, and refusing those on the next start would refuse the start itself for every mailbox — over records their authors could no longer reach to rewrite, the surface that would rewrite them being behind the gate that is failing. The composition takes the stricter of the two, so such a record loosens nothing.
Asking for a scanner the deployment cannot run is refused at the write too. The personal-data scanner reaches an
analyzer an operator deploys beside the service, so an account switching it on where
SensitiveContent:PersonalDataAnalyzer:Endpoint names no address is told so immediately, with that key named. The
alternative would be a record that reads as accepted and a mailbox that fails closed on its next message.
What stays the deployment's, wholly. The analyzer's address, the analyzed ceiling, the per-scan timeout, the process-wide scan concurrency, and the rebuild switch below. They are the operator's costs rather than anybody's preference, and the concurrency in particular is one budget shared across every mailbox: a deployment's limit on scans running at once is a property of the process, and a per-account share of it would let the number of mailboxes held decide how much load the analyzer sees.
A deployment holding one account whose record says nothing behaves exactly as it did before any of this existed — the same scanners, the same screening, the same stamp, the same queries. Nothing here is reached by a record that says nothing.
Two accounts asking for the same thing share one composed posture, so a deployment holds one redaction and one stamp however many mailboxes it holds, and the detectors behind them are constructed once for the scanners the deployment provides. An account whose posture scans nothing constructs none at all.
Changing an account's posture rewrites nothing already stored, for the reason a deployment-wide change rewrites nothing: the way back is the same rebuild, and it covers that account's mail alone. The stamp a derived row carries is judged against the posture of the account the row's mail sits in, so one mailbox switching a scanner on leaves every other mailbox's rows exactly where they were.
The one place a user is still the scope is what redacts a read. A search or a retrieval resolves the person rather than the mailbox — it hands out mail from whichever of their accounts matched, several layers below the point an account could still be named — so what redacts those values is the strictest of the postures across the accounts that user is assigned. That only ever redacts more than the message's own account asked for, which is the safe direction; every path that does hold one account — the outgoing screen, the attachment download, and the passes that derive from one mailbox's own mail — is judged by that mailbox alone.
What a read spans is read from the database once, before the read begins. Which scanners each account switches on and which screen its outgoing mail are held in columns of the account's record, written with its settings in one transaction, so the strictest posture across one user's accounts is one query over the distinct answers those accounts gave rather than a walk of every account's settings. The read is judged by that answer from its first value to its last. The same columns answer the deployment-wide questions — whether any served mailbox is scanned at all, and whether any runs a given scanner, which is what the readiness check on the analyzer asks before it reaches the analyzer — and each of those is asked where it is needed rather than held between requests.
What one mailbox is judged by is read from the same columns, and kept for thirty seconds. A pass deriving one account's mail asks per message, so the answer about an account is read the first time a replica meets it and reused for the thirty seconds every other change to a record takes to reach every replica; an account switching a scanner on is scanned under it on every replica within that interval. The walk that rebuilds stale rows names only the accounts whose record asks for more than the deployment, and judges every other account's rows against the deployment's own posture, so what it reads follows the mailboxes that opted into something rather than every mailbox a deployment holds.
The guarded egress points
Every place text leaves this deployment goes through one guard, and the guard is told which place it is. There are eleven, and the register is closed: a twelfth is a code change rather than a configuration one, which is what makes the list below answerable by reading it.
| Egress point | What crosses it |
|---|---|
chat_prompt |
Everything a model is sent: the question a client asked, and the subjects and passages of the mail retrieved to answer it |
hosted_embedding_input |
Every passage sent to a hosted embedding endpoint |
mcp_snippet |
The mail text an MCP tool answers with: the subjects and sender display names of a listing, the same plus the extracts of a search, and an answer with its citations |
mcp_email_content |
The message get_email_content returns: both body representations, the subject, and every participant's display name |
outgoing_mail |
The message a caller asks to send or to hold as a draft: its subject, both body representations, and the extracted text of every document attached to it, read back out of the MIME it would be transmitted as |
client_mail_listing |
The mail text the client API answers a message list with: the subject and sender display name of every row, and the preview of the message's own text beside them. A conversation crosses here too, for its messages and for the display names its participant list names |
client_mail_search |
The mail text the client API answers a search with: the subject, sender display name and preview of every result, and every highlighted extract cut around what matched |
client_citation_resolution |
The passage the client API answers a citation with: the text of the one fragment a fact was drawn from, published so a reader can check the fact where it stands |
client_thread_state |
The block the client API answers a conversation's state with: each statement a derivation wrote about where the exchange stands, and the name a commitment is owed by |
client_reply_draft |
The reply the client API drafts: the body somebody is about to edit and send, and each claim it asserts. The addresses it proposes do not cross here, being values this deployment resolved out of its own store rather than text a producer wrote |
client_contact_correspondence |
The mail text the client API answers an opened contact with: the subject of each conversation naming that person, and the name of each document they sent. The identities, the positions, the declared types and the instants beside them do not cross, being values this deployment resolved rather than text a sender wrote |
client_contact_relationship |
The card the client API heads an opened contact with: the note a derivation wrote about that correspondence, what it suggests doing next, and each observation beside them. The citations under them do not cross, being identifiers and a position this deployment resolved out of its own store |
attachment_download |
The extracted text of one attachment about to be streamed whole, on the signed link route and on the client's own attachment route alike — the one point whose subject is a file's own words rather than a message's |
client_citation_resolution is apart from both of the client points above because what crosses it is chosen by neither
a folder nor a query but by a claim a model already made: the passage is the evidence behind one sentence of an answer,
so a replacement made there is a replacement inside what somebody is being asked to check. The message's own values —
its subject and its dates — cross under mcp_email_content instead, because
following a citation reads the message through the same use case
get_email_content does.
client_mail_listing is apart from mcp_snippet rather than folded into it because the two publish different amounts
of a message. A list row carries the opening of the body and a tool listing carries none, so what a scanner finds here
is found in text no other listing point ever sees — and one tag for both would leave an operator unable to say which
surface a finding crossed.
client_mail_search is apart from client_mail_listing for a different reason: an extract is cut around what somebody
was looking for, so what crosses there is chosen by the query rather than by where a message sits in a folder, and a
redaction rate averaging the two would describe neither. It is also the point whose cost is paid per result and per
extract rather than per row.
client_thread_state is apart from client_mail_listing although both are read from the same screen, because what
crosses there is not mail at all: it is a sentence a model wrote about the mail, so a credential a message carried can
reach it having been quoted rather than copied, and a finding here says a derivation repeated something a scanner had
already caught upstream. It is also the one client point whose text was never in a message, which is what makes
counting it separately worth the tag — a redaction rate mixed into the listing's would hide exactly that.
client_reply_draft is apart from client_thread_state although both carry a model's own sentences rather than a
message's: what crosses there is text a person is about to send under their own name, so a finding here is a credential
about to leave the mailbox again rather than one quoted back onto a screen. Its bound is one report per draft rather
than one per claim, because a draft is what a composer waits for.
client_contact_correspondence is apart from client_mail_listing although both carry subjects, because what is
assembled there is chosen by a person rather than by a folder: the answer is everything the mailbox holds about one
named correspondent, so a finding says a scanner withheld content from a correlation about somebody in particular. A
rate of that merged into the listing's would be lost among every folder anybody scrolled. It is also the one client
point that scans a file name without the file's words beside it — the document list names what a sender called each
file and nothing out of it.
client_contact_relationship is apart from client_contact_correspondence beside it although both are drawn on one
page and the second is derived from the first. What crosses there is text a sender wrote — a subject, a file name —
and what crosses here is text this deployment composed about that person, so a finding says a derivation restated
something sensitive that the subjects beside it may never have shown. It is the same separation
client_thread_state holds from client_mail_listing, one person at a time rather than one conversation.
A conversation shares the listing's tag rather than taking a tag of its own, because it publishes the same three values per message, to the same reader, in the same amounts. What it adds is one value the list has no counterpart for — the display name in a thread's participant list — and that is a second publication of a name the messages beneath it already carry, so it is scanned here with them and a header cannot come to disagree with its own rows.
A value is guarded, never a composed document. A snippet, a subject, and a question are each scanned on their own and the result is composed afterwards. Scanning the composed thing instead would let one detection cover the end of one field and the beginning of the next, and replacing that region would take the boundary between them with it — an XML envelope handed to a model would stop being one.
The single-request chat port is the one exception, and it is one on purpose. A conversation arrives there already built, and nothing at that boundary can tell which turn a mailbox reached, so every turn is scanned whole — including one MailFathom composed itself, such as the judgement a model-judged retrieval sends per candidate. The cost is the one the rule names: a detection covering the tail of an extract and the element closing it is replaced by a single placeholder, and the envelope in that turn stops closing. That is a degraded prompt rather than a leak, and it is the price of a port that guarantees nothing leaves it unscanned whatever its caller composed. Where MailFathom builds a document it also owns the values, it guards them first and composes afterwards, which is why the retrieval envelope an answering run sends is assembled from guarded extracts.
One text is scanned once, at the point it actually crosses. An answering run looks mail up through the same ranked
window search_emails publishes, and that window is guarded where it is published rather than where it is searched — so
a lookup made on behalf of a model is scanned once, at chat_prompt, instead of twice under two different tags. The
same reasoning bounds what is scanned at all: a citation the answer's own ceiling drops is never scanned, because it is
never published.
The guard sits above the retry boundary, so one call costs one scan whatever the provider does, and a scanner that cannot answer surfaces as its own refusal rather than being reclassified as a provider fault and retried. What it never sits above is the identifiers beside the text: an account, a folder alias, an address, a stored identity, and a cursor are what a caller acts on rather than text to read, and redacting the address a reply has to go to would remove a result's whole use while protecting nothing the message body did not already carry. Those are protected by who may reach this deployment. The line falls between a routing identity and free text rather than between fields that look structured and fields that do not, which is why a sender's display name is guarded while the address it sits in front of is not.
Three paths carry no guard because they carry no mail. A log line and an audit record hold identifiers, aliases, counts, and outcomes and never message text, which is the rule the telemetry and audit contracts already hold rather than something redaction would enforce. MailFathom sends no webhook at all. The deterministic in-process embedding generator is exempt for a different reason: nothing leaves the process, so there is nothing for a guard to sit in front of.
Two of them are the ones a redaction never reaches, and each for its own reason. At outgoing_mail rewriting what
an author wrote is not a disposition MailFathom may take: a placeholder in a message somebody signed would be sent in
their name. At attachment_download what crosses is not text at all but a byte stream, and a region replaced inside one
produces a file its author never composed whose reader has no way of knowing it was changed. Both refuse the act
instead, which is why stopped is a series either of them can produce and no other point can;
outgoing mail is screened rather than redacted states the difference
in full and carries the download rule beneath it.
A refusal at any of them fails the operation it guards, as failing closed describes — the question is not answered, the passages are not embedded, the listing is not served, the message is not returned, the send is not queued, the file is not served. What each guarded call found, refused, and cost is published; telemetry § what guarding an egress point publishes names the instruments.
Outgoing mail is screened rather than redacted
A message this deployment is about to send is the one guarded text MailFathom did not derive and does not own. Somebody
wrote it, their name is on it, and a placeholder dropped into it would be transmitted in that name — so at
outgoing_mail the finding cancels the act instead of rewriting it. Nothing is redacted, nothing is edited, and
nothing partial is stored.
Every route into a send and every route into a draft is covered, because the screen sits where they converge. There
is one way a message enters the outbox and one way a draft is written, and the screen is inside each of them rather than
at the tools in front of them. So the act is judged identically whether it was a send_email call, a send an operator
asked for at a later moment, an occurrence of a recurring send, a save_draft, a revision through update_draft, or a
held draft promoted by send_draft — including the promotion of a draft written before the deployment screened
anything, which is judged when it is sent rather than grandfathered in.
What is screened is the composed message, read back out of the MIME that would actually be transmitted: the subject, the plain-text body, and the HTML alternative exactly as it will leave, markup and all. Reading the composed message rather than the arguments a caller sent is what makes the routes above one contract — a promotion and a recurring occasion carry bytes and no authored fields at all.
Every attached document is read and screened with the message. MailFathom reads an attachment's text under the ceilings attachment text extraction declares and hands what it yields to the same screen the subject and the two bodies go through, so a credential typed into a covering note and the same credential inside the attached PDF stop the act identically. Each file is scanned as its own value, for the reason the three values above are separate: a match straddling the join between two files is a match against something nobody attached.
A file nothing could read stops the act too, and that is a deliberate refusal rather than a gap. An encrypted document, one in a format nothing here parses — the three legacy binary formats among them — one whose bytes do not parse as what they declare, and one whose reading ran past a ceiling all mean the same thing: the file is going out and nobody established what is in it. Treating that as clean would make the whole screen a property of the format a sender chose.
What is not read is what falls outside a closed set of thirteen formats, and the page says so rather than implying
coverage. Recognition is decided by AttachmentDocumentFormats from the media type the sender declared and the file
name's extension, so what is screened is a PDF, the three Office Open XML families, the three OpenDocument ones, and
a plain-text, Markdown, or .csv file — and everything else is sent and served unread. That is a photograph, a
recording, and an archive, which carry no text a scanner reads. It is also a .json file, an .html page, and a
source file, which plainly do: a credential in an attached .json leaves a screened deployment exactly as it did
before, and nothing here pretends otherwise. The same is true of a recognized document whose every page is a scan of
paper, which is read successfully and yields nothing.
Two of those are worth stating apart, because they are not the same fact. A format outside the set is not read and
not refused. A format inside it that yields no text — a .doc, .xls, or .ppt, or one an operator excluded from
Embeddings:AttachmentText:Formats — is refused, on the rule that an attachment which was not read is never treated
as clean. Describing an image at a provider is egress rather than a screen on one, and it is not
what this does.
Nothing is written down when the screen stops the act. No outbox row, no draft, no revision, no content row. The draft being revised keeps the text it already had, and the message is refused before the transaction the act would have committed is opened.
A caller reads why. The refusal carries 59001 naming the category that stopped it — never the rule, the position,
the confidence, or one character of what was found — 59002 when the text was longer than
SensitiveContent:MaximumAnalyzedCharacters, which stops the act because nothing read the remainder and a message
whose tail nobody analyzed is exactly the message that must not leave, and the same code again when the message's
attachments come to more than a whole message is read within, which is the same fact about the same message — and
59003 when one file the message attaches could not be read at all. The third names neither which file it was, what it
is called, where it sits, nor which of the several ways it defeated the reader, for the reason the first names no
position: a refusal is a line in a log, and a file name is mail content exactly as a body is. It is also not the answer
where every document was read and there was simply too much of them, because converting a file that was read
successfully would change nothing. A message carrying both a finding and an unreadable file is refused for the
finding, which is the half its author can act on. All three belong to the MCP boundary's own category, so an MCP client
is told what happened rather than that the tool failed; the same
error reporting rule governs every other code.
An attachment is screened on the way out as well
A read that redacts a body and a link that serves the unredacted original beside it is not a screened deployment, so the same screen sits on the two paths that hand an attachment's octets to somebody outside: the signed download link the tool surface mints, and the client's own attachment route.
- The rule is the one above. The file's text is extracted afresh — nothing here depends on what a derived pass
stored or on the message having been read yet — and judged by the posture of the account the message sits in. A finding refuses the
download; a document nothing could read refuses it; a file no reader recognizes as a document is served as it always
was. What the read is bounded by is
Embeddings:AttachmentText:Formats, the same set the search stage is configured with, so a format an operator excluded from it answersFormatNotExtractedand is refused rather than served — which is the paragraph above's rule reaching a key that reads like an indexing choice and is not one here. - Nothing is redacted and nothing partial is served. Replacing a region inside a byte stream produces a file its author never composed and whose reader has no way of knowing it was changed, so the answer is the whole file or none of it.
- A stopped download says so, and says nothing else. It answers
409carrying59004, which is deliberately distinct from the single refusal every other stopped download shares: whoever asked was already told by the read beside it that the attachment exists and what it is called, so the answer discloses nothing that description did not. Four things reach it — a scanner named something in the file's text; nothing here could read the file; its text was longer thanSensitiveContent:MaximumAnalyzedCharacters, so the remainder went unscanned; or a switched-on scanner could not answer at all — and the answer says which of the four it was no more than it names a category. Telling them apart would say that this file holds a credential, or that this deployment's analyzer is down, to somebody the deployment has just decided may not have the file. - An account that screens nothing pays for none of it, and serves attachments unscreened. The posture is read before
anything is opened, so a deployment this is inactive for serves a download at exactly the cost it did before. Which
deployments those are is
SensitiveContent:ScreenOutgoingMailForand nothing else — the same key that decides whether a send is screened. A deployment that switched no scanner on is one of them; so is one running every scanner that wrote[]to that key, which keeps redacting every read and serves every attachment whole beside it. That combination is the asymmetry this section exists to close, so an operator writing that list is deciding about downloads as well as about sends.
What it screens for, and why the default is secrets alone
Screening reuses the deployment's scanners, its category lists, its suppressions, and its bounds. What it does not reuse
is which findings matter, because a redaction and a refusal are not the same act at the same cost:
SensitiveContent:ScreenOutgoingMailFor names the scanners whose findings stop a send.
- The default is
Secrets. A credential in an outgoing message is what this exists for, and no ordinary correspondence carries one, so the default protects a deployment that switched a scanner on without reading this page and refuses almost nothing it did not mean to. Piiis named or it is absent. A mailbox is made of names, addresses, and signature blocks, so a deployment that screened outgoing mail for personal data would refuse nearly every message somebody tried to send. That is a defensible configuration for regulated correspondence and a broken one everywhere else, which is why it is written down rather than inherited. The consequence to read twice: a deployment running only the personal-data scanner screens no outgoing mail at all until it namesPiihere, because the default names a scanner that deployment has switched off.[]switches screening off while the scanners keep redacting everywhere else, and is how an operator says that what leaves through a model may be redacted but what a person sends is theirs.- A scanner named here but switched off screens nothing, because it detects nothing to screen with. Naming one is not how it is switched on.
- An account may add to this list and never take from it. The key names what stops every mailbox's outgoing mail;
an account's own
ScreenOutgoingMailForis read as its whole answer, so one naming fewer scanners than this does is refused where it is written. Each account's own posture is the rule.
With no scanner switched on, nothing is screened, no message is parsed, and no detector is constructed — the opt-in nobody took costs an enqueue and a draft save nothing at all.
Each stopped act is counted, by egress point, scanner, and category, without the message or the finding; telemetry § what guarding an egress point publishes names the instrument.
Reading a message is scanned in flight
get_email_content is the one egress point that publishes a whole body rather than an extract of one, and it scans on
every call rather than serving something scanned earlier.
Nothing stored is rewritten by it. Not the raw MIME, which is byte-exact everywhere in this feature, and not the extracted text either — a read redacts a copy on its way out and leaves the store as it was. Scanning per call is also what keeps the store free of a map naming where each message's credentials sit: a persisted span list would be a new artifact pointing straight at the sensitive material, which a cheaper read does not justify. No offset, no finding location, and no span list for a stored message is written anywhere.
One message reads the same through both paths. The redaction here is the same implementation the derived path runs,
so for a given rule corpus, analyzer profile, and category set, the text ask_mail cited out of a redacted chunk is the
text get_email_content returns for the same message. That agreement is the point: a citation that landed on different
words would read as invented.
What is scanned is what the message's author wrote — both body representations, the subject, and the display names of the first 40 named participants, past which the address is published with no display name rather than one nothing scanned. That count is bounded here rather than by the message because a parse publishes up to 256 addresses per header role and a scan is a round trip on a deployment running the analyzer in a container. The addresses, the account, the folder alias, the stored identity, the sizes, the flags, and every attachment's file name are left as they are, on the same line the guarded points above draw: a routing identity is what a caller acts on, and redacting the address a reply goes to would remove the read's whole use while protecting nothing the body did not already carry. Each value is scanned on its own and the message is composed afterwards.
The analyzed ceiling is stated rather than hidden. A body longer than SensitiveContent:MaximumAnalyzedCharacters
comes back cut at that ceiling, with truncatedBy reading sensitiveContentScanCeiling — the third bound a
representation can name, beside the per-body limit and the read's budget, and the only one a caller cannot act on:
naming fewer emails in a call returns no more of that message, and only raising the ceiling does. The default ceiling
matches what one whole read may return, so an ordinary message never reaches it.
A detector that cannot answer fails the read. It is not degraded to serving the stored text: the caller keeps
nothing, and the same read succeeds once the detector answers again. What each side sees follows the rule
MCP tools § error reporting already states — the server log records 81001 naming the
scanner, and the client receives 54001, because only the MCP boundary's own category is described to a caller. An
operator diagnosing a refused read therefore reads the log rather than the client's message.
With both switches off the read is exactly the read it was before this feature existed — no detector is constructed, no text is scanned, and no representation names a ceiling.
Derived data is written redacted and stamped
Everything MailFathom derives from a message's body — the extracted text, the passages cut from it, and the vectors built from those passages — is derived from redacted text while a scanner is on. The redaction happens once, where the body is read out of the stored MIME, so a placeholder is what is stored, what is embedded, and what a search or an answer later returns; nothing downstream scans a second time and nothing downstream sees the original. The arrival pipeline draws where that read sits among the stages around it, and why the spam scanner beside it is deliberately shown the message unredacted.
Words read out of an attachment go through it too, where the deployment turned attachment reading on. A contract's extracted text and a model's description of a picture are both derived mail content — an invoice carries an account number and a model asked what a photograph shows will read out whatever is printed on it — so each is redacted before it is stored and each carries the same stamp. The scan happens in the account run's attachment stage rather than at the write, exactly as the body's does. Message chunks § passages cut from an attachment records what a redaction costs a citation: a placeholder is rarely the length of what it replaced, so each page boundary is carried across by the net shift the placeholders before it applied, and only a boundary pointing into text the analyzed ceiling dropped is left out rather than published pointing at the wrong place.
A reading of an attachment carries a stamp of its own, and the rebuild reaches it. The body and the attachments are
read by different stages, so a posture republished between the two leaves one of them current and the other not —
which is why the startup report and SensitiveContent:RebuildStaleDerivedData below judge each row against its own
stamp rather than reading the message's search document for both. What a rebuild does to an attachment is discard it
rather than re-read it: the stored words go, the passages cut from them go with them and the vectors built from those
passages cascade away, stored_emails.AttachmentTextDerivedAt is taken off, and the message is back in front of the
account run's attachment stage, which reads it again under that run's own octet budget, its own format list, and
whichever image provider the deployment still has configured. Until that stage reaches it the message is findable on
its own words and not on its attachments', which is the fail-closed half of the same rule the rest of this page
follows — the passages are the copy a search actually returns, so leaving them would keep exactly what the discard was
for. A reading whose stamp is already current is left exactly as it is, along with its passages, so a rebuild over a
mailbox nothing changed for reads no file, calls no provider, and re-embeds nothing.
Only derived mail text goes through it — a body and an attachment's words. A subject, a display name, an address, a folder alias, and a thread identity are routing identity rather than free text, exactly as the egress rule above draws the line, and they are guarded where they leave rather than where they are stored — otherwise a listing would name messages nobody could recognise and a reply would have nowhere to go. A subject an operator wants hidden from a model or an MCP client is hidden by the egress guard, which already covers it.
A refused scan writes nothing. The derived path fails closed like every guarded one: a detector that is unreachable, over its budget, or answering nonsense refuses the extraction, and nothing downstream of it runs. On the synchronization path that message is not stored at all — its folder run stops on it and the checkpoint stays where it was, so the whole message is fetched again on the next run rather than landing half-derived. On the extraction backfill the message keeps whatever it already held, uncommitted work is discarded, and the walk resumes from its last committed position. Both retry on the next interval, and neither leaves text in the store that no scanner saw.
The stamp a derived row carries
Each message's derived row records the sensitive-content configuration its text was written under, as a 64-character digest of: which scanners ran and in what order, each one's detector name and corpus or profile revision, the categories switched on for it, and the rules suppressed inside them. That is the whole of what decides the redacted result, which is what makes two rows with the same stamp comparable and two with different stamps not.
The analyzed ceiling is part of it, because on this path it is not a cost control. A redaction returns the text cut
at the ceiling, and here what is returned is what is stored — so a deployment that lowers
SensitiveContent:MaximumAnalyzedCharacters indexes every message derived afterwards with its body cut at that length,
and raising it back has to leave those rows stale or the missing text is never restored by anything.
The personal-data confidence floor is part of it too, through the analyzer profile's revision, which names the mapping, the set of languages, and the floor together. The languages are in it because they decide what could be found at all, so adding one marks earlier-derived rows stale exactly as changing the only one did. The floor is sent to the analyzer rather than applied to its answer, so a finding below it never crosses the process boundary: two deployments differing only there did not ask the same question, and a mailbox indexed under a higher floor holds personal data the lower one replaces.
What the stamp does leave out is the per-call timeout and the concurrency limit. Neither changes one character of what a scan that finished produced, so folding them in would mark a whole mailbox stale for tuning a deployment does against its own load.
An absent stamp means the text predates any scanner. It is a different value from every stamp, not a missing one, so a mailbox derived before the feature was switched on is counted and rebuilt exactly like one derived under an older configuration. A message indexed on its envelope alone — one whose stored MIME no reader could parse — is the one exception, and it is neither counted nor re-read: it holds no derived body text to correct, and re-reading it would produce nothing to write on every pass forever.
What a late switch does, and what it costs to fix
Switching a scanner on, widening a category list, lifting a suppression, or moving to a build with a newer rule corpus changes the stamp. It does not change one byte of what is already stored: stored raw MIME is never rewritten and stored derived text is never edited in place. The way back is a rebuild, and the reason is the same one that keeps raw MIME byte-exact — an in-place edit of derived text would leave a chunk whose vector was built from something else, with nothing recording which half was which.
So the deployment says so instead. At startup, a deployment where any account has a scanner on counts what was written under something other than its own account's configuration, and reports that on its own log as two figures: the messages whose derived body text is stale, and the readings of an attachment that are. They are reported side by side rather than added, because they cost different things to repair and neither contains the other — a message is re-derived from stored raw MIME, and a reading is taken again by a stage that re-parses a file and may call a provider. A row is stale against the stamp of the person who holds it and against no other, so a mailbox is never called stale because somebody else's posture happens to differ from what it was written under:
- A warning when either figure is above zero and no rebuild was asked for, naming
SensitiveContent:RebuildStaleDerivedDataas what re-derives them. It is a warning rather than a refusal, because derived text written before a switch is a state to act on rather than a misconfiguration, and refusing to start over it would take the deployment down for something switching the scanner on had already improved. - An informational line when the rebuild is already switched on, saying the extraction backfill will re-derive the
messages and hand the attachments back to the account run's attachment stage, and that it performs none while
MailExtractionBackfill:Enabledis off. - An informational line when both figures are zero, because silence would otherwise read as a figure nobody looked up.
Each is a count and nothing else — no subject, no address, no file name, no identity — like every other line this deployment writes. A database that cannot answer them is reported as unavailable and the host starts anyway: the report decides nothing, and a failed count is a worse reason to refuse a start than the stale rows it was counting.
The rebuild is opt-in, off by default, and asked for with
SensitiveContent:RebuildStaleDerivedData. Switched on,
the extraction backfill stops selecting only messages that never had text and selects every message whose body stamp or
whose attachment readings are not the current one, walking them at its configured batch size and interval; its cursor is
scoped to the stamp, so a switch flipped after a walk finished restarts that walk instead of resuming past the rows it
must revisit.
What it costs is one full re-derivation of the mailbox. Every selected message is read out of content storage, extracted again, scanned, re-chunked, and re-embedded — so it is the same spend as first indexing that mailbox: the stored text, the passages, and the vectors are all replaced, and on a deployment with a hosted embedding endpoint the embeddings are billed again, per message, at that provider's rate. Where a message's attachments were read under an older posture it costs their reading again as well, on the account run rather than on the walk: each document is parsed a second time, and where an image description was stored and the deployment still has a chat provider configured, that picture is described a second time and billed again at that provider's rate. It is off by default for exactly that reason. Nothing triggers it automatically: switching a scanner on protects what is derived from that moment onward, and spending a mailbox's worth of embedding and vision credit is the operator's decision rather than a side effect of a protection switch.
With nothing switched on for anybody nothing here runs at all: no detector is constructed, no text is scanned on the way to storage, and no stamp is written — a derived row on such a deployment is byte-identical to one written before this existed. The same holds per mailbox: an account nothing scans has rows carrying no stamp, and nothing about it is ever outstanding.
A finding names a position, never a value
A detection is the corpus entry that matched, the category that entry belongs to, a region of the analyzed text, a confidence from 0 to 1, the detector that produced it, and the revision of the rule corpus or analyzer profile it ran under, stamped with when it was evaluated.
It never carries the detected value. Recording one would recreate the leak inside the object written to prevent it, and every consumer that logs, stores, or audits a finding would carry the credential with it.
The rule travels with the finding because it is the one thing a suppression is written from. A category says what kind of material was found and is what the placeholder names; the rule says which entry decided that, which is what an operator needs when one entry misfires and the other several hundred are doing their job. Reporting only the category would leave them switching off every rule in it.
The detector and its revision travel with the finding rather than being read from the deployment, because redaction is only reproducible against a stated corpus: the same text under a newer rule set is a different result, and something that stored one has to be able to say which one it stored.
One placeholder, everywhere
A redacted region is replaced by [redacted:<category>] — the category name and nothing else. Not a length, not a
preserved prefix, not a masked remainder: a length narrows a credential's search space and a prefix names the service it
belongs to, and neither is worth the readability it buys.
One scheme serves every consumer, produced by one implementation. That is what lets a citation drawn from a redacted chunk land on the same redacted text when the reader opens the message; two implementations would drift the moment either gained a rule about ordering or overlap.
Redaction is reproducible. For a given text, a given set of switched-on categories, and a given set of detector revisions, the redacted text is identical on repeat: scanners run in a fixed order, findings are sorted before they are applied rather than applied as they arrive, and two overlapping detections merge into one region covering both — so no character any detector covered survives into the text that is handed on.
Categories, and the one rule below them
A category is the unit an operator configures. A rule corpus carries hundreds of entries, and choosing among them individually is maintaining a fork of that corpus.
Each scanner ships a default set of categories, which is the product's opinion rather than a starting point somebody assembles. Naming categories in configuration replaces that set outright: naming three yields exactly those three, naming none yields the defaults. A list that added to a set an operator could not see would leave them unable to say what is being scanned for by reading their own file.
A suppression silences one rule inside a category that stays switched on — the remedy for a single corpus entry that misfires on one deployment's mail. It can never switch a category on: a suppression naming a category this deployment does not look for resolves to nothing and changes nothing. Suppressing every rule of a category is not how a category is switched off, either; that is what the category list is for.
What one scan may spend
Three bounds, because a scan goes wrong in three different ways.
- Analyzed length. Text beyond the ceiling is not analyzed — and therefore not handed on. What a redaction returns stops at the ceiling and reports how many characters it dropped. Emitting the remainder would make the one input nobody scanned the one input that leaves.
- Per-call timeout. How long one call to one scanner may take before the operation it guards is refused.
- Concurrency. How many scans run at once across the process, which matters most for the scanner that reaches a container over the network and would otherwise open a connection per caller.
The defaults are in the AI configuration.
Failing closed
A switch decides whether a scanner runs at all. It never decides what happens to a finding.
With a scanner on, a detector that is unreachable, slower than its budget, broken, or reporting a region outside the text it was handed refuses the operation it guards. It blocks the egress, blocks the derived write, and fails the read rather than serving unfiltered content. An opt-in that degraded to "send it through" under load would be worse than no switch at all, because the operator would believe it was in force.
Every one of those failures reports error code 81001 and names the scanner. None of them names the text or the
finding: the content the scan was about is exactly what must not appear in a failure written to a log.
attachment_download is the one egress point where that code does not reach the caller, and it is a disclosure rule
rather than an exception to failing closed. The download refuses exactly as every other guarded operation does — nothing
is served — but the answer is the same 409 and 59004 a screened file gets, because a caller holding a capability who
could tell "this file carries something" from "the analyzer is down" would be reading this deployment's health off a
link somebody handed them. What an operator reads instead is the instrument beside the screen, which records the
scanner's refusal at that point exactly as it records one anywhere else;
telemetry § what guarding an egress point publishes
names it.
One failure in this feature is an availability failure rather than a scan's: 81002, raised when the personal-data
analyzer cannot be reached, answers the availability probe with a refusal, or recognises nothing the configured
categories need. It is what the readiness probe reports on rather than what a guarded operation raises. It
names SensitiveContent:PersonalDataAnalyzer:Endpoint — the key an operator edits — rather than the address that key
resolved to, because a message reaches a log and no message in this feature carries a host name. Neither does it carry
the analyzer's own words: a refusal is reported as its status number and .NET's name for that status, because a proxy or
a wrong service at the configured address writes the body and the reason phrase alike. The resolved address is on the
failure itself for a caller that has somewhere safe to put it.
The secret scanner
Secrets runs in this process. Secret detection is pattern matching over text, so a container of its own would buy
nothing and would put a network hop and a failure mode on a read path that already has to fail closed.
Where its rules come from
Three places, and the reason is a measured gap.
- The detection engine's own corpus,
Microsoft.Security.Utilities.Core. Roughly ninety high-confidence patterns, almost all of them Microsoft credential formats, against two third-party ones. They becomeProviderTokenrules, and the handful of shape-recognising entries in its unclassified list becomeJsonWebToken,PrivateKey, andCredentialUrlrules instead. - The gitleaks rule data, at the release recorded in
THIRD_PARTY_LICENSES.md. A mailbox receives forge tokens, cloud access keys, payment keys, and model-provider keys, and the engine alone catches almost none of them. Only entries that recognise a credential by its own shape are taken: gitleaks also ships rules that recognise a secret by its proximity to a keyword, and a mailbox is prose, so those would turn ordinary sentences into findings. The expressions that are taken are adapted rather than copied, and one of those adaptations is about prose too. gitleaks establishes where a credential ends by requiring a quotation mark, whitespace, a semicolon, or the end of the text after it, which is where one ends in a file and not where one ends in a message; MailFathom requires instead that the credential's own alphabet has stopped, so a token closing a sentence, standing in a bracket, or sitting in a table cell is found exactly as one followed by a space is. - MailFathom's own, for the two shapes both corpora miss because both are written for source control: a connection string pasted into a thread so somebody can reproduce a failure, and a link whose query string is the credential.
Whichever of the three matched, a finding reports one detector identity and one corpus revision, and that revision moves when any of the three does. It also moves when the adaptation above changes what a rule matches, which is a fourth thing it names: the gitleaks half is identified by the release it came from and by the revision of what was done to it, because either one moving is a different corpus and a text redacted under the earlier one is a different result. An operator diagnosing a false positive should not have to learn which corpus a rule came from before they can suppress it.
What is redacted, and what is left readable
A finding covers the credential rather than the line it sits on. Where the surrounding text carries no secret and is worth keeping, only the credential inside it is replaced: a connection string still says which database it reached, and a link still says what it linked to.
The entropy heuristic
HighEntropyString is the recall layer for a credential with no format to recognise, and it is off by default. It is
equally what turns a base64 attachment fragment, a message identifier, and a tracking parameter into findings — a trade
an operator should be choosing rather than discovering.
It is not shape alone. A candidate is measured for randomness, in bits per character, and reported only above a floor that separates a credential drawn from a random alphabet from an encoded run of ordinary text. Its confidence is that measurement rather than a fixed value, which is what makes it the one category whose findings are scored rather than certain.
Bounding an untrusted match
Mail is untrusted input, so no expression runs without a ceiling on how long it may take. The scan budget an operator configures bounds a whole scan; a separate per-expression ceiling bounds one pattern within it, and exceeding either refuses the operation rather than returning text nobody finished scanning.
The budget bounds a scan already running, not only one about to start, which is why the scanner walks its own corpus instead of handing the text to the engine's masker: that one runs every expression before it returns anything, so a budget expiring midway would be read only once the work it was meant to stop had finished. Ending the pass between one expression and the next is what makes the budget and a shutting-down host mean the same thing here as everywhere else.
Which matcher runs an expression was decided by measurement rather than by preference. MailFathom's own corpus is
compiled by the [GeneratedRegex] source generator, because it is derived from RE2 expressions that carry no
backreference and no nested quantifier for a backtracking matcher to degrade on, and because the generated matcher runs
several times faster than the linear-time alternative over exactly the text a mailbox produces the worst case with — a
base64 attachment fragment or a long run of hexadecimal. The engine's own patterns stay on the linear-time matcher it
selects for them, because their expressions are the package's to reason about rather than this repository's.
The personal-data scanner
Pii reaches a container beside the service. Finding a personal name, a postal address, or a national
identification number in prose needs a language model, and MailFathom loads none into its own process — so this scanner
sends the text to a Presidio analyzer over HTTP and maps the offsets
it answers with back onto the text.
Every category goes through the analyzer, the fixed-format ones included. A payment card number could be matched here with a checksum and no model at all, but splitting the categories across two implementations would leave two things deciding what a personal-data finding is: they would disagree about the same message, each would need a false-positive corpus of its own, and the deployment rule below would become a rule per category.
The analyzer is deployed only when the switch is on
With Pii off — the default — no analyzer exists anywhere. The Helm chart renders no workload and no service for one,
the Compose deployment leaves its analyzer service behind a profile that is not active, and the Quadlet deployment's
analyzer unit is a file an operator never copies. An opt-in nobody took pulls no image, holds no memory, and adds no
listener.
Switching it on without naming an address at all fails startup and names
SensitiveContent:PersonalDataAnalyzer:Endpoint, the key to correct. That is a configuration error, and configuration is
validated before anything is dialled.
An address that names an analyzer which does not answer is a different thing, and it does not fail startup. The host
comes up and reports itself unready — /health answers Unhealthy, so an orchestrator takes the instance out of
traffic without restarting it. So does an analyzer that recognises nothing at all in one of the configured languages, and
one that answers but recognises nothing for a switched-on category in any of them — a narrower registry than the shipped
image, or a language it has no model for. All of them are refusals to serve
rather than warnings, because the alternative is a deployment whose configuration reads as protection in force while
every scan finds nothing, and nothing finding anything is indistinguishable from a clean message.
The probe runs on every readiness scrape, not once at startup, because the analyzer is a container with a lifetime of
its own: one that becomes ready a minute after MailFathom and one that stops answering hours later are the same question,
and an answer taken while the host came up settles neither. A transition into unavailability is written to the log at
Error and the recovery at Information — the probe response is one word by design, so the log is the only place the
reason is readable. Beneath the probe, the fail-closed contract above is what covers each individual operation: a scan
that cannot reach the analyzer refuses the operation it guards.
See the health endpoints for what each probe consults and what a failure of it costs.
What it costs to run. The analyzer loads a language model into memory before it answers anything and holds it for the life of the container, so the deployment assets give it roughly a gigabyte to request and two as a ceiling; below about a gigabyte it is killed while loading, which reaches MailFathom as an analyzer that never became ready. That load is also why the first start after switching the feature on is slow — tens of seconds — and why MailFathom reports itself unready for that interval rather than refusing to come up in it. Whether it needs a CPU of its own depends entirely on how much mail flows through the guarded paths; the concurrency bound above is what keeps a burst from becoming a queue at the analyzer. The per-shape figures are on the deployment pages: Compose, Kubernetes, and Quadlet.
Keep the endpoint inside the deployment
The whole point of scanning is that content is inspected before it leaves the trust boundary. An analyzer on the public internet inverts that: the mail is handed to a third party in order to establish whether it may be handed to one.
Nothing in the configuration refuses it, because one analyzer serving several services inside a private network is a legitimate arrangement and no rule about addresses can tell the two cases apart. What an operator gives up by pointing it outside is stated here rather than enforced: every message that would have been redacted is sent, in full and in the clear, to whatever is at that address.
The categories, and which are on by default
An operator configures MailFathom's categories. They never configure the analyzer's own entity names: those are a third party's identifiers, they change between analyzer releases, and a deployment named against them would be configured against a service rather than against this product. Each category is declared here with the analyzer entities it covers, and one entity is one rule inside it — which is what makes a suppression able to silence a single misfiring recognizer inside a category that stays on.
On by default — the identifiers that are high harm and low ambiguity. Nothing about the surrounding message makes one of them safe:
| Category | What it covers |
|---|---|
PaymentCard |
Payment card numbers |
BankAccount |
IBANs and other bank account numbers |
NationalIdentifier |
National identification, social-security, and tax numbers |
IdentityDocument |
Passport, identity-card, and driving-licence numbers |
HealthIdentifier |
Numbers that name a person inside a health system |
Off unless configured on — everything a mailbox is made of. Hiding these is a legitimate choice under a strict regime, and it is also what empties a chunk store of the terms a search runs on, so it is the operator's decision rather than the product's default:
| Category | What it covers | What switching it on costs retrieval |
|---|---|---|
PersonName |
Personal names | Every question of the form "what did she say about the invoice" stops matching, because the name is gone from the chunk the answer is in and from the query's own match |
EmailAddress |
Email addresses | An address is how a thread's participants are found in text as well as in headers; searching for one returns nothing |
PostalAddress |
Postal addresses, and places named precisely enough to be one | The analyzer reports a place name as this category, so a city or a country in ordinary prose is redacted along with a street |
PhoneNumber |
Telephone numbers | Small, and the one on this list with the least retrieval cost |
Date |
Dates and times, absolute and relative | The heaviest of the six. A mailbox is full of dates in prose, and a redacted one takes the sentence's meaning with it |
NetworkAddress |
IP and MAC addresses | An operational mailbox — alerts, incident threads, log excerpts — loses the addresses the thread is about |
The health, clinical, and demographic entities the analyzer can also report are deliberately unmapped. A disease, a medication, or a procedure is health narrative rather than a health identifier, and hiding it turns a message about a patient into a message about nothing; nationality, religion, and political affiliation is exactly the special category that deserves the strongest treatment, and the analyzer's answer for it is a named-entity guess whose false-positive rate would make the category unusable rather than protective. Company and vehicle registrations are out for a third reason: one names a legal entity rather than a person, and the other matches ordinary prose often enough to empty a chunk store on its own.
A category is only as good as the analyzer behind it. The shipped image registers nineteen entities for English, so most of the entries in each category above — the national identifiers of two dozen countries, the passport formats of several — are recognised only by an analyzer configured with the recognizers for them. The readiness probe checks that every switched-on category has at least one entity the analyzer knows in at least one configured language, which is what catches a category that would be scanned for and never found; it deliberately does not require all of them, because a narrower registry costs recall inside a category that still works.
That rule is right and it has a consequence worth stating plainly: a category can be half unreachable while the
deployment reads healthy. NationalIdentifier covers 27 analyzer entities, of which the shipped image knows US_SSN
and US_ITIN; the category passes the probe on those two while PL_PESEL — also one of its entities — is not looked
for at all under English. Nothing is logged, because nothing went wrong: the analyzer was asked what it knows and
answered. What closes that particular gap is naming pl beside en, which the next section is about.
The languages, chosen once for the deployment
SensitiveContent:PersonalDataAnalyzer:Languages is a set of two-letter codes, defaulting to en alone. There is no
per-account, per-folder, or per-message language and no detection — the set belongs to the deployment — and it is part of
the detector revision a finding carries, so the same text asked under two different sets is two results and widening the
set marks derived text stale.
A recognizer exists only for the languages it is registered for. This is the mechanism behind the paragraph above:
the analyzer's registry declares each recognizer against a language, and one not declared for a configured language is
absent rather than weaker. The shipped image's registry names a recognizer for eleven languages and ships most of the
locale-specific ones switched off, so what a category can find is decided by the languages before it is decided by
anything else MailFathom configures. en and it are the two languages under which all five default categories have
something behind them on their own; es and pl leave IdentityDocument with nothing, and the remaining seven leave
PaymentCard, NationalIdentifier, and IdentityDocument empty — which is why naming several is how a mixed mailbox
covers what any one of them misses.
A category has to be reachable in one configured language, not in every one. The probe unions what each language
answers and then asks its per-category question over that union, so en beside pl reaches IdentityDocument through
English while PL_PESEL closes the Polish half of NationalIdentifier — and adding a language never turns a ready
deployment unready. What each configured language must do is answer at all: one the analyzer was never built for is
refused by name, because a language contributing nothing is protection an operator asked for and did not get.
One scan is one request per language. A call states one language, so the scan asks once for each of them over the
same text, one after another, and merges the answers. SensitiveContent:ScanTimeout bounds the whole scan rather than
each call and SensitiveContent:MaximumConcurrentScans still counts scans rather than requests, which is why the set is
capped at eight. The merge rests on rules the redactor already had: two languages reporting the same value over the same
span are one finding carrying the stronger score, overlapping regions become one placeholder, and the findings are
ordered before they are applied, so the redacted text does not depend on which language answered first.
Polish is the case worth naming, because it is where these rules meet. Its only entry in the registry is PL_PESEL;
there is no Polish passport recognizer and no Polish identity-card one, while several other locales carry both. So a
deployment naming pl beside en finds PESEL numbers and keeps IdentityDocument reachable through the English
entities, and the two identifiers Polish correspondence carries most are still the two with nothing to switch on — which
needs a recognizer added to the analyzer rather than another language. What it takes to make a language work at all —
the model, the image, the registry, and the MailFathom-side entry a new entity needs — is the analyzer's
languages.
The confidence floor
The analyzer scores every finding, and redaction acts on a finding without weighing it. The floor is therefore the only thing between a deployment and the analyzer's weakest guesses — and those are weak. Measured against the pinned image with no floor at all, an eight-digit build number is reported as a bank account number at 0.05 and as a driving licence at 0.01, a contract reference of one letter and seven digits as a driving licence at 0.3, and a nine-digit passport number as a national identifier at 0.3 on top of being a passport number.
The default is 0.4, and it is the only value that drops all of those while leaving every category detectable. Both of
its bounds are the analyzer's rather than a preference: everything above is measured noise, and at 0.4 sit a passport
number and a bank routing number, so raising the floor at all stops two of the five default categories from being found.
The floor is sent to the analyzer rather than applied to its answer, so the weakest guesses never cross the process
boundary at all, and it is compared inclusively — a finding scored exactly 0.4 survives a floor of 0.4.
It is part of the detector revision a finding carries, beside the mapping this build ships and the model the analyzer loaded, because the analyzer applies it rather than this process: a finding below the floor is never reported, so it is part of the question asked rather than a filter over the answer. The category list is not, because that is which of the results a deployment wanted. What the revision promises is that two deployments carrying it asked the same detector the same question — which is also what makes it safe for a derived row's stamp to be computed from it.
Two things the offsets have to survive
The analyzer indexes a Python string and MailFathom indexes a .NET one, so the offsets it answers with count Unicode
code points where a string counts UTF-16 code units. Every text made only of basic-plane characters gives the same
two numbers, and a message with an emoji, an ideograph beyond the basic plane, or a flag in front of the finding does not:
the region would be shifted, leaving part of the value in the redacted text and destroying part of what surrounded it.
The translation is part of the adapter, and the integration suite proves it against the real analyzer rather than against
a payload somebody hand-wrote.
An entity the mapping does not know is ignored rather than refused. An analyzer may run recognizers of its own, and one reporting something no category covers is answering a question nobody asked; a deployment that refused the whole scan over it would fail closed on every message.
What a detector is not
A detector is never treated as complete. Its role is to reduce exposure and to fail closed, and it does not license sending mail content to a provider that would otherwise be prohibited.