Skip to content

Tidy: refusal-test cleanup, message assertions, export order (STA-502) - #244

Merged
SutuSebastian merged 2 commits into
mainfrom
agent/sta-502-tidy
Nov 23, 2026
Merged

SutuSebastian merged 2 commits into
mainfrom
agent/sta-502-tidy

Conversation

@SutuSebastian

@SutuSebastian SutuSebastian commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

STA-502 residual tidy from the STA-322 wave reviews. Temp-dir cleanup + per-clause VerdictSchemaError message assertions + non-zero problems_truncated in TS refusal tests; alphabetical type-export block; gitRun WaitDelay (GO-CONC-06); TS README fetch claim scoped to TS; manual record/fetch runnable-example lines. Verified: make clients-ts, go test ./pkg/verdict/, golangci-lint 0. Dogfood gate PASS.

Summary by CodeRabbit

  • Documentation
    • Added runnable-example references for the Go record and fetch clients.
    • Clarified which fetch workflows are demonstrated by the TypeScript and Go examples.
  • Tests
    • Expanded checks for validation error messages and updated the expected refusal payload value.
    • Added cleanup of temporary test directories.

…t order, add gitRun WaitDelay, scope fetch docs
@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2333823

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 35 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 756e382 and 2333823.

Files selected for processing: 1

  • pkg/verdict/sdk_helpers_test.go

No actionable comments were generated in the recent review.

Walkthrough

The changes reorder TypeScript exports, update refusal and schema-error test assertions, clean up test directories, clarify runnable-example references, and set a one-minute wait delay for Git commands in a test helper.

Changes: TypeScript client updates

Layer / File(s) Summary
Type ordering and client test updates
clients/ts/src/index.ts, clients/ts/test/client.test.mjs
The exported type list is reordered. Tests update refusal payload expectations and schema-error message assertions, and remove tracked temporary directories after the tests.

Runnable-example references

Layer / File(s) Summary
Record and fetch example references
docs/manual.md, examples/typescript-client/README.md
The manual adds runnable-example references for record and fetch. The README clarifies that no runnable TypeScript example covers fetch and identifies the Go fetch example.

Git test helper

Layer / File(s) Summary
Git subprocess wait bound
pkg/verdict/sdk_helpers_test.go
gitRun sets cmd.WaitDelay to one minute and documents the bound.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

Suggested labels: docs

Merge Risk: Minimal · previous review 756e3

This is a cleanup of tests, documentation, and export ordering with no runtime behavior change for users. There is no identified merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names three of the main changes: refusal-test cleanup (temporary-directory removal and the corrected problems_truncated expectation), message assertions (per-clause VerdictSchemaError checks…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names three of the main changes: refusal-test cleanup (temporary-directory removal and the corrected problems_truncated expectation), message assertions (per-clause VerdictSchemaError checks), and export order (reordered type exports in index.ts). It omits the smaller changes to gitRun WaitDelay and the fetch documentation scope, which is acceptable because the title does not need to cover every detail. The title is specific and concise, and it has no filler terms. It is 70 characters, which is within a reasonable length.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ede22aa and 756e382.

Files selected for processing: 5

  • clients/ts/src/index.ts
  • clients/ts/test/client.test.mjs
  • docs/manual.md
  • examples/typescript-client/README.md
  • pkg/verdict/sdk_helpers_test.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@SutuSebastian
SutuSebastian merged commit 4a50df3 into main Nov 23, 2026
21 checks passed
@SutuSebastian
SutuSebastian deleted the agent/sta-502-tidy branch November 23, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant