Commit Graph
68 Commits
Author SHA1 Message Date
admin 5ea8d02486 fix(aihr): reject duplicate organization identities 2026-07-14 04:48:29 +08:00
admin 6b84f1ab60 fix(aihr): reload persisted case sessions 2026-07-14 04:44:57 +08:00
admin c9a7ceca0c fix(aihr): guard partial organization snapshot replace 2026-07-14 04:43:15 +08:00
admin e2bbec3beb fix(aihr): scope practice audio access 2026-07-14 04:38:48 +08:00
admin c5a6e677dd feat(aihr): persist sop prompt version 2026-07-14 04:32:21 +08:00
admin cd2c7fdd45 feat(aihr): add supervisor mistake aggregation 2026-07-14 04:27:10 +08:00
admin 07ab28fd7b feat(aihr): trace sop feedback to search review 2026-07-14 04:18:09 +08:00
admin d3552cc22d feat(aihr): add pilot satisfaction evidence loop 2026-07-14 04:13:02 +08:00
admin 65e6483d23 feat(aihr): export human calibration evidence 2026-07-14 03:36:02 +08:00
admin f9bce8f0ef feat(aihr): expose position SOP learning scope 2026-07-14 03:29:59 +08:00
admin d98ff0ff8b feat(aihr): add employee mistake book audit 2026-07-14 03:23:49 +08:00
admin 87360a25d3 feat(aihr): align figma pages for release 2026-07-14 02:04:36 +08:00
admin 98177725cd fix(aihr): close pre-merge auth and pilot metric gaps
Allow sys_user admin console to use unscoped mobile review APIs, restrict
org snapshot/sync to superadmin/hr_operator, count completed pilot people
with the 10-session rule, and let employees self-read assignments without
org team membership.
2026-07-11 01:24:57 +08:00
admin 13230e6b9a feat(aihr): complete phase two pilot readiness 2026-07-10 19:13:31 +08:00
admin 3b81f07b27 fix(aihr): use real mobile home metrics 2026-07-10 00:51:43 +08:00
admin b9215236bc test(aihr): align pilot completion metric 2026-07-10 00:34:05 +08:00
admin beaf4f30d0 test(aihr): enforce pilot completion gate 2026-07-10 00:26:21 +08:00
admin 6f0a4c3d63 fix(aihr): polish model fallback wording 2026-07-09 23:52:44 +08:00
admin 8617199651 fix(aihr): replace seed fallback wording 2026-07-09 23:35:40 +08:00
admin 0acbea7058 fix(aihr): mask sensitive case transcripts 2026-07-09 23:11:02 +08:00
admin 6cec08f4cb fix(aihr): remove demo wording from active flows 2026-07-09 23:07:17 +08:00
admin bfbd2d0b12 fix(mobile): show supervisor team review queue 2026-07-09 22:56:52 +08:00
admin 7267939f95 fix(aihr): remove fake case sample wording 2026-07-09 22:48:19 +08:00
admin cc3581a27a feat(aihr): flag masked org phones in precheck 2026-07-09 22:06:59 +08:00
admin 3b034f6903 feat(aihr): report org sync quality in precheck 2026-07-09 21:54:12 +08:00
admin f38dfeeae0 feat(aihr): surface org snapshot data quality 2026-07-09 21:38:35 +08:00
admin f00f9045eb fix(aihr): keep old daily drills out of today 2026-07-09 21:24:53 +08:00
admin 89d8611ea1 fix(aihr): scope unknown mobile supervisors 2026-07-09 17:29:28 +08:00
admin 8f73cb0c84 fix(mobile): require employee position before user flow 2026-07-09 17:09:26 +08:00
admin 8b92a7e9ac fix(aihr): include org phones in supervisor team scope 2026-07-09 16:45:57 +08:00
admin bba1e00425 fix(aihr): align growth path progress with criteria 2026-07-09 16:01:14 +08:00
admin f1fe0bdfaa fix(aihr): clean video asr snippets 2026-07-09 15:46:03 +08:00
admin 2ef3e39744 fix(aihr): trim sop evidence snippets 2026-07-09 15:37:01 +08:00
admin aa547ef365 fix(mobile): avoid seeded empty competency 2026-07-09 15:15:14 +08:00
admin 68c4b8547e fix(aihr): return pilot export as csv 2026-07-09 14:38:32 +08:00
admin e60520b7aa fix(mobile): proxy review audio downloads 2026-07-09 13:54:19 +08:00
admin 03d9c93ea4 fix(aihr): require candidate identity for materials 2026-07-09 13:13:40 +08:00
admin 0bff6bbfa6 fix(aihr): keep demo question verification read-only 2026-07-09 13:08:54 +08:00
admin 5f92847c00 feat(aihr): map supervisor phone to org scope 2026-07-09 12:54:33 +08:00
admin 9bd567a72f feat(aihr): filter supervisor reviews by org scope 2026-07-09 12:43:16 +08:00
admin a83fb53ecd feat(aihr): scope supervisor practice data 2026-07-09 11:37:33 +08:00
admin 2f5fb853a2 fix(aihr): require assignee for practice assignments 2026-07-09 11:02:11 +08:00
admin 82f861542f fix(aihr): paginate org snapshot view 2026-07-09 10:50:19 +08:00
admin 678543e8a5 feat(aihr): complete uni-app role workflows 2026-07-09 10:42:20 +08:00
admin 15cd789da6 feat(aihr): add SOP answer thumbs up/down feedback loop
- New aihr_knowledge_answer_feedback table; unique (tenant, query_norm,
  fragment_id) pair keeps submissions idempotent
