Repository navigation
Conversation
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Tiny Sweeper reviewReviewed head: FindingsNo active actionable findings. Notes Unverified note — critique
Verdict: Ready for maintainer review · Priority: medium Diagnostics and supporting detailsFull summaryPull request purpose (title): Fix conversation append capability checks. Tiny Sweeper completed its review; deterministic results follow. Review snapshot
Completeness: Complete What changedWhole pull request behavior: `admit_append` now validates append capabilities in two separate checks, requiring `ValidatedBatch` on `self.docs` and `ConditionalStreamAppend` on `self.streams`; before, both were required on `self.docs`. A new test fixture, `without_document_capability`, wraps the store with a `Documents` double whose advertised capabilities are replaced while the stream port is left unchanged. The added test builds a store whose document port lacks `ConditionalStreamAppend` but whose stream port still advertises it, asserts those capability states, and then asserts that `append_message` succeeds. The tests lane reports that this assertion is also satisfied by the old code and that no added test makes append fail when the stream port lacks `ConditionalStreamAppend`, leaving the behavioral change uncovered. Latest-push delta: unavailable; the review state has no trusted base-to-head diff comparison, so no push-delta changes can be described. Features
TestsNo supported feature-to-test mapping was produced. Test execution is not inferred. Before mergeNone. Agent review detailscritique
security
tests
commits
description
Evidence and run details
|
|
Warning Review limit reached
This review includes 3 billable files and costs up to $0.75. Or wait 11 minutes for your next included review. View limit details
Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Closing as superseded by #572 (merged to main in 540997d). #572 makes the same fix: |
Summary
DriverConversationStore::admit_appendnow checksValidatedBatchon the document port andConditionalStreamAppendon the stream port. The previous check queried both capabilities from documents, which rejected valid backends whose stream port provides conditional append independently.Added a regression test with a document port that does not advertise stream capabilities while the stream port does. The test failed before the fix and passes after it.
Verification
cargo fmt --all --checkcargo test --manifest-path Cargo.toml -p tinyagents-session append_requires_conditional_stream_support_from_the_stream_port -- --exact threads::driver::append_tests::append_requires_conditional_stream_support_from_the_stream_port --nocapturecargo nextest run --profile ci --no-fail-fast --manifest-path Cargo.toml -p tinyagents-session --all-targets(506 passed)