Table of Contents

AI configuration

Every key deciding what leaves this process for a model provider and what it may cost: what is scanned before it goes, which endpoint and model each capability reaches, what one question and one period may spend, what classification does with what it concludes, and what the two backfills work through. The tables read as the configuration reference says they do, and that page is the map to the rest of the sections.

SensitiveContent

What this deployment scans mail for before that mail is copied into a derived store or handed out. A configuration root of its own, because it is a property of the deployment rather than of its database, its accounts, or its providers, and because the switches it holds reach several of those at once. Sensitive-content scanning records what a finding is, what replaces it, and why a scanner that cannot answer refuses the operation it guards.

Both scanners are off by default, and an absent section is that default rather than a startup failure. Secrets runs in this process. Pii reaches an analyzer deployed beside it, configured in the block below, and switching it on with nowhere to ask fails startup rather than running unprotected.

This section is the floor rather than the whole answer. Each mail account's record carries a scanning block of its own, and the posture the mail in it is read under is the stricter of the two: an account may switch on a scanner this section left off and add a scanner to what stops the mail leaving it, and may do neither in the other direction. The keys below the two switches — the analyzer's address, the ceiling, the timeout, the concurrency, and the rebuild — stay wholly the deployment's, and the concurrency is one budget every account shares. Each account's own posture is the rule, and the SensitiveContent block of the account's own record is where it is written.

Key Type Default Constraint Change
SensitiveContent:Secrets:Enabled bool false A scanner switched on with no detector registered fails startup. It is the floor for every account: one may switch it on for its own mail and none may switch it off restart
SensitiveContent:Secrets:Categories:<n> string unset Must name a category the scanner detects; the list replaces the scanner's defaults, and an absent list yields them restart
SensitiveContent:Secrets:Suppressions:<n>:Category string — Must name a category the scanner detects; naming one never switches it on restart
SensitiveContent:Secrets:Suppressions:<n>:Rule string — Must name a rule that category holds restart
SensitiveContent:Pii:Enabled bool false As above, for the personal-data scanner. An account may switch it on for its own mail only where the analyzer address below names one restart
SensitiveContent:Pii:Categories:<n> string unset As above restart
SensitiveContent:Pii:Suppressions:<n>:Category string — As above restart
SensitiveContent:Pii:Suppressions:<n>:Rule string — As above restart
SensitiveContent:PersonalDataAnalyzer:Endpoint string unset Required once Pii is on, and an absolute http or https address. It is also what makes the personal-data scanner available to an account: a record switching that scanner on where this names no address is refused at the write, naming this key restart
SensitiveContent:PersonalDataAnalyzer:Languages:<n> string unset Two lowercase letters each, naming a language the analyzer loads a model for and registers recognizers in; an absent list yields en. At most eight, since one scan asks once per language inside a single ScanTimeout. The order is not read — the set is deduplicated and ordered before use — and the set is part of the derivation stamp restart
SensitiveContent:PersonalDataAnalyzer:MinimumConfidence double 0.4 0 – 1 inclusive, compared inclusively by the analyzer. It decides which regions are replaced, so it is part of the derivation stamp and changing it marks earlier-derived rows stale restart
SensitiveContent:MaximumAnalyzedCharacters int 200000 1 – 10000000; text beyond it is dropped from the result rather than handed on unscanned. On the derived path that is what is stored, so lowering it truncates every message indexed afterwards and the value is part of the derivation stamp restart
SensitiveContent:ScanTimeout TimeSpan 00:00:15 One second to two minutes, per call to one scanner — which for the personal-data scanner covers every configured language together rather than each. A scan that misses it is refused rather than served unscanned, and on the derivation path that refusal ends the synchronization run carrying it, so a budget below what the analyzer spends on a large body leaves a folder repeating the same batch. It also bounds one personal-data readiness scrape whole, so naming more languages costs more analyzer requests and never a longer scrape restart
SensitiveContent:MaximumConcurrentScans int 4 1 – 256, across the process and across every account it serves restart
SensitiveContent:RebuildStaleDerivedData bool false Read only while a scanner is on for somebody; re-derives every message whose derived text predates its own account's current configuration, and discards every reading of an attachment that does so the account run's attachment stage takes it again restart
SensitiveContent:ScreenOutgoingMailFor:<n> string Secrets Each entry names a scanner — Secrets or Pii, matched ignoring capitalization — whose findings cancel a send or a draft save. An absent key is the default; a written empty array screens nothing; a scanner named here that is switched off screens nothing. An account may name more than this and never fewer restart

Screening outgoing mail refuses acts rather than rewriting messages, which is why what it screens for is a key of its own rather than the scanner switches above. A credential in a message somebody is sending is what it exists for and almost no correspondence carries one, so the default is Secrets and a deployment that switched that scanner on gets it without asking. Pii is not in the default and adding it is a deliberate posture: ordinary mail is made of names and addresses, so screening for personal data refuses very nearly every message a caller tries to send. A deployment running the personal-data scanner and not the secret one therefore screens no outgoing mail until it names Pii here, because the default names a scanner it has switched off. Writing "ScreenOutgoingMailFor": [] keeps both scanners redacting everywhere else and stops them cancelling anything. Outgoing mail is screened rather than redacted holds which acts it covers, what is read, and what a caller is told.

The rebuild switch spends a whole mailbox. Switching a scanner on, or widening what it looks for, protects what is derived from that moment onward and reaches nothing already extracted, chunked, or embedded — the host reports how many messages that leaves behind every time it starts. This key is what re-derives them, and it costs one full re-indexing of the affected messages: each is read, extracted, scanned, re-chunked, and re-embedded, so a deployment with a hosted embedding endpoint pays that provider again for every one. It rides the extraction backfill rather than a worker of its own, so MailExtractionBackfill:Enabled has to be on for it to perform anything, and MailExtractionBackfill's interval and batch size are what pace the spend. Switch it back off once the count reaches zero. Derived data records what is stamped, what makes a row stale, and why nothing rewrites stored text in place.

A category name is matched against what the scanner declares, ignoring capitalization, and the declared spelling is what survives the match — so a placeholder in redacted text does not depend on how the name was written here. A name that matches nothing fails startup and quotes both the value and the categories the scanner does detect, rather than being dropped by the binder and leaving the section reading as protection that is on. So does a suppression naming a rule that does not exist. A suppression inside a category this deployment does not look for is accepted and inert.

The Secrets scanner declares these seven categories. Six are on when Categories names none; the seventh is not, and listing categories replaces the default set, so switching the entropy heuristic on means naming every category wanted alongside it.

Category What it finds On by default
ProviderToken An API token, key, or session credential a named service issued and prefixes as its own yes
CloudAccessKey An access key or client secret for a cloud platform's own control plane yes
PrivateKey A private key or certificate bundle, armoured as PEM or encoded whole yes
JsonWebToken A JSON Web Token, in its ordinary form or encoded a second time yes
ConnectionString A connection string carrying the credential it connects with yes
CredentialUrl A URL carrying a credential in its user information, its path, or its query yes
HighEntropyString A string dense enough to be a credential, recognised by its randomness rather than its shape no

A rule name inside them is the corpus entry's own name — github-pat and aws-access-token from the gitleaks rule data, AzureCosmosDBIdentifiableKey and UrlCredentials from the detection engine's own corpus, and database-connection-uri-credential from MailFathom's. Sensitive-content scanning records where each corpus comes from and what the entropy heuristic costs.

The Pii scanner declares these eleven categories. The first five are on when Categories names none, and listing categories replaces that set, so adding a personal name means naming the five wanted alongside it.

Category What it finds On by default
PaymentCard A payment card number yes
BankAccount An IBAN or another bank account number yes
NationalIdentifier A national identification, social-security, or tax number yes
IdentityDocument A passport, identity-card, or driving-licence number yes
HealthIdentifier A number that names a person inside a health system yes
PersonName A personal name no
EmailAddress An email address no
PostalAddress A postal address, or a place named precisely enough to be one no
PhoneNumber A telephone number no
Date A date or a time, absolute or relative no
NetworkAddress An address that identifies a machine, whether the network assigned it or the hardware carries it no

A rule name inside them is the analyzer's own entity name, spelled as the analyzer spells it — CREDIT_CARD, IBAN_CODE, US_SSN, UK_NHS — which is what lets a suppression silence one recognizer inside a category that stays on. An operator never names one in Categories: those are the units this product publishes, and the mapping between the two is MailFathom's. The personal-data scanner records what each of the six optional categories costs retrieval, why the endpoint belongs inside the deployment, and what the confidence floor is protecting against.

The analyzer block is read only while Pii is on. An address left behind under a scanner nobody runs is accepted and inert, for the reason a category list under one is: it describes no protection, so refusing to start over it would be refusing over a comment. The reverse — the scanner on with no address, a relative or non-HTTP address, a language that is not two lowercase letters, more than eight of them, or a floor outside 0 to 1 — fails startup naming the key.

Every code in Languages is one the analyzer has to have been built for, and setting the key is only the last of the steps that make a language work: the model, the image, the analyzer's recognizer registry, its engine, and then this key. A code the analyzer registers nothing for leaves the deployment unready naming that code, rather than falling back to English or quietly contributing nothing. Which codes are named decides which of the eleven categories above can find anything — under pl alone the shipped registry knows one national identifier and no identity document at all, which is the reason to name the languages a mixed mailbox actually carries rather than choosing between them. The analyzer's languages records what each language reaches and what adding one takes.

Each language is a request, and they share one budget. A scan states one language per call, so a deployment naming two asks the analyzer twice over the same text, one after the other, and merges what came back; ScanTimeout bounds that whole scan rather than each call, and MaximumConcurrentScans still counts scans rather than requests. Two languages reporting the same value over the same span are one finding carrying the stronger score, and overlapping regions merge into one placeholder as they already did.

The readiness probe judges a category across the set. A category is reachable when at least one configured language recognises an entity of it, so adding a language never turns a ready deployment unready — while a category no configured language reaches still refuses the start, naming the category as it does today.

The analyzed ceiling defaults to the same number as EmailContent:MaxCharactersPerRead, so an ordinary content read is analyzed whole and only something pathological reaches it.

SpamClassification

Whether mail is classified as spam, and where. A root of its own rather than a per-account block, because what it switches on reaches the mailbox reads as well as the classification. Spam classification records what a classification holds, which facts the deterministic stage reads, and why a scanner never overturns a provider's own verdict.

Nothing in this section decides which mail is classified. Junk is a judgement about one mailbox, and the actions a verdict triggers write to that mailbox's mail server, so whether an account's mail is classified at all, over which of its folders, at what score, and what becomes of the result are what that account's own record states. What is left here is the scanner this deployment stands up and what the process may spend on it. The keys the two split into are named after the table.