- POST /api/knowledge/answer-feedback (fragmentIds array), GET pending-review
  list, POST /{id}/review — all under existing auth scope
- Down-voted (question, fragment) pairs are filtered from dbSearch fusion
  results; if filtering empties the hit list the original results are kept
  with an explanatory caution (never degrade to no-answer)
- Feedback table missing/unreachable → filter silently skipped, search
  behavior unchanged (degradation chain preserved)
- SnippetResponse gains optional trailing fragmentId (db hits only; seed
  fallback stays null); mobile sopPanel adds 👍/👎 with locked state after
  submit, up votes auto-marked reviewed to keep the review queue clean
2026-07-08 15:09:27 +08:00
admin 8d78bc69d1 feat(aihr): bind SOP direct-answer digest to sop_answer prompt template
- Seed aihr_prompt_template with code=sop_answer (conclusion-first + numbered
  steps + citations appended), matching the built-in prompt
- Digest prefers the enabled sop_answer template, falls back to the built-in
  constant, and logs prompt_version; answer/keyPoints/cautions contract unchanged
2026-07-08 14:52:02 +08:00
admin 7fd61b6ca3 feat(aihr): add coach-hint style regeneration buttons to practice turn
- /turn accepts optional regenerate+style (serious/gentle/detailed/professional);
  regenerate short-circuits before rememberTraineeReply — no round advance,
  no trainee reply write, no scoring impact; only same-round coachHint evidence
  is overwritten
- Style instruction injected into existing LLM turn prompt; LLM missing/failed
  returns original hint with explicit message (no fake data)
- Mobile practice page renders 再严肃/再温柔/更细致/更专业 pills under coach
  hints; success replaces text with a style note, failure toasts and keeps
  original; old clients unaffected (fields appended)
2026-07-08 14:52:02 +08:00
admin eeffbaf752 feat(aihr): return explicit no-evidence SOP answers and log knowledge gaps
- Empty/unanswerable SOP queries now return the fixed 「未在已入库 SOP 中找到明确依据」
  response instead of falling back to seed answers (no fake answers)
- Record knowledge_gap (question/category/position/source) whenever search
  yields no evidence — feeds the phase-two open question board
- Extract NO_CLEAR_SOP_EVIDENCE constant shared by digest prompt and checks
2026-07-08 12:22:33 +08:00
admin 4b10b08eeb feat(aihr): close phase two practice pilot gates 2026-07-08 00:51:32 +08:00
admin f5137a2b05 feat(aihr): add open org snapshot sync endpoint
新增 POST /api/aihr/org/sync,从开放组织系统 /open/v1/sync/snapshot
拉取公司/部门/员工快照刷新 aihr_org_snapshot;支持 dryRun 预检、
Bearer/client-credentials 鉴权与可选 HMAC 签名;外部未配置时保留
SQL seed。附接口契约设计 v1 与 API/DEV_SETUP 配置说明。
2026-07-07 11:05:41 +08:00