Grills
Prove reliability of a plan and/or its generated code through repeated, adversarial testing before finalizing.
When to use
Before declaring a solution finished (or executing a plan against real state), when the cost of failure is high: error-prone code paths, concurrency, shared state, I/O, timing, user-facing flows.
Steps
- Inventory the target — take the plan and/or code being tested. List the "hot spots" where failures live:
- Boundaries and limits (max sizes, ranges, overflow, empty/null inputs)
- Shared state, concurrency, ordering, race conditions
- I/O: network, filesystem, databases, retries, timeouts
- Timing: delays, reentrancy, missed deadlines
- Anything the plan itself flags as risky or assumes will hold
- Ask the plan "how would this fail?" — for each step of the plan, state the precondition it depends on and the failure mode if that precondition is violated. If a step has no testable precondition, name that gap explicitly.
- Build the test battery:
- Repetition: run the same scenario N times (minimum 10; more for flaky-prone code) and record failures per run
- Edge cases: empty/null, minimum/maximum, overflow, unicode, wrong types, malformed input
- Adversarial: concurrent access, interrupted I/O, timeout injection, resource exhaustion (memory, handles, disk)
- Load: volume scaling where applicable (N records, N requests) and confirm behavior degrades predictably, not catastrophically
- Execute — run the battery. Capture per-case results: pass/fail, errors, timeouts, flakiness (same input, different results between runs).
- Evaluate against acceptance criteria:
- Zero failures across all repetitions and cases
- No flakiness: deterministic results across runs
- No unexpected timeouts or resource growth
- No new failure mode surfaced by adversarial cases
- Report — produce a table: case | repetitions | result | error. Classify each failure: fixable in code, design flaw in the plan, or out-of-scope (declared, not hidden).
- Loop until proven — if any failure is fixable or reveals a plan flaw: fix, then re-grill the affected cases until the battery passes. Do not skip back to finalize.
- Gate — only finish when the battery passes. If the environment prevents stress testing something (no harness, external dependency unavailable), say so explicitly and list what remains unproven — never claim "tested" for what wasn't run.
Acceptance criteria format
Target: [plano | codigo | ambos]
Battery: [repetitions | edge | adversarial | load - which were run]
Result: PASS | FAIL
Failures found: [list]
Unproven (declared): [list]
Rules
- NEVER claim reliability from a single run — repetition is the point.
- NEVER hide a failure to reach PASS; a declared limitation beats a silent risk.
- If the target is untestable as written (no way to invoke it), report that as a blocker, not a pass.
1---2name: grills3description: Stress-test a plan and its implementation with repeated and adversarial runs (edge cases, extreme inputs, concurrency, load) before the solution is executed or finalized. Use when a plan or code patch must be proven highly reliable before completion. For idea interviews without execution, use grilling (with records in grill-with-docs).4argument-hint: "<target: plano | codigo | ambos>"5metadata:6 source: https://skillmd.com/skills/majinmagros/grills7---89# Grills1011Prove reliability of a plan and/or its generated code through repeated, adversarial testing before finalizing.1213## When to use1415Before declaring a solution finished (or executing a plan against real state), when the cost of failure is high: error-prone code paths, concurrency, shared state, I/O, timing, user-facing flows.1617## Steps18191. **Inventory the target** — take the plan and/or code being tested. List the "hot spots" where failures live:20 - Boundaries and limits (max sizes, ranges, overflow, empty/null inputs)21 - Shared state, concurrency, ordering, race conditions22 - I/O: network, filesystem, databases, retries, timeouts23 - Timing: delays, reentrancy, missed deadlines24 - Anything the plan itself flags as risky or assumes will hold252. **Ask the plan "how would this fail?"** — for each step of the plan, state the precondition it depends on and the failure mode if that precondition is violated. If a step has no testable precondition, name that gap explicitly.263. **Build the test battery**:27 - Repetition: run the same scenario N times (minimum 10; more for flaky-prone code) and record failures per run28 - Edge cases: empty/null, minimum/maximum, overflow, unicode, wrong types, malformed input29 - Adversarial: concurrent access, interrupted I/O, timeout injection, resource exhaustion (memory, handles, disk)30 - Load: volume scaling where applicable (N records, N requests) and confirm behavior degrades predictably, not catastrophically314. **Execute** — run the battery. Capture per-case results: pass/fail, errors, timeouts, flakiness (same input, different results between runs).325. **Evaluate against acceptance criteria**:33 - Zero failures across all repetitions and cases34 - No flakiness: deterministic results across runs35 - No unexpected timeouts or resource growth36 - No new failure mode surfaced by adversarial cases376. **Report** — produce a table: case | repetitions | result | error. Classify each failure: fixable in code, design flaw in the plan, or out-of-scope (declared, not hidden).387. **Loop until proven** — if any failure is fixable or reveals a plan flaw: fix, then re-grill the affected cases until the battery passes. Do not skip back to finalize.398. **Gate** — only finish when the battery passes. If the environment prevents stress testing something (no harness, external dependency unavailable), say so explicitly and list what remains unproven — never claim "tested" for what wasn't run.4041## Acceptance criteria format4243```44Target: [plano | codigo | ambos]45Battery: [repetitions | edge | adversarial | load - which were run]46Result: PASS | FAIL47Failures found: [list]48Unproven (declared): [list]49```5051## Rules5253- NEVER claim reliability from a single run — repetition is the point.54- NEVER hide a failure to reach PASS; a declared limitation beats a silent risk.55- If the target is untestable as written (no way to invoke it), report that as a blocker, not a pass.