Generate
PII and field enhance
Optional PII scrub before cloud LLM calls, then synchronous field enhancement.
PII scrub
| Setting | Behaviour |
|---|---|
| Default | pii_scrub_enabled = false — submit proceeds without scrub queue |
| When on | 3-layer scrub + human approval before cloud LLM |
PII applies to form fields and attachment parsed_text when enabled.
Field enhance
- Runs on the backend when the user hits Next after PII (no separate button).
- Synchronous — dimension generation waits until
enhanced_fieldsis written. - Input: Section A
fieldsonly (not attachment files). - Storage: original
fieldsfor UI;enhanced_fields(JSONB) for LLM consumers (dimension gen + planner). - Re-runs when the user edits the template and hits Next again.