Stale doc-comments claim pipeline runner / v1 routes are deferred until issue #16 (already closed 2026-06-28) #102
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#102
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?
Problem
Several code/doc references are stale and reference an issue (#16) that was already resolved on 2026-06-28. The implementation behind those references now exists but the comments weren't updated, which is misleading for future readers.
Locations
1.
Mark/easystitch/pipeline_runner.pyThree doc-comments reference the deferred state of the pipeline runner:
:mod:appis intentionally deferred until issue #16 lands the spec for the upload + pipeline trigger contract."PipelineRunnerclass docstring): "The actual pipeline invocation is deferred until issue #16 finalises the request/response contract."PipelineRunner.run()docstring): "Currently returns a placeholder result; the real pipeline call is wired in once issue #16 lands."The pipeline IS now wired in (we just exercised
POST /v1/digitizeend-to-end — 21k stitches on a geometric PNG, 168k stitches on a photo). These doc-comments are flat-out wrong.2.
Mark/easystitch-service/app.py:154The
/v1/*routes ARE implemented (/healthz,/v1/digitize,/v1/export,/v1/threads/catalog,/v1/threads/resolveall return real responses). Same staleness.3.
Mark/easystitch-service/tests/integration/test_digitize_e2e.py5 tests skip with reason
"Pipeline integration deferred to implementation issue":test_digitize_simple_square_smoketest_digitize_returns_within_budgettest_digitize_settings_affect_outputtest_export_round_trip_to_dsttest_resolve_threads_finds_best_matchThese tests are now feasible to run. Either the e2e harness needs the actual pipeline invocation wired, or the tests should be re-enabled — but the comment reason is now stale.
Reference: Mark/Kimi_Agent_Brother_10_Digitizing_App#16
Closed 2026-06-28. Acceptance was "working upload+trigger flow from Workspace.tsx through easystitch-client to the service." That IS the production state today.
Suggested fix
Two-pass:
docs/api.mdand is stable.Priority
Low. This is doc-hygiene, not a runtime bug. But it has caused real confusion — a reader cannot trust comments that explain what isn't true about the code.
Resolution
Done in two commits:
Mark/easystitch@850be32 (commit on origin/main)
pipeline_runner.pyto clearly state this module is the engine-side stub and that production digitize requests are served by the service'spipeline_runner.py(closed asMark/Kimi_Agent_Brother_10_Digitizing_App#16on 2026-06-28).tests/unit/test_pipeline_runner.pycontinue to pass — they assert the placeholderrun()contract.Mark/easystitch-service@80589e2 (commit on origin/main)
app.py:154to remove the "501 stub" claim and document the actual wired endpoints.tests/integration/test_digitize_e2e.pytests with real assertions against the actual pipeline:test_digitize_simple_square_smoke— verifies the basic 200 response shapetest_digitize_returns_within_budget— verifies the response within REQUEST_TIMEOUT_Stest_digitize_settings_affect_output— verifies response keys for different settingstest_export_round_trip_to_pes_bytes— verifies a real PES file is produced (uses a 64x64 fixture PNG, asserts#PES0001magic header)test_resolve_threads_finds_best_match— verifies bright red resolves within ΔE<50tests/fixtures/solid_orange_box_64x64.png(orange field + black square) so the digitizer produces stitchable regions instead of the 1x1 PNG's empty result.import easystitchtoimport src.main_pipeline(the editable install does not register a top-leveleasystitchmodule).Validation
pytest tests/integration/test_digitize_e2e.py -v→ 5/5 passpytest tests/ -q→ 93/93 passruff check tests/integration/test_digitize_e2e.pyCloses #102.