Every switch is off by default, and an absent section is that default rather than a startup failure. The deterministic stage works alone and is the whole of the feature without a sidecar; UseScanner adds the Apache SpamAssassin daemon described below.

Key Type Default Constraint Change
SpamClassification:Enabled bool false reload
SpamClassification:UseScanner bool false Asking for a scanner while Enabled is false fails startup, because a scanner is only consulted where classification runs restart
SpamClassification:ScannedFolders:<n> string unset Read by no classification: the scope is each account's own, stated in that account's record —
SpamClassification:ScannerThreshold double unset Read by no classification: the threshold is each account's own, stated in that account's record, and this range is what a record is judged against —
SpamClassification:ClassificationWait TimeSpan 00:15:00 1 s – 7 days; how long a stored message may wait for a verdict before it is derived from anyway reload
SpamClassification:RunBatchSize int 50 1 – 10 000 reload
SpamClassification:MaxRunBatchesPerPass int 4 1 – 1 000 reload
SpamClassification:Scanner:Host string unset Required once UseScanner is on, and a host name or IP address rather than a URL or an address with the port on it restart
SpamClassification:Scanner:Port int 783 1 – 65535 restart
SpamClassification:Scanner:ScanTimeoutSeconds int 30 1 – 120 restart
SpamClassification:Scanner:MaximumMessageBytes int 512000 32 000 – 33 554 432 restart
SpamClassification:Scanner:MaximumConcurrentScans int 5 1 – 64 restart
SpamClassification:Actions:MoveToJunkFolder bool false Read by no classification: what a verdict does is each account's own, stated in that account's record —
SpamClassification:Actions:MarkAsRead bool false Read by no classification, for the reason above —
SpamClassification:Actions:JunkFolder string role:Junk Read by no classification, for the reason above —
SpamClassification:Actions:Threshold double unset Read by no classification: this range is what a record's own value is judged against —

Eight of those keys are one account's decision and the rest are the deployment's. Enabled, UseScanner, ScannedFolders, ScannerThreshold, and the four settings under Actions are what an account decides about the mail in it, and are the whole of what its record may carry. ClassificationWait, RunBatchSize, MaxRunBatchesPerPass, and the Scanner block are the deployment's, because each of them is what the process holds open or spends rather than a judgement about anybody's mailbox — an account record naming one is refused. The bounds a threshold is judged against, 0.1 to 1000, are the deployment's too and apply to an account's value unchanged.

An account's UseScanner asks for the deployment's scanner rather than deciding that one exists. Whether any scanner is registered is read from this section alone, at startup, so an account switching the key on where the deployment registered none is neither refused nor a failed start: its mail is classified by the deterministic stage, exactly as it would be with the key off. Everything else in the eight means the same for an account as it does here.

UseScanner and the Scanner block are read once, at startup: whether a scanner exists at all decides what is constructed and whether the host refuses to start without a daemon, which a reload cannot revisit. That is this section's key; the paragraph above is what an account's own copy of it can and cannot do. Everything else in this section is read per classification.

ClassificationWait bounds the ordering rather than a scan. Wherever classification is on, a message it covers is not chunked, embedded, or offered to the rule set until a verdict exists — and this is how long that may hold before the message is derived from regardless, which is what stops a classifier nobody noticed was wedged from silently stopping the index. Lengthening it delays mail of a classified folder by that much longer in the worst case; shortening it narrows the window in which a verdict can arrive first. Zero is refused, because a wait of none releases every message before anything could have scored it. Junk is kept out of what a deployment derives from mail records what each answer means and what is counted.

A scanner switched on with no daemon answering fails startup, with error code 81003 naming the key to repair rather than the address it tried. That is deliberate asymmetry with what one message gets, where a failed scan leaves the deterministic verdict standing: an instance whose sidecar never came up would classify everything from headers alone and look healthy doing it. The bounds are validated whether or not the scanner is switched on, so a value written wrong is reported before the run that first switches scanning on rather than during it.

The daemon receives whole messages, so it belongs inside the deployment's own trust boundary; the feature page states what an address outside it gives up, and what the rule-update and DNS postures cost. The deployment assets carry the sidecar itself — Kubernetes, Compose, and Quadlet.

The default scope follows the folder role rather than the text INBOX: it is whichever alias the account itself maps to Inbox, so a server presenting the inbox under another name is classified without the scope being restated here. Every alias a scope names is resolved within that account's own record, so one only another account maps reaches no mail at all. The two shapes of an unset list are deliberately distinguishable — writing no key asks for that default, and writing an empty list asks for no folder, which switches the work off without switching the section off.

A folder alias that this system could never have issued fails startup and names itself, rather than being dropped by the binder and leaving the section reading as a scope that is covered. So does a threshold outside the range above: one at or below zero files every message whatever a scanner answered, and one beyond the ceiling can never be reached, so both are a typed digit rather than an intent.

The section is read per classification rather than captured, so a reload takes effect on the next one. What a reload never does is revisit a message already classified: replacing a verdict is an explicit operation.

Which folder is left out of list_emails and search_emails is not configured here. It is the folder mapped to the Junk special use in the account's own declaration, and it is withheld whether or not this section switches anything on.

The Actions block is the only part of this section that writes to a mailbox, and both of its switches are off. Each works alone: filing moves the message on the server, marking read sets its \Seen flag, and turning both on sets the flag first, because a relocation can renumber the message. Nothing else is ever done — no delete, no other flag, no folder created, nothing sent.

JunkFolder does not have to be a folder MailFathom mirrors, and for most deployments it should not be: mapping it with synchronize: false files spam out of the instance entirely, under the account's own AuthoredDeleteEmailDisposition. What it does have to be is a folder every configured account maps, because classification asks for none to be created — an account that maps no destination fails startup naming that account, rather than leaving its spam unfiled with nothing said about why. A folder the account only maps is resolved against the server the first time a filing needs it, exactly as a rule's destination is.

RunBatchSize and MaxRunBatchesPerPass bound one pass of the classification run an operator asks for, and neither is a schedule: a pass is a step of the account's synchronization run, so how often one happens is that run's interval. What these decide is how much of a mailbox one pass takes in hand — raising them walks a mailbox nobody has scored in fewer account runs, and lowering them shortens the stretch an interrupted pass has to cover again and leaves more of each run for the folders it exists to fetch. Both defaults are smaller than the rule pass's, because a classification reads the stored message and, with a scanner configured, sends the whole of it across a socket and waits for a score.

Threshold judges what a scanner scored, in the scanner's own scale, so an operator can label at ScannerThreshold and move mail only from a higher score. It reaches no other stage, exactly as ScannerThreshold does not: a verdict resting on a provider's header or on where the receiving server filed the message carries no score in this scale, and is acted on. Raising it is deliberately not the same edit as switching classification off — the verdicts go on being recorded.

Embeddings

What this deployment intends to embed with. Writing nothing is a supported deployment: no vectors are produced, semantic search is unavailable, and lexical search serves exactly as before. Declaring a chain does not start spending — an activation does. Embedding generation records what a declaration means and what it costs.

Nothing here is a switch for semantic search, and none of these keys turns it on. What a search reports as its semantic capability follows from three facts this section does not hold: whether a profile has been activated, whether the declaration below still names that profile's identity, and whether the last call to the endpoint chain was answered. A search never fails because one of them is not true — it answers lexically and says which of the three states it is in. Email search states what each means for a caller and what an operator does about it. Editing a key in this section and restarting therefore changes what is embedded next, never what a search is currently able to do; only an activation does that.

Key Type Default Constraint Change
Embeddings:AllowTrimVectors bool false with it off, a declared dimension above 2000 is refused at startup; with it on, a wider answer is cut to the declared width and renormalized restart
Embeddings:MaxPassagesPerRequest int 64 1 – 2048; the batch bound, applied before the provider sees a request restart
Embeddings:RequestTimeout TimeSpan 00:01:00 positive; one request to one endpoint restart
Embeddings:MaxQueuedEmails int 1024 1 – 1000000; newly synchronized messages that may wait to be embedded at once, beyond which synchronization stops offering and the backfill reaches the rest. One process's, because the queue is this process's own memory: a deployment of n replicas may hold n × this waiting restart

What an instance is willing to spend

The five keys below bound cost rather than correctness, and they are validated whether or not a chain is declared: passages are cut for every synchronized message on an instance that has chosen no provider, so a ceiling left unvalidated would be one already applying. None of them is part of an embedding profile — they decide how many vectors exist and never what one means, so moving any of them leaves every stored vector as comparable as it was. Embedding generation records what each bounds and why.

Key Type Default Constraint Change
Embeddings:MaxCharactersPerEmail int 200000 1000 – 10000000; how much of one message's extracted text is cut into passages. A message beyond it is bounded rather than refused — its opening is embedded and the length its text had is recorded on the message. Charged twice per message and never more: once against the body, and once against every attachment of that message together, in walk order restart
Embeddings:MaxRequestsPerMinute int 0 0 – 100000; 0 paces nothing, which is the default. For a provider whose quota is stated per minute; a caller takes the next free slot and waits for it. The deployment's, not each replica's — the slot marker is a row every replica moves forward, which is what makes the declared rate the one the provider sees restart
Embeddings:MaxInputCharactersPerPeriod long 50000000 zero or positive; the characters one period may send a provider, counted as sent rather than as stored. 0 declares no ceiling at all, which is supported and means an enabled feature can produce a bill nobody agreed to restart
Embeddings:MaxInputCharactersPerPeriodPerUser long 0 zero or positive; the characters one period may send for any one user. 0 declares no per-user ceiling, which is what a deployment serving one user wants and what leaves a deployment serving several exposed to one person's backfill spending the whole window. A mailbox several users are assigned counts in full against each of them, so its mail is embedded only while every one of them is under their share restart
Embeddings:SpendPeriod TimeSpan 1.00:00:00 1 min – 31 days; the fixed window the ceiling is counted over, anchored at the Unix epoch so every restart places it identically restart

Reaching MaxInputCharactersPerPeriod pauses embedding until the period rolls over, and resumes without anybody acting; nothing is dropped, because a passage with no vector is what the backfill selects on. The ceiling binds to within one batch: a batch is admitted whenever anything at all is left and is then paid for whole, because weighing it against what remains would stall a deployment whose ceiling is smaller than one batch for ever.

The two ceilings answer different questions and a request has to pass both. MaxInputCharactersPerPeriod bounds the bill; MaxInputCharactersPerPeriodPerUser bounds any one person's share of it, over the same window and the same unit. Reaching the deployment's pauses the worker and ends the backfill sweep, because nothing more can be spent for anybody. Reaching one user's stops that user's mail alone: the worker carries on with the next message and the backfill steps past theirs, so everybody else keeps being embedded and their own passages wait for the roll-over. Mail belongs to the mailbox rather than to a person, so the ceiling is read of every user a mailbox is assigned to and the strictest of them decides: a mailbox two people share waits as soon as either has spent their share, which is the cost ADR 0014 accepts for counting a shared mailbox in full against each of them rather than dividing the window between them.

