Skip to content

feat(#437): data-driven workflow analysis and detailed stats - #450

Merged
admarble merged 3 commits into
mainfrom
feature/437-data-driven-workflow-optimization-systematic-a
Mar 25, 2026
Merged

admarble merged 3 commits into
mainfrom
feature/437-data-driven-workflow-optimization-systematic-a

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Add bulk run log analysis script (scripts/analytics/analyze-runs.ts) that computes baselines, temporal trends, QA verdict distribution, first-pass QA rate, failure forensics, and per-label segmentation across all 82 run logs
  • Add --detailed flag to sequant stats for QA verdicts, weekly trends, and label breakdowns
  • Write findings report identifying top 5 optimization targets ranked by impact

Key Findings

Metric Value
Overall success rate 68.3%
First-pass QA rate 38.2%
Top failure mode Tooling failures (60.6%)
Chain-mode success 50% vs 72% single-issue

Follow-up Issues Created

AC Coverage

AC Description Status
AC-1 Stats output reviewed, gaps documented MET
AC-2 Baselines established MET
AC-3 Bulk log analysis (trends, phases, segments) MET
AC-4 First-pass QA rate calculated MET
AC-5 Failed runs categorized by failure mode MET
AC-6 Top 5 optimization targets identified MET
AC-7 Decision framework applied MET
AC-8 Stats enhancements (--detailed flag) MET
AC-9 2 follow-up issues created (#447, #448) MET
AC-10 Analysis approach documented MET

Test plan

  • npm run build passes
  • npm run lint passes (0 warnings)
  • 20 new/updated tests pass (stats + analysis script)
  • Analysis script produces correct JSON and human-readable output
  • sequant stats --detailed displays QA verdicts, trends, and labels

Closes #437

- Add scripts/analytics/analyze-runs.ts for systematic analysis of all
  run logs (baselines, temporal trends, QA verdicts, failure forensics,
  label segmentation)
- Add --detailed flag to sequant stats for QA verdict distribution,
  weekly trends, and per-label success rates
- Add workflow analysis report (docs/reference/workflow-analysis-2026-03.md)
  with top 5 optimization targets and decision framework
- Create follow-up issues #447 (error capture) and #448 (QA rate)
@admarble
admarble merged commit 8d6e8ca into main Mar 25, 2026
5 checks passed
@admarble
admarble deleted the feature/437-data-driven-workflow-optimization-systematic-a branch March 25, 2026 23:01
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.

Data-driven workflow optimization: systematic analysis of run logs and conversation data

1 participant