iconsulting/packages
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
..
admin-client feat(admin): add multimodal image paste support to all admin chat interfaces 2026-02-08 21:18:57 -08:00
services feat(agents): enforce QMAS 12-item eligibility threshold with 3-layer validation 2026-02-10 07:40:47 -08:00
shared feat(observability): add trace ID propagation across agent pipeline 2026-02-08 04:05:24 -08:00
web-client feat(agents): add run_professional_assessment tool with payment gate + artifact persistence 2026-02-08 17:01:56 -08:00