fix(web): keep career quality off the gate and let the agent write stems
Independent Staging Quality Gate / validate (push) Successful in 11m41s
Independent Staging Quality Gate / publish (push) Successful in 15m44s

Exam-quality cards may still jump ahead of adoption, but career years stay on method rotation. Server stamps only period and family; spoken questions remain model-authored.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-08-26 12:39:05 +08:00
parent 7416e02fa9
commit 7718317d69
14 changed files with 435 additions and 46 deletions
+4 -1
View File
@@ -543,6 +543,9 @@ def _public_probe(
QUALITY_HINTS: dict[str, tuple[str, ...]] = {
"education": ("失利", "失常", "压力", "复读", "考砸", "发挥不好", "发挥异常"),
}
# Only education has a quality dimension distinct from existence.
# Career/family "quality_family" copies event_family and must not jump the
# adoption gate as known_event_quality.
def _quality_encoded(event: dict[str, Any], domain: str) -> bool:
@@ -594,7 +597,7 @@ def _quality_probes(
year = _event_year(event)
if domain not in domains or year is None or domain in seen_domains:
continue
if domain not in DOMAIN_CATALOG:
if domain not in DOMAIN_CATALOG or domain not in QUALITY_HINTS:
continue
if _year_quality_encoded(events, domain, year):
continue