A mailbox assigned to nobody is not embedded at all, and reads as a per-user ceiling reached rather than as an error. There is no user for the per-user share to admit, every caller-facing scope narrows to the accounts somebody is assigned, and so a mailbox left unassigned would otherwise be spent on to produce vectors nobody could search. Assigning it to somebody is what starts it; the same holds for what reading its attachments costs.

Which of the two a refusal met is read from the log line, which names the key to raise — and raising a user's share answers nothing while the deployment itself has stopped spending, so the distinction is the whole point of reporting it. The backfill's counters separate them as well, because the deployment's ceiling ends the sweep and is reported as its outcome while a user's is counted on mailfathom.embedding.backfill.user_ceiling. The counter the worker embedding arriving mail keeps does not: both bounds reach it as one spend_ceiling_reached outcome, so on that path the log is what tells them apart.

Leaving MaxInputCharactersPerPeriodPerUser unset is the default and is right for a deployment serving one user, whose spending the aggregate ceiling already bounds. What it exposes on a deployment serving several is one user's backfill consuming the whole window before anybody else's arriving mail is embedded — which is a wait rather than a loss, and a wait that repeats every period until somebody sets a share. The embedding profile and the backfill's resume position stay deployment-wide by decision: two users' vectors share an index and have to mean the same thing, and one walk over the mail visits every message whoever it belongs to.

The default is chosen to bind. Fifty million characters a day is roughly twelve million tokens and embeds something like sixteen thousand ordinary messages, so an instance keeping up with arriving mail never meets it and one working through a decade of archive is paced rather than surprised — raise it deliberately for an initial backfill, having seen the number.

Concurrency is not here. How many provider calls may be in flight at once is Resilience:AiProviderInvocation:ConcurrencyLimit, which is the one setting that owns that question; outbound resilience holds it, and a second limiter beside it would make two keys answer for one behaviour. It is also one process's rather than the deployment's, and deliberately so: an in-flight count is what a process's own sockets, threads, and memory are spent on, so a deployment of n replicas may have n × that many calls in flight. Divide it by the replica count where the provider's own concurrency is what is being respected.

Describing an image attachment — Embeddings:ImageDescription

Off, and off is what a deployment that has not read this gets. With it on, an image attachment may be sent whole to the declared chat endpoint, which writes down what the picture shows in ordinary text. A photograph of a document discloses the document, so this is a disclosure at least as large as sending message text for embedding — and it is the one egress in this system that no content scan covers, because the sensitive-content guard detects regions in a string and there is no such operation for a picture. The operator's decision here is the whole of the control, which is why nothing turns it on for you.

It needs a chat endpoint as well as this key. An instance that declared none describes nothing whatever this says, and reports that as the reason rather than as a failure.

The model decides whether a picture is a document to transcribe or a picture to describe. Most image attachments in mail are scans, photographed pages, screenshots, and receipts, and what somebody searching for one of those types is a number, a date, or a name printed on it — never "a scanned invoice". So a picture whose purpose is its writing — an invoice, a receipt, a letter, a form, a handwritten note, a page mixing print and handwriting — is transcribed: the text read out in full and in order with its numbers and identifiers unchanged. A photograph, a bare logo, or a chart is described in a few noun-rich sentences instead. The answer names which on its first line, and the two are stored and ranked differently: a transcription is a document's text, searched by word and ranked with written mail, while a description reaches the vector index alone and ranks below every written match. Unchanged is meant character for character: every digit of a long number, the spacing and hyphens an identifier is printed with, the difference between characters a font draws alike such as 0 and O, text turned sideways or upside down read in its own direction, and the words kept in the language they are printed in, diacritics and all, rather than translated — a search for the characters on the page has to find them in the description. That is the model reading what it was shown; nothing here rasterizes a page or reaches a recognition engine, so a model that cannot read the page writes what it can see instead.

A document's pictures are read too. With this on, the pictures inside a PDF page that carries no text layer, a Word document, and a presentation are sent to the same model, at most MaxPicturesPerDocument of them per document and each counted as one description call; Attachment text extraction § pictures inside a document says which pictures qualify and what their words become.

What has landed is the mechanism and its bounds: the port that turns one image attachment into text or into a recorded reason, the allow-list, the size and grid ceilings, and this switch — and the account run's attachment stage now offers pictures to it. Turning this on sends mail's images to the chat provider, on every account run, for every message the attachment stage reaches, from the moment Embeddings:AttachmentText:Enabled is on as well; with that second switch off nothing here is reached and this one changes nothing. What a description becomes once it is produced — a passage, an embedding, a place in a ranked result — is ADR 0030.

Key Type Default Constraint Change
Embeddings:ImageDescription:Enabled bool false with it off nothing is read and nothing is sent; with it on, and a chat endpoint declared, an image attachment's octets leave the deployment restart
Embeddings:ImageDescription:MaxPixels long 40000000 1 – 1000000000; the largest pixel grid an image may declare and still be sent. A value outside the range stops the start, naming this key restart
Embeddings:ImageDescription:MaxDescriptionsPerPeriod long 0 zero or positive; the description calls one period may make. 0 declares no ceiling at all, which is the default and means an enabled feature can produce a bill nobody agreed to. Counted in calls rather than in characters, because a chat provider prices a picture per request rather than per word restart
Embeddings:ImageDescription:MaxDescriptionsPerPeriodPerUser long 0 zero or positive, and at most MaxDescriptionsPerPeriod where that is set; the calls one period may make for any one user. 0 declares no per-user ceiling, which is what a deployment serving one user wants restart
Embeddings:ImageDescription:MaxPicturesPerDocument int 10 0 – 100; the most pictures read out of one document attachment — a PDF, a Word document, or a presentation. 0 reads none, leaving image attachments the only pictures sent. Each picture read is one description call against the ceilings above restart
Embeddings:ImageDescription:MaxRequestsPerMinute int 0 0 – 100000; 0 paces nothing, which is the default. For a chat provider whose quota is stated per minute; a caller takes the next free slot and waits for it, and it paces this workload alone rather than sharing the embedding provider's rate. The deployment's, not each replica's, on its own marker row beside the embedding workload's restart

What is sent and what is refused. The allow-list is deliberately short — PNG, JPEG, WebP, and GIF — and membership is decided from the octets rather than from the media type the sender wrote, so a part naming one format and carrying another is judged on what it carries. Everything else is refused with a reason recorded against the attachment: a format outside the list, a file larger than the describing model's MaxRequestImageOctets, a grid larger than MaxPixels, a header that does not hold the format it claims, and a provider that timed out, was unavailable, or refused.

A chat endpoint has to be able to carry a description, and three of its own bounds decide that. Each is a supported declaration on its own and a mistake only beside this switch, so writing one here stops the start naming the key rather than faulting the background run on every picture: MaxRequestImageOctets: 0 declares a model sent no image at all, which is right for one that cannot read it; MaxMessagesPerRequest below two cannot carry the two turns a description sends, the instruction and the picture; and MaxRequestCharacters below what the fixed instruction occupies refuses the conversation before the picture is even weighed. Each is read off the model Chat:ImageDescription:Model resolves to, which is the one a description is sent to — so a deployment routing pictures to a vision model of its own is judged against that model rather than against the one questions run on.

SVG is excluded by name rather than left unsupported. It is XML a renderer executes as a document, with script and external references available to whoever composed it, and nothing here is a renderer with a security team behind it. A part declaring image/svg+xml is refused before its octets are read; a part declaring anything else and carrying markup is refused when they are.

MaxPixels is the decompression-bomb bound, and it is stated in pixels because a file's size does not bound one. A compressed image of a few kilobytes may declare a grid of billions, and what a decoder then allocates follows the grid. MailFathom never decodes an image — it reads the header and forwards the octets — so what this protects is the provider that does, and a grid this deployment would not have decoded is not one to make somebody else decode either. Forty megapixels is well past any camera a person attaches a photograph from.

The port's own contract obliges whatever calls it to call it from a background step, after a message is stored, and never from a read path — so that a tool call and a client request never wait on a provider describing a picture. The account run's attachment stage is what calls it, and it is exactly that: a background pass behind the passage cut, so no tool call and no client request ever reaches a provider through it.

Reading a document attachment — Embeddings:AttachmentText

What a document attachment may cost to read, and which formats are offered to a parser at all. It sits under this section rather than beside the synchronization bounds because parsing an attachment is a different cost from embedding a passage: it is charged per attachment, over octets a stranger composed, in formats with their own parser vulnerabilities, and no character count predicts it. ADR 0029 records that split.

The first key decides whether an account run reads its mail's attachments; the next three bound what a whole message and a whole account run may spend on them. The rest bound one extraction, and each of them is a deliberate ceiling rather than a value nobody chose. Crossing one abandons that attachment and records which ceiling stopped it — nothing is truncated into a partial extract, because a document cut off at a limit and stored as its text reads exactly like a document that said only that much.

