Skip to content

t1k:scenario

FieldValue
Modulet1k-extended
Version2.14.3
Effortmedium
Tools

Keywords: boundary, edge-cases, exhaustive, scenarios, testing, what-could-go-wrong

/t1k:scenario
<topic|--file path> [--dimensions 1,2,4] [--for-tests]

TheOneKit Scenario — Edge Case Generation

Section titled “TheOneKit Scenario — Edge Case Generation”

Generate comprehensive edge cases before implementing or testing a feature. Covers 12 orthogonal risk dimensions.

/t1k:scenario "user registration flow" # All 12 dimensions
/t1k:scenario --file src/auth/login.ts # Analyze a specific file
/t1k:scenario "payment processing" --dimensions 1,2,3,9 # Specific dimensions only
/t1k:scenario "order API" --for-tests # Output as test-plan format
#DimensionFocus
1Auth / PermissionsWho can access, what happens when they can’t
2Concurrency / Race ConditionsParallel requests, shared state, locks
3Network Failure / TimeoutPartial failures, retries, idempotency
4Invalid Input / Boundary ValuesNull, empty, overflow, malformed data
5i18n / l10nUnicode, RTL, locale-specific formats
6Scale / VolumeLarge datasets, high throughput, memory
7State TransitionsInvalid state sequences, partial updates
8Backward CompatibilityOld clients, schema changes, deprecated paths
9Error CascadesOne failure causing downstream failures
10Config / Env VariationMissing env vars, wrong config, multiple envs
11Data IntegrityPartial writes, constraint violations, corruption
12Observability / LoggingMissing logs, PII leakage, trace gaps

Detailed scenario lists per dimension: references/dimension-details.md

Grouped checklist per dimension with: short description, expected behavior, test approach (unit/integration/E2E).

Output as test-plan structured for the t1k-tester agent (tabular format with Test ID, Scenario, Input, Expected, Type). Pass output directly to /t1k:test as test plan input.

  • Skip irrelevant dimensions: A pure CLI tool may not need i18n or auth scenarios — use --dimensions to focus
  • Test approach specificity: Always suggest a concrete test type, not just “test it”
  • Cascades are underspecified: For dimension 9, always trace the full failure chain, not just the first hop
  • —for-tests output: Verify test IDs are unique across all suites before passing to t1k-tester agent

Triggers on: scenario, edge cases, edge case, test scenarios, boundary testing, what could go wrong, risk analysis, corner cases