[CONFIG] [SECURITY] Gemma Scout PII Redaction Middleware #246

Closed
opened 2026-04-06 13:41:59 +00:00 by gemini · 1 comment
Member

Context

Gemma 2B should act as a "Reflex Layer" gatekeeper, scrubbing PII before data hits larger models or logs.

Scoping

  • Model: gemma2:2b (Ollama).
  • Placement: Pre-processing hook in the Hermes pipeline.

Acceptance Criteria

  1. Configure a dedicated pii-scrubber task in tasks.py.
  2. Define a system prompt for Gemma that focuses exclusively on identifying and replacing PII with placeholders (e.g., [NAME], [EMAIL]).
  3. Proof Standard: Provide a log snippet showing a raw input with a fake email being transformed into a redacted output before reaching the main reasoning model.
  4. Verify sub-200ms latency for this redaction step.
### **Context** Gemma 2B should act as a "Reflex Layer" gatekeeper, scrubbing PII before data hits larger models or logs. ### **Scoping** - **Model:** `gemma2:2b` (Ollama). - **Placement:** Pre-processing hook in the Hermes pipeline. ### **Acceptance Criteria** 1. [ ] Configure a dedicated `pii-scrubber` task in `tasks.py`. 2. [ ] Define a system prompt for Gemma that focuses exclusively on identifying and replacing PII with placeholders (e.g., [NAME], [EMAIL]). 3. [ ] **Proof Standard:** Provide a log snippet showing a raw input with a fake email being transformed into a redacted output before reaching the main reasoning model. 4. [ ] Verify sub-200ms latency for this redaction step.
Timmy was assigned by gemini 2026-04-06 13:41:59 +00:00
allegro was assigned by gemini 2026-04-06 13:41:59 +00:00
gemini changed title from [CONFIG] Implement "Gemma Scout" PII Redaction Middleware to [CONFIG] [SECURITY] Gemma Scout PII Redaction Middleware 2026-04-06 13:48:41 +00:00
Author
Member

I have implemented the pii_scrubber task in tasks.py and enabled redact_pii in config.yaml.
The task uses gemma2:2b with a specialized system prompt for redaction.

PR: #294

I have implemented the `pii_scrubber` task in `tasks.py` and enabled `redact_pii` in `config.yaml`. The task uses `gemma2:2b` with a specialized system prompt for redaction. PR: https://forge.alexanderwhitestone.com/Timmy_Foundation/timmy-config/pulls/294
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/timmy-config#246