iconsulting/packages/services
hailin 60a74fc3b0 feat(agents): enforce QMAS 12-item eligibility threshold with 3-layer validation
根据2024年11月1日更新的优才计划政策,实现12项基本门槛评核准则的
系统级强制校验(需满足至少6项才具备申请资格)。

**Layer 1 — Assessment Expert Prompt (assessment-expert-prompt.ts):**
- QMAS评估新增强制性3步流程:门槛评核 → 成就计分制 → 综合计分制
- 12项评核准则逐一列出,含判定依据(年龄≤50、硕士/博士、STEM、
  双语能力、英文能力、≥5年工作经验、跨国/知名企业≥3年、
  特定行业≥3年、国际经验≥2年、年收入≥100万港币、
  业务实体盈利≥500万港币、上市公司)
- 每项判定为 met/not_met/unknown,unknown不计为符合
- 门槛不通过 → eligible=false, score上限29分
- 输出JSON新增 thresholdCheck 结构化字段(items数组+metCount+passed)

**Layer 2 — Code-level 后置校验 (immigration-tools.service.ts):**
- Step 4.5 安全网:解析评估结果后校验QMAS thresholdCheck一致性
- 门槛不通过但score>29 → 自动降级修正(score=29, eligible=false)
- 门槛通过但eligible=false且score>29 → 自动修正eligible=true
- 缺少thresholdCheck → 记录警告日志

**Layer 3 — Coordinator System Prompt (coordinator-system-prompt.ts):**
- Section 10.1 新增"基本门槛(2024年11月更新)"小节
- 明确说明门槛不通过者不具备申请资格(即使计分制达80分)
- 更新4条常见问题速答,融入门槛准则解释

**数据收集增强 (collection-expert-prompt.ts):**
- 新增3个附加字段:company_type、business_ownership、listed_company
- QMAS类别映射扩展,覆盖门槛评核12项所需全部数据点

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 07:40:47 -08:00
..
conversation-service feat(agents): enforce QMAS 12-item eligibility threshold with 3-layer validation 2026-02-10 07:40:47 -08:00
docling-service fix(docling): align volume mount with HF default cache path 2026-02-07 07:38:28 -08:00
evolution-service fix(analytics): handle statDate as string from database 2026-01-26 08:40:09 -08:00
file-service fix(files): replace MinIO presigned URLs with API proxy + base64 for Claude 2026-02-07 04:49:39 -08:00
knowledge-service feat(knowledge): add Docling document parsing microservice 2026-02-07 05:24:10 -08:00
payment-service fix(payment): return paymentUrl from adapters, strip base64 from tool output 2026-02-07 11:44:54 -08:00
user-service fix(nginx): fix admin location try_files path and add multi-tenancy migrations 2026-01-26 07:46:52 -08:00