Skip to main content

Code Craft AI TimeTravel Pod

The codecraftai-timetravel-pod is a Python package that provides time-travel debugging capabilities to applications. It introduces the concept of “named portals” that enable dynamic activation of different scopes of time-travel debugging. A developer places a portal in the form of a with scope into the code, associated with a uniquely named portal. When a thread enters the scope of the portal and the portal was activated by name early in the program’s startup, time-travel debugging is activated for that thread for the duration of the portal scope. This mechanism allows applications to run at full performance when portals are inactive while still capturing debug traces at runtime — and portals can be turned on and off at any time without restarting the application.

Highlights

  • Named-portal activation model with TimeTravelGateway, TimeTravelPortal, and a thread-safe portal registry.

  • Trace recording engine with TraceHookManager (wrapping sys.settrace), a TraceRecorder ABC, a hybrid struct``+``pickle serialization format, and a buffered writer.

  • Stream backends for file, TCP, and Unix-domain-socket destinations, resolved through a URI-scheme registry.

  • Remote control interface (TCP, JSON-lines) with token-based authentication, service registration, and heartbeat support.

  • Configuration-driven startup API and @trace_portal("name") convenience decorator.

Repository Structure

  • development/ - Runtime environment scripts.

  • repository-setup/ - Repository homing and setup scripts.

  • source/packages/ - Package source code.

  • source/tests/ - unittest-based tests.

  • specs/ - Requirements and design documentation organised by feature layer.

  • userguide/ - Standards, conventions, and documentation.

Environment Setup

When working in a Codex container:

./development/setup-agent-container

For local development:

./repository-setup/rehome-repository
./development/setup-envrionment

Running Tests

Activate the virtual environment:

source .venv/bin/activate

Run unittest tests:

python -m unittest discover -s source/tests -p "test_*.py"

Standards and Conventions

  • Naming conventions: userguide/10-02-naming-conventions.rst

  • Code organization: userguide/10-01-code-organization.rst

  • Coding standards: userguide/10-00-coding-standards.rst

Additional Resources

  • User guide entry point: userguide/userguide.rst

  • Feature specifications under specs/ are organised by layer (0-* core primitives, 1-* trace recording, 2-* stream backends, and so on).

Metadata

Release files for codecraftai-timetravel-pod 1.3.1

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

Source distribution (sdist)

Source distribution for codecraftai-timetravel-pod 1.3.1
File Size Uploaded Provenance
codecraftai_timetravel_pod-1.3.1.tar.gz 37.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for codecraftai-timetravel-pod 1.3.1
File Interpreter ABI Platform
codecraftai_timetravel_pod-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 86.5 kB

Release files / codecraftai_timetravel_pod-1.3.1.tar.gz

Download URL codecraftai_timetravel_pod-1.3.1.tar.gz
Size 37.1 kB
Tags Source
SHA-256 checksum
How to use checksums
49f1a53fed5f778510836fb2a3735fb212a2eecc31c2e0493520c14a7287ee25
BLAKE2b-256 checksum
How to use checksums
8a557b9057b550638a5078b64ea4155197c6ddb5ff76f81e268d73c53065b32f
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 Oct 20, 2026.

Transparency log

Release files / codecraftai_timetravel_pod-1.3.1-py3-none-any.whl

Download URL codecraftai_timetravel_pod-1.3.1-py3-none-any.whl
Size 49.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d1ca9b5d02180a4853f6926832b900b4de43b60a9c5de08fc3790f03c5dd58d
BLAKE2b-256 checksum
How to use checksums
d63a44c372d8eeb7d7432997939b9f33d3ab2b618f0461caeac301f9b27e9a15
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 Oct 20, 2026.

Transparency log

Security for codecraftai-timetravel-pod 1.3.1

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 codecraftai_timetravel_pod-1.3.1.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 Oct 20, 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.

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