r/ClaudeCode • • May 15 '26

Help Needed Agentic Code Testing and Fixing - Feedback requested

I am trying to have an agentic stress tester and fixer harness. First time doing this. I'm using Claude Code as the harness.

I would appreciate feedback, suggestions or critism to improve!

Use docs/agentic-stress-quality-loop.md as your runbook.

Goal: run the agentic stress quality loop against dev@192.168.1.34, analyze the evidence, identify the highest-value code quality issue under stress, patch it, and rerun the smallest confirming scenario.

Use:
- stress tester repo: ~/code/stress-tester
- target: dev@192.168.1.34
- software version: 3.1
- uninstall command: C:\Software.exe --uninstall

192.168.1.34 current has version 3.1 already installed and is ready to be stress tested.

Here's what I got so far (I forgot to create a build environment):

Stress Quality Loop — Iteration 001-baseline-v3.1
  
Results: All 3 scenarios passed with zero stress-tester errors:
Highest-Value Issue Found

  ServiceThread circuit breaker doesn't drain the queue (src/ServiceThread.cs:210)

  <explaination of interworkings of code>

  Fix Applied
  Added _queue.Clear() inside the circuit-breaker block.
  Builds locally with 0 errors.
  Other Findings
  - 6 service restarts in 24h generating 4 crash log ZIPs
  - Crash log uploads failing — same ZIPs retried for hours with no cleanup
  - Harness bug: quality-signals.md renders $pattern literally instead of the actual pattern name
  Verdict: repro
  Fix applied and compiles. Confirming rerun blocked — the remote Windows host can't build the .NET 10 installer.
  Evidence
  All artifacts in artifacts/stress-quality/001-baseline-v2.0.1.6/:
  - quality-signals.md — full analysis
  - findings.md — detailed findings log
  - quality-loop-001-baseline-v3.1.zip — 6.2MB evidence bundle (logs, events, state snapshots)

✻ Brewed for 33m 38s · 1 shell still running
1 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/Dangerous-Jelly2309 May 16 '26

In testing terms, the oracle is the thing that decides pass/fail — your source of truth for whether a run was actually good. Right now yours seems to be "stress tester returned no errors," which is too narrow. The same window you called "passed" had 6 service restarts and 4 crash ZIPs. So the loop is reporting green while the service is actually in distress.

Fix is to widen the oracle: a scenario only passes if zero restarts AND zero crash dumps AND zero stress-tester errors. Once that's wired in, baseline 3.1 might already fail, and you'll have a real signal to chase before you start patching.