Skip to content

Runnable examples for the remaining mutating verbs (STA-322 leftover) - #243

Merged
SutuSebastian merged 8 commits into
mainfrom
agent/sta-322-examples
Nov 23, 2026
Merged

SutuSebastian merged 8 commits into
mainfrom
agent/sta-322-examples

Conversation

@SutuSebastian

Copy link
Copy Markdown
Contributor

What

Closes the STA-322 example-coverage gap (tracker STA-502), three Ember slices integrated on one branch:

  • Go (pkg/verdict/example_test.go): ExampleClient_Post (dry-run), ExampleClient_Fetch, ExampleClient_Gate, ExampleClient_Fix with checked // Output: blocks, scripted commander, deterministic fixtures.
  • TS (examples/typescript-client/): gate.ts + fix.ts runnable examples graded by clients/ts/test/examples.test.mjs checkpoints. fetch deliberately not added — it needs a live PR via gh; README documents why (fetchLocal is the offline half).
  • Docs (docs/manual.md): runnable-examples links from the gate/fix/post sections. record/fetch have no dedicated manual section — prose-home placement is tracked in STA-502.

Verification (orchestrator-run on 5afa267)

  • go test ./pkg/verdict/ -count=1 ok; make clients-ts exit 0 (examples 5/5 checkpoints; typechecks clean)
  • golangci-lint run ./pkg/verdict/... 0 issues (pinned v2.15.0)

Review

  • Dogfood hy4: gate PASS, informational only. Dogfood DeepSeek leg: lint items (godoclint, complexity, unbounded git) all fixed in this branch (44ae5bb, 893fc6a, 5afa267); ExampleClient_Fix now pins the selected finding sig, mutation-proven.
  • CodeRabbit CLI on combined head: 1 minor (unbounded git) — fixed.
  • Informational residuals (manual record/fetch prose links, TS README fetch-claim scoping, temp-dir patterns) live in STA-502 per review budget.

@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2b24ee6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stainless-code/verdict Patch

Not sure what this means? Click here to learn what changesets are.

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

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

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 30 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 e4c33e7 and 2b24ee6.

Files selected for processing: 7

  • .changeset/ts-examples-gate-fix.md
  • clients/ts/test/examples.test.mjs
  • docs/manual.md
  • examples/typescript-client/README.md
  • examples/typescript-client/fix.ts
  • examples/typescript-client/gate.ts
  • pkg/verdict/example_test.go
  • 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

Adds one short runnable-examples line to each of the gate, fix, and
submit (post) sections of the operator manual, naming the Go
ExampleClient_* test and the TypeScript client example that run in
CI. The Go ExampleClient_Post/Gate/Fix and TS gate.ts/fix.ts links
land correctly when the parallel example slices merge.

record and fetch have no dedicated sections in the manual, so they
get no link rather than an invented section.
…g, drop dead import

- godoclint: [testing.T] in exampleCommander comment
- revive cognitive-complexity: reuse containsAll in exampleCommander.Run
- ExampleClient_Fix Output now pins selected sig c123... from Outcome.Data
- gate.ts: drop unused expectPresent import
@SutuSebastian
SutuSebastian merged commit ede22aa into main Nov 23, 2026
21 checks passed
@SutuSebastian
SutuSebastian deleted the agent/sta-322-examples branch November 23, 2026 18:04
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