Spaces:
Configuration error
Configuration error
Production Operator Checklist
Use this checklist before running the PII Redactor as a KG/RAG ingestion firewall in a regulated environment.
Required Configuration
PIIR_REQUIRE_API_KEY=truePIIR_REQUIRE_PRODUCTION_SAFETY=truePIIR_BACKEND=ollama,llama_cpp, orhfPIIR_BACKENDis notmockPIIR_API_KEYis setPIIR_REIDENTIFY_API_KEYis set and differs fromPIIR_API_KEYPIIR_AUDIT_KEYis setPIIR_FAIL_ON_LLM_ERROR=truePIIR_MAX_TEXT_CHARSis set for the deployment tierPIIR_MAX_BATCH_DOCSis set for the deployment tier
Model Controls
- Confirm
model_usedfrom/redactis the intended model. - For this machine, current validated local model is
qwen2.5:7b. - Keep Qwen/Ollama timeout high enough for long documents:
PIIR_LLM_TIMEOUT_SECONDS=600. - Use deterministic temperature for audit reproducibility.
Audit Controls
- Store
PIIR_AUDIT_KEYoutside source control. - Rotate
PIIR_AUDIT_KEYthrough a documented break-glass process. - Restrict
/reidentifyto caseworker or administrator roles only. - Use a separate
PIIR_REIDENTIFY_API_KEY; do not reuse the redaction API key. - Review audit-log storage location before pilot ingestion.
KG/RAG Ingestion Controls
- Raw sources go to
raw/incomingor another non-ingestion staging area. - KG/RAG ingestion consumes only
raw/redactedoutputs. - Use
scripts/register-source-secure.ps1for source registration by default. - Direct
scripts/register-source.ps1raw registration requires explicit-AllowRaw. - Keep PII manifests under
manifests/pii-redaction.
Pre-Pilot Gates
- Full production gate passes.
- Encrypted audit gate passes.
- Qwen/Ollama quick gate passes if using Ollama.
- Docker image builds.
- Docker production-safety mock refusal passes.
- Docker real-backend API smoke passes.
- Secure KnowledgeGraph wrapper smoke passes.
Latest passing validation record:
docs/KG_RAG_PRODUCTIZATION_VALIDATION_20260504.md
Pilot Exit Criteria
- Zero known plaintext PII leaks in redacted outputs.
- Audit metadata contains no plaintext original values.
- Re-identification works only with the audit key and re-identification credential.
- Operators can reproduce evidence packs from run directories.
- Any failed ingestion fails closed before graph/vector ingestion.