Skip to content

fix(engine/v2): relax formality-spread penalty for SMART_CASUAL and AVANT_GARDE#39

Open
lucavandee wants to merge 2 commits into
mainfrom
claude/coherence-formality-spread-relax
Open

fix(engine/v2): relax formality-spread penalty for SMART_CASUAL and AVANT_GARDE#39
lucavandee wants to merge 2 commits into
mainfrom
claude/coherence-formality-spread-relax

Conversation

@lucavandee
Copy link
Copy Markdown
Owner

Summary

  • evaluateCoherence now accepts an optional UserStyleProfile and selects archetype-aware formality thresholds.
  • SMART_CASUAL tolerates spread up to 0.55 without penalty (blazer + tee + chino no longer triggers formality_mismatch).
  • AVANT_GARDE tolerates spread up to 0.70 without penalty — the proportional tension that defines the style is no longer taxed.
  • Default thresholds preserved for other archetypes; composer.scoreComposition now forwards the profile.

Why

Test-agents flagged that the coherence checker was punishing the signature looks of these archetypes. A blazer+tee (smart-casual kern) was being marked as a formality mismatch, and avant-garde compositions were losing points precisely for what makes them avant-garde.

Test plan

  • npm run build succeeds
  • Manual: run style matching for a SMART_CASUAL profile — verify blazer + tee + jeans/chino composition scores without formality_mismatch reason
  • Manual: run style matching for an AVANT_GARDE profile — verify high-contrast formality compositions are retained
  • Regression: verify non-SMART_CASUAL / non-AVANT_GARDE archetypes still trigger formality_mismatch at spread > 0.45

Luc and others added 2 commits April 18, 2026 12:22
…ion bias

QUIZ_STYLE_TO_ARCHETYPE:
- classic: 1.0 CLASSIC (was 0.7/0.2/0.1 verdeeld over CLASSIC/BUSINESS/MINIMALIST)
- smart-casual: 0.7 SC + 0.3 CLASSIC (was pure 1.0 SC)

OCCASION_ARCHETYPE_BIAS:
- work: BUSINESS 0.25→0.15, CLASSIC 0.2→0.25 (minder aggressieve business-push)
- casual: + AVANT_GARDE 0.1, + STREETWEAR 0.1 (meer variatie in casual)
- date: + AVANT_GARDE 0.1 (ruimte voor expressievere date-looks)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…VANT_GARDE

The coherence checker penalized the signature looks of these archetypes:
blazer+tee (smart-casual kern) triggered formality_mismatch, and avant-garde
combos lost points for the proportional tension that defines the style.

- evaluateCoherence now accepts an optional UserStyleProfile and picks
  archetype-aware formality thresholds.
- SMART_CASUAL tolerates spread up to 0.55 without penalty (was ~0.25).
- AVANT_GARDE tolerates spread up to 0.70 without penalty.
- Default thresholds unchanged for other archetypes.
- composer.scoreComposition forwards the profile to evaluateCoherence.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@supabase
Copy link
Copy Markdown

supabase Bot commented Apr 18, 2026

This pull request has been ignored for the connected project wojexzgjyhijuxzperhq because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 18, 2026

Deploy Preview for fitfiai ready!

Name Link
🔨 Latest commit bc7d9a8
🔍 Latest deploy log https://app.netlify.com/projects/fitfiai/deploys/69e35caa4582970008e81dbf
😎 Deploy Preview https://deploy-preview-39--fitfiai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant