statistics.total_stitches always reports 0 from EmbroideryPipeline #125
Labels
No labels
blocked:children
blocked:depends-101
blocked:depends-103
blocked:depends-104
blocked:needs-attention
blocked:needs-decision
blocked:no-changes
blocked:preflight
bug
chore
feature-request
in-progress
lint-cleanup
needs-decompose
performance
quality
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/easystitch#125
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
statistics.total_stitches always reports 0 from EmbroideryPipeline
Repo: Mark/easystitch
Severity: Medium — every library consumer sees wrong metric
Found: 2026-09-08 full shakedown
Symptom
EmbroideryPipeline.process(...).statistics.total_stitchesis always 0, regardless of howmany stitches are actually emitted. Verified across 5 fixtures:
data/sample.svgdata/test_fixtures/mixed_stitches.svgdata/test_fixtures/simple_square.pngdata/sample_vis.png(2510x2562)Same for
estimated_stitch_counton eachStitchIntent— always 0.Why it's partially masked in production
easystitch-service/pipeline_runner.py:629recomputestotal_stitchesfrom grouped stitchobjects after the pipeline runs, so the HTTP API returns correct counts. But every other
consumer of the engine library (CLI tools, notebooks, future integrations) gets the wrong metric.
Likely location
src/main_pipeline.py— somewhere in the stage wherestatisticsis built; populated from thewrong source (pre-emission estimates that are never updated).
Acceptance
process(...).statistics.total_stitchesmatches actual stitch count (verifiable via pyembroidery)stitch_intents[*].estimated_stitch_countis a real estimate, not always 0