Plan Guardrails: Pitfalls to Avoid (Section 8.1)
Lists five pitfalls and guardrails for Process Triage, plus an enforcement checklist and acceptance criteria for each bead.
What this file does
Lists five pitfalls and guardrails for Process Triage, plus an enforcement checklist and acceptance criteria for each bead.
When to use it
- Implementing safety checks for sudo or install automation
- Adding redaction or retention policies for sensitive data
- Enforcing robot mode constraints and budgets
- Designing progressive disclosure for UI output
Plan Guardrails: Pitfalls to Avoid (Section 8.1)
Bead:
process_triage-h89.2Status: Specification Version: 1.0.0
Overview
This document is a single, self-contained checklist of the top pitfalls from Plan §8.1 and the guardrails required to keep Process Triage safe, reliable, and "premium alien artifact" quality. Every implementation bead that touches these areas must explicitly reference this checklist and provide enforcement points and tests.
Guardrail Checklist (Must-Haves)
1) Sudo + installs (Never block automation)
Pitfall: Hanging on prompts or blocking automation.
Guardrails
- Use non-interactive elevation (
sudo -n) only; never prompt in robot/agent mode. - Always emit a capabilities report (available vs missing tools, with reasons).
- Agent/robot modes must never prompt (stdin may be closed).
Primary enforcement beads
- Tool runner + caps:
process_triage-71t - Capability detection/cache:
process_triage-qa9(+ Phase 1 schemaprocess_triage-agz) - Tool install strategy:
process_triage-167 - Robot/no-prompt tests:
process_triage-y3ao
2) Too much raw data (Redaction + caps)
Pitfall: Dumping sensitive or high-volume raw traces into logs/telemetry; uncontrolled disk growth.
Guardrails
- Redact/hash before persistence (default-on).
- Enforce strict caps on high-volume traces.
- Retain summaries/ledgers longer than raw traces.
- Explicit retention events; no silent deletion.
Primary enforcement beads
- Redaction/hashing:
process_triage-k4yc.1 - Retention policy:
process_triage-k4yc.6
3) Robot mode safety (Never a foot-gun)
Pitfall: --robot becomes unsafe or bypasses protections.
Guardrails
--robotmust be explicit.- Always enforce: protected denylist, blast radius limits, min posterior/confidence.
- Apply robust Bayes/DRO tightening on drift or mismatch.
- Enforce FDR/alpha-investing budgets.
Primary enforcement beads
- Policy enforcement:
process_triage-dvi - Robot constraints:
process_triage-dvi.2 - DRO gate:
process_triage-6a1 - FDR + alpha budgets:
process_triage-sqe,process_triage-cpm
4) UI overload (Progressive disclosure)
Pitfall: Overwhelming the user with math or verbose output by default.
Guardrails
- Provide a one-line, human-readable "why" by default.
- Evidence ledger and galaxy-brain views are on-demand only.
Primary enforcement beads
- Premium TUI/progressive disclosure:
process_triage-2ka,process_triage-t65l - Evidence ledger:
process_triage-myq,process_triage-03n
5) Tool becomes the hog (Performance budgets)
Pitfall: The triage tool itself causes resource pressure.
Guardrails
- Hard overhead budgets and cooldowns.
- VOI-driven probe selection (no blanket deep probing).
- Dormant daemon is safe-by-default; no surprise actions.
Primary enforcement beads
- Performance/scalability:
process_triage-dki - VOI/budgeted probing:
process_triage-brh7,process_triage-p15.2 - Dormant daemon:
process_triage-b4v
Enforcement Checklist (Per Bead)
Any bead that touches these areas must explicitly answer:
- Does this change introduce new prompts, blocking, or elevation? If yes, prove non-blocking behavior.
- Does this change write or persist sensitive data? If yes, show redaction/hashing and caps.
- Does this change alter robot behavior? If yes, show safety gates and budgets remain enforced.
- Does this change add UI verbosity? If yes, default remains minimal and progressive disclosure applies.
- Does this change increase runtime overhead? If yes, show budgets, timeouts, and cooldowns.
Acceptance Criteria
- Each pitfall above has explicit enforcement points in code.
- Each guardrail has a test or validation (unit/integration/E2E).
- Any new behavior that violates guardrails is blocked until mitigated.
Audit Record
This document is the canonical reference for §8.1 guardrails. Any future spec or implementation doc should link to docs/PLAN_GUARDRAILS.md when addressing safety, telemetry, robot mode, UI disclosure, or performance budgets.
What's inside
5 pitfall-guardrail pairs, 1 enforcement checklist, 1 acceptance criteria list, 1 audit record
Change this for your project
- Replace bead IDs like
process_triage-71twith your own project's bead identifiers - Replace
docs/PLAN_GUARDRAILS.mdwith your own guardrails file path - Replace
process_triagein bead IDs and audit record with your project name
Where it goes
Load as policy context for the agent, or keep beside the code enforcing the rules.
Worth borrowing
- Bead IDs link guardrails to specific implementation points for traceability
- Enforcement checklist forces each bead to prove compliance with all guardrails
Related Documents
DeepSeek R1: Case Study in Failed Extrinsic Alignment
Compiles public security research and independent findings to argue that extrinsic alignment methods are insufficient for AI safety, using DeepSeek R1 as a case study.
Guardrails, Safety & Content Filtering
Implements a layered guardrail system with input validation, output validation, and content filtering to protect LLM applications from prompt injection, jailbreaks, and data leaks.
My Hyprland Rice Setup - Context for Claude Code
Documents a Hyprland rice setup with system specs, aesthetic preferences, workflow safety practices, and a list of current issues to solve.
AI Safety & Guardrails for Voice Assistants
Defines a multi-layer safety architecture for voice assistants, covering input filtering, deterministic FAQ routing, RAG-grounded AI responses, and output guardrails.