fix(aihr): gate built-in prompt content
This commit is contained in:
@@ -66,6 +66,7 @@ docker exec -i wygj-mysql mysql -uroot -proot --default-character-set=utf8mb4 <<
|
||||
CREATE DATABASE \`$TEST_DB\` CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
|
||||
USE \`$TEST_DB\`;
|
||||
CREATE TABLE aihr_practice_scenario (tenant_id varchar(20), position varchar(80), scenario_type varchar(80), scenario_name varchar(120), enabled tinyint);
|
||||
CREATE TABLE aihr_prompt_template (tenant_id varchar(20), code varchar(100), enabled tinyint);
|
||||
CREATE TABLE aihr_knowledge_attach (tenant_id varchar(20), type varchar(50), status tinyint);
|
||||
CREATE TABLE aihr_case_record (
|
||||
tenant_id varchar(20), status varchar(30), title varchar(120), transcript text, summary varchar(1000),
|
||||
@@ -103,6 +104,13 @@ END, CONCAT('scenario-', n), 1 FROM (
|
||||
SELECT 1 n UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION ALL SELECT 5 UNION ALL SELECT 6
|
||||
UNION ALL SELECT 7 UNION ALL SELECT 8 UNION ALL SELECT 9 UNION ALL SELECT 10 UNION ALL SELECT 11 UNION ALL SELECT 12
|
||||
) n;
|
||||
INSERT INTO aihr_prompt_template (tenant_id, code, enabled) VALUES
|
||||
('000000','summary_card',1),
|
||||
('000000','sop_answer',1),
|
||||
('000000','mentor_rewrite',1),
|
||||
('000000','review_annotation',1),
|
||||
('000000','prep_card',1),
|
||||
('000000','supervision_image_analysis_maintenance',1);
|
||||
INSERT INTO aihr_knowledge_attach
|
||||
SELECT '000000','sop',2 FROM (
|
||||
SELECT 1 n UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION ALL SELECT 5
|
||||
@@ -179,6 +187,7 @@ pilot_output="$(AIHR_PILOT_START_DATE=2026-07-07 AIHR_PILOT_END_DATE=2026-07-10
|
||||
[[ "$pilot_output" == *'case_media_schema=2/2'* ]] || { echo "FAIL: case media schema gate: $pilot_output" >&2; exit 1; }
|
||||
[[ "$pilot_output" == *'case_learning_schema=2/2'* ]] || { echo "FAIL: case learning schema gate: $pilot_output" >&2; exit 1; }
|
||||
[[ "$pilot_output" == *'practice_session_schema=8/8 daily_drill_schema=6/6'* ]] || { echo "FAIL: practice schema gates: $pilot_output" >&2; exit 1; }
|
||||
[[ "$pilot_output" == *'prompt_templates=6/6'* ]] || { echo "FAIL: built-in prompt template gate: $pilot_output" >&2; exit 1; }
|
||||
[[ "$pilot_output" == *'sop_usable=1/1 sop_pending=1'* ]] || { echo "FAIL: SOP window: $pilot_output" >&2; exit 1; }
|
||||
[[ "$pilot_output" == *'satisfaction=5.0/5 responses=19'* ]] || { echo "FAIL: safe satisfaction identity scope: $pilot_output" >&2; exit 1; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user