stock-watchlist-agent: add inline experiments (capture/replay regression testing) - #71
Open
mehulsonowal wants to merge 1 commit into
Open
stock-watchlist-agent: add inline experiments (capture/replay regression testing)#71mehulsonowal wants to merge 1 commit into
mehulsonowal wants to merge 1 commit into
Conversation
gsvigruha
approved these changes
Jul 1, 2026
…atchlist-agent Layer the ddtrace inline-experiments workflow onto the demo: - mark the analyze_portfolio boundary with @experiment_start and attach evaluators (completeness + sentiment/grounding LLM judges) - capture_watchlists.py / capture_quotes.py harnesses to record baselines - INLINE_EXPERIMENTS_GUIDE.md quickstart (capture -> replay -> --evaluate -> --publish) - .env auto-loading + an observability init helper Requires a ddtrace version that includes inline experiments (the ddtrace-experiment CLI and ddtrace.llmobs.experimental). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
mehulsonowal
force-pushed
the
stock-watchlist-agent-inline-experiments
branch
from
July 1, 2026 20:47
e9a7575 to
d63955c
Compare
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.
Layers the ddtrace inline experiments workflow onto the stock-watchlist-agent — "a unit test for LLM apps": mark an input→output boundary,
capturea baseline of current behavior, edit code,replaythe current code against it, and get per-casematch/changedverdicts (plus optional evaluators and a--publishpath to the Experiments UI).What it adds:
@experiment_starton theanalyze_portfolioboundary + attached evaluators (completeness + sentiment/grounding LLM judges)capture_watchlists.py/capture_quotes.pybaseline harnessesINLINE_EXPERIMENTS_GUIDE.md— a concise capture → replay →--evaluate→--publishquickstart.envauto-loading (sitecustomize.py) + an observability init helperLoop:
🤖 Generated with Claude Code