Skip to content

Glossary

piighost has no screen. What you "see" is a placeholder in the text sent to the model, an error message, a key of the configuration file or an output of the piighost command. The "What you see" column gives this form. The "Technical name" column is for developers.

For the context of each term, start from Where to start.

Protect the data

TermDefinitionWhat you seeTechnical name
Confidential dataEverything piighost protects, that is personal data and secrets.the original value, before protectionnone
Personal data (PII)Value that can identify a person, for example a name, an address, a phone or an e-mail. PII stands for Personally Identifiable Information.Patrick, claire.dubois@example.comlabel PERSON, EMAIL…
SecretAccess credential that must never reach a model, for example an API key, a password or a private key.an API key in a messagecatalog group piighost/logs
NIRNuméro d'inscription au répertoire, the French social security number, with 15 digits. It is personal data.a 15-digit number in a messagenone
De-identificationReplacement of confidential data with placeholders, keeping what is needed to restore them. In the sense of the GDPR (General Data Protection Regulation), it is a pseudonymization.Hello <<PERSON:1>>default pipeline
AnonymizationRemoval with no way back. piighost achieves it only with a placeholder that keeps nothing.<<REDACT>>RedactPlaceholderFactory
RestorationPutting the real values back in place of the placeholders, in the reply shown to the user.Hello Patrick in the replydeanonymize
LLMLarge Language Model. AI model that reads and writes text, like the one that answers the user. An LLM can also serve as a detector or a guard rail.no visible formLLMDetector, LLMGuardRail
PipelineSequence of stages a text goes through before it reaches the model, from finding the values to replacing them with placeholders. Each stage can be replaced.the sections of the configuration fileAnonymizationPipeline, ThreadAnonymizationPipeline
DPIAData protection impact assessment, required by the GDPR for a risky processing.How to document piighost in a DPIAnone

The placeholders

TermDefinitionWhat you seeTechnical name
PlaceholderReplacement text for a value. The model sees only the placeholder.<<PERSON:1>>token, AnyPlaceholderFactory
Numbered placeholderPlaceholder that keeps the type and a number per type, in order of appearance. Default value.<<PERSON:1>>, <<PERSON:2>>, <<EMAIL:1>>LabelCounterPlaceholderFactory
Hashed placeholderNumbered placeholder whose number is displayed as a hash. The hash comes from the type and the number, never from the value.<<PERSON:09ef3b74>>LabelHashPlaceholderFactory
Type placeholderPlaceholder that keeps only the type. Two people receive the same placeholder, so restoration is not reliable.<<PERSON>>LabelPlaceholderFactory
MaskValue of which only the first characters stay visible. No restoration.J*******MaskPlaceholderFactory
Invented placeholderPlaceholder in the right format that piighost never issued, because the model hallucinated it or a text injected it.Deanonymized text holds tokens the pipeline never issued: […]InventedPlaceholderError
Preservation tagWhat a type of placeholder keeps, that is the type, the identity, the shape, the ability to be found again. Used for the check before execution.no visible formPreservesRecognizableIdentity…

What piighost spots

TermDefinitionWhat you seeTechnical name
DetectorComponent that finds the sensitive values in a text. By pattern, by AI model or by large language model.key [detector]AnyDetector
Pattern (regex)Expression that recognizes a value by its shape. The pattern checks no checksum (Luhn, IBAN). A value damaged by character recognition is therefore still detected.key patternsRegexDetector
CatalogOnline service that publishes pattern groups and whole configurations, each addressed by its reference. It was called the hub up to piighost 1.x.https://catalog.piighost.dev, variable PIIGHOST_CATALOG_URLpiighost.catalog
Catalog groupList of patterns published on the catalog, for a country, a profession or secrets, and called by its reference.catalog:piighost/generickey catalogs, RegexDetector.from_catalog
NERNamed Entity Recognition. AI model that classifies words as person, place, organization.key type = "gliner2", "spacy"…BaseNERDetector
PresidioOpen-source library by Microsoft that detects personal data. piighost can use it as a detector. piighost 2.0 took from it the names of its lists, deny_list and allow_list.key type = "presidio"PresidioDetector
DetectionOne occurrence found, with its position, text, type and confidence between 0 and 1.one line of piighost anonymize --jsonDetection
Position (span)Character interval [start, end) of a detection in the text."start": 10, "end": 35Span
EntityAll the occurrences of the same value and the same type. They share a single placeholder.Patrick and patrick both give <<PERSON:1>>Entity, ExactEntityLinker
OverlapTwo detections that cover common characters. Depending on the resolver, only one detection is kept, or their union.no visible formConfidenceOverlapResolver, MergeOverlapResolver
Guard railFinal check that looks for a sensitive value left in the protected text, and blocks the sending if it finds one.Anonymized text still contains PII: ['PERSON']AnyGuardRail, PIIRemainingError
Fail openSetting that lets the message leave when an LLM detector or guard rail cannot read the answer of its LLM, or when the Claude Code hooks cannot reach the server. Without this setting, the message is refused.key fail_open = true, variable PIIGHOST_HOOK_FAIL_OPEN=1fail_open

Conversations

