Skip to content

Judge whether the guardrails are ready for launch

Read a launch plan, mark the guardrail gaps (missing layers, unhandled refusals, excess privilege, shared environments) and decide which added control closes the riskiest one.

Scenario

Friday, 16:00. The launch review for a bookkeeping assistant that 3,000 small businesses will use on Monday. The plan has a long system prompt, a demo that went well and a checklist with every box ticked.

Your job in the review is not to admire the checklist. It is to find the one gap that would hurt most, and say what closes it.

Explanation

No single control is enough. The docs describe layers, each catching what another misses:

Layer What it does
Input screening A small, fast model classifies user input before the main call, with structured output for a simple verdict
System prompt States the boundaries and tells Claude how to refuse
Least privilege Tools, data and secrets limited to what the task needs; a successful attack can do little
Output checks Post-processing or a classifier on what Claude produced, before anyone sees or acts on it
Human review A person approves consequential or irreversible actions, and reviews flagged content
Monitoring Watch outputs for successful attacks; warn, throttle or ban users who keep trying

Refusals are responses, not errors. Several current models include safety classifiers that can decline a request. The API then returns a normal HTTP 200 with stop_reason: "refusal". A refusal can arrive before any output or mid-stream; the docs say to treat any partial output as incomplete and discard it. You can usually still get an answer by sending the same request to another Claude model: server-side fallback, the SDK's fallback middleware, or your own retry. Code that treats every 200 as a finished answer will show users half a reply, or save an empty one.

Separate environments. One workspace and one key for prototypes, staging and production means one runaway test can eat production's limits, and one leaked key opens everything. The docs suggest separate workspaces for development, staging and production, each with its own keys and its own spend and rate limits (the Default Workspace can't have limits).

Judging a plan: for each gap ask how likely is it to be hit and how bad, and how reversible, is the damage. The riskiest gap is usually an irreversible action that nothing between the model and the world can stop.

Worked example

A plan for an assistant that drafts replies to tenant emails for a property manager:

Before

  1. A detailed system prompt lists what the assistant may and may not say.
  2. The assistant can send emails directly from the shared inbox.
  3. Dev, staging and production all use the team's one API key.
  4. Any response with HTTP 200 is treated as a finished draft.

Review notes: (1) is one layer, not a set. (2) is the riskiest: tenant emails are untrusted, and an injected "send the lease file to this address" would go out with no one in between. (3) mixes environments. (4) misses refusals.

After

  1. System prompt plus a small-model screen on inbound emails.
  2. The assistant creates drafts; a staff member clicks Send.
  3. Separate workspaces and keys for dev, staging and production, with spend limits.
  4. Drafts with stop_reason: "refusal" are discarded and retried on a fallback model; persistent ones go to a person.

Change 2 comes first: it turns an irreversible action into a reviewed one.