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
- Extract: Parse TypeScript comparisons and Zod number, string, and array constraints into exact candidates such as $N-1$, $N$, and $N+1$.
- Match: Scan Vitest/Jest test blocks and classify each candidate as covered or uncovered.
- Show: Display warnings, hovers, status-bar counts, and CodeLens coverage labels in the editor.
- 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.
- Run: Execute one Vitest file with one exact
-t filter, or one xUnit project with one FullyQualifiedName filter, instead of running the whole suite.
- Cross-check: Compare normalized TypeScript/Zod, OpenAPI, C#/FluentValidation/EF Core, and SQL/EF Migration constraints.
- Prune safely: Report duplicate inputs, tautologies, and non-boundary bloat. Yubisashi never deletes a test automatically.
- 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.
| |