Key Type Default Constraint Change
Embeddings:AttachmentText:Enabled bool false whether the account run reads its mail's attachments — this switch gates the reading described in this section and nothing else. Off unless an operator turns it on, which is what ADR 0029 decides for an upgrade: turning it on narrows the undertaking to parse nothing a stranger composed rather than reversing it — what is read is the format list below and nothing else — and it means the most sensitive part of a mailbox starts travelling to whichever provider embeds it restart
Embeddings:AttachmentText:MaxAttachmentsPerEmail int 20 1 – 1000; how many of one message's attachments are read at all, counted in walk order. It bounds the walk rather than what the walk decides: a part past it is never opened and no row is stored against it, because the number of parts a message declares is the sender's. What the ceiling left unread is the count stored against the message less the readings beside it restart
Embeddings:AttachmentText:MaxInputOctetsPerEmail long 67108864 1 KiB – 8 GiB, and at least MaxInputOctets; the octets one message's attachments may be read from together. A ten-line covering note with a two-hundred-page report attached is an expensive message, and no length of its text predicts that restart
Embeddings:AttachmentText:MaxInputOctetsPerAccountRun long 4294967296 1 KiB – 1 TiB, and at least MaxInputOctetsPerEmail; the octets one account run may read across every message it reaches. A run that spends it stops where it is and leaves the message it was on untouched, so the next run reaches that message first. The budget is per account rather than shared, so a mailbox full of large attachments delays nobody else's run restart
Embeddings:AttachmentText:MaxInputOctetsPerPeriod long 0 zero or positive, and where set at least MaxInputOctetsPerEmail; the octets every account run together may hand a document parser inside one period, which excludes an attachment stepped over from its declaration. 0 declares no ceiling at all, which is the default. It is the aggregate the per-run budget above does not give: a run's budget is refilled on every run, so a mailbox is read at whatever rate the runs come restart
Embeddings:AttachmentText:MaxInputOctetsPerPeriodPerUser long 0 zero or positive, at most MaxInputOctetsPerPeriod where that is set, and where set at least MaxInputOctetsPerEmail; the octets one period may hand a document parser for any one user. 0 declares no per-user ceiling restart
Embeddings:AttachmentText:Formats:<index> enum every format read Pdf, WordOpenXml, SpreadsheetOpenXml, PresentationOpenXml, OpenDocumentText, OpenDocumentSpreadsheet, OpenDocumentPresentation, PlainText, Markdown, Csv; writing nothing reads all ten and naming any narrows to exactly those. Naming LegacyWord, LegacySpreadsheet, or LegacyPresentation is refused at startup, because MailFathom recognizes those three and reads none of them restart
Embeddings:AttachmentText:MaxInputOctets long 16777216 1 KiB – 512 MiB; the octets one attachment may hold before it is read at all. Every parser here seeks, so an attachment is held in memory for the length of one extraction restart
Embeddings:AttachmentText:MaxExtractedTextCharacters int 200000 1000 – 10000000; the characters one attachment may contribute. Input and output are not proportional: a compressed page expands at a ratio the sender chooses. It also bounds how many entries a workbook's shared string table may hold, since an entry costs memory whether or not it carries a character — crossing it there is reported as ContainerBoundExceeded rather than as ExtractedTextTooLarge, because what was passed is a count of entries rather than characters a user would get back restart
Embeddings:AttachmentText:MaxDecompressedOctets long 67108864 1 KiB – 2 GiB; the total an Office Open XML or OpenDocument archive may inflate to across every part read, counted while it inflates rather than after restart
Embeddings:AttachmentText:MaxDecompressionRatio int 200 2 – 10000; the greatest ratio of inflated to compressed octets one archive part may reach. It is what catches a small archive, before the total above would have been met restart
Embeddings:AttachmentText:MaxContainerParts int 2000 1 – 100000; the parts a reader will go on to open. Very many tiny parts cost per part, which neither size ceiling measures. It is also what bounds the pages one OpenDocument content part may declare, that family keeping a whole document in a single part rather than one part per page restart
Embeddings:AttachmentText:MaxElementDepth int 100 2 – 10000; the depth an element tree inside an archive part may nest to. Deep nesting is what turns a small part into a walk that consumes stack restart
Embeddings:AttachmentText:Timeout TimeSpan 00:00:30 positive and no longer than 01:00:00; the time one extraction may take. The upper end is the platform timer's rather than a policy: a longer deadline is refused by CancellationTokenSource, which would leave the port raising out of a contract whose whole promise is that it answers instead. It is observed between units of work — a page, a part, an element — because no parser here accepts a cancellation token, which is why the size, ratio, and depth ceilings above are the ones that bound a parser stuck inside one unit restart

Two more ceilings bound the period rather than the run, and they are what an operator declares a budget with. MaxInputOctetsPerEmail and MaxInputOctetsPerAccountRun bound one message and one run; neither bounds a month, because a run's budget is full again on the next run. MaxInputOctetsPerPeriod counts the octets every account run together opened inside Embeddings:SpendPeriod, and Embeddings:ImageDescription:MaxDescriptionsPerPeriod counts the calls a description provider answered inside the same window, each with a per-user share beside it. Both are 0 by default, which declares no ceiling and still counts — so the figures are on the status surface before an operator has to choose a number.

The two are counted in units that do not convert, which is why they are two. Extraction is charged the octets a parser was actually handed, which is narrower than what a walk stepped over: a picture, a format this deployment does not parse, and an attachment the declared size already puts past MaxInputOctets are each decided from the declaration and are charged nothing, so a mailbox of pictures cannot spend the ceiling a mailbox of documents is bounded by. Description is charged one call per picture a provider answered, and a picture refused before the call — a format outside the list, a grid past MaxPixels, a file past the describing model's MaxRequestImageOctets — is charged nothing, because nothing was sent. What a picture still costs is the per-message and per-run octet budgets above, which bound what a walk reads whichever port ends up with it. Chunking and the lexical index are charged neither: they reach no provider, and what they cost is disk, reported as the characters the index grew by rather than bounded by a ceiling.

Reaching one waits rather than fails. The ceilings are read before a message is opened, so an account run that meets one ends where it is with that message untouched and unstamped; the surrounding synchronization run succeeds, the message stays outstanding, and the next run after the period rolls over reaches it first. It is the same degradation an exhausted embedding budget produces, and nothing is dropped: a message with no attachment reading is what the next pass selects on. A per-user ceiling stops that user's mail alone, exactly as the embedding one does.

Activating an embedding profile weighs them too. On an instance already holding mail, mfctl embedding activate reports what reading the stored attachments would open and how many descriptions it could make, beside the passages it would send, and refuses the activation outright when either estimate is past the ceiling one period admits. Raise the key the refusal names, or set it to 0 to declare no ceiling at all, and activate again.

The three octet ceilings are nested, and a set written otherwise is refused at startup. What one attachment may cost is at most what its message may, and what a message may is at most what its run may. Written the other way round, a deployment looks configured and reads nothing: an attachment larger than its message's ceiling is recorded as past a ceiling on every run for ever, and a message larger than its run's ceiling is passed over by every run for ever, since a run always starts with a full budget and always meets that message with less than it needs. Refusing the order at startup is what stops that from arriving as mail nobody can search.

What an operator gets by turning Enabled on is attachment words in semantic retrieval: a document attachment's text is chunked and embedded beside the message's own passages, so a question whose answer is inside a contract reaches it. A document attachment is written to the lexical index as a document of its own as well, but the rows and their GIN index exist with no reader yet — search_emails still matches a message on its own words alone, so a word occurring only inside a PDF returns nothing there — and a message's own snippet quotes only what the message said either way. An image attachment's description is embedded and never lexically indexed at all, which ADR 0030 decides and the database enforces. Reading for retrieval happens in the account run, behind the passage cut, and never on a read path: no MCP call and no client request ever waits on a parser or a provider for a passage.

Two other readings use these ceilings and are not gated by Enabled. Sensitive-content screening reads an attachment's own text before a message leaves the deployment and before a stored file is served, so a scanner judges what is in the file rather than only what somebody typed beside it — sensitive-content scanning is the page. Both happen on a path a caller waits on, which is the one place attachment parsing is not a background step, and both are bounded by the same ceilings this section states: MaxInputOctets and everything below it bound one attachment, and MaxAttachmentsPerEmail and MaxInputOctetsPerEmail bound the outgoing message. They are not gated by Enabled, because that switch decides what a deployment stores about its mail and this decides what leaves it; a deployment that screens for sensitive content has already undertaken to look, and a screen that skipped every attachment because retrieval was off would pass a file out unread while reporting the message as screened. MaxInputOctetsPerAccountRun reaches neither of them, there being no run to charge. Timeout is what bounds how long a sender or a downloading client waits, so a deployment raising it towards the hour the range permits is lengthening a request rather than only a background pass — and on a send it is read twice rather than once. It bounds the walk across the message, checked before each attachment, and it bounds each attachment inside the extractor, so a send waits up to this value plus the one attachment already under way: up to twice Timeout, a minute at the default and close to two hours at the top of the range. A download reads one attachment and waits the single value.

On those two paths crossing a ceiling refuses the act rather than skipping the indexing, which is the part worth reading before either value is lowered. An attachment above MaxInputOctets is never opened, and an attachment that was not read is never treated as clean — so on a screened deployment that message is refused with 59003 and that download answers 409. The same holds for Formats, whose row above reads as an indexing choice and is not one here: a document in a format the list excludes answers FormatNotExtracted, which refuses the send and the download exactly as an encrypted file does. A format the list never named at all — a photograph, an archive, a .json file — is outside the thirteen AttachmentDocumentFormats recognizes, is passed over rather than refused, and leaves unscreened; sensitive-content scanning holds that distinction in full. So narrowing Formats or lowering MaxInputOctets to cut indexing cost blocks sends and downloads on a screened deployment, and this is the page both are set from.

Turning it on reads mail that is already stored, once. A message keeps a stamp saying its attachments were read, so each one is opened once and never again unless it changes; turning the switch off leaves what was already read in place, since nothing here deletes a stored reading.

Three readings keep no stamp and are taken again. A message whose stored copy has gone missing or will not parse is recorded as needing fetching again rather than settled; one whose picture the chat provider did not answer for — a timeout, an unreachable endpoint, a rate the deployment is over — is left for a later run in the same way; and so is one whose document outran Embeddings:AttachmentText:Timeout, because a deadline reached under load says nothing about the file. All three are read again on the next account run, so a provider outage or a loaded host during a first enablement costs the readings it interrupted a second time rather than losing them — which is what the deadline is worth budgeting processor time against, since a document that never parses inside it is re-fetched and re-parsed on every run. Every other refusal settles the message, including the ones a configuration change lifts — an image larger than Embeddings:AttachmentText:MaxInputOctets or larger than the describing model's MaxRequestImageOctets, a grid larger than Embeddings:ImageDescription:MaxPixels, and a picture met while image description was off. The first of those three is this section's own key: it bounds what any attachment costs to read before a picture is offered to a provider at all, so a photograph past it is refused here rather than by the chat ceiling. Raising any of the three or turning that switch on therefore changes what arrives next rather than what is already stored, and no pass today goes back for the attachments it refused.

The three legacy binary formats are recognized and not read. A .doc, .xls, or .ppt attachment is reported as a format MailFathom does not extract, which is a different and more useful fact than not recognizing it at all — the mailbox user is told the file was skipped rather than left believing it was searched. Those three are OLE compound files, and no permissively licensed .NET parser reads all of them; MailFathom's own licence register admits no dependency it could not review, so the honest answer is a stated refusal rather than a parser nobody vetted.

Attachment text extraction records what each reason means and what an operator does about it.

One endpoint — Embeddings:Endpoints:<n>

An ordered chain. Every entry declares the same geometry and reaches the same vector space, so a failing endpoint falls through to the next without changing what any stored vector means; startup refuses a chain whose entries disagree, naming both aliases and the property.

An entry declares any service reachable over the OpenAI wire protocol, not one of a fixed set: Provider, Model, and ModelVersion are what the profile records, while RoutedModelName — or Model where that is empty — is the string a request is routed on. Two rules bind the address and the credential, and one implementation applies them to this section and to Chat alike: an address is absolute HTTP or HTTPS, with a plain http one refused wherever the endpoint holds a credential, because the request would publish it to everything on the path; and exactly one of ApiKey, EntraCredential, and Unauthenticated is declared, because none of them is what a forgotten reference looks like and two leaves unsaid which one a request presents. Embedding generation § An endpoint is any service that speaks the OpenAI wire protocol holds both rules with their reasons, what each setting decides, and a worked example of an endpoint that is neither OpenAI nor Azure. Embedding generation § A model server you run yourself covers the plain-address case, what it gains, what it gives up, and the startup warning an instance holding such an endpoint writes. Provider endpoints is the register of services somebody checked — what each one's Address and credential are, whether it serves an embeddings route at all, and whether SupportsRequestedDimension may stay at its default.

Key Type Default Constraint Change
…:Alias string — required, unique within the chain; what a log line, a metric tag, a resilience circuit, and a failure message call this endpoint restart
…:Provider string — required, at most 64 characters; the vendor whose model defines the space, not the endpoint it is reached at restart
…:Model string — required, at most 128 characters; the vendor's published model identifier restart
…:ModelVersion string (empty) at most 64 characters; empty is a vendor that versions nothing, which is the ordinary case restart
…:RoutedModelName string (empty) at most 128 characters; what is sent as the model of a request where that differs — a cloud deployment's own name. Empty means it equals Model restart
…:Dimension int — 1 – 16000, and 1 – 2000 unless AllowTrimVectors is on; the width the stored vectors have and the profile records restart
…:DistanceMetric enum Cosine Cosine, InnerProduct, EuclideanDistance restart
…:InputCharacterLimit int 8000 positive; what a passage is cut to before it is sent, which is what the model saw and therefore part of what a vector means restart
…:PassageInstruction string (empty) at most 512 characters; empty for a model that requires none. Whitespace is refused, because it would register a second profile for a space identical to one already registered restart
…:NormalizeVectors bool true whether the space's vectors are of unit length restart
…:Address string (empty) absolute HTTP or HTTPS; a plain http one only for an endpoint declaring Unauthenticated. Empty uses the provider library's default. A cloud resource's OpenAI-compatible address ends in /openai/v1/ restart
…:SupportsRequestedDimension bool true whether the endpoint honours a requested width, so the narrower space is asked for rather than cut out of a wider answer restart
…:ApiKey secret block (absent) the provider key. Exactly one of this, EntraCredential, and Unauthenticated is declared restart, value read per request
…:Unauthenticated bool false that this endpoint asks for no credential, so a request presents none — the shape of a model server you run yourself. Written rather than inferred from the other two being absent, because that is what a forgotten key reference looks like restart

An extra header — Embeddings:Endpoints:<n>:ExtraHeaders:<n>

The shape a gateway fronting several models asks for: a tenant, a project, or a routing key that decides which model answers, sent on every request beside whatever the credential writes. Declared per endpoint rather than once for the section, because the gateway one endpoint is reached through is not the server another one is. Empty is the ordinary deployment, which reaches its model directly and sends nothing extra. The same block a declared chat model carries, because what a header may be does not depend on whether the request asks for a vector or for an answer.

The value is a secret block rather than a string, and that is why this is a pair of keys rather than a dictionary of them: what goes in one is a routing token or a tenant identifier — material of the same kind as the key beside it — so it is resolved per request from a reference and stays out of the configuration file. A reference nothing provisions takes the endpoint out of service rather than sending the request without the header, because a gateway reading it would route the call somewhere else — and the chain then falls through to the next endpoint, which is what a chain is for.

Key Type Default Constraint Change
…:Name string — required; a field name as RFC 9110 defines one — letters, digits, and the characters !#$%&'*+-.^_`|~ and nothing else. Authorization, Host, Content-Length, Content-Type, and Transfer-Encoding are refused, matched without case: the first is the credential's own and the other four frame the message. Declaring one name twice is refused, because a field name is sent once and the repetitions would be resolved, paid for, and discarded restart
…:Value secret block — required; the reference the value is resolved from, per request restart, value read per request

Microsoft Entra credential — Embeddings:Endpoints:<n>:EntraCredential

For an endpoint where no key exists to provision. All four shapes are non-interactive by construction: MailFathom is a background service with nobody at a keyboard, and DefaultAzureCredential is deliberately not used because its chain reaches an interactive browser credential and the developer-tool credentials of whoever is signed in on the host.

Key Type Default Constraint Change
…:Kind enum ManagedIdentity ManagedIdentity, WorkloadIdentity, ClientSecret, ClientCertificate. ApiKey and Unauthenticated are refused here; a key is declared as one, and an endpoint needing no credential says so on the endpoint restart
…:TokenScope string https://ai.azure.com/.default required; the audience an access token is minted for. Declared rather than derived from the address, so a renamed service does not silently mint tokens for the wrong audience restart
…:TenantId string (empty) required for ClientSecret and ClientCertificate restart
…:ClientId string (empty) required for ClientSecret and ClientCertificate; optional for ManagedIdentity, where it selects a user-assigned identity restart
…:ClientSecret secret block (absent) required for ClientSecret restart
…:CertificatePath string (empty) required for ClientCertificate; a PKCS#12 file the process account can read restart
…:CertificatePassword secret block (absent) where the certificate file has one restart

Chat

What this deployment generates text with. A root of its own beside Embeddings rather than a block inside it, because the two are separate choices with separate consequences: without an embedding provider semantic search is off and lexical search continues, while without a chat provider search is unaffected and only the answering capability stops being offered. Writing nothing is a supported deployment, exactly as writing no Embeddings section is. Chat generation records what a declaration means and what one call may spend.

The section is a declared array and the references into it. What a model is — its address, its credential, its parameters, its bounds — is written once under Chat:Models beneath an alias of its own, and a capability names that alias. A deployment with one model writes one block and nothing else: Chat:MainModel may be left unwritten where exactly one model is declared, because there is nothing for it to choose between. A deployment with several states which one answers questions, and may route a single capability elsewhere — the pass a reader waits in front of onto a small fast model while questions go to the one that answers them well.

A reference may name a fallback, and that is the one place a chain exists. Chat:MainModel:Fallback names a second declared alias, and a call the first model could not answer is attempted against it. What is retried is opening a client and asking, so the second model is a second address under a second credential — which is the whole reason it is worth asking. Two failures are not worth a second model and never fall through: a request the provider refused, which a second endpoint refuses the same way for a second payment, and an answer that came back empty, which is a call that succeeded. A model named as its own fallback is refused.

A capability's own reference resolves in three steps — the model it names, the Fallback beside it, then Chat:MainModel — so a failing cheap endpoint degrades to the model the deployment answers questions with instead of turning the capability off. The main model's own Fallback is not attempted after that, so one call reaches at most three models, and a model already in the chain is attempted once: a capability routed to the main model, or naming it as its own fallback, stops there. A capability naming no model takes the main model and its fallback, which is two.

What a run reports is the model that answered. A question the fallback served is attributed to the fallback — its alias, and the PublishedModel of its own block — because the alternative is a cost record naming a model the deployment did not call.

A model is any service reachable over the OpenAI wire protocol, under the same two rules the embedding chain follows and through the same implementation of them: an absolute HTTP or HTTPS address with a plain http one refused wherever a credential is held, and exactly one of ApiKey, EntraCredential, and Unauthenticated. Chat generation § An endpoint is any service that speaks the OpenAI wire protocol carries a worked example of one that is neither OpenAI nor Azure, and …:Api is the key most often decided by which of the two paths such a service serves. Provider endpoints records which paths each checked service was found to serve.

One model — Chat:Models:<n>

Key Type Default Constraint Change
…:Alias string — required; unique across every AI endpoint the deployment declares, embedding endpoints included. What a log line, a metric tag, a resilience circuit, a credential lookup, and a failure message call this model, and what every reference names reload
…:Model string — required; what a request is routed to, which for a cloud deployment is the deployment's own name rather than the vendor's model identifier reload
…:PublishedModel string (empty) what a client is told answered a question, on a Discover run's opening event. Written rather than derived from …:Model, which is a routed name that may carry a deployment, a tenant, or an internal routing label. Empty publishes nothing and a client shows the alias alone reload
…:Address string (empty) absolute HTTP or HTTPS; a plain http one only for a model declaring …:Unauthenticated. Empty uses the provider library's default. A cloud resource's OpenAI-compatible address ends in /openai/v1/ reload
…:Api enum ChatCompletions ChatCompletions or Responses; which of the provider's two request APIs a call goes to under the declared address. Declared rather than derived, because the routed model name is the operator's own deployment name and nothing about it says which paths the server serves. State Responses for a reasoning model that refuses function tools beside a stated effort; a server that does not serve that path answers request refused reload
…:MaxOutputTokens int 4096 1 – 200000; what one answer may occupy. Reaching it is not a failure — the answer arrives marked as cut short. A reasoning model spends part of the same budget on reasoning before it writes, which is why the default leaves it that much room; declare a smaller figure to bound what one call can cost reload
…:Temperature float (unset) 0 – 2; left unset sends nothing, which is required by the models that reject the parameter outright reload
…:TopP float (unset) 0 – 1; unset the same way, and for the same reason reload
…:ReasoningEffort string (unset) the level the model documents, written as the provider spells it — none, minimal, low, medium, high, xhigh, or whatever a later model adds. Unset sends no reasoning parameter at all, which a model that does not reason requires. none is not the same as unset — it states an effort of none and sends it, which is what a provider refusing tools beside an unstated effort asks for. Startup checks the shape and not the vocabulary, because which levels exist belongs to the model; a level this deployment's model does not accept refuses the request rather than falling back reload
…:MaxMessagesPerRequest int 64 1 – 512; the turns one request carries, refused rather than truncated reload
…:MaxRequestCharacters int 120000 1 – 4000000; what those turns may add up to. Stated in characters rather than tokens because counting tokens would mean carrying the model's own tokenizer; set it below what the model's context window allows reload
…:MaxRequestImageOctets int 4194304 0 – 67108864; the octets the images of one request may add up to. 0 declares a model that is sent no image at all, which is right for one that cannot read one. Providers carry an image base64-encoded, a third larger again, so set this below the figure a provider publishes for itself reload
…:RequestTimeout TimeSpan 00:02:00 positive; one request. Longer than an embedding request's by default, because generating an answer takes as long as the answer is reload
…:ApiKey secret block (absent) the provider key. Exactly one of this, EntraCredential, and Unauthenticated is declared reload, value read per request
…:Unauthenticated bool false that this model asks for no credential, so a request presents none — the shape of a model server you run yourself. Written rather than inferred from the other two being absent, because that is what a forgotten key reference looks like reload
…:StickySessions bool false that every request of one Agent conversation asks the gateway to stay on the upstream provider whose prompt cache already holds that conversation. Honoured by OpenRouter alone today: it is sent only when …:Address is an openrouter.ai host, and on any other address nothing is sent and startup logs a warning naming the model. No other operation sends a session. Chat generation § A conversation can stay on one provider says what is grouped and why reload

An extra header — Chat:Models:<n>:ExtraHeaders:<n>

The same block, with the same keys, defaults, and rules as Embeddings:Endpoints:<n>:ExtraHeaders:<n> above. Its keys reload here and take a restart there, for the reason the Microsoft Entra block above gives.

Additional request members — Chat:Models:<n>:AdditionalProperties

A JSON object whose members every request to this model carries in its body, beside the members the deployment writes — top_k, min_p, a seed, a gateway's routing block, or anything else the model documents that has no key above. Empty by default, which sends nothing extra. Changes on reload.

A member may be a scalar or a whole object or array, written as ordinary nested JSON, which is the shape a gateway asks for: OpenRouter takes its provider routing, its transforms, and its price ceiling in the request body and in no header, and nests one inside another.

"AdditionalProperties": {
  "top_k": 20,
  "provider": {
    "order": ["anthropic", "openai"],
    "allow_fallbacks": false,
    "max_price": { "prompt": 1 }
  },
  "transforms": ["middle-out"]
}
Rule
Name letters, digits, and underscores, not starting with a digit; at most 64 characters. It names a top-level member of the request body, and whatever that member holds is nested underneath it rather than written into the name
Refused names any member the deployment writes or has a key for — model, messages, input, instructions, tools, tool_choice, parallel_tool_calls, functions, function_call, response_format, text, stream, stream_options, store, include, previous_response_id, conversation, background, n, max_tokens, max_completion_tokens, max_output_tokens, temperature, top_p, reasoning, reasoning_effort, session_id. Use MaxOutputTokens, Temperature, TopP, ReasoningEffort, or StickySessions for the ones that have a key. The refusal is on the top-level name alone, so a nested member of the same name is an ordinary value
Value a number, true, false, or null is sent as that literal and anything else as a string. A value written as JSON text is read as that JSON, which is how a whole member is declared in one environment variable and the only way to send a string that would otherwise read as a number or a boolean — "\"40\"" sends the string "40"
Nesting at most 16 levels, counting the member itself. A node whose child names are exactly the integers below their own count is sent as an array in index order and any other node as an object — so an object whose own members happen to be named 0 and 1 is sent as a two-element array, and an object or array with nothing inside it cannot be told from null and is sent as null
Size at most 4096 characters of JSON per member
Count at most 32 members per model

Environment variables carry the same tree under __, so Chat__Models__0__AdditionalProperties__provider__order__0=anthropic declares what the file above declares.

A value is written in the configuration file and sent in the clear in every request body, so it is never a secret; a credential or routing token goes in an extra header. Chat generation § A model may declare request members of its own holds the reasoning and a worked example.

Microsoft Entra credential — Chat:Models:<n>:EntraCredential

The same block, with the same keys, defaults, and rules as Embeddings:Endpoints:<n>:EntraCredential above. One credential source resolves both sections, which is why the alias uniqueness rule spans them. Its keys reload here and take a restart there, for the reason the table below gives: this section is read again per question and the embedding chain is read once while the host composes itself.

Which model a capability runs on — Chat:MainModel and the references beside it

Chat:MainModel names the model questions are answered with, and every capability runs on it unless it names one of its own. Every one of them may, and each takes the same two keys as Chat:MainModel:

Reference The work it routes
Chat:MailAnswering:Model Answering a question about the mailbox
Chat:Agent:Model Composing the Agent's answer in a conversation, and the proposals it offers the person
Chat:DiscoveryPlanning:Model Reading a Discover request into the searches that would answer it
Chat:DiscoveryComposition:Model Composing what a Discover run found into its answer
Chat:Enrichment:Model Deriving an arriving message into a list row's marks
Chat:ThreadState:Model Reading a conversation into the state drawn beside it
Chat:ReplyDrafting:Model Drafting a reply
Chat:ContactRelationship:Model Heading an opened contact with a relationship note
Chat:SearchPhrasing:Model Reading a typed sentence into filters
Chat:RelevanceFilter:Model Judging a retrieval's candidates
Chat:ImageDescription:Model Describing an image attachment, which Embeddings:ImageDescription:Enabled turns on
Chat:BodyCleanup:Model Cleaning a message body
Chat:CalendarEventExtraction:Model Reading a calendar event out of text
Chat:DayLayout:Model Arranging a day
Chat:ConversationCompaction:Model Summarising the earlier part of an Agent conversation that has outgrown MailAnswering:MaxConversationContextTokens, so a turn sends the summary in its place

Routing them separately is the point of the keys: the per-message derivations and the per-candidate judgement are cheap judgements a small fast model makes well, answering and drafting are rare and worth the best model an operator pays for, and describing a picture needs a model that can be shown one — which a text-only main model need not be. A reference nobody wrote resolves to Chat:MainModel, so a deployment writing none of these behaves exactly as it did before they existed.

Key Type Default Constraint Change
…:Alias string (empty) an alias Chat:Models declares. May be left unwritten on Chat:MainModel where exactly one model is declared, and must be written where more than one is — a deployment that declared two models and said nothing has not stated which one answers. On a capability's own reference, unwritten means the main model reload
…:Fallback string (empty) an alias Chat:Models declares, attempted where the model above could not answer. Refused where it names the same model, where it names one nothing declares, and where no …:Alias stands in front of it reload

A capability's chain is the model it names, that Fallback, and Chat:MainModel behind both — at most three models, because the main model's own Fallback is not attempted after it. Chat:ImageDescription:Model is also the model the image-description rules at startup are judged against: the turn count, the request width, and MaxRequestImageOctets are read from the model that capability resolves to rather than from the main one.

What a reload changes here, and what it does not. Everything a declared model says is read again per question, so correcting a model the provider refused — the ordinary case, because a wrong model is only discovered from a refusal — costs an edit rather than a restart of a process that is synchronizing mailboxes and holding an IMAP IDLE connection. Declaring a further model, renaming one, and moving which alias a capability names all reload, because a credential and a resilience circuit are both looked up by whatever the declaration in force calls a model. A run already in flight keeps the declaration it began with, so a reload landing mid-question changes the next question and not that one. A candidate that breaks any rule in the tables above is refused whole, logged with the key to fix, and leaves the previous declaration answering; the process stays up either way. What stays a restart is the eight settings that decide which services this deployment registered at all: whether Chat:Models declares a model at all — the first one, or the removal of the last — whether Chat:RelevanceFilter:Enabled turns the second pass on, whether Chat:Enrichment:Enabled turns the arrival derivation on, whether Chat:ThreadState:Enabled turns the conversation derivation on, whether Chat:SearchPhrasing:Enabled turns the reading of a typed sentence on, whether Chat:ReplyDrafting:Enabled turns the drafting of a reply on, whether Chat:ContactRelationship:Enabled turns the relationship card on, and whether Chat:CalendarEventExtraction:Enabled turns the reading of text into calendar events on. The third rendering of a message body is not among them because it has no switch of its own: a declared model is the whole of what registers it, and which readers want it is their own preference rather than a key an operator writes. Chat:ReplyDrafting:StyleFromSentMail is a restart for a reason of its own: it decides nothing about which services exist and is instead read once as the drafting is registered, so a reload that changed it would go on reading the mail the composed deployment reads rather than the mail the operator has just said it may.

What the declared model has to be able to do. ask_mail answers by offering the model a retrieval tool and reading mail when the model calls it, so a model that cannot be given function tools cannot answer a question here whatever else is written above. That is what the two settings in the middle of the model table exist for: a current reasoning model refuses function tools beside an unstated reasoning effort and names the responses API as the way to have both, so such a model needs …:Api set to Responses and …:ReasoningEffort written — including written as none, which states an effort rather than omitting the parameter. A model this deployment cannot use is not detected at startup, because nothing here can ask a provider what a routed name supports without paying for a call; it surfaces as request refused on the first question. Chat generation holds the whole reasoning, and Mail answering describes the run that imposes the requirement.

Relevance filter — Chat:RelevanceFilter

The optional second pass over a retrieval: each candidate the fused ranking produced is put to the declared chat endpoint on its own, and the ones the model scores below the threshold are dropped before an answer is written. A block inside Chat rather than a root of its own, because the pass judges with that endpoint and has nowhere to send a question without one — removing the chat section removes this with it.

Off by default, and off is a supported deployment: retrieval then hands over the fused ranking exactly as hybrid search produced it. Turning it on is a spend decision as much as a quality one — it costs one provider call per candidate on every lookup a question makes. Mail answering § An optional second pass describes what it drops, what it keeps, and what it does when the provider cannot tell it.

Key Type Default Constraint Change
Chat:RelevanceFilter:Enabled bool false turning it on requires a declared model, and a MaxMessagesPerRequest of at least 2 on the model this pass runs on, because a judgement is an instruction and a candidate restart
Chat:RelevanceFilter:Model block (empty) which declared model judges a candidate, as any capability's reference. Unwritten judges with Chat:MainModel reload
Chat:RelevanceFilter:MaxCandidates int (unset) 1 – MailAnswering:MaxPassagesPerRetrieval, which is everything one retrieval hands over; a higher value would name candidates that never exist and is refused at startup rather than accepted and never met. Unset judges every passage the retrieval hands over, which is why there is no literal default here: one would go on saying a number of its own after the retrieval it follows was narrowed or widened. The ceiling on what one lookup spends and how long it takes; set below what retrieval returns it buys a weaker filter rather than a shorter result, because a passage nobody judged keeps its place reload
Chat:RelevanceFilter:MinimumRelevance int 70 1 – 100, on the scale the model answers a judgement on. A threshold of 0 is refused: it would pay for a judgement that can drop nothing. What each value keeps and drops for a given model is measured against a labelled set by the agent evaluation suite, which is also where the default comes from: it is a threshold at which no measured model dropped a passage answering a labelled lookup reload

Message enrichment — Chat:Enrichment

Deriving what an arriving message is about, why it may matter, and any commitment it contains, once, and storing the result so a mail list draws it without a model call. A block inside Chat for the same reason the relevance filter is one: it derives with that endpoint and has nowhere to send a message without one, so removing the chat section removes this with it.

Off by default, and off is a supported deployment: every list row is drawn exactly as it was before, because a message with no derivation carries no enrichment rather than an error. Turning it on is a spend decision — one provider call per message that arrives, and per message already stored, until the mailbox is drained.

It competes with questions for one allowance. Every derivation is admitted against and charged to the same MailAnswering period ceilings a question is, which is what makes it bounded rather than a second, unmetered way of spending. A period a mailbox's arrivals exhausted is a period in which a question is refused, so a deployment turning this on over a large mailbox raises those ceilings or accepts that the backfill and the questions share them. A refused admission withholds the derivation and leaves the message outstanding for the next period rather than failing it.

What one pass covers is not configurable: eight messages, six leading passages each, per account run. Those bound the pass's latency inside a run that other accounts are queued behind rather than describing a deployment, and what a pass leaves behind the next run takes. Message enrichment describes what a mark carries, what withholds a derivation, and what reaches the provider.

The same derivation also offers what a message asks its reader to do, and it has no key of its own. What comes back beside the marks is at most three lines, each landing on the task list of every person the mailbox is assigned to as a proposal nobody has agreed to — inside the one call this section already pays for, under the one allowance it is already admitted against. So turning enrichment on turns this on with it, and there is nothing beside the key above to raise, to narrow, or to switch off. Tasks read out of mail describes what a proposal is and what accepting one does.

Key Type Default Constraint Change
Chat:Enrichment:Enabled bool false turning it on requires a declared model restart
Chat:Enrichment:Model block (empty) which declared model derives an arriving message, as any capability's reference. Unwritten derives with Chat:MainModel; a call per arriving message is the case a cheap model is declared for reload

A conversation's state — Chat:ThreadState

Reading a correspondence once into what its people settled, what they left open, what anybody undertook, and how a document they exchanged changed — and storing that, so a client draws the block beside the conversation without a model call per view. A block inside Chat for the reason the two above are: it derives with that endpoint and has nowhere to send a conversation without one.

Off by default, and off is a supported deployment: the route a client reads the block from then answers that there is none, and the client draws a conversation nothing has been derived about rather than an error. Turning it on is a spend decision — one provider call per conversation a run changed, and per conversation already stored, until the mailbox is drained.

It competes with questions and with enrichment for one allowance. Every derivation is admitted against and charged to the same MailAnswering period ceilings a question is, so a deployment running all three raises those ceilings or accepts that they share them. A refused admission withholds the derivation and leaves the conversation outstanding for the next period rather than failing it.

What one pass covers is not configurable: four conversations, forty messages each, four thousand characters of every message, per account run. Those bound the pass's latency inside a run that other accounts are queued behind rather than describing a deployment. A conversation's state describes what a statement carries, what puts a conversation back in the queue, what withholds a derivation, and what reaches the provider.

Key Type Default Constraint Change
Chat:ThreadState:Enabled bool false turning it on requires a declared model restart
Chat:ThreadState:Model block (empty) which declared model reads a conversation into a state, as any capability's reference. Unwritten reads it with Chat:MainModel reload

Reading a calendar event out of text — Chat:CalendarEventExtraction

Reading the occasions a text names into events: an arriving message into proposals on the calendars of everyone the account is assigned to, and a sentence somebody typed into the fields an event is composed from. One switch covers both halves, because both are one agent reading one kind of words. A block inside Chat for the reason the blocks above are: it reads with that endpoint and has nothing to send a text to without one.

Off by default, and off is a supported deployment: nothing proposes an event from mail, the drafting route answers that this deployment reads no description, and a person writes every event by hand exactly as they did before. Turning it on is a spend decision above all — the mail half is a second provider call on every message that arrives, running beside the enrichment call rather than instead of it, so an account whose mail is being derived costs twice as much to take in.

It competes with questions for one allowance, exactly as the blocks above do: every reading is admitted against and charged to the same MailAnswering period ceilings a question is. A refused admission withholds the reading and leaves the message outstanding for the next period; on the typed half it refuses the drafting with a 429 rather than answering empty, so a caller is told the allowance is gone instead of reading it as a sentence naming nothing.

Nothing it produces reaches a calendar on its own. A proposal is a row somebody still has to accept and a drafted event is fields somebody still has to submit, which is what bounds what a wrong reading can cost. Reading a calendar event out of text describes what counts as an event, why a deadline is not one, which clock an hour is resolved in, and what reaches the provider.

Key Type Default Constraint Change
Chat:CalendarEventExtraction:Enabled bool false turning it on requires a declared model restart
Chat:CalendarEventExtraction:Model block (empty) which declared model reads a text into events, as any capability's reference. Unwritten reads it with Chat:MainModel; a call per arriving message is the case a cheap model is declared for reload

Drafting a reply — Chat:ReplyDrafting

Writing a first version of the reply somebody is about to send, out of the conversation they are answering and the way their own account writes, so a composer opens on a draft they edit rather than on a blank field. A block inside Chat for the reason the blocks above are: it drafts with that endpoint and has nowhere to send a conversation without one.

On by default, on the reading that puts the phrase search below it on: what decides the default is who spends the money and when. A drafting costs one call per reply somebody deliberately pressed a button for, rather than one per message or conversation arriving, so a deployment that declared an endpoint is already paying for that shape of call. Turning it off is a supported deployment and a spend decision: the composer asks this deployment once whether it drafts at all, is told it does not, and offers nothing — every reply is then written by hand exactly as before.

Nothing it produces is sent, queued, or stored. The draft comes back as text in the client, and saving it as a draft or sending it stays behind the person confirming those acts.

It competes with questions for one allowance, exactly as the blocks above do: each drafting is admitted against and charged to the same MailAnswering period ceilings a question is. A deployment that has spent the period refuses the drafting rather than falling back to an empty composer, because somebody pressed a button for it.

What one drafting reads is not configurable: the twenty most recent messages of the conversation, four thousand characters of each, and — where the second key is left on — six of the account's own recent sent messages at twelve hundred characters each. Those bound how long one drafting takes rather than describing a deployment. Drafting a reply describes what a draft carries, what backs each claim it makes, what reaches the provider, and what a drafting that produced nothing answers with.

Key Type Default Constraint Change
Chat:ReplyDrafting:Enabled bool true it is read only where Chat:Models declares a model, so a deployment without one drafts nothing whatever this says restart
Chat:ReplyDrafting:Model block (empty) which declared model writes a draft, as any capability's reference. Unwritten drafts with Chat:MainModel; writing in somebody's own manner is the case the best model a deployment pays for is declared for reload
Chat:ReplyDrafting:StyleFromSentMail bool true written off, no sent mail is read and the draft is written from the conversation alone. It changes what leaves the deployment rather than only what the draft reads like, which is why it is an operator's decision rather than a constant restart

The relationship card — Chat:ContactRelationship

Reading what an opened contact was already answered with — the conversations naming that person and the documents they sent — into a short note about where the correspondence stands, one suggested next action, and a few observations, so somebody opening a person reads a card instead of two lists. A block inside Chat for the reason the blocks above are: it derives with that endpoint and has nowhere to send a correspondence without one.

On by default, on the reading that puts the drafting above it on: what decides the default is who spends the money and when. A card costs one call per contact somebody deliberately opened, rather than one per message or conversation arriving — nothing sweeps the address book, and a contact nobody opened costs nothing at all. Turning it off is a supported deployment and a spend decision: an opened contact then draws the record, the conversations, and the documents, which is the page every deployment drew before this existed.

One switch rather than two, unlike the drafting above. What a derivation reads is settled by the correlation the contact page already performs, so there is no second body of mail to decline and no bound here an operator could move without moving what an opened contact shows.

It competes with questions for one allowance, exactly as the blocks above do: each derivation is admitted against and charged to the same MailAnswering period ceilings a question is. A deployment that has spent the period withholds the card rather than refusing the contact, because nobody pressed a button for it — the page was simply opened.

Where a correspondence with one person stands describes what a card carries, what backs each statement, what reaches the provider, and what a derivation that produced nothing answers with.

Key Type Default Constraint Change
Chat:ContactRelationship:Enabled bool true it is read only where Chat:Models declares a model, so a deployment without one derives nothing whatever this says restart
Chat:ContactRelationship:Model block (empty) which declared model reads an opened contact, as any capability's reference. Unwritten reads it with Chat:MainModel reload

Reading a typed sentence into filters — Chat:SearchPhrasing

Turning what somebody typed into the mail search field into the filters it states and the words it leaves to rank by, so that unread mail from the supplier about the racking, since August arrives as a sender, a first day, an unread filter and a phrase rather than as a string matched literally. A block inside Chat for the reason the three above are: it reads with that endpoint and has nowhere to send a sentence without one.

On by default, unlike the three blocks above, and that is deliberate. Each of those spends on mail arriving or already stored, without anybody asking for it; this spends one short call per search somebody deliberately started, and a deployment that declared a chat endpoint has already accepted that cost for a question. An operator who wants the endpoint for answering and not for searching writes false here.

A deployment that reads no sentence loses nothing. The client asks this deployment once whether it reads one; where it does not — no chat section, or this written off — the search field offers the plain word search and every filter is built by hand exactly as before. The same is true while a provider is unreachable: the words somebody typed are searched as they stand rather than the search failing. The one failure that reaches a person is a spend ceiling, which is reported rather than searched around.

It competes with questions for one allowance, exactly as message enrichment does: each reading is admitted against and charged to the same MailAnswering period ceilings a question is. The reading is one call carrying the sentence and the reader's own calendar day, with no tool and no mail, so a search costs the shortest exchange this deployment makes.

Key Type Default Constraint Change
Chat:SearchPhrasing:Enabled bool true reading a sentence requires a declared model; written off, or with none declared, the client is told this deployment reads none restart
Chat:SearchPhrasing:Model block (empty) which declared model reads a typed sentence, as any capability's reference. Unwritten reads it with Chat:MainModel; somebody is waiting in front of this one reload

Cleaning a message body — Chat:BodyCleanup

Deciding which blocks of a message are what the sender wrote and which are the frame they wrapped it in, so that a reading pane can draw a third rendering: the same reduced document with the navigation, the legal footer, the tracking row and the repeated header absent. A block inside Chat for the reason the blocks above are: it decides with that endpoint and has nowhere to send an outline without one.

It carries no switch, which is what separates it from every block above. A declared model is the whole of what turns this on, because whether a body is cleaned is the reader's own preference — an answer the client already holds per person and this deployment already serves — and a key beside it would be an operator's copy of a decision that is not theirs. A deployment that declares no chat endpoint cleans nothing, and a reader who chose the rendering there is shown the ordinary reduced document with a sentence saying so.

What an operator is left deciding is the spend, and it is of a shape none of the blocks above has — the derivation runs per open rather than per message. Nothing is derived when mail arrives, nothing is stored, and opening the same message twice asks twice; a reader scrolling a folder therefore spends one call per message they actually open, and none at all for the ones they pass over.

The model is never sent the message. What leaves the deployment is an outline of the document — each block's kind, how many links it carries, and the opening of its text — beside the envelope sender and the subject, and the answer comes back as block indices rather than as text. That is what makes the rendering incapable of rewriting a word: the blocks a reader sees are the ones the reduction already produced, and the model decided only which of them to leave out. An answer whose ranges overlap, leave a gap, reach past the last block, or carry any message text at all is refused, asked for once more, and on a second refusal the reader is served the ordinary reduced document with a sentence saying the cleaning did not happen.

It competes with questions for one allowance, exactly as the blocks above do: each cleaning is admitted against and charged to the same MailAnswering period ceilings a question is. A period the readers of a deployment exhausted serves the ordinary reduced document rather than failing the read, because somebody is in front of a message.

Every outline passes the egress guard the arrival derivation's prompt passes, under the posture of the person whose message it is, so a deployment that scans what leaves it for secrets scans this too.

Key Type Default Constraint Change
Chat:BodyCleanup:Model:Alias string (empty) an alias Chat:Models declares, which this pass alone is routed to. Empty routes it to Chat:MainModel. A model named here is a declaration of its own, so the cheap model this pass runs on may sit at another address, under another credential, with bounds and a timeout of its own — which is what makes it worth naming, this being the one pass a reader waits for in front of a message reload
Chat:BodyCleanup:Model:Fallback string (empty) an alias attempted where the model above could not answer, under the rules Chat:MainModel:Fallback states. A pass somebody is waiting in front of is exactly the one worth answering from a second model rather than not at all reload

Arranging a day — Chat:DayLayout

Putting the tasks somebody owes today into the gaps between what they are already committed to, when they press the control that asks for it. A block inside Chat for the reason the blocks above are: it decides with that endpoint and has nowhere to send a day without one.

It carries no switch either, for the same reason cleaning a body carries none: a declared model is the whole of what turns it on, and whether a day is arranged is the person's own act rather than an operator's setting. A deployment that declares no chat endpoint tells the client it arranges no day, and the control is not offered.

The derivation runs per press. Nothing schedules it, no pass reaches it, and opening a screen does not run it — so what a deployment spends here is one call for each time somebody asked, and nothing at all for the days nobody asked about. A day with nothing owed on it is answered without a call at all.

What leaves the deployment is the day, not the lists. The window, the lines of the tasks due by the end of it, and the titles and times of what is already on the calendar during it; no message, no address, no identity, and nothing about a task beyond the line it is drawn with. The answer comes back naming tasks by identity rather than repeating them, which is what keeps an arrangement from becoming a second copy of somebody's list, and every line passes the egress guard the arrival derivation's prompt passes, under the posture of the person whose day it is.

What one arrangement covers is not configurable: at most twenty tasks, at most fifty commitments, and a window of at most two days. Those bound what one press sends to a provider rather than describing a deployment.

It competes with questions for one allowance, exactly as the blocks above do: each arrangement is admitted against and charged to the same MailAnswering period ceilings a question is. A period the people of a deployment exhausted leaves the day untouched and the control pressable again, because nothing was written either way — an arrangement is offered and applied by the person or by nobody. Tasks read out of mail describes what an arrangement holds and what acting on one takes.

Key Type Default Constraint Change
Chat:DayLayout:Model:Alias string (empty) an alias Chat:Models declares, which arranging a day alone is routed to. Empty routes it to Chat:MainModel. One press is one short call carrying no mail, so this is a candidate for the cheap model a deployment already declares — and somebody is waiting in front of it reload
Chat:DayLayout:Model:Fallback string (empty) an alias attempted where the model above could not answer, under the rules Chat:MainModel:Fallback states. A control somebody pressed is worth answering from a second model rather than not at all reload

MailAnswering

What answering one question is allowed to cost, and how much of a mailbox may leave the process to do it. A root of its own beside Chat rather than a block inside it, because the two answer different questions: Chat says which endpoint generates text and what one call to it may carry, while this bounds a run — the conversation in which a model looks mail up, reads it, and writes an answer — and the aggregate over every run of a period.

Unlike the provider sections, an absent section is not an absent capability. Every deployment has these ceilings and writing nothing takes the conservative defaults below, because an absent provider is a capability nobody asked for while an absent ceiling would be a bill nobody asked for. Mail answering § What one question may spend describes what each one does when it is reached, and what a caller is told.

The period is a fixed window anchored at the Unix epoch, placed exactly as Embeddings:SpendPeriod places the other spend ceiling: an AggregatePeriod of one hour begins on the hour, so a refused caller has a roll-over instant to come back at. A client that spends the whole allowance at the end of one window and again at the start of the next has therefore spent twice the ceiling across an interval of the same length.

Like the embedding ceiling, this ledger is the deployment's and it is durable: the period is one row every replica admits against, so a restart resumes the window where the deployment left it and three replicas share the configured allowance rather than each getting the whole of it. A run that would otherwise open no write of its own makes two — one when it is admitted and one when it ends, carrying what it consumed — rather than one per provider call, which is what ADR 0031 settled: a rate and a spend become the deployment's, and what it costs to make them so is a write beside a run that is already about to spend a provider's tokens.

Key Type Default Constraint Change
MailAnswering:MaxPassagesPerRetrieval int 20 1 – 50; how many messages one lookup may draw on. Capped by what one search can rank, because a retrieval is answered from a search window, and defaulted to the window search_emails itself returns so that asking a question reaches as many messages per lookup as searching for the same thing would restart
MailAnswering:MaxCharactersPerPassage int 1200 1 – 100000; how much of any single message a lookup may draw out. Separate from the count above, because one enormous extract and a spread across several messages say different things about a mailbox restart
MailAnswering:MaxRetrievedCharactersPerRun int 20000 1 – 10000000, and at least MaxCharactersPerPassage or no lookup could hand over even one passage. The ceiling on how much retrieved mail leaves the process to answer one question, whatever the model asks for, and the one that decides how many lookups a run fits: a lookup whose every passage reached the per-passage ceiling would exhaust a run on its own. Reaching it cuts rather than refuses: the run answers from what it has and the response says the mailbox was not read in full restart
MailAnswering:MaxProviderCallsPerRun int 8 1 – 1000; the ceiling that holds whatever the provider reports, because a run is a tool loop whose length is the model's decision. Reaching it stops the run with 57001. The run is also bounded by wall clock: raising this means raising McpEndpoint:RequestTimeout:Duration with it, or the extra calls are bought and then abandoned with a 504 restart
MailAnswering:MaxTokensPerRun long 80000 1 – 100000000; the cost ceiling, stated in the unit a provider bills by. Checked before each call against what the calls before it reported, so the call that crosses it is paid for — what a call will cost is not knowable until it is answered. Reaching it stops the run with 57001 restart
MailAnswering:MaxAnswerCharacters int 20000 1 – 1000000; how much of the model's answer one response carries. Cut rather than refused, and the response says it was cut restart
MailAnswering:MaxCitations int 20 1 – 1000; how many messages one response names. Cut the same way and reported the same way restart
MailAnswering:MaxConversationContextTokens int 64000 1000 – 10000000; what one turn of an Agent conversation may send, in tokens, before its earlier part is compacted. One number for the whole deployment rather than per person or per model: a larger model is used by raising it. A conversation past it is summarised by the model Chat:ConversationCompaction:Model routes to, the summary is recorded beside everything it covers — nothing is removed and a person still reads every message — and the turn sends the summary plus every later turn verbatim. The summary's call is charged to the same period ceilings a question is. A summariser that fails does not fail the turn: it sends as much recent history as fits, records nothing, and logs a warning. Refused above MaxTokensPerRun, since the first call of a long conversation's turn sends up to this much and the run ceiling counts it restart
MailAnswering:AggregatePeriod TimeSpan 01:00:00 positive; how long one period lasts before what was spent in it is forgotten. An hour rather than a day, because a ceiling an operator only meets once a day is one they meet after the spend has happened restart
MailAnswering:MaxRunsPerPeriod int 30 1 – 1000000; the ceiling on how enthusiastic a client may be. Nothing about the MCP surface stops one from asking a hundred questions in a minute, and without this a per-run ceiling bounds each of those hundred and none of the total. A question over it is refused with 57001. The deployment's, not each replica's — the period is a ledger row every replica admits against, so what the deployment spends is what was configured restart
MailAnswering:MaxTokensPerPeriod long 300000 1 – 10000000000; the same ceiling in what a provider bills. Checked before a run begins, against what the runs of this period have consumed so far — every replica's, from the same ledger row, so this is the deployment's rather than each replica's restart

EmbeddingBackfill

The sweep that gives mail stored before the active profile its passages and its vectors. A root of its own rather than a block inside Embeddings, because what an instance embeds with is a commitment and how fast it works through the mail it already had is a rate an operator changes while watching a bill. Every key here is a pacing control: BatchSize × MaxBatchesPerRun is the most one run may spend, and Interval is how often that is paid. Embedding backfill describes what it reaches and why it repeats. One replica runs a pass at a time, and both intervals are each replica's rather than the deployment's: every replica paces itself by the passes it ran, and one refused the sweep asks again after Interval, so a deployment of several replicas asks for a pass more often than one would — never twice over the same position, and never past the spend ceilings, which are the deployment's. Which replica sweeps says why.

Key Type Default Constraint Change
EmbeddingBackfill:Enabled bool true turning it off stops the spending within one interval and loses nothing already embedded restart
EmbeddingBackfill:Interval TimeSpan 00:00:30 1 s – 24 h; the pause between runs while messages still await embedding, and how long a replica refused the sweep waits before asking again restart
EmbeddingBackfill:IdleSweepInterval TimeSpan 00:15:00 1 s – 24 h; the pause before a sweep starts again after one reached the end restart
EmbeddingBackfill:BatchSize int 20 1 – 500 restart
EmbeddingBackfill:MaxBatchesPerRun int 5 1 – 1000 restart
EmbeddingBackfill:LeaseDuration TimeSpan 00:02:00 10 s – 1 h; how long a replica holds the sweep from each claim or renewal while a pass runs, and so the longest the sweep waits for another replica after its holder crashed. Must be longer than LeaseRenewalInterval restart
EmbeddingBackfill:LeaseRenewalInterval TimeSpan 00:00:30 1 s – 30 min; how long after the last confirmed claim or renewal a running pass renews the sweep's lease. Must be shorter than LeaseDuration restart

MailExtractionBackfill

The worker that extracts text for messages stored before extraction existed or before a limit was raised. One replica runs it at a time, and Interval is each replica's: one refused the walk asks again on its next interval. Backfilling messages stored earlier says how.

Key Type Default Constraint Change
MailExtractionBackfill:Enabled bool true — restart
MailExtractionBackfill:Interval TimeSpan 00:00:30 1 s – 1 h restart
MailExtractionBackfill:BatchSize int 50 1 – 500 restart
MailExtractionBackfill:MaxBatchesPerRun int 10 1 – 1000 restart
MailExtractionBackfill:LeaseDuration TimeSpan 00:02:00 10 s – 1 h; how long a replica holds the walk from each claim or renewal while a run lasts, and so the longest the walk waits for another replica after its holder crashed. Must be longer than LeaseRenewalInterval restart
MailExtractionBackfill:LeaseRenewalInterval TimeSpan 00:00:30 1 s – 30 min; how long after the last confirmed claim or renewal a running walk renews its lease. Must be shorter than LeaseDuration restart