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.0

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.0
File Size Uploaded Provenance
codecraftai_timetravel_pod-1.3.0.tar.gz 37.3 kB With provenance Details

Built distribution (wheel)

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

Total release size: 86.7 kB

Release files / codecraftai_timetravel_pod-1.3.0.tar.gz

Download URL codecraftai_timetravel_pod-1.3.0.tar.gz
Size 37.3 kB
Tags Source
SHA-256 checksum
How to use checksums
548a1c24f64a43fa5c376630f14c898b6f496bbeb1eaa7ca48462c7d0e40bad8
BLAKE2b-256 checksum
How to use checksums
8f0f90abb3b32cbc64ae9a8692f302de9991f5de049b2e0766cc047bee2242a4
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 19, 2026.

Transparency log

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

Download URL codecraftai_timetravel_pod-1.3.0-py3-none-any.whl
Size 49.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f86035a219e68248f929b5582501616518c620fb4ef4c5e99103ec1794bb0ae4
BLAKE2b-256 checksum
How to use checksums
83a502005002f4518c81f1ecefb3636b0c915b452d9bb98e633035c48cb65316
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 19, 2026.

Transparency log

Security for codecraftai-timetravel-pod 1.3.0

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.0.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 19, 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