MIT-licensed code example

Deterministic intake triage that never approves its own output.

A small Python module that identifies a limited set of jurisdiction references and sensitive-language triggers locally. Every route still requires a named human reviewer.

No model, network call, file write or external service. Review the code before using it.

Standard route

Human triage remains the default.

When no listed trigger is found, the module returns a standard human-triage classification. It does not approve generation or automatically draft a response.

Restricted route

Sensitive triggers pause automation.

When a configured trigger appears, the recommended action is to pause automation and escalate to a named human reviewer.

Safe evaluation

Use invented text first.

  1. 01Read the source and edit the trigger list for the intended process.
  2. 02Test made-up examples, including false positives and missed phrasing.
  3. 03Have the firm's responsible people approve any real-data route.
  4. 04Log corrections without retaining confidential source text unnecessarily.
  5. 05Keep a manual route available and stop when the classification is uncertain.

Boundary: this code is an educational starting point, not a production intake system, legal advice or a security control.