TermDefinitionWhat you seeTechnical name
Conversation (thread)Exchange followed from one message to the next, isolated from the other exchanges. A value keeps the same placeholder over the whole conversation.conversation identifier, --thread-idthread_id
Default threadShared thread that the application names itself when its conversations do not need to be separated. No integration falls back to it on its own. A call without a conversation identifier is refused, with two exceptions. The piighost anonymize command falls back to default. The OpenAI and Anthropic proxies of the piighost-api server open an ephemeral conversation, specific to the request and erased at its end.defaultDEFAULT_THREAD_ID, MissingThreadIdError
ProvenanceAuthor of the first appearance of a value in the conversation, that is the user or the assistant. A value brought by the assistant stays in clear text by default.no visible formMessageRole, get_provenance
Conversation memoryStorage of the detections of each message, per conversation. Contains personal data. When kept in the program, it keeps at most 10,000 conversations. Each one is forgotten one day after its last message.key [memory]AnyConversationMemory, InMemoryConversationMemory
Conversation erasureRemoval of the whole memory of a conversation, for the right to erasure. Returns the number of messages and detections removed.Forgotten(messages=…, detections=…)forget_thread
Human correctionSet of detections corrected by a person for a message, which replaces the one from the detector.no visible formanonymize_corrected
Stream decoderComponent that restores a reply sent as it comes, holding back a cut placeholder until it is whole."<<PER" held back, then "Jean Dupont"AsyncPlaceholderStreamDecoder, deanonymize_stream
Tool settingWhat a tool receives (real values or placeholders) and what the model reads of its result (masked or in clear text)."Full", "Input only", "Output only", "None"ToolCallStrategy

Integrations

TermDefinitionWhat you seeTechnical name
HookCommand that a program runs at a fixed point of its work. The Claude Code hooks pass the user's request, the tool calls and their results through piighost.python -m piighost.integrations.claude_code in .claude/settings.jsonhandle_hook
ProxyServer placed between the application and the model provider. The piighost-api server offers one compatible with OpenAI and one compatible with Anthropic. The application only changes its base URL./openai/v1, /anthropic/v1piighost-api
MiddlewareComponent that fits into the loop of an agent, between the application and the model, and handles each message on the way. The piighost LangChain middleware de-identifies the messages before the model and restores its reply.middleware=[...] when the agent is createdPIIAnonymizationMiddleware
LangGraphLibrary that runs the LangChain agents. It keeps the history of each conversation and passes its identifier to the middleware.config={"configurable": {"thread_id": ...}}thread_id

Deny list and allow list of the configuration

TermDefinitionWhat you seeTechnical name
Deny listValues masked even if the detector misses them. The list is written in the [override] section of the application's configuration or of the piighost-api server's configuration. In a conversation, a value of the list that the assistant quotes first stays in clear text by default. The "force" setting masks it anyway (BR-LIST-05 ).key [override.deny_list], deny_list_strategy = "force"DetectionOverride.deny_list
Allow listValues left in clear text even if the detector finds them. A value that is also on the deny list is masked by default (BR-LIST-04 ).key [override.allow_list]DetectionOverride.allow_list

Before piighost 2.0, the deny list was called whitelist and the allow list blacklist. A configuration that still uses these names is refused, see DEC-09 in the decisions.

Storage and security

TermDefinitionWhat you seeTechnical name
DigestShort string computed from a text. The same text always gives the same digest, which does not give the text back. The memory recognizes a message already seen this way.piighost:<thread_id>:msg:<digest>message_digest
PepperSecret that makes the digests of the messages impossible to recompute without it.variable PIIGHOST_HASH_PEPPERAnyHasher
HasherComponent that computes the digest of each message with the pepper. It is always configured with a cipher.key [memory.hasher]Sha256Hasher, Argon2Hasher
HMAC-SHA256, Argon2idThe two methods that compute a digest with the pepper. Argon2id is slow on purpose, which makes guessing a value by repeated tries more costly.type = "sha256", type = "argon2" in [memory.hasher]Sha256Hasher, Argon2Hasher
RedisFast database that runs on a separate server. It can keep the memory of the conversations and share it between several instances of the server.type = "redis" in [memory]RedisConversationMemory
CipherComponent that encrypts the stored detections, with an AES (Advanced Encryption Standard) key in GCM mode.variable PIIGHOST_CIPHER_KEYAesGcmCipher
Trace redactorPlaceholder factory applied to the technical traces, so that they contain no data in clear text.key [observation_redactor]observation_redactor
Technical trace (OpenTelemetry)Log of each step of a processing, with its duration and its data. piighost produces these traces following OpenTelemetry, an open standard. Without a trace redactor, they hold the text in clear, and piighost emits a warning.a trace in the observation toolget_tracer
LangfuseObservation service for AI applications. It receives the technical traces, and can serve as an annotation tool where a person corrects the detections.langfuse.* attributes of the tracesnone

Domain documentation identifiers

The identifiers are in English, the same whatever the language of the page.

TermDefinitionWhat you seeTechnical name
NeedWhat a profile expects from piighost, with its observable criteria. The prefix names the profile (compliance officer, developer, operator, application user).DPO-1, DEV-10, OPS-7, USER-6Needs by profile
Business ruleRule written as "When…, then…" in a process page. BR stands for business rule, followed by the domain.BR-MSG-05, BR-CONV-03"Rules to know" sections
Acceptance testTest that checks one criterion of a need.AT-DPO-1-2Acceptance tests, tests/acceptance/

Tests and rule badges

TermDefinitionWhat you seeTechnical name
pytest nodeAddress of one precise test, of the form file::Class::test. pytest is the tool that runs the piighost Python tests.tests/test_catalog.py::TestPull::test_a_model_detector_is_refuseduv run pytest
CIContinuous integration, that is the automatic run of the tests and checks on GitHub, on each proposed change to the code.the checks of a pull request.github/workflows/
LocationFunction or class of the code that applies a business rule, taken from the "Where the rules live" table. The badge placed under each rule counts its locations and its direct tests, that is the tests that call these functions.2 locations · 11 direct tests"Where the rules live" table