Skip to content

fix(engine/v2): symmetrische archetype mapping + gebalanceerde occasion bias#36

Open
lucavandee wants to merge 2 commits into
mainfrom
claude/thirsty-archimedes-7d422f
Open

fix(engine/v2): symmetrische archetype mapping + gebalanceerde occasion bias#36
lucavandee wants to merge 2 commits into
mainfrom
claude/thirsty-archimedes-7d422f

Conversation

@lucavandee

Copy link
Copy Markdown
Owner

Summary

Twee structurele problemen uit de engine-audit opgelost in src/engine/v2/buildProfile.ts.

1. Symmetrische QUIZ_STYLE_TO_ARCHETYPE mapping

  • classic → pure { CLASSIC: 1.0 } (was verdeeld 0.7/0.2/0.1 over CLASSIC/BUSINESS/MINIMALIST)
  • smart-casual{ SMART_CASUAL: 0.7, CLASSIC: 0.3 } (was pure 1.0)
  • Resultaat: iemand die classic + smart-casual kiest krijgt nu CLASSIC als primary (was SMART_CASUAL door asymmetrie).

2. Gebalanceerde OCCASION_ARCHETYPE_BIAS

  • work: BUSINESS 0.25 → 0.15, CLASSIC 0.2 → 0.25 (minder agressieve business-push)
  • casual: + AVANT_GARDE 0.1, + STREETWEAR 0.1 (meer variatie)
  • date: + AVANT_GARDE 0.1 (ruimte voor expressievere date-looks)
  • AVANT_GARDE zat in géén enkele occasion-bias → werd altijd verdund zodra iemand een occasion koos. Nu aanwezig in casual + date.

3. Minimalisten beschermen tegen work-bias

Wanneer goals de waarde minimal bevat én occ === 'work', wordt alleen de BUSINESS-component van de work-bias gehalveerd (0.15 → 0.075). Andere componenten (CLASSIC, SMART_CASUAL, MINIMALIST) blijven volledig staan. Voorkomt dat minimalisten met een werkprofiel richting BUSINESS getrokken worden.

Test plan

  • Quiz met classic + smart-casual → primary = CLASSIC
  • Quiz met avant-garde + casual → AVANT_GARDE blijft in top-2 na occasion-bias
  • Quiz met goals=minimal + occasions=[work] → primary blijft MINIMALIST-georiënteerd, geen BUSINESS-dominantie
  • Quiz met goals=[] + occasions=[work] → gedrag ongewijzigd t.o.v. f2230c9 (backwards-compat)
  • npm run build slaagt

🤖 Generated with Claude Code

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>
Minimalisten die work als occasion kiezen kregen nog steeds een
volledige BUSINESS push (+0.15) op hun profiel. Dat trok hun primary
richting BUSINESS terwijl hun goals expliciet minimalistisch zijn.

applyOccasionBias accepteert nu optioneel goals. Wanneer de user
goals=minimal heeft en occ=work, wordt alleen de BUSINESS-component
van de work-bias gehalveerd (0.15 → 0.075). Andere componenten
(CLASSIC, SMART_CASUAL, MINIMALIST) blijven volledig staan.

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

netlify Bot commented Apr 18, 2026

Copy link
Copy Markdown

Deploy Preview for fitfiai ready!

Name Link
🔨 Latest commit 63cc8ad
🔍 Latest deploy log https://app.netlify.com/projects/fitfiai/deploys/69e35c814582970008e81d90
😎 Deploy Preview https://deploy-preview-36--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.

@supabase

supabase Bot commented Apr 18, 2026

Copy link
Copy Markdown

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 ↗︎.

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