Skip to content

Safety Model

Your GitHub Name edited this page May 20, 2026 · 4 revisions

Safety Model

PromptPilot's safety model is built on bounded trust.

The SLM is trusted to make harness decisions that are reversible, inspectable, and low risk. It is not trusted to act as the implementation brain or to discard high-risk context just to save tokens.

Safe actions

SLM normalizer (per-prompt):

  • Ask a clarification question before acting (route=clarify).
  • Answer directly when no coding-agent run is needed (route=answer).
  • Preserve constraints while lightly rewriting a prompt (route=act, with the rewrite carried in downstream_prompt).
  • Recommend passthrough when transformation risk is high (route=passthrough).

Post-tool hook (per tool invocation, separate from the SLM normalizer):

  • Compress repetitive bash tool output (pytest / grep / git diff / installer logs) using regex/heuristic rules that preserve failures, paths, stack frames, commands, and explicit constraints.

Unsafe actions

  • Silently dropping explicit user constraints.
  • Removing file paths, failing tests, or stack traces needed for debugging.
  • Inventing product requirements or implementation details.
  • Treating token reduction as success without preservation checks.
  • Making deep coding decisions that belong to the frontier agent.

Rule of thumb

If preserving meaning is uncertain, do not transform the input. Pass it through unchanged and let the coding agent handle the full context.

High-risk cases

Prefer passthrough when the input includes:

  • Security-sensitive behavior
  • Public API or migration constraints
  • Legal, billing, or compliance language
  • Failing tests where stack frames or environment details matter
  • User instructions that conflict with the SLM's proposed simplification

See also: Semantic Preservation · Routes and Decisions · FAQ

Clone this wiki locally