fix(aihr): clarify pilot identity metric

This commit is contained in:
2026-07-14 12:50:10 +08:00
parent e3f7ec472b
commit 6ee29aa8b8
5 changed files with 12 additions and 11 deletions
+4 -4
View File
@@ -4,7 +4,7 @@ const REQUIRED_METRICS = [
'data_scope',
'scenario_count',
'scenario_count_target',
'formal_org_login_count',
'formal_org_identity_count',
'formal_pilot_people_count',
'formal_pilot_people_target',
'formal_pilot_project_count',
@@ -38,7 +38,7 @@ const REQUIRED_METRICS = [
const INTEGER_METRICS = [
'scenario_count',
'scenario_count_target',
'formal_org_login_count',
'formal_org_identity_count',
'formal_pilot_people_count',
'formal_pilot_people_target',
'formal_pilot_project_count',
@@ -241,12 +241,12 @@ export function verifyPilotExportContract({ csv, startDate, endDate, contentDisp
const completionTotal = integerMetric(metrics, 'completion_people_total');
const completedPeople = integerMetric(metrics, 'completion_people_count');
const projects = integerMetric(metrics, 'formal_pilot_project_count');
const orgLogin = integerMetric(metrics, 'formal_org_login_count');
const orgIdentityCount = integerMetric(metrics, 'formal_org_identity_count');
if (completionTotal !== formalPeople) {
fail(`completion_people_total ${completionTotal} does not match formal_pilot_people_count ${formalPeople}`);
}
if (completedPeople > completionTotal) fail('completion_people_count exceeds completion_people_total');
const scopeReady = orgLogin >= 20 && formalPeople >= 20 && projects >= 1 && projects <= 2;
const scopeReady = orgIdentityCount >= 20 && formalPeople >= 20 && projects >= 1 && projects <= 2;
expectMetric(metrics, 'formal_pilot_scope_ready', String(scopeReady));
expectMetric(metrics, 'completion_rate', expectedPercentage(completedPeople, completionTotal));
const completionReady = scopeReady && completedPeople * 100 >= completionTotal * 80;
+1 -1
View File
@@ -13,7 +13,7 @@ function validCsv() {
data_scope: 'active_org_unique_identity',
scenario_count: '12',
scenario_count_target: '12',
formal_org_login_count: '20',
formal_org_identity_count: '20',
formal_pilot_people_count: '20',
formal_pilot_people_target: '20',
formal_pilot_project_count: '1',
+1 -1
View File
@@ -223,7 +223,7 @@ if (pilotExport) {
const { metrics } = verifiedExport;
console.log(
`PILOT_EXPORT window=${pilotStartDate}..${pilotEndDate}`
+ ` org_login=${metrics.get('formal_org_login_count')}`
+ ` org_identity=${metrics.get('formal_org_identity_count')}`
+ ` people=${metrics.get('formal_pilot_people_count')}`
+ ` projects=${metrics.get('formal_pilot_project_count')}`
+ ` ten_sessions=${metrics.get('completion_people_count')}/${metrics.get('completion_people_total')}`