Skip to main content

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.json
  • codex-cli-failure-v1.json
  • github-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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xone_agent_failure_packet-0.4.1.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xone_agent_failure_packet-0.4.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file xone_agent_failure_packet-0.4.1.tar.gz.

File metadata

File hashes

Hashes for xone_agent_failure_packet-0.4.1.tar.gz
Algorithm Hash digest
SHA256 b3c8a03ced61852288a67103d0439d1cc1c4b5f00d501baf6a01725fd24a745c
MD5 4423e0210d05de7e7e7d3ea4458f02ae
BLAKE2b-256 57bafb2e89afd0979e3dfa7a02ff121c9a58323c52049a024d8fb8598bdcfbde

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xone_agent_failure_packet-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for xone_agent_failure_packet-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7e0882080eee60973b32f93955a6e6ce0a5c9c0e01d2016c323d5524a6a54ced
MD5 49fb1a135b6f5807b3d5cccb76f63a8d
BLAKE2b-256 4af8f141cbd9583f0eef477e579872c8d6738bb9ebf0e526f80165e386b26952

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page