Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>Yubisashi - Deterministic Boundary & 4-Tier Contract SniperNew to Visual Studio Code? Get it now.
Yubisashi - Deterministic Boundary & 4-Tier Contract Sniper

Yubisashi - Deterministic Boundary & 4-Tier Contract Sniper

Shunsuke F

|
16 installs
| (0) | Free
Point to exact TypeScript/Zod boundaries, verify Vitest coverage, inspect OpenAPI/C#/DB drift, diagnose test bloat, run focused tests, and expose read-only MCP tools.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Yubisashi - Point at the Boundary

Boundary bugs hide where constraints change: < versus <=, VARCHAR(30) versus an OpenAPI maxLength: 50, or a test suite that repeats normal values but misses the exact edge. Yubisashi deterministically extracts those boundaries and shows what is still unverified.

Named after Yubisashi Kakunin (pointing and calling), Yubisashi turns the critical value into an explicit, reviewed check instead of asking an LLM to guess a test matrix.

Japanese README

Core workflow

  1. Extract: Parse TypeScript comparisons and Zod number, string, and array constraints into exact candidates such as $N-1$, $N$, and $N+1$.
  2. Match: Scan Vitest/Jest test blocks and classify each candidate as covered or uncovered.
  3. Show: Display warnings, hovers, status-bar counts, and CodeLens coverage labels in the editor.
  4. Inject: Copy a scoped Vitest it.each or xUnit [Theory] scaffold, or insert it into a selected test file. The production call remains explicit for review.
  5. Run: Execute one Vitest file with one exact -t filter, or one xUnit project with one FullyQualifiedName filter, instead of running the whole suite.
  6. Cross-check: Compare normalized TypeScript/Zod, OpenAPI, C#/FluentValidation/EF Core, and SQL/EF Migration constraints.
  7. Prune safely: Report duplicate inputs, tautologies, and non-boundary bloat. Yubisashi never deletes a test automatically.

Typed boundary extraction

  • Numeric operators: <, <=, >, >=, ==, ===, !=, !==
  • Exact decimal and exponent candidates, with unsafe integers rejected instead of rounded
  • Zod .min(), .max(), .gt(), .gte(), .lt(), .lte(), .length(), .positive(), .negative(), .nonnegative(), .nonpositive()
  • Actual string values for string lengths and actual arrays for array lengths
  • Non-Zod objects with similarly named methods are ignored

Four-tier contract audit

Yubisashi reads:

  • TypeScript and Zod constraints
  • OpenAPI JSON/YAML minimum, maximum, minLength, maxLength, minItems, maxItems
  • C# FluentValidation rules and EF Core HasMaxLength
  • SQL DDL and EF Core migration length constraints

Drift is reported only when normalized keys and constraint kinds agree. Unmatched fields stay unmatched rather than being guessed.

MCP for coding agents

The bundled stdio MCP server exposes read-only tools:

Tool Result
get_boundary_gaps Exact uncovered TypeScript/Zod candidates from existing tests
verify_4tier_boundaries Normalized cross-layer drift records
prune_redundant_tests Duplicate, tautology, and bloat suggestions; no file mutation

Commands and settings

Command or setting Details
Yubisashi: Scan Boundary Values Refresh the active document and report boundary count.
Yubisashi: Refresh Workspace Coverage Re-scan open documents against workspace tests.
Yubisashi: Verify 4-Tier Contract Drift Print normalized drift records to the output channel.
Yubisashi: Run Focused Vitest/xUnit Run one selected Vitest file or xUnit project with one exact test-name filter.
Quick Fix: Copy/Insert Vitest scaffold Copy or insert a reviewed it.each boundary scaffold.
yubisashi.enabled Enable or disable analysis. Default: true.
yubisashi.maxTestFiles Maximum test files scanned. Default: 500.

Safety and current limits

All analysis is local. Test-file reads are limited to eight concurrent operations so large workspaces do not exhaust file handles. Unsupported expressions, dynamic constraints, custom validators, and unresolved domain mappings are omitted instead of fabricated. Pruning is diagnostic-only. Focused execution requires a local Vitest binary and never falls back to a full-suite run. Complex C# inheritance, custom SQL dialects, and arbitrary OpenAPI references remain conservative omissions.

Bugs and requests: GitHub Issues. License: MIT.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft