Create redacted, shareable debug packets from failed AI agent runs.
Project description
agent-failure-packet
Languages: English | 中文
Create redacted, shareable debug packets from failed AI agent runs.
Status
P1 - v0.4.1 local packet builder and read-only GitHub Action.
Purpose
Turn messy failed agent runs into safe evidence for issues, PRs, and incident review.
First Production Surface
Local packet builder that accepts runtime exports and emits a redacted bundle.
The first executable surface is specified in Packet Builder Design.
Install
From PyPI after publication:
python3 -m pip install xone-agent-failure-packet
agent-failure-packet --version
From Homebrew after tap update:
brew install x-one-ai/tap/agent-failure-packet
agent-failure-packet --version
From this repository:
python3 -m pip install -e .
agent-failure-packet --version
Usage
Build a Markdown packet from a generic run export:
agent-failure-packet init --profile issue
agent-failure-packet validate --input failed-run.json
agent-failure-packet build --input tests/fixtures/runs/generic-failure-v1.json
agent-failure-packet build --input failed-run.json --format markdown --output failure-packet.md
agent-failure-packet build --input failed-run.json --format json --output failure-packet.json
agent-failure-packet build --input failed-run.json --profile issue --output issue-packet.md
agent-failure-packet build --input failed-run.json --redaction-policy .agent-failure-packet.yml
Input files use schema_version: agent-failure-packet.run.v1. JSON outputs use schema_version: agent-failure-packet.packet.v1.
agent-failure-packet build auto-discovers .agent-failure-packet.yml from the current directory or its parents:
schema_version: 1
profile: issue
# redaction_policy: .agent-failure-packet-redaction.yml
Markdown profiles:
incident: full packet with timeline, tool calls, errors, environment, redaction summary, checklist, and limitations.issue: compact packet for GitHub issues or support tickets; omits deeper tool-call and environment sections.
Fixture corpus:
generic-failure-v1.jsoncodex-cli-failure-v1.jsongithub-copilot-agent-failure-v1.json
Example custom redaction policy:
literals:
- internal-customer-id
regexes:
- INTERNAL-[0-9]+
The default redaction policy cannot be disabled. The tool is local-first: it does not upload packet data, call a hosted service, or post comments.
GitHub Action
Use the Action after checkout and point it at a failure export produced by your agent workflow:
name: Agent Failure Packet
on:
workflow_dispatch:
permissions:
contents: read
jobs:
packet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: X-One-AI/agent-failure-packet@v0.4.1
with:
input: failed-run.json
profile: issue
output: agent-failure-packet.md
The Action writes a packet file, appends a compact packet to GITHUB_STEP_SUMMARY, and exposes packet-path and summary-json outputs. It is read-only and does not post PR comments.
Required Evidence
- timeline
- tool calls
- errors
- redaction summary
- environment summary
Non-Goals
- not a full tracing platform
- not a hosted observability backend
- not raw prompt/log sharing
- not complete security coverage for every organization-specific secret
OPT Operating Model
This project references the shared One Person Team workflow through ops/opt-overlay.md. Project-specific constraints live under ops/constraints, and evolvable local skills live under ops/skills.
Blocked Inputs
Inputs that require user or real-world data are recorded in ../x-one-skipped-inputs.md and should not block foundation work.
Docs
Project details
Release history Release notifications | RSS feed
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 xone_agent_failure_packet-0.4.1.tar.gz.
File metadata
- Download URL: xone_agent_failure_packet-0.4.1.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3c8a03ced61852288a67103d0439d1cc1c4b5f00d501baf6a01725fd24a745c
|
|
| MD5 |
4423e0210d05de7e7e7d3ea4458f02ae
|
|
| BLAKE2b-256 |
57bafb2e89afd0979e3dfa7a02ff121c9a58323c52049a024d8fb8598bdcfbde
|
Provenance
The following attestation bundles were made for xone_agent_failure_packet-0.4.1.tar.gz:
Publisher:
publish.yml on X-One-AI/agent-failure-packet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xone_agent_failure_packet-0.4.1.tar.gz -
Subject digest:
b3c8a03ced61852288a67103d0439d1cc1c4b5f00d501baf6a01725fd24a745c - Sigstore transparency entry: 1809090038
- Sigstore integration time:
-
Permalink:
X-One-AI/agent-failure-packet@b9570558d788a1bb525269ab77affff79aa0e99d -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/X-One-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b9570558d788a1bb525269ab77affff79aa0e99d -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file xone_agent_failure_packet-0.4.1-py3-none-any.whl.
File metadata
- Download URL: xone_agent_failure_packet-0.4.1-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e0882080eee60973b32f93955a6e6ce0a5c9c0e01d2016c323d5524a6a54ced
|
|
| MD5 |
49fb1a135b6f5807b3d5cccb76f63a8d
|
|
| BLAKE2b-256 |
4af8f141cbd9583f0eef477e579872c8d6738bb9ebf0e526f80165e386b26952
|
Provenance
The following attestation bundles were made for xone_agent_failure_packet-0.4.1-py3-none-any.whl:
Publisher:
publish.yml on X-One-AI/agent-failure-packet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xone_agent_failure_packet-0.4.1-py3-none-any.whl -
Subject digest:
7e0882080eee60973b32f93955a6e6ce0a5c9c0e01d2016c323d5524a6a54ced - Sigstore transparency entry: 1809090041
- Sigstore integration time:
-
Permalink:
X-One-AI/agent-failure-packet@b9570558d788a1bb525269ab77affff79aa0e99d -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/X-One-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b9570558d788a1bb525269ab77affff79aa0e99d -
Trigger Event:
workflow_dispatch
-
Statement type: