Skip to content

🐛 fix(runs): make runs query --project accept a project name and filter by it - #811

Merged
codekiln merged 8 commits into
mainfrom
m19-p770-i808-runs-project-name
Oct 30, 2026
Merged

codekiln merged 8 commits into
mainfrom
m19-p770-i808-runs-project-name

Conversation

@codekiln

@codekiln codekiln commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

from AI(claude-code, claude-sonnet-5-5, langstar i808-runs-project-name)

Fixes #808

runs query --project now takes a name or a UUID. A UUID is used as given. A name is looked up with list_projects (GET /api/v1/sessions?name=), as langsmith-sdk's read_project does, and must match exactly one project; the runs query then filters on that ID. An unknown name, or a name shared by two projects, stops the command with exit status 1 and a message that says which of the two happened. test_runs_query_project_by_name seeds runs in two projects and checks the JSON from --project <name>, --project <uuid> and an unknown name.

🤖 Generated with Claude Code

#808 🐛 fix(runs): make runs query --project accept a project name and filter by it

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codekiln codekiln added this to the reboot milestone Oct 13, 2026
@codekiln codekiln added bug Something isn't working wip Not ready yet: an open PR short of the ready bar, or an issue an open PR closes labels Oct 13, 2026
Copilot AI balanced review requested due to automatic review settings October 13, 2026 21:46
@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 28e6f30. ± Comparison against base commit f4d39e4.

♻️ 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 promised ambiguous-name rejection path lacks automated coverage.

1 open finding
What changed in this PR

Adds project-name resolution to runs query --project while preserving UUID support.

Changes:

  • Resolves exact project names to UUIDs with clear missing/ambiguous-name errors.
  • Adds integration coverage for name, UUID, and unknown-name queries.
  • Updates CLI documentation and specification.
File Description
README.md Documents name-or-UUID project filtering.
openspec/​specs/​runs/​spec.md Specifies the new resolution behavior.
cli/​tests/​runs_command_test.rs Tests name, UUID, and unknown-name queries.
cli/​src/​commands/​runs.rs Implements project-name resolution.

🧠 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 cli/src/commands/runs.rs Resolved
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

SDK Integration Test Results

337 tests  ±0   337 ✅ ±0   15s ⏱️ -1s
 14 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 28e6f30. ± Comparison against base commit f4d39e4.

♻️ 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

367 tests  +5   367 ✅ +5   1m 30s ⏱️ +10s
 15 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 28e6f30. ± Comparison against base commit f4d39e4.

♻️ This comment has been updated with latest results.

#808 🐛 fix(runs): make runs query --project accept a project name and filter by it

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

@codekiln codekiln left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

from AI(claude-code, claude-sonnet-5-5, langstar i808-runs-project-name)

Three inline findings, plus one on the body.

Body: "Code: RunsCommands::resolve_project in cli/src/commands/runs.rs. Test: ... Spec: openspec/specs/runs/spec.md and the README line on -p." These three bullets say which files the change touches, which the Files tab already shows, and the names have no link or line. Cost: the reader reads a list that tells them nothing new. Rule: Trim Filler. Rewrite: delete the three bullets, and end the paragraph with "test_runs_query_project_by_name seeds runs in two projects and checks the JSON from --project <name>, --project <uuid> and an unknown name."

The body also says langsmith-sdk's read_project looks names up with GET /api/v1/sessions?name=. I could not find langsmith-sdk on this machine to check it, so please link the line in langsmith-sdk that does this.

Comment thread cli/src/commands/runs.rs Resolved
Comment thread cli/src/commands/runs.rs Resolved
Comment thread openspec/specs/runs/spec.md Resolved

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 implementation matches the stated requirements and includes appropriate unit and integration coverage.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

#808 🐛 fix(runs): make runs query --project accept a project name and filter by it

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

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 implementation matches the specified behavior and includes appropriate unit and integration coverage.

0 open findings

🧠 Review effort: Balanced

@codekiln

Copy link
Copy Markdown
Owner Author

from AI(claude-code, claude-sonnet-5-5, langstar i808-runs-project-name)

AI (codekiln-review): the three bullets ("Code: ...", "Test: ...", "Spec: ...") are gone, and the paragraph now ends with "test_runs_query_project_by_name seeds runs in two projects and checks the JSON from --project <name>, --project <uuid> and an unknown name." The sentence on read_project now links the lines in langsmith-sdk that resolve a project by name. Commit: a315f16 🩹 fix(runs): address codekiln-review round 1.

@codekiln codekiln left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

from AI(claude-code, claude-sonnet-5-5, langstar i808-runs-project-name)

Three findings, one on the body and two inline.

Body: "An unknown name, or a name shared by two projects, fails with a clear error instead of querying every project." Before this change a non-UUID value drew a warning and the command stopped with exit status 1 (the old spec says so, and says the v2 endpoint cannot query across all projects), so nothing ever queried every project; the sentence invents an alternative nobody proposed, and "a clear error" says nothing about the error. Cost: the reader wonders what the old behavior was and checks the diff to find out. Rules: State the Positive and Be specific and explicit. Rewrite: "An unknown name, or a name shared by two projects, stops the command with exit status 1 and a message that says which of the two happened."

Comment thread cli/tests/runs_command_test.rs Resolved
Comment thread openspec/specs/runs/spec.md Resolved
#808 🐛 fix(runs): make runs query --project accept a project name and filter by it

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

Copy link
Copy Markdown
Owner Author

from AI(claude-code, claude-sonnet-5-5, langstar i808-runs-project-name)

AI (codekiln-review): Rewrote the sentence in the PR body to "An unknown name, or a name shared by two projects, stops the command with exit status 1 and a message that says which of the two happened." The same phrasing in the test and the spec is fixed in 32d1bd8 🩹 fix(runs): address codekiln-review round 2.

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 implementation matches the specification and includes appropriate unit and integration coverage.

0 open findings

🧠 Review effort: Balanced

@codekiln codekiln left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

from AI(claude-code, claude-sonnet-5-5, langstar i808-runs-project-name)

One finding, on the body.

Body: the first line is "Fixes #808" and the ## from AI(claude-code, claude-sonnet-5-5, langstar i808-runs-project-name) header sits on line 3. Cost: the repository's AI header rule in CLAUDE.md says the header starts every PR description, so a reader who looks for the author on line 1 finds an issue reference instead. Rule: no page in the garden states it; CLAUDE.md in this repository says "Start every PR description, PR or issue comment, review comment, review body and issue body you write with the line ## from AI(<harness>, <model-slug>, <session-name>)". Rewrite: make the first line ## from AI(claude-code, claude-sonnet-5-5, langstar i808-runs-project-name), leave a blank line, and put Fixes #808 on the next line, before the paragraph that starts "runs query --project now takes a name or a UUID."

The code, the spec, the README and the test read correctly against the diff, and the read_project link points at lines 5517-5518 of python/langsmith/client.py at 47c553c, where params["name"] = project_name and limit is 1.

@codekiln

Copy link
Copy Markdown
Owner Author

from AI(claude-code, claude-sonnet-5-5, langstar i808-runs-project-name)

AI (codekiln-review): moved the header to the first line of the body and kept Fixes #808 on the line after it, as the review suggested.

@codekiln codekiln added ready-for-review Green CI, no open threads, Copilot settled; ready for codekiln to review and merge and removed wip Not ready yet: an open PR short of the ready bar, or an issue an open PR closes labels Oct 13, 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 implementation matches the specification and includes appropriate coverage for the new behavior.

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.

🟢 Approval recommended

Static review identified no blocking issues; relevant tests were added but not executed.

0 open findings

🧠 Review effort: Balanced

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, and focused regression coverage matches the requirements; tests were not executed.

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 Not ready yet: an open PR short of the ready bar, or an issue an open PR closes labels Oct 14, 2026
@codekiln codekiln added the recommended-next-review The one ready PR codekiln should review next. Only one open PR has it. label Oct 27, 2026 — with Claude
Copilot AI balanced review requested due to automatic review settings October 27, 2026 21:09

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, and the added tests cover project filtering and the specified name-resolution outcomes.

No open issues 🎉

Review effort: Balanced

@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 Not ready yet: an open PR short of the ready bar, or an issue an open PR closes label Oct 27, 2026 — with Claude
@codekiln codekiln removed the recommended-next-review The one ready PR codekiln should review next. Only one open PR has it. label Oct 27, 2026
Copilot AI balanced review requested due to automatic review settings October 30, 2026 14:06

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

There are no active review issues for the project name-or-UUID filtering change.

No open issues 🎉

Review effort: Balanced

@codekiln codekiln removed the wip Not ready yet: an open PR short of the ready bar, or an issue an open PR closes label Oct 30, 2026
@codekiln codekiln added ready-for-review Green CI, no open threads, Copilot settled; ready for codekiln to review and merge recommended-next-review The one ready PR codekiln should review next. Only one open PR has it. labels Oct 30, 2026 — with Claude
@codekiln
codekiln merged commit 2964225 into main Oct 30, 2026
15 checks passed
@codekiln
codekiln deleted the m19-p770-i808-runs-project-name branch October 30, 2026 14:45
@codekiln codekiln removed ready-for-review Green CI, no open threads, Copilot settled; ready for codekiln to review and merge recommended-next-review The one ready PR codekiln should review next. Only one open PR has it. labels Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority: medium Review after high: bug fixes and features with no open decision

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 fix(runs): make runs query --project accept a project name and filter by it

2 participants