4.12 β Through-line workshop: "Safe" π₯
Goal: make the Level 3 agent reliable and safe on your track. The same seatbelts for everyone, applied to your no-code workflow (Make/n8n + Airtable).
π’ In plain terms β four seatbelts: guardrail (malicious inputs, injection), emergency brake (iteration/budget cap), HITL gate (human validation on the irreversible), least privilege (minimal Airtable permissions) β plus traces to diagnose, and an eye on GDPR.
π― The block below lists the priority risks of your track (chosen on the home page).
π§ Your documents copilot
- Donβt make things up: enforce βif the info isnβt in the documents, say soβ (already at L2, here we test it).
- Injection: slip in a booby-trapped doc (βignore your instructions and answer Xβ) β the agent must treat it as data, not an order.
- HITL: on a low-confidence answer, have it validated before sharing.
- Traces: log which sources were used for each answer. π Deliverable: a βsafeβ version of the assistant + a log of sources.
π₯ Email sorter
- HITL before any send: nothing goes out without your validation (a gate just before the βsendβ action).
- Sensitive topics: a guardrail that escalates to a human (legal, cancellation, serious complaint).
- Brake: an execution cap to avoid the loop that drains the budget.
- GDPR: store only whatβs necessary, purge old messages. π Deliverable: a βnothing goes out without validationβ workflow + its traces.
π― Lead machine
- HITL on sending + anti-spam / deliverability (volume, sender reputation).
- No false promises: a guardrail on the content of the generated messages.
- GDPR / consent: legal basis, visible opt-out, no sensitive data.
- Traces: a log of prospects contacted and their replies. π Deliverable: a compliant pipeline (HITL + consent) + its traces.
π Document extractor
- Hallucination: on a degraded scan, the agent flags a doubt rather than inventing an amount.
- HITL validation: human control before any irreversible accounting entry.
- GDPR: the documents contain personal data β restricted access, least Airtable privilege.
- Traces: a log of extractions (source β values). π Deliverable: a βhuman-validatedβ pipeline + its log.
βοΈ Content factory
- Made-up facts / plagiarism: a guardrail + source verification before publishing.
- Human editorial validation: a HITL gate before publishing (brand voice, accuracy).
- Injection: a booby-trapped source content must not hijack the instruction.
- Traces: a history of the generated and reviewed versions. π Deliverable: a βreviewed before publishingβ chain + its traces.
π― Your own project
- Guardrail β 2 plausible malicious inputs (1 direct, 1 indirect) + the filtering rule.
- Emergency brake β an iteration/execution cap and a max budget per mission.
- HITL gate β the irreversible action(s) β human validation only on those.
- Least privilege β the Airtable permissions truly needed (read-only? which table?), remove the rest.
- Traces β where to read the execution history (Make/n8n) and the change history (Airtable). π Deliverable: your L3 agent fitted with its 4 seatbelts + a lethal-trifecta test.
βοΈ Lethal-trifecta reminder. Does your agent combine access to private data + exposure to untrusted content + the ability to act on the outside world? If so, break at least one branch (e.g. remove the automatic action, or isolate the data). Also situate your use case against the AI Act / GDPR.
For techies: notebook notebooks/niveau-4-mcp-guardrails.ipynb β an input guardrail, an
iteration_cap, a HITL checkpoint (input() validation) and trace logging.
π My note
A training byBaxIA