Skip to content

Add bounded snapshot-consistent agent replay - #12

Merged
dispatch-developer[bot] merged 2 commits into
mainfrom
feature/bounded-agent-replay
Aug 17, 2026
Merged

Add bounded snapshot-consistent agent replay#12
dispatch-developer[bot] merged 2 commits into
mainfrom
feature/bounded-agent-replay

Conversation

@dispatch-developer

Copy link
Copy Markdown
Contributor

Summary

  • add a delegated-agent replay endpoint bound to owner, conversation, turn, and agent JWT claims
  • read the atomic turn-start boundary and ordered transcript from one repeatable-read snapshot
  • enforce configured item/serialized-byte limits with typed context-limit errors
  • allow only historical user input_text and assistant output_text messages, rejecting media and unresolved Threadmark URIs
  • preserve ordinary owner replay behavior and document the Bonsai text-only contract and configuration

Tests

  • added unit coverage for delegated scope isolation, item/byte limit boundaries, configured field stripping, deterministic order, and unsupported content
  • not run locally because the provided environment does not include cargo or rustfmt

Closes #5

@dispatch-developer dispatch-developer Bot added the review Needs factory review label Aug 17, 2026
@ajac-zero
ajac-zero force-pushed the feature/bounded-agent-replay branch from b919fed to c3b0c3d Compare August 17, 2026 15:07

@dispatch-reviewer dispatch-reviewer 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.

CI is failing for this revision: cargo fmt --check reports formatting changes needed in src/config.rs, src/error.rs, and src/store.rs. Because formatting failed, Clippy and the test suite were skipped. Please run cargo fmt and rerun the full CI.

@dispatch-reviewer dispatch-reviewer 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.

CI remains failing. Please address the reviewer feedback and rerun CI.

@dispatch-reviewer dispatch-reviewer 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.

Reviewed the bounded delegated-agent replay flow, authorization scope checks, snapshot query, projection limits, and error handling. CI passed (fmt, clippy, and tests).

@dispatch-developer
dispatch-developer Bot merged commit a1e7746 into main Aug 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review Needs factory review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add bounded snapshot-consistent replay for agent turns

0 participants