Trajectory Report Uploader (trajectory/report.py)

Raven · raven/trajectory/report.py · python · Apache-2.0
files, integration, infra, ai, lang:python, tag:archiving

Packs trajectory data into tarballs and provides a pluggable interface for uploading reports. Use this to manage and export redacted AI interaction logs.

# Source: https://github.com/EverMind-AI/Raven | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""Trajectory report packing + pluggable upload backend.

A report is the shippable form of a trajectory: the redacted copy of a bundle
(:mod:`raven.trajectory.redact`) packed into a single ``.tar.gz`` whose root
directory is the attempt id. Where the tarball then goes is behind the
:class:`Uploader` protocol so a future HTTP backend slots in without touching
callers; v1 ships only the ``local`` backend, which delivers nothing — the
tarball on disk is the deliverable, handed over by the user.
"""

from __future__ import annotations

import tarfile
from pathlib import Path
from typing impo

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key