Soak test

From striderZA/OpenCodeGameStudios · View interactive version

Soak test is an AI agent skill from the GitHub repository striderZA/OpenCodeGameStudios. Generate a soak test protocol for extended play sessions. Defines what to observe, measure, and log during long play sessions to surface slow leaks, fatigue effects, and edge cases that only appear after sustained play. Primarily used in Polish and Release phases.

How to use this skill

Skill file

Soak Test

A soak test (also called an endurance test) is an extended play session run

with specific observation goals. Unlike a smoke check (broad critical path,

~10 min) or a single-feature playtest (~30 min), a soak test runs for **30

minutes to several hours** to surface:

of a mechanic (inventory full, score overflow, AI state corruption)

repetitive over extended play

**This skill generates the observation protocol and analysis harness — the

human does the actual playing.**

Output: production/qa/soak-test-[date]-[duration].md

When to run:


1. Parse Arguments

Duration (default: 1h):

Focus (default: all):


2. Load Context

Read:

monitoring guidance), performance budgets (memory ceiling, target FPS)

soak duration), core loop description

(to avoid re-documenting known issues)

(to understand what has been formally tested vs. what the soak covers)

Note any performance budget targets from technical-preferences.md:


3. Define Observation Checkpoints

Based on duration, generate timed checkpoints:

30m soak: T+0, T+10, T+20, T+30

1h soak: T+0, T+15, T+30, T+45, T+60

2h soak: T+0, T+20, T+40, T+60, T+80, T+100, T+120

4h soak: T+0, T+30, T+60, T+90, T+120, T+180, T+240

At each checkpoint, the observer records the observation items defined in

Phase 4.


4. Generate the Soak Test Protocol

Memory / Stability observation items (if focus = memory or all)

Engine-specific monitoring guidance:

Godot 4:

Object Count → Objects across checkpoints

(some growth on load is expected; sustained growth indicates a leak)

in Godot 4.6

Unity:

Unreal Engine:

Stability observation items (if focus = stability or all)

At each checkpoint, note:

Balance / fatigue observation items (if focus = balance or all)

Collect subjective observations at each checkpoint:


5. Generate the Protocol Document

# Soak Test Protocol

> **Date**: [date]
> **Duration**: [duration]
> **Focus**: [memory | stability | balance | all]
> **Engine**: [engine]
> **Generated by**: /soak-test

---

## Pre-Session Setup

Before starting the soak:

- [ ] Game is running from a **fresh launch** (not resumed from a prior session)
- [ ] All background applications closed (minimise OS memory interference)
- [ ] Performance monitoring tool open and recording:
  - **Godot**: Debugger → Monitors tab → Memory section visible
  - **Unity**: Memory Profiler window open
  - **Unreal**: `stat memory` ready in console
- [ ] Soak target confirmed: [session design intent from game concept]
- [ ] Prior known issues to watch for: [from most recent playtest / qa-plan]

---

## Baseline (T+0) — Record Before Playing

| Metric | Baseline Value |
|--------|---------------|
| Memory / Heap | [record before first frame of gameplay] |
| Object Count | [record] |
| FPS (first 30 seconds) | [record] |
| [Engine-specific metric] | [record] |

---

## Checkpoint Log

### T+[N] minutes

**Memory / Stability** *(if applicable)*:

| Metric | Value | Δ from Baseline | Alert? |
|--------|-------|-----------------|--------|
| Memory / Heap | | | |
| Object Count | | | |
| FPS | | | |
| Crashes / Hangs | | | |

**Stability checks**:
- [ ] No crash or hang since last checkpoint
- [ ] Frame rate within budget ([N] fps target)
- [ ] Audio correct
- [ ] HUD rendering correctly
- [ ] Input responding correctly

**Balance / Fatigue** *(if applicable)*:
- Core mechanic still rewarding: Y / N
- Difficulty perception: too easy / appropriate / too hard
- Notable moments: [note any peak engagement or frustration]
- Content exhaustion signs: Y / N — [describe]

**Free observations**:
*(Note anything unexpected observed since the last checkpoint)*

---

[Repeat Checkpoint Log section for each timed checkpoint]

---

## Post-Session Analysis

### Memory Trend

| Checkpoint | Memory | Δ/hr extrapolated |
|------------|--------|-------------------|
| T+0 | | |
| [T+N] | | |

**Leak detected?** Y / N
**Estimated time to OOM at current rate**: [N hours / not applicable]

### Stability Summary

Total crashes: [N]
Total hangs: [N]
Worst FPS observed: [N] fps at [checkpoint]
Performance degradation: stable / mild / severe

### Balance / Fatigue Summary

Fun curve: [engaged throughout / fatigue onset at T+N / repetitive from start]
Content exhaustion point: [never / at T+N / early]
Difficulty arc: [appropriate / too easy throughout / difficulty spike at T+N]

### Issues Found

| ID | Severity | Checkpoint | Description |
|----|----------|------------|-------------|
| SOAK-001 | S[1-4] | T+[N] | [description] |

---

## Verdict: PASS / PASS WITH CONCERNS / FAIL

**PASS**: No leaks detected, stability maintained, fun factor consistent
**PASS WITH CONCERNS**: Minor drift or fatigue noted; addressable in Polish
**FAIL**: Memory leak confirmed, stability breach, or severe fun fatigue

---

## Sign-Off

- **Tester**: [name] — [date]
- **QA Lead review**: [name] — [date]

6. Write Output

Present the protocol summary in conversation, then ask:

"May I write this soak test protocol to

production/qa/soak-test-[date]-[duration].md?"

Write only after approval.

After writing:

"Protocol written. To run the soak:

  1. Open the file and follow the Pre-Session Setup checklist
  2. Record each checkpoint as you play
  3. Complete the Post-Session Analysis section when done
  4. File bugs from 'Issues Found' to production/qa/bugs/
  5. Run /bug-triage sprint after the session to integrate any S1/S2 issues

If the verdict is FAIL, run /smoke-check again after fixing the issues."


Collaborative Protocol

run a soak test automatically. The observations require a human observer.

doesn't need a 4h soak; a city-builder might. Use judgment and ask if unclear.

regression soaks after a specific fix, not the first pass

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.