Skip to content

feat(benchmark): remaining 6 loop-closure cases spanning the failure taxonomy (#66) - #89

Merged
jyotir-aditya merged 1 commit into
mainfrom
feat/benchmark-cases
Jul 11, 2026
Merged

jyotir-aditya merged 1 commit into
mainfrom
feat/benchmark-cases

Conversation

@jyotir-aditya

Copy link
Copy Markdown
Contributor

Slice 2 of #66 on top of #87 — the benchmark now has 8 cases spanning the failure taxonomy, three of which also validate that the right findings code fires on the first run.

case failure type (verified) finding fix scope
drifted-selector selector_not_found — config
occluding-modal selector_not_found (see #88) blocking_overlay config
stale-session selector_not_visible stale_session config
console-error-breaks-render selector_not_found prior_console_errors source
changed-route url_mismatch — config
slow-endpoint timeout — config
broken-api network_failure — source
text-changed text_mismatch — config

Every expected type/finding was verified empirically against the engine, not assumed. Notable design points:

  • stale-session ships a pre-baked .verfix/state/auth.json fixture the app rejects (401 on an auth endpoint) — the stale_session analyzer fires as designed. The assertion is selector_visible because text_visible failures classify as text_mismatch, which correctly isn't in the analyzer's trigger set. .gitignore gains a scoped exception so case fixtures under benchmark/cases/**/.verfix are committed test data.
  • slow-endpoint uses wait_for_network_idle for its genuine timeout: step-level selector waits deliberately classify as selector misses (0.3.8 behavior), never bare timeout.
  • Harness fix: the app process now restarts after each adapter pass — source-scope fixes edit app/server.js on disk, but the already-running process had the old code in memory, so oracle fixes for source cases never took effect.

Verification

  • node benchmark/run.js --agent oracle → 8/8 closed, exit 0 (run independently twice)
  • --agent null → 0/8 closed, exit 0
  • cd cli && npm test unaffected (14/14 e2e)

…taxonomy (#66)

Adds stale-session, console-error-breaks-render, changed-route,
slow-endpoint, broken-api, and text-changed to the loop-closure benchmark,
covering the remaining failure taxonomy types and both analyzer findings.

The harness itself had a latent bug that only source-scope cases exposed:
the app process is spawned once per case and never restarted, so an
adapter's fix to app/server.js was silently invisible to the already-running
process. Restart the app after every adapter invocation so source-scope
fixes actually take effect on the next iteration.

Also carves out benchmark/cases/**/.verfix from the repo-wide **/.verfix
gitignore rule so the stale-session case's pre-baked storage-state fixture
can be committed.
@jyotir-aditya
jyotir-aditya merged commit 54be9e2 into main Jul 11, 2026
2 checks passed
@jyotir-aditya
jyotir-aditya deleted the feat/benchmark-cases branch July 11, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant