
LoadSmith Stateful Replay
Load generation, log extraction, dual-leg replay and deterministic state verification around a real component. Network behavior and database state are observable without linking database engines into LoadSmith.
One harness, four workflows
Lua load
Single, burst, sustained and scenario traffic over HTTP/TCP with TLS, framing and metrics.
Extract
Turn adapter logs into reusable JSONL corpus with configurable correlation and payload rules.
Dual-leg replay
Replay the inbound request and emulate the outbound host independently over HTTP or TCP.
Stateful replay v2
Prepare resources, drive or observe the component, assert state, collect evidence and clean up.
Deterministic case lifecycle
fixtures and mocks
direct / provider / passive
response, network, SQL
independent timeout
Providers open before SuiteLifecycle.Start. Every invalid provider, resource, path, operation or step fails during compilation, before effects. Cleanup and suite close still run after primary failures.
Three ways to activate the component
| Mode | Activation | Typical use |
|---|---|---|
direct | LoadSmith sends HTTP/TCP to the component. | Public API, gateway or adapter behavior. |
provider | A trigger publishes through SQL or network. | DB-driven/event-driven flow or provider diagnostics. |
passive | No injection; observe during a positive settle window. | Scheduler, external source or autonomous processing. |
Database boundary: external processes only
The consumers may share a database, but never a plugin process, connection or *sql.DB. Hash verification, spawn, handshake and shutdown reuse the existing HashiCorp plugin stack. gRPC and internal drivers are outside this release.
Evidence and release gates
Network
HTTP method/path, bounded payload evidence, TCP framing, interaction counts, forbidden and late calls.
SQL
Root-confined fixtures, structured rows, typed values, scalar checks, reset scripts and redacted errors.
Reliability
Strict compiler, reverse unwind, cancellation, cleanup taint, race tests and structured suite failures.
Automation
make test-stateful-all runs unit, race, plugin and component/shared-DB gates.
Verified support
| Target | Status | Evidence |
|---|---|---|
| SQLite plugin | STATEFUL PASS | Handshake, fixtures, typed assertions, reset, shutdown and two-process component E2E. |
| PostgreSQL / MySQL / SQL Server / Oracle | NOT DECLARED | Architecture-compatible, but each engine still requires its own real plugin E2E. |
| LoadSmith binary | NO ENGINE LINKED | Dependency gate rejects internal and known Go database engine drivers. |