Skip to content

feat: add SmartWardrobe with save_silhouette and get_mix_and_match#118

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-user-silhouette-saving
Draft

feat: add SmartWardrobe with save_silhouette and get_mix_and_match#118
Copilot wants to merge 2 commits intomainfrom
copilot/add-user-silhouette-saving

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

Implements the two missing Pilot features — silhouette persistence (Punto 4) and style-aware mix-and-match suggestions (Punto 3) — as a SmartWardrobe class backed by a BodyAnchors dataclass and a PilotEngine with a PILOT_COLLECTION.

New: api/smart_wardrobe.py

  • BodyAnchors — dataclass holding shoulder_w / torso_h scan output.
  • PilotEngine — carries PILOT_COLLECTION (5 garments, eg0eg4) each with brand, name, and recoveryPct.
  • SmartWardrobe — core class:
    • save_silhouette(anchors) stores shoulderW, torsoH, timestamp and returns the protection confirmation string.
    • get_mix_and_match(engine, current_look_id) excludes the current look and sorts candidates by nearest recoveryPct before returning the top 4 — correctly implementing the "similar style" intent stated in the spec.
sw = SmartWardrobe("user_001")
sw.save_silhouette(BodyAnchors(shoulder_w=42.5, torso_h=55.0))
# → "Silueta protegida bajo cifrado local."

engine = PilotEngine()
sw.get_mix_and_match(engine, "eg0")
# → ["eg2", "eg3", "eg4", "eg1"]  (sorted by |recoveryPct - eg0.recoveryPct|)

New: tests/test_smart_wardrobe.py

  • 16 unit tests covering init state, silhouette overwrite, timestamp validity, recoveryPct-sorted ordering, max-4 cap, and PILOT_COLLECTION schema.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tryonyou-pilot Error Error Apr 7, 2026 2:10pm

Request Review

…houette and get_mix_and_match

Agent-Logs-Url: https://github.com/Tryonme-com/tryonyou-app/sessions/4e59e3c1-8931-4a99-a030-abe46e1460eb

Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
Copilot AI changed the title [WIP] Add silhouette saving feature in SmartWardrobe feat: add SmartWardrobe with save_silhouette and get_mix_and_match Apr 7, 2026
Copilot AI requested a review from LVT-ENG April 7, 2026 14:12
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.

2 participants