Commit 3da5a55
feat(persona-quiz): branching decision tree + sub-personas, reveal fidelity
The v2 quiz branched only twice per path, so ~91% of answers couldn't
change the revealed persona and the questionnaire read as repetitive. Each
domain is now a depth-3 decision tree (a branch in ~every phase) resolving
to one of 8 sub-personas (32 total); paths drop from ~15 templated
questions to 8 high-signal ones. The reveal now tracks the user's answers,
seeds tags from the persona's keyTags, raises tagConfidenceFloor to 2, and
backfills with domain-aware tags instead of generic javascript/webdev.
The graph + archetypes are emitted and validated by generatePersonaQuiz.mjs
(no dead pointers, all reachable, >=4 branch points/path, no repeated
concept on a path, tags constrained to the system vocabulary), with a jest
gate over the committed artifact.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ebacafe commit 3da5a55
8 files changed
Lines changed: 2378 additions & 3168 deletions
File tree
- packages
- webapp/components/persona-quiz
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
| |||
260 | 262 | | |
261 | 263 | | |
262 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
263 | 285 | | |
264 | 286 | | |
265 | 287 | | |
| |||
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
143 | 154 | | |
| 155 | + | |
144 | 156 | | |
145 | | - | |
| 157 | + | |
146 | 158 | | |
147 | 159 | | |
148 | 160 | | |
| |||
163 | 175 | | |
164 | 176 | | |
165 | 177 | | |
| 178 | + | |
166 | 179 | | |
167 | 180 | | |
168 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| 421 | + | |
421 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
422 | 429 | | |
423 | 430 | | |
424 | 431 | | |
| |||
0 commit comments