fix(rectification): rewrite D9/D10 style options and stem spacing
Independent Staging Quality Gate / validate (push) Successful in 9m28s
Independent Staging Quality Gate / publish (push) Successful in 7m26s

Choice cards were showing type-table tokens as options, dating long-term style questions, and stacking the stem on the first option because legend is outside the fieldset grid.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-08-30 10:01:32 +08:00
parent ea0fbd4406
commit 95f5851261
12 changed files with 563 additions and 47 deletions
@@ -25,8 +25,9 @@ QUALITY_STYLE_OPTIONS: tuple[dict[str, str], ...] = (
{"label": "发挥正常、没有明显失常", "answer_class": "no"},
{"label": "这段记不清楚", "answer_class": "unsure"},
)
VARGA_NONE_STYLE_OPTION = {"label": "都不是这些特质", "answer_class": "no"}
VARGA_NONE_STYLE_OPTION = {"label": "都不太像我", "answer_class": "no"}
UNSURE_STYLE_OPTION = {"label": "这段记不清楚", "answer_class": "unsure"}
VARGA_UNSURE_STYLE_OPTION = {"label": "一时说不好", "answer_class": "unsure"}
FORBIDDEN_COPY_TOKENS = ("外貌", "体质", "胎记", "疤痕", "伤疤", "身高", "体型")
LABEL_MIN = 4
LABEL_MAX = 80
@@ -82,6 +83,7 @@ def probe_question_contract_payload() -> dict[str, Any]:
"existence_style_options": [dict(item) for item in EXISTENCE_STYLE_OPTIONS],
"quality_style_options": [dict(item) for item in QUALITY_STYLE_OPTIONS],
"varga_none_style_option": dict(VARGA_NONE_STYLE_OPTION),
"varga_unsure_style_option": dict(VARGA_UNSURE_STYLE_OPTION),
"unsure_style_option": dict(UNSURE_STYLE_OPTION),
}
@@ -154,7 +156,7 @@ def complete_style_options(
if kind == "varga_style":
for option in incoming:
by_class[option["answer_class"]] = option
by_class.setdefault("unsure", dict(UNSURE_STYLE_OPTION))
by_class.setdefault("unsure", dict(VARGA_UNSURE_STYLE_OPTION))
scoring = [item for item in ANSWER_CLASSES if item != "unsure" and item in by_class]
if len(scoring) < 2:
return {"ok": False, "reason": incoming_reason or "varga_insufficient_scoring"}