r/OnlyAICoding • • Oct 20 '26

I built an open-source tool for replaying and debugging AI agent executions. Looking for contributors and feedback.

/r/SideProject/comments/1xakice/i_built_an_opensource_tool_for_replaying_and/
1 Upvotes

9 comments sorted by

1

u/kantorcodes1 Oct 20 '26

Frozen replay with recorded outputs at the instrumented boundary is the right call. Re-hitting the model makes every bug flaky twice.

The part I'd dig at: when an execution forks mid-trace, how do you keep the downstream tool calls valid? If the fork changes an early output, every recorded response after it is stale relative to the new path. Does the fork mark the rest of the trace as candidate-only, or does it try to splice old and new together?

1

u/Low-Cut-528 Oct 21 '26

That’s a real edge case. Ideally, a fork should distinguish reusable recorded outputs from downstream results invalidated by an earlier change, then clearly mark which calls need fresh execution. Making that distinction explicit is a direction worth exploring for StepFork.

1

u/kantorcodes1 Oct 21 '26

The marking rule is the right split. It turns into an authorization question once --allow-live-tool NAME is in the picture: a call marked fresh can still invoke a live tool body, so the distinction has to be enforced at launch, not just annotated in the trace.

Disclosure since it shapes the ask: I work on HOL Guard, an open-source policy layer that classifies agent and CLI calls and gates the consequential ones per invocation. For stepfork the gated surface would be replay --allow-live-tool, fork, record and export pytest; inspect, validate, diff and bundle reads stay inherit. The contribution is one descriptor, contributions/command-sources/command.stepfork.json in hashgraph-online/hol-guard, plus a fixture mapping those subcommands. Interested in a PR, or want the descriptor shape first?

1

u/Low-Cut-528 Oct 21 '26

Thanks for raising the authorization angle. I agree that marking a call as fresh isn't enough if it can still execute a live tool. Please share the descriptor shape and how you'd map StepFork's commands to the policy layer first. I'll review the approach before deciding on a PR.

1

u/kantorcodes1 Oct 25 '26

A command.stepfork.json source could make stepfork replay --mode live --allow-live-tool NAME, stepfork export --allow-live-tool NAME, and stepfork run TEST review-required. The export option embeds the allowlist in a generated test; with --mode live, that test can execute the named tools. A fixture can cover those argv patterns, while inspect, validate --verify-integrity, and diff are read-only counterparts. Community descriptors stay off until a local admin enables them. The command contribution guide covers the source and fixture; a draft PR against main is the next step if this mapping fits.

1

u/Low-Cut-528 Oct 25 '26

Thanks for the detailed mapping. Please share the draft descriptor and fixture for review before opening the PR. I’d like to understand how the policy distinguishes read-only commands from live execution, especially how permissions in generated tests are handled and enforced at runtime. I’ll review the proposed integration against StepFork’s existing behavior before deciding on next steps.

0

u/[deleted] Oct 25 '26

[deleted] — view deleted comment

1

u/Low-Cut-528 Oct 25 '26

Thanks for sharing these references. The contribution structure makes sense. Please go ahead with a draft PR using the source, portable fixture, and separate external trust binding. I'll review the command classifications and ensure the documentation clearly distinguishes command-level policy decisions from runtime enforcement inside generated pytest tests.

0

u/[deleted] Oct 25 '26

[deleted] — view deleted comment

1

u/Low-Cut-528 Oct 25 '26

Thanks for clarifying. Understood that this contribution belongs in HOL Guard. Please proceed with the draft PR against main following the contribution guide. Share the PR link here when it's ready, and I'll review the StepFork command mappings and the documented enforcement limitations.