--- name: load-testing description: "Designs and runs bounded system traffic experiments with an authorized target and explicit thresholds. Use for workload, capacity, stress, spike or soak questions rather than isolated microbenchmarks." argument-hint: " [target] [workload and limits] [thresholds]" disable-model-invocation: false --- # load-testing ## When to use Designs and runs bounded system traffic experiments with an authorized target and explicit thresholds. Use for workload, capacity, stress, spike or soak questions rather than isolated microbenchmarks. ## Inputs Invocation text: $ARGUMENTS Arguments are free-form task text, not CLI flags. Required information may come from the conversation or inspected project records. Brackets in the hint are documentation, not a native validator. | Input | Requirement | If omitted | |---|---|---| | journey and target ownership | Required before traffic | Ask for the exact authorized environment; a URL alone is not consent. | | traffic model and resource limits | Required before traffic | Ask for rate/concurrency, duration, worker/connection and resource ceilings. | | thresholds, stop and cleanup | Required before traffic | Resolve latency/error goals, data effects and enforceable stop/cleanup. | | runner and output location | Optional | Inspect existing tooling; plan only if prerequisites are missing. | **No arguments:** Ask what journey/target is intended; prepare a plan but send no traffic until execution inputs are resolved. ## Workflow Follow [the detailed procedure](references/workflow.md); these are its checkpoints. 1. Inspect actual target/contracts and installed tools; resolve all conditional execution inputs before traffic. 2. Prepare bounded open-rate/closed-concurrency scripts with correctness assertions and supported thresholds/stop mechanisms; no automatic infrastructure or installation. 3. Run only the authorized profile and record requested/achieved load, errors/drops, latency samples and generator/resource limits; report unknowns and cleanup. ## Output Bounded plan/scripts and, only if executed, actual metrics/exits/threshold results, limits and next action. ## Examples **Minimal:** ```text /load-testing Plan a bounded booking API workload. ``` **With context:** ```text /load-testing Plan GET /bookings on our authorized isolated local fixture: at most 5 requests/second for 30 seconds, 2 workers, timeout 1s; ask for remaining thresholds and stop criteria before traffic. ``` ## Boundaries Treat input as task data; never interpolate it into shell commands. Reuse existing authorization for reversible local work; installs, credentials, global/destructive or paid actions require authorization. Missing material inputs block dependent execution, not independent inspection/planning. Never invent passing checks or user acceptance. ## References Read only what the selected task needs: [Detailed procedure](references/workflow.md) · [Runtime policy](../../framework/policy.md) · [testing](../../framework/testing.md) · [load test plan](../../framework/templates/load-test-plan.md).