fix(aihr): keep pilot gate readable on old case schema

This commit is contained in:
2026-07-15 01:53:33 +08:00
parent bb810b5567
commit 1f31dfd506
2 changed files with 16 additions and 1 deletions
@@ -221,4 +221,15 @@ grep -Fq 'strict pilot check requires AIHR_PILOT_START_DATE and AIHR_PILOT_END_D
exit 1
}
pilot_sql_scalar "ALTER TABLE aihr_case_record DROP COLUMN learning_points, DROP COLUMN supervisor_comment" >/dev/null
old_case_schema_output="$(AIHR_PILOT_START_DATE=2026-07-07 AIHR_PILOT_END_DATE=2026-07-10 check_pilot_samples)"
[[ "$old_case_schema_output" == *'case_learning_schema=0/2'* ]] || {
echo "FAIL: old case schema did not remain inspectable: $old_case_schema_output" >&2
exit 1
}
[[ "$old_case_schema_output" == *'case_unmasked=0'* ]] || {
echo "FAIL: old case schema PII fallback failed: $old_case_schema_output" >&2
exit 1
}
echo "PASS: demo pilot gates use a bounded window and unique formal identities"