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.
Related Projects
- Component roadmap
- source-owned status, platform evidence, historical projections, and next gates.
- agentic-security-harness
- trace-first benchmark for agentic AI boundary failures.
- agentic-transfer-verifier
- research toolkit for provenance, trust, and authority handoffs.
- ai-agent-handoff
- file-based handoff protocol for AI coding agents.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_safety_playbooks-0.1.0.tar.gz.
File metadata
- Download URL: llm_safety_playbooks-0.1.0.tar.gz
- Upload date:
- Size: 45.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d15d2563f2e16b0f113220dc1f48718f9d79cfb4e1ae4f0307f71ea6058a5e7
|
|
| MD5 |
126ccde7035a9944bf1dce2ec827d9a9
|
|
| BLAKE2b-256 |
8ec6763e8ff6208691a2c95cf7458a188c0763ce6ed04708f051c4daeb3fc8eb
|
Provenance
The following attestation bundles were made for llm_safety_playbooks-0.1.0.tar.gz:
Publisher:
release-package.yml on krivonosoff161/llm-safety-playbooks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_safety_playbooks-0.1.0.tar.gz -
Subject digest:
6d15d2563f2e16b0f113220dc1f48718f9d79cfb4e1ae4f0307f71ea6058a5e7 - Sigstore transparency entry: 2639672860
- Sigstore integration time:
-
Permalink:
krivonosoff161/llm-safety-playbooks@2ad200069687336f985fb7e6c209871a147a4b96 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/krivonosoff161
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-package.yml@2ad200069687336f985fb7e6c209871a147a4b96 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file llm_safety_playbooks-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llm_safety_playbooks-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c5289660f74b0f2fd712893d0a829b7a0de4472207856581ee916e315eab6ed
|
|
| MD5 |
407dcada2e9b0643a782388ba18d5ccd
|
|
| BLAKE2b-256 |
22c19c113e75fdcde53645a8a85a1680c3c4ce9117e05a6cfbefc0c23d1f6f2e
|
Provenance
The following attestation bundles were made for llm_safety_playbooks-0.1.0-py3-none-any.whl:
Publisher:
release-package.yml on krivonosoff161/llm-safety-playbooks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_safety_playbooks-0.1.0-py3-none-any.whl -
Subject digest:
4c5289660f74b0f2fd712893d0a829b7a0de4472207856581ee916e315eab6ed - Sigstore transparency entry: 2639673016
- Sigstore integration time:
-
Permalink:
krivonosoff161/llm-safety-playbooks@2ad200069687336f985fb7e6c209871a147a4b96 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/krivonosoff161
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-package.yml@2ad200069687336f985fb7e6c209871a147a4b96 -
Trigger Event:
workflow_dispatch
-
Statement type: