Skip to main content

LLM Safety Playbooks

Ecosystem role and current integration status: component roadmap. The public cross-repository plan is owned by the Agentic Security Harness ecosystem roadmap.

Practical playbooks for making LLM and AI-agent boundaries explicit during everyday work.

This repository is the lightweight companion to Agentic Security Harness. The harness measures boundary failures with traces and scorecards. These playbooks help users write safer task briefs before a full benchmark or runtime control is available.

Today this repository is a standalone declarative guidance pack with one executable, deterministic offline advisory evaluator. The current source tree also builds a data-only llm-safety-playbooks wheel containing the exact canonical Policy Pack V1 bytes. It is not yet published, is not a code-loading Harness extension, and Harness does not automatically discover or execute it.

Installable data package

Build and install the source candidate:

python -m build
python -m pip install dist/llm_safety_playbooks-0.1.0-py3-none-any.whl

The installed API exposes only verified canonical bytes:

from llm_safety_playbooks import policy_pack_bytes

pack = policy_pack_bytes()

Importing the package does not load entry points, execute Markdown, inspect content, call a provider, or authorize an effect. Harness main declares a source-only playbooks extra, but this package is not on PyPI and published Harness v1.3.0 metadata does not contain that extra. Public pip install agentic-security-harness[playbooks] support is therefore unavailable; package publication and newer Harness package metadata remain separate release gates.

Core Rule

AI output is a proposal until it is checked.

That applies to:

  • repo text, logs, and tool output;
  • generated URLs, packages, API endpoints, and webhooks;
  • credentials and configuration;
  • Git operations;
  • handoff notes between agents;
  • security research tasks.

What This Is

  • Short Markdown playbooks.
  • Reusable wording for humans working with LLMs and coding agents.
  • Boundary reminders for common failure modes.
  • A practical entry point for teams that do not need to run a full benchmark.

What This Is Not

  • Not a security product.
  • Not a jailbreak or prompt-injection collection.
  • Not a claim that prompts alone provide protection.
  • Not a replacement for runtime controls, tests, policy enforcement, review, or benchmarks.
  • Not guidance for live attacks, phishing, credential extraction, or provider abuse.

Playbooks

Playbook Use when
Data vs Instructions The model reads README files, issues, docs, logs, tool output, or other untrusted text.
Secret Handling A task may involve .env, tokens, credentials, logs, or private configuration.
Generated Resource Check The model suggests a URL, domain, package, API endpoint, webhook, or service portal.
Git Agent Safety A coding agent may edit files, create branches, push, or prepare a PR.
Handoff Verification One agent, model, or human passes work to another.
Safe Research Scope A security-related task needs synthetic, mock, owned, or explicitly authorized boundaries.
Canonical Observation Review A human reviews a pinned portfolio observation without promoting metadata into authority or an allow decision.

How To Use

Copy the relevant playbook section into your task brief, then adapt it to the actual project. Keep it short. The point is to remove ambiguity before the model acts.

Use this pattern:

Task: <what you want done>
Boundary: <which playbook rule applies>
Evidence: <what should be checked before action>
Stop condition: <when the model should pause and ask>

For higher-assurance evaluation, use a harness, tests, policy gates, logs, and reviewable artifacts. These playbooks are the first layer, not the final layer.

The machine-checkable P1 guidance contract is contracts/portfolio-observation-guidance.v1.json. Validate its exact owner schema/manifest pins and human-only boundary with:

python tools/validate_observation_guidance_contract.py

This validation does not authenticate an observation and does not grant operational authority.

Offline Policy Pack V1

Policy Pack V1 maps seven caller-supplied, content-free risk signals to observe / challenge / escalate / abstain guidance. It reads no prompt, secret, model output, or subject content. Both its canonical input and output receipts are digest-bound and fixed to:

may_authorize_effects = false
operational_authority = none

Validate the generated pack, schemas, synthetic fixture, documentation, and source bindings:

python tools/policy_pack.py check

Evaluate the committed synthetic fixture entirely offline:

python tools/policy_pack.py evaluate tests/fixtures/policy-pack-v1/valid/mixed-signals.json

The output is advice, not a correctness claim, allow decision, permission, or enforcement action.

Public ecosystem ordering and documentation authority live in the Harness-owned ecosystem roadmap. The profile repository is a generated navigation surface. This repository owns only the lightweight playbook layer, not the benchmark or runtime control layer.

For a source-backed view of what these playbooks cover and where they stop, see docs/coverage-map.md.

When This Is Not Enough

Use stronger controls when a task can mutate production systems, process credentials, call external providers, install dependencies, execute code, move money, send messages, or change access permissions.

Stronger controls include:

  • runtime policy gates;
  • tests and validators;
  • allowlists and signed-source checks;
  • logging and audit trails;
  • peer review or maintainer approval;
  • benchmark runs with Agentic Security Harness.

Metadata

Release files for llm-safety-playbooks 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-safety-playbooks 0.1.0
File Size Uploaded Provenance Actions
llm_safety_playbooks-0.1.0.tar.gz 45.4 kB With provenance Details for llm_safety_playbooks-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llm-safety-playbooks 0.1.0
File Interpreter ABI Platform Actions
llm_safety_playbooks-0.1.0-py3-none-any.whl Python 3 none any Details for llm_safety_playbooks-0.1.0-py3-none-any.whl

Total release size: 52.6 kB

Release files / llm_safety_playbooks-0.1.0.tar.gz

Download URL llm_safety_playbooks-0.1.0.tar.gz
Size 45.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6d15d2563f2e16b0f113220dc1f48718f9d79cfb4e1ae4f0307f71ea6058a5e7
BLAKE2b-256 checksum
How to use checksums
8ec6763e8ff6208691a2c95cf7458a188c0763ce6ed04708f051c4daeb3fc8eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.

Transparency log

Release files / llm_safety_playbooks-0.1.0-py3-none-any.whl

Download URL llm_safety_playbooks-0.1.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c5289660f74b0f2fd712893d0a829b7a0de4472207856581ee916e315eab6ed
BLAKE2b-256 checksum
How to use checksums
22c19c113e75fdcde53645a8a85a1680c3c4ce9117e05a6cfbefc0c23d1f6f2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.

Transparency log

Security for llm-safety-playbooks 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for llm_safety_playbooks-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page