Files
sapl/docs/Notes
Ajay SableandClaude Opus 4.8 af01366bc7 feat(tna): Stitch Task Template API — digest, exporter, sample payload
The 2026-06-25 Stitch call unblocks TNA write-back: Stitch will expose a Task
Template API so our recommender can push templates back (closes the "no write-back"
gap open since 16 Jun).

- docs/plans/stitch-task-template-api.md: digest, payload contract, mapping to our
  mirrored templates, action items, and the open-questions list to send Stitch.
- services/tna_export.py: map a mirrored/recommended template -> the (inferred)
  push payload + validate per-task mandatories and the mandatory 4-critical /
  1-sewing / 1-shipment composition. ("swing" == sewing, confirmed by the
  sewing_task field already in task-template-master.)
- scripts/gen_stitch_template_sample.py -> docs/plans/stitch-task-template-sample.json:
  a contract-valid sample to send back (action item #2). Sample: backward template,
  23 tasks, lead 90d, validation PASS.
- STATUS: log the digest; flip the write-back blocker from red to amber.

Not wired to any live endpoint yet (awaiting Stitch's URLs + masters).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 15:14:05 +05:30
..