Skip to content

✨ feat(testing): pin the official LangChain tools and check prompt push with langsmith - #819

Open
codekiln wants to merge 10 commits into
mainfrom
m19-p746-i747-oracles
Open

codekiln wants to merge 10 commits into
mainfrom
m19-p746-i747-oracles

Conversation

@codekiln

@codekiln codekiln commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

from AI(claude-code, claude-sonnet-5-5, langstar i747-oracles)

Refs #747 (install official LangChain tools through mise to check langstar's results)

Pins the official LangChain tools in mise.toml and adds one check that uses them against langstar. This is the small first PR; the rest of #747 (install official LangChain tools through mise to check langstar's results) follows.

  • Pins: github:langchain-ai/langsmith-cli 0.3.0 (release binary), pipx:langgraph-cli 0.4.33, uv 0.12.23, and LANGGRAPH_SDK_VERSION 0.4.6 in [env]. The LangGraph Python SDK is a library with no executable, so mise has nothing to install for it; check tasks run it with uv run --with. mise install works in a fresh worktree.
  • mise run oracle:prompt-roundtrip (mise-tasks/oracle/prompt-roundtrip): pushes a private prompt with langstar, reads it back with langsmith prompt pull, deletes it. Credentials through fnox exec. It passes.
  • docs/dev/testing/official-tool-checks.md: which tool can check which langstar command group.
  • mise run check passes.

Notes

The task is oracle:prompt-roundtrip because mise-tasks/check is already a file. The uv, langgraph-cli and SDK pins have no task using them yet; the assistant and deployment checks in the follow-ups will.

Copilot findings fixed

  • The task skipped fnox exec when only LANGSMITH_API_KEY was set: the guard now requires all three credentials.
  • The cleanup trap could delete another run's prompt after a name collision: it is now registered only after prompt create succeeds, and the name has a $RANDOM suffix.
  • jq was an undeclared dependency of the task: it is now pinned in mise.toml.
  • mktemp ran before the cleanup trap, so a failure there could leave the prompt behind: the trap is now installed first.
  • A failed cleanup delete was reported but the task still exited 0: it now exits non-zero and keeps an earlier failure's status.

Bugs the check found (not fixed here)

#820 (--owner - on a new repo) and #821 (push without --schema).

Decisions for codekiln

  • Task names start with oracle: (the official tool is the reference result). Recommend keeping them.
  • Pinned langsmith-cli 0.3.0, the newest release older than five days. Recommend bumping by hand.

Follow-ups for #747

  • Checks for dataset (langsmith dataset, example), project, runs, eval (evaluator, experiment).
  • A langgraph-sdk check for assistant and deployment commands.

🤖 Generated with Claude Code

…sh with langsmith

#747 746.2-oracles Install official LangChain tools through mise to check langstar's results

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 13, 2026 22:18
@codekiln codekiln added this to the reboot milestone Oct 13, 2026
@codekiln codekiln added enhancement New feature or request wip work in progress labels Oct 13, 2026
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Unit Test Results

225 tests  ±0   225 ✅ ±0   3s ⏱️ ±0s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit d87507c. ± Comparison against base commit ab158b1.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

SDK Integration Test Results

337 tests  ±0   337 ✅ ±0   18s ⏱️ +3s
 14 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit d87507c. ± Comparison against base commit ab158b1.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Integration Test Results

362 tests  ±0   362 ✅ +3   1m 34s ⏱️ - 2m 56s
 15 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌  - 3 

Results for commit d87507c. ± Comparison against base commit ab158b1.

♻️ This comment has been updated with latest results.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The oracle can skip required credentials and may delete another concurrent run’s prompt after a name collision.

2 open findings
What changed in this PR

Adds pinned official LangChain tooling and an external prompt round-trip oracle for validating langstar output.

Changes:

  • Pins LangSmith, LangGraph, uv, and SDK versions.
  • Adds a private prompt push/pull/delete oracle task.
  • Documents official-tool coverage and usage.
File Description
mise.toml Pins official validation tools and SDK version.
mise-tasks/​oracle/​prompt-roundtrip Adds the prompt round-trip oracle.
docs/​dev/​testing/​README.md Links the new testing guide.
docs/​dev/​testing/​official-tool-checks.md Documents tools, coverage, and findings.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread mise-tasks/oracle/prompt-roundtrip Outdated
Comment thread mise-tasks/oracle/prompt-roundtrip Outdated
…hat it created

#747 746.2-oracles Install official LangChain tools through mise to check langstar's results

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 13, 2026 22:22
… doc and comments

#747 746.2-oracles Install official LangChain tools through mise to check langstar's results

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The oracle has an undeclared jq dependency and can leak a remote prompt if temporary-file creation fails.

