Skip to content

feat: TimeTravelling Debugger API #744

Merged
gbin merged 16 commits into
masterfrom
gbin/debugger_api
Jan 28, 2026
Merged

feat: TimeTravelling Debugger API #744
gbin merged 16 commits into
masterfrom
gbin/debugger_api

Conversation

@gbin

@gbin gbin commented Jan 27, 2026

Copy link
Copy Markdown
Collaborator

Core / App API that works with the resim features to jump deterministically to anypoint of a log and replay steps with the possibility to inpects states and messages.

@gbin gbin added the enhancement New feature or request label Jan 27, 2026
@gbin gbin changed the title WIP for a debugger API to restore any state from anywhere from a log. Debugger API Jan 27, 2026
@gbin gbin changed the title Debugger API TimeTravelling Debugger API Jan 27, 2026
@gbin gbin requested a review from makeecat January 27, 2026 19:36
@makeecat

Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b9004a1792

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread core/cu29_runtime/src/debug.rs Outdated
Comment thread core/cu29_runtime/src/debug.rs
Comment thread core/cu29_runtime/src/debug.rs Outdated
Comment thread core/cu29_runtime/src/debug.rs Outdated
Comment thread core/cu29_runtime/src/copperlist.rs Outdated
Comment thread core/cu29_runtime/src/debug.rs Outdated
Comment thread core/cu29_runtime/src/debug.rs
Comment thread core/cu29_runtime/src/debug.rs
Comment thread core/cu29_runtime/src/debug.rs Outdated
@makeecat makeecat changed the title TimeTravelling Debugger API feat: TimeTravelling Debugger API Jan 27, 2026
@makeecat

Copy link
Copy Markdown
Collaborator

@codex please provide a summary of this PR in ## Summary and ## Details

@chatgpt-codex-connector

Copy link
Copy Markdown

Summary

Details

  • The debugger index is built in a single streaming pass across unified log sections, capturing section boundaries, culist IDs, timestamps, and keyframes, with defensive handling for missing timestamps and empty sections. core/cu29_runtime/src/debug.rsL511-L656
  • Jump logic restores the nearest keyframe when rewinding, replays copperlists to the target, and reports replay metadata via JumpOutcome, while find_section_for_* helpers locate sections by index, culist ID, or time ranges. core/cu29_runtime/src/debug.rsL220-L447
  • The example demonstrates a full time-travel workflow: generating logs, building custom sim callbacks that replay recorded outputs, and validating task state at specific copperlists and timestamps across the log’s end-to-end traversal. examples/cu_debug_session/src/main.rsL141-L349

Commands reviewed: git log --oneline --decorate --graph --all -n 20, git show --stat 4a6ad40..HEAD, rg -n "" core/cu29_runtime/src/debug.rs examples/cu_debug_session/src/main.rs examples/cu_debug_session/copperconfig.ron examples/cu_debug_session/Cargo.toml, nl -ba core/cu29_runtime/src/debug.rs | sed -n '1,760p', nl -ba examples/cu_debug_session/src/main.rs | sed -n '1,520p', nl -ba examples/cu_debug_session/copperconfig.ron.

View task →

@gbin gbin requested a review from makeecat January 28, 2026 04:23
@gbin gbin merged commit f12e20b into master Jan 28, 2026
24 checks passed
@gbin gbin deleted the gbin/debugger_api branch January 28, 2026 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants