Research

loom-sprint-scaffoldtesttypescript
Path: loom-sprint-scaffold/loom/tests/e2e/goals/research.tsRelative: loom/tests/e2e/goals/research.tsSubproject: loom-sprint-scaffoldCategory: tests
Lines: 152Bytes: 5,484Imports: 3Exports: 2has tests

Content Preview

  1. /**
  2. * Golden goal: research — mid-goal failing stage drives fail_streak to m=3 → REFORMULATE → recovers → completes.
  3. *
  4. * Stages:
  5. * 1. Research phase: succeeds (DONE)
  6. * 2. Analysis phase: fails 3 consecutive times (TOKEN_DENIED due to destructive tool without token)
  7. * → fail_streak reaches m=3 → REFORMULATE → reformulation_count=1
  8. * 3. Reformulated analysis: succeeds (DONE)
  9. * 4. Report phase: succeeds (DONE)
  10. *
  11. * Total model calls across all stages ≥ 200.
  12. */
  13. import type {