Repository navigation
docs(langsmith): M17 slice 2 — README integration + runnable example (#218) - #220
Merged
Merged
Conversation
…218) README gains the LangSmith integration section (positioning, setup, one-command end-to-end usage, feedback key/comment format, graceful degradation for missing key / no network / empty project / claim-free traces); examples/langsmith-verify/run.mjs runs the full fetch → map → verify → feedback chain offline on recorded traces with an in-memory fake client and real replays in its workspace; test/langsmith-example.test.js runs the example in CI and asserts its verdict lines. No verdict semantics or CLI behaviour changed.
This was referenced Nov 22, 2026
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.
Fixes #218 · part of epic #215 (evalid as LangSmith's external deterministic judge)
Slice 1 (#216/#217) landed the bridge core. This slice is docs + example only — no verdict semantics or CLI behaviour changed, no real API key needed.
What lands
README — new
LangSmith: evalid as an external deterministic judgesection (plus thexflow langsmith verifyrow in the Commands table):langsmithSDK ships as a dependency;LANGSMITH_API_KEYrequired (free Developer-tier key is enough to try it); optionalLANGSMITH_PROJECT/LANGSMITH_ENDPOINT; traces must exist in LangSmith first.xflow langsmith verify --project <name>,--dry-run,--limit/--since/--cwd/--out/--json) and exit codes (0 ok · 1 feedback write failed · 2 usage/config · 3 no runs found).evalid_claim_verified, score = confirmed / checked (4 dp), written on the trace's root run withfeedbackSourceType: 'api'; comment = score line + one line per claim with verdict, evidence note, and source quote (real example included).evalid-langsmith-results.json); empty project → exit 3; claim-free trace → no feedback; trace from another workspace →unknownverdicts, never invented; failed child fetch → root-run-only degradation, recorded.Runnable example —
examples/langsmith-verify/(no key, no network):run.mjsruns the full chain — recorded traces (runs.json, same shapes astest/fixtures/langsmith/runs.json) → in-memory fake client → map → verify with real replays inworkspace/→ feedback recorded in memory on the root run.workspace/:pass.test.mjs(passes),fail.test.mjs(fails),real.txt(exists);ghost.txtabsent by design.run-a-root; trace B — 0 claims, skipped. Full output inexamples/langsmith-verify/README.md.Test —
test/langsmith-example.test.js(new): spawns the example in CI and asserts exit 0 plus the verdict/feedback lines, so the example cannot silently rot.Honest scope note
Live end-to-end against a real LangSmith project (feedback read back via the API) is still the remaining M17 acceptance step (epic #215) and needs a
LANGSMITH_API_KEY; the README says so explicitly. Nothing in this PR claims otherwise.Tests
test/i6d-acceptance-demo.test.js,test/xflow-audit.test.js— pytest-replay cases already documented in M17 slice 1: LangSmith bridge core (fetch → map → verify → feedback) #217; the first reproduces identically on cleanmainin this VM, A/B-verified via stash): 73 files, all green.git diff --checkclean.