1 open finding
2 resolved since last review
Previously missed (2)

In code that hasn't changed since last review

Medium severity Unpinned jq dependency breaks oracle prompt roundtrip on fresh hosts

mise.toml:48

The new oracle invokes jq, but the supported host setup only requires mise and mise install, and jq is neither pinned here nor listed as a host prerequisite. A fresh host that follows the setup guide can therefore install every declared tool and still have oracle:prompt-roundtrip fail with jq: command not found. Pin jq alongside the other task dependencies (or replace the parsing step with the already-pinned Python runtime).

Low severity Update documentation to reference oracle checks instead of check tasks

mise.toml:60

This points readers to check:* tasks, but this PR deliberately places these checks under the oracle:* namespace. Keeping the old namespace here makes the pin's usage documentation misleading.

🧠 Review effort: Balanced

Comment thread mise-tasks/oracle/prompt-roundtrip Outdated
Copilot AI balanced review requested due to automatic review settings October 13, 2026 22:25
…rding

#747 746.2-oracles Install official LangChain tools through mise to check langstar's results

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The task can leave a remote prompt orphaned if temporary-file creation fails.

1 open finding

🧠 Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 13, 2026 22:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The task has an undeclared jq dependency and can leak its remote prompt if temporary-file creation fails.

1 open finding
Previously missed (1)

In code that hasn't changed since last review

Medium severity Pin jq as a runtime dependency

mise-tasks/​oracle/​prompt-roundtrip:44

This introduces an undeclared runtime dependency: mise install installs Python and the newly pinned LangChain tools, but not jq, so this task fails with jq: command not found on a clean non-devcontainer host. Please pin jq in mise.toml (or perform this validation with an already pinned runtime) so the documented task is self-contained.

🧠 Review effort: Balanced

#747 746.2-oracles Install official LangChain tools through mise to check langstar's results

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 13, 2026 22:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Cleanup failures currently allow the oracle task to succeed while leaking its private prompt.

0 open findings

1 resolved since last review
Previously missed (1)

In code that hasn't changed since last review

Medium severity Cleanup failure is masked as success

mise-tasks/​oracle/​prompt-roundtrip:28

A failed delete is converted to a successful echo, so a run can exit 0 while leaving the private prompt behind. Preserve the incoming status and change a previously successful run to failure when cleanup fails, while retaining an earlier test failure.

🧠 Review effort: Balanced

#747 746.2-oracles Install official LangChain tools through mise to check langstar's results

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 13, 2026 22:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The scoped tooling, cleanup behavior, validation, and documentation are consistent and complete.

0 open findings

🧠 Review effort: Balanced

@codekiln codekiln added ready-for-review Green CI, no open threads, Copilot settled; ready for codekiln to review and merge and removed wip work in progress labels Oct 14, 2026
Copilot AI balanced review requested due to automatic review settings October 14, 2026 14:19
@codekiln codekiln added wip work in progress and removed ready-for-review Green CI, no open threads, Copilot settled; ready for codekiln to review and merge labels Oct 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The scoped oracle task, dependency pins, cleanup behavior, and documentation are coherent and complete.

0 open findings

🧠 Review effort: Balanced

@codekiln codekiln added the priority: medium Review after high: bug fixes and features with no open decision label Oct 14, 2026
Copilot AI balanced review requested due to automatic review settings October 14, 2026 19:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The official CLI must target the same API endpoint as langstar to prevent misdirected authenticated requests and unrelated check failures.

1 open finding

🧠 Review effort: Balanced

Comment thread mise-tasks/oracle/prompt-roundtrip Outdated
…tar uses

prompt-roundtrip passes --api-url on every official CLI call, so a
LANGSMITH_ENDPOINT or saved profile cannot send it to a different server than
langstar's push.

#747 Pin the official LangChain tools and check prompt push against them
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 14, 2026 21:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No blocking issues remain in the reviewed changes; the credential-dependent live check was not rerun.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

@codekiln codekiln added ready-for-review Green CI, no open threads, Copilot settled; ready for codekiln to review and merge and removed wip work in progress labels Oct 14, 2026
@codekiln codekiln removed the ready-for-review Green CI, no open threads, Copilot settled; ready for codekiln to review and merge label Oct 27, 2026
@codekiln codekiln added the wip work in progress label Oct 27, 2026 — with Claude
Copilot AI balanced review requested due to automatic review settings October 27, 2026 21:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Static review found no blocking issues in the scoped tooling and verification task; live-service checks were not independently run.

No open issues 🎉

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: medium Review after high: bug fixes and features with no open decision wip work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants