Repository navigation
feat(timetravel): v2.1 Time-Travel Codebase — reason about code evolution (#746) - #860
Merged
AmitoVrito merged 2 commits intoJul 29, 2026
Conversation
DhruvGarg111
force-pushed
the
feat/issue-746-time-travel-codebase
branch
from
July 22, 2026 12:41
a7c3169 to
732c4d7
Compare
Collaborator
|
Merged into the v2 batch — thanks Dhruv, really like this one. Two things I fixed landing it: the git subprocess calls were running on the event loop (now offloaded via to_thread), and as_of() with a pre-history date was resolving to HEAD instead of the first commit. Added a regression test for that. Co-authored the fix to you. |
This was referenced Jul 29, 2026
ayushbhatt1224
pushed a commit
to ayushbhatt1224/SynapseKit
that referenced
this pull request
Aug 12, 2026
…napseKit#746) # Conflicts: # src/synapsekit/__init__.py
ayushbhatt1224
pushed a commit
to ayushbhatt1224/SynapseKit
that referenced
this pull request
Aug 12, 2026
AST checker that fails CI on any blocking file/subprocess/sleep/network call directly inside an async def (offload via asyncio.to_thread / run_in_executor). Skips nested sync helpers and awaited calls; supports a # allow-blocking escape hatch. Guards the async-first invariant that let blocking IO slip past review in SynapseKit#860/SynapseKit#861/SynapseKit#862.
ayushbhatt1224
pushed a commit
to ayushbhatt1224/SynapseKit
that referenced
this pull request
Aug 12, 2026
Formatting drift from the SynapseKit#860/SynapseKit#861 async fixes broke `ruff format --check`. Co-authored-by: Dhruv Garg <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #746. Implements the
TimeTravelAgentsystem for reasoning across the evolution of code, git history, and historical memory files.Changes Included
GitBackend&AsOf: Subprocess-based git history navigation, file content retrieval at historical commits, andas_of(date)scoping.EvolutionIndex: AST-based symbol and file change graph indexing, timeline generation, and PR linkage extraction (#NNN).DriftDetector: Heuristic detector for abstractions whose original justification or caller counts have drifted over time.DiffNarrativeGenerator: Produces structured markdown evolution timelines with optional LLM reasoning fallback.TimeTravelAgent: High-level facade integrating evolution index, drift detection, and memory file patch history.TimeTravelAgentinsynapsekit.timetraveland top-levelsynapsekit, verified with unit test suite intests/timetravel/.Commit History (2 commits)
feat(timetravel): add TimeTravelAgent engine and bitemporal codebase evolution analysis (#746)test(timetravel): add unit test suite for TimeTravelAgent and git evolution index (#746)Verification
ruff checkandruff formaton all files.tests/timetravel/test_timetravel.py.